Files
PropertyDeployment/resources/Web/MicroCommunityMallWeb/html/js/chunk-4712a755.bb2860c4.js
Anfioo adfd019d2d 江门
1
2026-02-01 15:37:55 +08:00

2 lines
5.1 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4712a755"],{1064:function(t,e,n){},"34b4":function(t,e,n){"use strict";n("1064")},"479c":function(t,e,n){"use strict";n("78e1")},"78e1":function(t,e,n){},"8c53":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("div",[e("el-card",{staticClass:"margin-top-sm"},[e("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[e("div",[t._v(t._s(t.$t("chainInoutOrder.queryCondition")))])]),e("div",{},[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:4}},[e("el-input",{attrs:{placeholder:t.$t("chainInoutOrder.personNamePlaceholder"),clearable:""},model:{value:t.chainInoutOrderInfo.conditions.personName,callback:function(e){t.$set(t.chainInoutOrderInfo.conditions,"personName",e)},expression:"chainInoutOrderInfo.conditions.personName"}})],1),e("el-col",{attrs:{span:4}},[e("el-input",{attrs:{placeholder:t.$t("chainInoutOrder.orderIdPlaceholder"),clearable:""},model:{value:t.chainInoutOrderInfo.conditions.orderId,callback:function(e){t.$set(t.chainInoutOrderInfo.conditions,"orderId",e)},expression:"chainInoutOrderInfo.conditions.orderId"}})],1),e("el-col",{attrs:{span:4}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("chainInoutOrder.supplierPlaceholder")},model:{value:t.chainInoutOrderInfo.conditions.csId,callback:function(e){t.$set(t.chainInoutOrderInfo.conditions,"csId",e)},expression:"chainInoutOrderInfo.conditions.csId"}},t._l(t.chainInoutOrderInfo.css,(function(t,n){return e("el-option",{key:n,attrs:{label:t.name,value:t.csId}})})),1)],1),e("el-col",{attrs:{span:2}},[e("el-button",{attrs:{type:"primary"},on:{click:t._queryChainInoutOrderMethod}},[e("i",{staticClass:"el-icon-search"}),t._v(" "+t._s(t.$t("chainInoutOrder.query"))+" ")])],1)],1)],1)]),e("el-card",{staticClass:"margin-top-sm"},[e("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[e("div",[t._v(t._s(t.$t("chainInoutOrder.orderTitle")))])]),e("div",{},[e("chain-inout-order-table",{attrs:{"inout-orders":t.chainInoutOrderInfo.inoutOrders},on:{"to-order-detail":t._toOrderDetail}}),e("el-pagination",{attrs:{"current-page":t.chainInoutOrderInfo.conditions.page,"page-size":t.chainInoutOrderInfo.conditions.row,total:t.chainInoutOrderInfo.total,layout:"total, prev, pager, next, jumper"},on:{"current-change":t.handlePageChange}})],1)])],1)},o=[],a=function(){var t=this,e=t._self._c;return e("el-table",{staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.inoutOrders,border:""}},[e("el-table-column",{attrs:{prop:"csName",label:t.$t("chainInoutOrder.supplier"),align:"center"}}),e("el-table-column",{attrs:{prop:"orderId",label:t.$t("chainInoutOrder.orderId"),align:"center"}}),e("el-table-column",{attrs:{prop:"stateName",label:t.$t("chainInoutOrder.status"),align:"center"}}),e("el-table-column",{attrs:{prop:"personName",label:t.$t("chainInoutOrder.contactPerson"),align:"center"}}),e("el-table-column",{attrs:{prop:"tel",label:t.$t("chainInoutOrder.contactPhone"),align:"center"}}),e("el-table-column",{attrs:{label:t.$t("chainInoutOrder.operation"),align:"center"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-button",{attrs:{size:"mini"},on:{click:function(e){return t.handleDetail(n.row)}}},[t._v(" "+t._s(t.$t("chainInoutOrder.detail"))+" ")])]}}])})],1)},i=[],s={name:"ChainInoutOrderTable",props:{inoutOrders:{type:Array,default:()=>[]}},methods:{handleDetail(t){this.$emit("to-order-detail",t)}}},c=s,l=(n("479c"),n("2877")),d=Object(l["a"])(c,a,i,!1,null,"52699f68",null),u=d.exports,h=n("b775");function I(t){return new Promise((e,n)=>{Object(h["a"])({url:"/chainInoutOrder.listChainInoutOrder",method:"get",params:t}).then(t=>{const n=t.data;e(n)}).catch(t=>{n(t)})})}function p(t){return new Promise((e,n)=>{Object(h["a"])({url:"/chainSupplier.listChainSupplier",method:"get",params:t}).then(t=>{const n=t.data;e(n)}).catch(t=>{n(t)})})}var O={name:"ChainInoutOrder",components:{ChainInoutOrderTable:u},data(){return{DEFAULT_PAGE:1,DEFAULT_ROWS:10,chainInoutOrderInfo:{inoutOrders:[],total:0,records:1,moreCondition:!1,csId:"",css:[],conditions:{personName:"",orderId:"",csId:"",page:1,row:10}}}},created(){this._initMethod()},methods:{_initMethod(){this._listChainInoutOrder(this.DEFAULT_PAGE,this.DEFAULT_ROWS),this._listChainSuppliers()},async _listChainInoutOrder(t,e){this.chainInoutOrderInfo.conditions.page=t,this.chainInoutOrderInfo.conditions.row=e;try{const t=await I(this.chainInoutOrderInfo.conditions);this.chainInoutOrderInfo.total=t.total,this.chainInoutOrderInfo.records=t.records,this.chainInoutOrderInfo.inoutOrders=t.data}catch(n){console.error("请求失败处理",n)}},_queryChainInoutOrderMethod(){this._listChainInoutOrder(this.DEFAULT_PAGE,this.DEFAULT_ROWS)},handlePageChange(t){this._listChainInoutOrder(t,this.DEFAULT_ROWS)},_toOrderDetail(t){console.log(t)},async _listChainSuppliers(){try{const t=await p({page:1,row:50});this.chainInoutOrderInfo.css=t.data}catch(t){console.error("请求失败处理",t)}}}},f=O,m=(n("34b4"),Object(l["a"])(f,r,o,!1,null,"aaa5d3fe",null));e["default"]=m.exports}}]);
//# sourceMappingURL=chunk-4712a755.bb2860c4.js.map