@bee-hole/admin 1.25.57 → 1.25.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/{lang-package~4e34e71e.7276c473.css → lang-package~4e34e71e.6db4981a.css} +1 -1
- package/dist/css/{lang-package~4e34e71e.7276c473.css.gz → lang-package~4e34e71e.6db4981a.css.gz} +0 -0
- package/dist/index.html +1 -1
- package/dist/js/{app~f075b844.8308f70c.js → app~f075b844.d1a2ff0a.js} +1 -1
- package/dist/js/app~f075b844.d1a2ff0a.js.gz +0 -0
- package/dist/js/chunk-058512e0.d4d19e18.js +1 -0
- package/dist/js/chunk-058512e0.d4d19e18.js.gz +0 -0
- package/dist/js/lang-package~4e34e71e.69f1a456.js +11 -0
- package/dist/js/lang-package~4e34e71e.69f1a456.js.gz +0 -0
- package/package.json +1 -1
- package/dist/js/app~f075b844.8308f70c.js.gz +0 -0
- package/dist/js/chunk-258124b1.9dd12ef4.js +0 -1
- package/dist/js/chunk-258124b1.9dd12ef4.js.gz +0 -0
- package/dist/js/lang-package~4e34e71e.d57264e9.js +0 -11
- package/dist/js/lang-package~4e34e71e.d57264e9.js.gz +0 -0
- /package/dist/css/{chunk-258124b1.a7722505.css → chunk-058512e0.a7722505.css} +0 -0
- /package/dist/css/{chunk-258124b1.a7722505.css.gz → chunk-058512e0.a7722505.css.gz} +0 -0
- /package/dist/js/{chunk-03e1387e.891d7027.js → chunk-03e1387e.0e8fca00.js} +0 -0
- /package/dist/js/{chunk-03e1387e.891d7027.js.gz → chunk-03e1387e.0e8fca00.js.gz} +0 -0
- /package/dist/js/{chunk-286b8764.4ec73314.js → chunk-286b8764.e1f826f8.js} +0 -0
- /package/dist/js/{chunk-286b8764.4ec73314.js.gz → chunk-286b8764.e1f826f8.js.gz} +0 -0
- /package/dist/js/{chunk-5f214972.d25bce83.js → chunk-5f214972.aa3a705b.js} +0 -0
- /package/dist/js/{chunk-5f214972.d25bce83.js.gz → chunk-5f214972.aa3a705b.js.gz} +0 -0
- /package/dist/js/{chunk-5f4b374c.126fbb6d.js → chunk-5f4b374c.f5416c5e.js} +0 -0
- /package/dist/js/{chunk-5f4b374c.126fbb6d.js.gz → chunk-5f4b374c.f5416c5e.js.gz} +0 -0
- /package/dist/js/{chunk-ade7a3ac.f18fa921.js → chunk-ade7a3ac.f90280c7.js} +0 -0
- /package/dist/js/{chunk-ade7a3ac.f18fa921.js.gz → chunk-ade7a3ac.f90280c7.js.gz} +0 -0
- /package/dist/js/{lang-zh-TW-service~f63b1681.9d3f5629.js → lang-zh-TW-service~f63b1681.29dfea9e.js} +0 -0
- /package/dist/js/{lang-zh-TW-service~f63b1681.9d3f5629.js.gz → lang-zh-TW-service~f63b1681.29dfea9e.js.gz} +0 -0
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-058512e0"],{"0a49":function(e,t,a){},"0c499":function(e,t,a){"use strict";a.r(t);var i=a("6f71");t["default"]=i["default"]},"0de6":function(e,t,a){"use strict";a.r(t);var i=a("c7eb"),r=a("1da1"),s=a("3835"),o=a("5530"),n=(a("d3b7"),a("3ca3"),a("ddb0"),a("d81d"),a("4de4"),a("99af"),a("a434"),a("2dd7")),l=a("2f62"),c=a("1b6c"),d=a("f9ee"),u=a("fff4"),p=function(){return a.e("chunk-058512e0").then(a.bind(null,"0c499"))};t["default"]={name:"LogisticsProviderModal",props:{wmsId:{default:null},warehouseCode:{default:null}},data:function(){return{open:!1,formTitle:"",timeList:[{start:null,end:null}],formData:{wms_id:void 0,warehouse_code:void 0,data:{code:"",name:"",name_en:"",type:"0",sp_code:"",is_signature:0,address_validation:0,is_specify_arrival_time:0,delivery_time_list:"",is_truck:0,is_optional_board:0,is_ooh:0,sm_business_type:0,distributor_type:0}},loading:!1}},methods:{handleAdd:function(){this.open=!0,this.formTitle=Object(c["b"])("view.logistics.addPage.modal.title"),this.resetForm()},handleEdit:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.open=!0,this.formTitle=Object(c["b"])("view.logistics.editPage.modal.title"),this.formData=Object(o["a"])({},t),this.formData.data.delivery_time_list)try{var a=JSON.parse(this.formData.data.delivery_time_list);this.timeList=a.map((function(t){var a=t.split("~"),i=Object(s["a"])(a,2),r=i[0],o=i[1];return{start:e.$moment("2000-01-01 ".concat(r)),end:e.$moment("2000-01-01 ".concat(o))}}))}catch(i){this.timeList=[{start:null,end:null}]}},cancel:function(){this.open=!1,this.resetForm()},resetForm:function(){this.formData={wms_id:void 0,warehouse_code:void 0,data:{code:"",name:"",name_en:"",type:"0",sp_code:"",is_signature:0,address_validation:0,is_specify_arrival_time:0,delivery_time_list:"",is_truck:0,is_optional_board:0,is_ooh:0,sm_business_type:1,distributor_type:0}},this.wmsId&&(this.formData.wms_id=this.wmsId),this.warehouseCode&&(this.formData.warehouse_code=this.warehouseCode),this.timeList=[{start:null,end:null}],this.$refs.form&&this.$refs.form.resetFields()},submitForm:function(){var e=this;this.$refs.form.validate(function(){var t=Object(r["a"])(Object(i["a"])().mark((function t(a){var r,s,n;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=14;break}return r=e.timeList.filter((function(e){return e.start&&e.end})).map((function(e){var t=e.start.format("HH:mm"),a=e.end.format("HH:mm");return"".concat(t,"~").concat(a)})),e.formData.data.delivery_time_list=JSON.stringify(r),s=Object(o["a"])(Object(o["a"])({},e.formData),{},{data:Object(o["a"])(Object(o["a"])({},e.formData.data),{},{is_signature:!!e.formData.data.is_signature,address_validation:!!e.formData.data.address_validation,is_specify_arrival_time:!!e.formData.data.is_specify_arrival_time,is_truck:!!e.formData.data.is_truck,is_optional_board:!!e.formData.data.is_optional_board,is_ooh:!!e.formData.data.is_ooh})}),t.prev=4,t.next=7,Object(d["a"])(s);case 7:n=t.sent,0===n.code&&(e.$message.success(e.$t("view.logistics.message.saveSuccess")),e.$emit("success"),e.cancel()),t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](4),e.$message.error(e.$t("view.logistics.message.saveFailed"));case 14:case"end":return t.stop()}}),t,null,[[4,11]])})));return function(e){return t.apply(this,arguments)}}())},handleWarehouseChange:function(e){},addTimeRange:function(){this.timeList.push({start:null,end:null})},removeTimeRange:function(e){this.timeList.splice(e,1)},handleTimeChange:function(){var e=this.timeList.filter((function(e){return e.start&&e.end})).map((function(e){var t=e.start.format("HH:mm"),a=e.end.format("HH:mm");return"".concat(t,"~").concat(a)}));this.formData.data.delivery_time_list=JSON.stringify(e)}},computed:Object(o["a"])({},Object(l["c"])(["shopId","isMobile"])),components:{AntModal:n["default"],WmsSelect:p,GoodcangWarehouseSelect:u["a"]}}},"1d24":function(e,t,a){"use strict";a("0a49")},"2ab0":function(e,t,a){},3058:function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return s}));var i=a("b775");function r(e){return Object(i["b"])({url:"/good_cang/get_warehouse",method:"get",params:e})}function s(e){return Object(i["b"])({url:"/good_cang/warehouse/shipping_method",method:"get",params:e})}},4139:function(e,t,a){"use strict";a("b819")},"4b93":function(e,t,a){"use strict";a.r(t);a("b0c0");var i=function(){var e=this,t=e._self._c;return t("div",[t("a-button",{on:{click:e.showModal}},[e._v(e._s(e.$t("components.WarehouseShippingSelect.button.select")))]),t("a-modal",{attrs:{visible:e.visible,title:e.$t("components.WarehouseShippingSelect.title"),width:900},on:{ok:e.handleOk,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.loading}},[t("advance-table",{attrs:{columns:e.columns,"data-source":e.tableData,"row-selection":{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},pagination:e.pagination,"row-key":e.customRowKey},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"title",fn:function(){return[t("span")]},proxy:!0},{key:"name",fn:function(t){t.text;var a=t.record;return[e._v(" "+e._s(a.shipping_methods.name)+" ")]}},{key:"code",fn:function(t){var a=t.text;return[e._v(" "+e._s(a)+" ")]}},{key:"type",fn:function(t){var a=t.text;return[e._v(" "+e._s(a)+" ")]}},{key:"is_signature",fn:function(a){var i=a.text;return[t("a-tag",{attrs:{color:1===i?"green":""}},[e._v(" "+e._s(1===i?e.$t("components.WarehouseShippingSelect.table.is_signature_yes"):e.$t("components.WarehouseShippingSelect.table.is_signature_no"))+" ")])]}},{key:"is_truck",fn:function(a){var i=a.text;return[t("a-tag",{attrs:{color:1===i?"blue":""}},[e._v(" "+e._s(1===i?e.$t("components.WarehouseShippingSelect.table.is_truck_yes"):e.$t("components.WarehouseShippingSelect.table.is_truck_no"))+" ")])]}},{key:"is_enabled",fn:function(a){var i=a.text;return[t("a-tag",{attrs:{color:1===i?"green":""}},[e._v(" "+e._s(1===i?e.$t("components.WarehouseShippingSelect.table.is_enabled_yes"):e.$t("components.WarehouseShippingSelect.table.is_enabled_no"))+" ")])]}},{key:"distributor_type",fn:function(a){var i=a.record;return[t("div",[0===i.shipping_methods.distributor_type?t("a-tag",{attrs:{color:"green"}},[e._v(e._s(e.$t("view.logistics.distributor_type.1")))]):e._e(),1===i.shipping_methods.distributor_type?t("a-tag",{attrs:{color:"blue"}},[e._v(e._s(e.$t("view.logistics.distributor_type.2")))]):e._e(),2===i.shipping_methods.distributor_type?t("a-tag",{attrs:{color:"red"}},[e._v(e._s(e.$t("view.logistics.distributor_type.3")))]):e._e()],1)]}}])},[t("div",{staticClass:"table-operations",staticStyle:{margin:"0px 0px","text-align":"left"},attrs:{slot:"button"},slot:"button"},[t("span",[e._v(e._s(e.$t("components.WarehouseShippingSelect.table.code"))+":")]),t("a-input",{staticStyle:{width:"180px","margin-right":"5px"},model:{value:e.queryCode,callback:function(t){e.queryCode=t},expression:"queryCode"}}),t("span",[e._v(e._s(e.$t("components.WarehouseShippingSelect.table.distributor_type"))+":")]),t("a-select",{staticStyle:{width:"180px","margin-right":"5px"},model:{value:e.queryDistributorType,callback:function(t){e.queryDistributorType=t},expression:"queryDistributorType"}},[t("a-select-option",{attrs:{value:-1}},[e._v(e._s(e.$t("components.complaint.workType.all")))]),t("a-select-option",{attrs:{value:0}},[e._v(e._s(e.$t("components.WarehouseShippingSelect.table.distributor_type.0")))]),t("a-select-option",{attrs:{value:1}},[e._v(e._s(e.$t("components.WarehouseShippingSelect.table.distributor_type.1")))]),t("a-select-option",{attrs:{value:2}},[e._v(e._s(e.$t("components.WarehouseShippingSelect.table.distributor_type.2")))])],1),t("a-button",{attrs:{type:"primary"},on:{click:e.fetchShippingMethods}},[e._v(e._s(e.$t("view.gangwei.dept.query.btn")))])],1)])],1)],1)],1)},r=[],s=a("5530"),o=a("c7eb"),n=a("1da1"),l=(a("d3b7"),a("3ca3"),a("ddb0"),a("a9e3"),a("4de4"),a("d81d"),a("ac1f"),a("5319"),a("498a"),a("caad"),a("2532"),a("3058")),c=a("fff4"),d=function(){return a.e("chunk-058512e0").then(a.bind(null,"7c9d2"))},u=function(){return Promise.resolve().then(a.bind(null,"5d9e"))},p={name:"WarehouseShippingSelect",components:{GoodcangWarehouseSelect:c["a"],LogisticsProviderModal:d,AdvanceTable:u},props:{value:{type:[String,Number,Array]},mode:{type:String,default:"default"},title:{type:String,default:""},warehouseId:{default:null},warehouseCode:{default:null},wmsId:{default:null}},data:function(){return{loading:!1,visible:!1,selectedRowKeys:[],tableData:[],columns:[{title:this.$t("components.WarehouseShippingSelect.table.name"),dataIndex:"name",key:"name",scopedSlots:{customRender:"name"}},{title:this.$t("components.WarehouseShippingSelect.table.code"),dataIndex:"code",key:"code",scopedSlots:{customRender:"code"}},{title:this.$t("components.WarehouseShippingSelect.table.is_enabled"),dataIndex:"is_enabled",key:"is_enabled",scopedSlots:{customRender:"is_enabled"}},{title:this.$t("view.logistics.distributor_type"),dataIndex:"distributor_type",key:"distributor_type",scopedSlots:{customRender:"distributor_type"}},{title:this.$t("components.WarehouseShippingSelect.table.is_signature"),dataIndex:"is_signature",key:"is_signature",scopedSlots:{customRender:"is_signature"}},{title:this.$t("components.WarehouseShippingSelect.table.is_truck"),dataIndex:"is_truck",key:"is_truck",scopedSlots:{customRender:"is_truck"}}],queryCode:"",queryDistributorType:-1,pagination:{current:1,pageSize:10,total:0,showTotal:function(e){return"共 ".concat(e," 条")},showSizeChanger:!0,showQuickJumper:!0,pageSizeOptions:["10","20","30","40","50"]}}},watch:{value:{handler:function(e){if(e)if(Array.isArray(e))this.selectedRowKeys=e.map((function(e){return e||void 0})).filter((function(e){return void 0!==e}));else if("string"===typeof e)if(e.indexOf(",")>-1){var t=e.replace(/[\[\]]/g,"");this.selectedRowKeys=t.split(",").map((function(e){if(e.trim()){var t=e.trim();return t?void 0:t}})).filter((function(e){return void 0!==e}))}else{var a=e;this.selectedRowKeys=a?[a]:[]}else"number"===typeof e&&(this.selectedRowKeys=e?[e]:[]);else this.selectedRowKeys=[]},immediate:!0,deep:!0},warehouseId:{handler:function(e,t){e&&e!==t&&(this.warehouseId=e,this.fetchShippingMethods())},immediate:!0},warehouseCode:{handler:function(e,t){e&&e!==t&&(this.warehouseCode=e,this.fetchShippingMethods())},immediate:!0}},created:function(){return Object(n["a"])(Object(o["a"])().mark((function e(){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()},methods:{customRowKey:function(e){return e.shipping_methods.code},showModal:function(){this.visible=!0,(this.selectedWarehouse||this.warehouseId)&&this.fetchShippingMethods()},fetchShippingMethods:function(){var e=this;return Object(n["a"])(Object(o["a"])().mark((function t(){var a,i;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,a={page:e.pagination.current,limit:e.pagination.pageSize},e.warehouseId&&(a.cang_id=e.warehouseId),e.warehouseCode&&(a.warehouse_code=e.warehouseCode),e.wmsId&&(a.wms_id=e.wmsId),e.queryCode&&(a.code=e.queryCode),e.queryDistributorType>-1&&(a.distributor_type=e.queryDistributorType),t.next=10,Object(l["a"])(a);case 10:i=t.sent,0===i.code&&(e.tableData=(i.list||[]).map((function(e){return Object(s["a"])({key:e.id},e)})),e.pagination.total=i.total_count||0),t.next=16;break;case 14:t.prev=14,t.t0=t["catch"](1);case 16:return t.prev=16,e.loading=!1,t.finish(16);case 19:case"end":return t.stop()}}),t,null,[[1,14,16,19]])})))()},handleWarehouseChange:function(e){this.selectedWarehouse=e,this.fetchShippingMethods()},onSelectChange:function(e){this.selectedRowKeys=e},handleOk:function(){var e=this,t=this.tableData.filter((function(t){return e.selectedRowKeys.includes(t.id)}));this.$emit("input","multiple"===this.mode?this.selectedRowKeys:this.selectedRowKeys[0]),this.$emit("change","multiple"===this.mode?this.selectedRowKeys:this.selectedRowKeys[0]),this.$emit("select","multiple"===this.mode?t:t[0]),this.visible=!1},handleCancel:function(){this.visible=!1},handleTableChange:function(e){this.pagination.current=e.current,this.pagination.pageSize=e.pageSize,this.fetchShippingMethods()},handleQuery:function(){this.pagination.current=1,this.fetchShippingMethods()}}},m=p,_=(a("dd7b"),a("2877")),h=Object(_["a"])(m,i,r,!1,null,"3c63c17c",null);t["default"]=h.exports},5881:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e._self._c;return t("a-drawer",{attrs:{width:"750px",placement:"right",closable:!1,visible:e.openView},on:{close:e.onCloseView}},[t("a-descriptions",{staticStyle:{"word-break":"break-all","word-wrap":"break-word"},attrs:{title:"操作信息",layout:"vertical",column:3,bordered:""}},[t("a-descriptions-item",{attrs:{label:"操作模块"}},[e._v(" "+e._s(e.form.module)+" ")]),t("a-descriptions-item",{attrs:{label:"登录信息"}},[e._v(" #"+e._s(e.form.member_id)+" / "+e._s(e.form.member_name)+" / "+e._s(e.form.ip)+" / "+e._s(e.form.region)+" ")]),t("a-descriptions-item",{attrs:{label:"请求方式"}},[e._v(" "+e._s(e.form.method)+" ")]),t("a-descriptions-item",{attrs:{label:"请求地址"}},[e._v(" "+e._s(e.form.url)+" ")]),t("a-descriptions-item",{attrs:{label:"操作方法",span:2}},[t("div",{staticStyle:{"word-break":"break-all"}},[e._v(e._s(e.form.method))])])],1),t("a-divider"),t("a-descriptions",{staticStyle:{"word-break":"break-all","word-wrap":"break-word"},attrs:{title:"接口信息",layout:"vertical",column:3,bordered:""}},[t("a-descriptions-item",{attrs:{label:"请求头部",span:3}},[e._v(" "+e._s(e.form.header_data)+" ")]),t("a-descriptions-item",{attrs:{label:"GET参数",span:3}},[e._v(" "+e._s(e.form.get_data)+" ")]),t("a-descriptions-item",{attrs:{label:"POST参数",span:3}},[e._v(" "+e._s(e.form.post_data)+" ")]),t("a-descriptions-item",{attrs:{label:"操作状态"}},[0===e.form.error_code?t("a-badge",{attrs:{status:"processing",text:"正常"}}):e._e(),0!==e.form.error_code?t("a-badge",{attrs:{status:"error",text:"失败"}}):e._e()],1),t("a-descriptions-item",{attrs:{label:"操作时间"}},[e._v(" "+e._s(e.parseTime(e.form.created_at))+" ")]),t("a-descriptions-item",{attrs:{label:"耗时"}},[e._v(" "+e._s(e.form.take_up_time)+"毫秒 ")]),t("a-descriptions-item",{attrs:{label:"回复信息"}},[e._v(" "+e._s(e.form.error_msg)+" ")]),0!==e.form.error_code?t("a-descriptions-item",{attrs:{label:"报错日志"}},[e._v(" "+e._s(e.form.error_data)+" ")]):e._e()],1),null!==e.form.logContent?t("a-divider"):e._e(),null!==e.form.logContent?t("a-descriptions",{staticStyle:{"word-break":"break-all","word-wrap":"break-word"},attrs:{title:"变更记录",layout:"vertical",column:3,bordered:""}},[t("a-descriptions-item",{attrs:{label:"请求ID",span:3}},[e._v(" "+e._s(e.form.req_id)+" ")]),t("a-descriptions-item",{attrs:{label:"变更情况",span:3}},[e._v(" 无 ")])],1):e._e()],1)},r=[],s={name:"ViewForm",props:{},data:function(){return{form:{},openView:!1}},filters:{},created:function(){},computed:{},watch:{},methods:{handleView:function(e){this.openView=!0,this.form=e},onCloseView:function(){this.openView=!1}}},o=s,n=a("2877"),l=Object(n["a"])(o,i,r,!1,null,null,null);t["default"]=l.exports},"5c7e":function(e,t,a){"use strict";a.r(t),a.d(t,"WarehouseShippingSelect",(function(){return _})),a.d(t,"WarehouseShippingTable",(function(){return h["default"]}));a("b0c0");var i=function(){var e=this,t=e._self._c;return t("div",[t("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$t("components.WarehouseShippingSelect.select.placeholder"),mode:e.mode,loading:e.loading},on:{change:e.handleChange,popupScroll:e.handlePopupScroll},scopedSlots:e._u([e.showWarehouseSelect?{key:"addonBefore",fn:function(){return[t("GoodcangWarehouseSelect",{staticStyle:{width:"120px"},on:{change:e.handleWarehouseChange},model:{value:e.selectedWarehouse,callback:function(t){e.selectedWarehouse=t},expression:"selectedWarehouse"}})]},proxy:!0}:null],null,!0),model:{value:e.selectedShipping,callback:function(t){e.selectedShipping=t},expression:"selectedShipping"}},e._l(e.shippingList,(function(a){return t("a-select-option",{key:a.id,attrs:{value:a.id}},[t("span",[e._v(e._s(a.name))]),a.code?t("span",{staticClass:"shipping-code"},[e._v("("+e._s(a.code)+")")]):e._e(),t("div",{staticClass:"shipping-tags"},[1===a.is_signature?t("a-tag",{attrs:{color:"green",size:"small"}},[e._v(" "+e._s(e.$t("components.WarehouseShippingSelect.table.is_signature_yes"))+" ")]):e._e(),1===a.is_truck?t("a-tag",{attrs:{color:"blue",size:"small"}},[e._v(" "+e._s(e.$t("components.WarehouseShippingSelect.table.is_truck_yes"))+" ")]):e._e()],1)])})),1)],1)},r=[],s=a("c7eb"),o=a("2909"),n=a("1da1"),l=(a("a9e3"),a("99af"),a("4de4"),a("d3b7"),a("caad"),a("2532"),a("3058")),c=a("fff4"),d={name:"WarehouseShippingSelect",components:{GoodcangWarehouseSelect:c["a"]},props:{value:{type:[String,Number,Array],default:function(){return[]}},mode:{type:String,default:"default"},showWarehouseSelect:{type:Boolean,default:!0},warehouseCode:{type:String,default:""},warehouseId:{default:null},wmsId:{default:null}},data:function(){return{loading:!1,selectedWarehouse:this.warehouseCode,selectedShipping:this.value,shippingList:[],pagination:{page:1,limit:20,total:0,hasMore:!0}}},watch:{value:{handler:function(e){this.selectedShipping=e},immediate:!0},warehouseCode:{handler:function(e,t){e&&e!==t&&(this.warehouseCode=e,this.fetchShippingMethods())},immediate:!0},warehouseId:{handler:function(e,t){e&&e!==t&&(this.warehouseId=e,this.fetchShippingMethods())},immediate:!0}},methods:{fetchShippingMethods:function(){var e=arguments,t=this;return Object(n["a"])(Object(s["a"])().mark((function a(){var i,r,n,c;return Object(s["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(i=e.length>0&&void 0!==e[0]&&e[0],i||(t.pagination.page=1,t.pagination.hasMore=!0),t.pagination.hasMore&&!t.loading){a.next=4;break}return a.abrupt("return");case 4:return t.loading=!0,a.prev=5,r={page:t.pagination.page,limit:t.pagination.limit},t.warehouseId&&(r.cang_id=t.warehouseId),t.warehouseCode&&(r.warehouse_code=t.warehouseCode),t.wmsId&&(r.wms_id=t.wmsId),a.next=12,Object(l["a"])(r);case 12:n=a.sent,0===n.code&&(c=n.list||[],t.pagination.total=n.total_count||0,t.shippingList=i?[].concat(Object(o["a"])(t.shippingList),Object(o["a"])(c)):c,t.pagination.hasMore=t.shippingList.length<t.pagination.total,t.pagination.hasMore&&t.pagination.page++),a.next=18;break;case 16:a.prev=16,a.t0=a["catch"](5);case 18:return a.prev=18,t.loading=!1,a.finish(18);case 21:case"end":return a.stop()}}),a,null,[[5,16,18,21]])})))()},handlePopupScroll:function(e){var t=e.target;t.scrollTop+t.offsetHeight>=t.scrollHeight-20&&this.fetchShippingMethods(!0)},handleWarehouseChange:function(e){this.selectedWarehouse=e,this.selectedShipping=void 0,this.fetchShippingMethods()},handleChange:function(e){this.$emit("input",e),this.$emit("change",e);var t=this.shippingList.filter((function(t){return Array.isArray(e)?e.includes(t.id):t.id===e}));this.$emit("select",Array.isArray(e)?t:t[0])}}},u=d,p=(a("7154"),a("2877")),m=Object(p["a"])(u,i,r,!1,null,"33ba007d",null),_=m.exports,h=a("4b93");t["default"]=_},"6a20":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"wms-modal-wrapper"},[t("a-button",{attrs:{type:"primary"},on:{click:e.showModal}},[e._v(" "+e._s(e.$t("components.WmsModal.button"))+" ")]),t("LogisticsProviderModal",{ref:"logisticsModal"}),t("a-modal",{attrs:{visible:e.modalVisible,title:e.$t("components.WmsModal.title"),width:900},on:{cancel:e.handleCancel},scopedSlots:e._u([{key:"footer",fn:function(){return[t("a-button",{on:{click:e.handleCancel}},[e._v(e._s(e.$t("components.WmsModal.button.cancel")))])]},proxy:!0}])},[t("div",{staticClass:"table-operations"},[t("a-button",{attrs:{type:"primary"},on:{click:e.handleAdd}},[e._v(" "+e._s(e.$t("components.WmsModal.button.add"))+" ")]),t("a-button",{staticStyle:{"margin-left":"5px"},on:{click:function(t){return e.$refs.logisticsModal.handleAdd()}}},[e._v(e._s(e.$t("view.wareHouse.list.btn.addLogistics")))])],1),t("a-table",{attrs:{columns:e.columns,"data-source":e.list,pagination:e.pagination,loading:e.loading},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"name",fn:function(a){return t("span",{},[e._v(" "+e._s(a)+" ")])}},{key:"wms_type",fn:function(a){return t("span",{},[e._v(" "+e._s(a)+" ")])}},{key:"api_charging",fn:function(a,i){return t("span",{},[t("a-switch",{attrs:{checked:1==a,"checked-children":e.$t("paypal.setting.is_sand_box.true"),"un-checked-children":e.$t("paypal.setting.is_sand_box.false")},on:{click:function(t){return e.changeApiCharging(t,i)}}})],1)}},{key:"status",fn:function(a,i){return t("span",{},[t("div",[t("a-switch",{attrs:{checked:1==i.status,"checked-children":e.$t("view.template.list.template_status.1"),"un-checked-children":e.$t("view.template.list.template_status.2")},on:{click:function(t){return e.changeStatus(t,i)}}})],1)])}},{key:"is_sand_box",fn:function(a,i){return t("span",{},[t("a-switch",{attrs:{checked:1==i.is_sand_box,"checked-children":e.$t("paypal.setting.is_sand_box.true"),"un-checked-children":e.$t("paypal.setting.is_sand_box.false")},on:{click:function(t){return e.changeBoxStatus(t,i)}}})],1)}},{key:"action",fn:function(a,i){return t("span",{},[t("a-space",[t("a",{on:{click:function(t){return e.handleEdit(i)}}},[e._v(e._s(e.$t("components.WmsModal.action.edit")))])])],1)}},{key:"create_time",fn:function(a){return t("span",{},[e._v(" "+e._s(a)+" ")])}}])}),t("wms-form",{attrs:{visible:e.formVisible,"form-data":e.currentRecord},on:{"update:visible":function(t){return e.formVisible=t},success:e.handleFormSuccess}})],1)],1)},r=[],s=a("5530"),o=a("c7eb"),n=a("1da1"),l=(a("d3b7"),a("3ca3"),a("ddb0"),a("f9ee")),c=(a("b0c0"),function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{visible:e.visible,title:e.formData?e.$t("components.WmsForm.title.edit"):e.$t("components.WmsForm.title.add"),confirmLoading:e.loading},on:{ok:e.handleSave,cancel:e.handleCancel}},[t("a-form",{ref:"formRef",attrs:{model:e.form,rules:e.rules,"label-col":{span:6},"wrapper-col":{span:16}}},[t("a-form-item",{attrs:{label:e.$t("components.WmsForm.label.name"),name:"name"}},[t("a-input",{attrs:{placeholder:e.$t("components.WmsForm.placeholder.name")},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),t("a-form-item",{attrs:{label:e.$t("components.WmsForm.label.wms_type"),name:"wms_type"}},[t("wms-type-select",{on:{change:e.handleWmsTypeChange},model:{value:e.form.wms_type,callback:function(t){e.$set(e.form,"wms_type",t)},expression:"form.wms_type"}})],1),t("a-form-model-item",{attrs:{label:e.$t("view.warehouse.list.api_charging"),prop:"api_charging"}},[t("a-switch",{attrs:{"checked-children":e.$t("paypal.setting.is_sand_box.true"),"un-checked-children":e.$t("paypal.setting.is_sand_box.false")},model:{value:e.form.api_charging,callback:function(t){e.$set(e.form,"api_charging",t)},expression:"form.api_charging"}})],1),t("a-form-item",{attrs:{label:e.$t("components.WmsForm.label.status"),name:"status"}},[t("a-switch",{attrs:{"checked-children":e.$t("view.template.list.template_status.1"),"un-checked-children":e.$t("view.template.list.template_status.2")},model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}})],1),t("a-form-item",{attrs:{label:e.$t("components.WmsForm.label.is_sand_box"),name:"is_sand_box"}},[t("a-switch",{attrs:{"checked-children":e.$t("paypal.setting.is_sand_box.true"),"un-checked-children":e.$t("paypal.setting.is_sand_box.false")},model:{value:e.form.is_sand_box,callback:function(t){e.$set(e.form,"is_sand_box",t)},expression:"form.is_sand_box"}})],1),"goodcang"===e.form.wms_type||"jiufang"===e.form.wms_type?[t("a-form-item",{attrs:{label:e.$t("components.WmsForm.label.app_key"),name:"app_key"}},[t("a-input",{attrs:{placeholder:e.$t("components.WmsForm.placeholder.app_key")},model:{value:e.form.config.app_key,callback:function(t){e.$set(e.form.config,"app_key",t)},expression:"form.config.app_key"}})],1),t("a-form-item",{attrs:{label:e.$t("components.WmsForm.label.app_token"),name:"app_token"}},[t("a-input-password",{attrs:{placeholder:e.$t("components.WmsForm.placeholder.app_token")},model:{value:e.form.config.app_token,callback:function(t){e.$set(e.form.config,"app_token",t)},expression:"form.config.app_token"}})],1)]:e._e()],2)],1)}),d=[],u=function(){var e=this,t=e._self._c;return t("a-select",{style:e.customStyle,attrs:{value:e.value,placeholder:e.placeholder,mode:e.mode,loading:e.loading},on:{change:e.handleChange}},e._l(e.options,(function(a){return t("a-select-option",{key:a.value,attrs:{value:a.value}},[e._v(" "+e._s(a.name)+" ")])})),1)},p=[],m={name:"WmsTypeSelect",props:{value:{type:[String,Array],default:void 0},mode:{type:String,default:"default"},placeholder:{type:String,default:"请选择服务商类型"},customStyle:{type:Object,default:function(){return{width:"100%"}}}},data:function(){return{loading:!1,options:[]}},created:function(){this.fetchOptions()},methods:{fetchOptions:function(){var e=this;return Object(n["a"])(Object(o["a"])().mark((function t(){var a;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,Object(l["c"])();case 4:a=t.sent,0===a.code&&null!==a&&void 0!==a&&a.list&&(e.options=a.list),t.next=10;break;case 8:t.prev=8,t.t0=t["catch"](1);case 10:return t.prev=10,e.loading=!1,t.finish(10);case 13:case"end":return t.stop()}}),t,null,[[1,8,10,13]])})))()},handleChange:function(e){this.$emit("input",e),this.$emit("change",e)}}},_=m,h=a("2877"),f=Object(h["a"])(_,u,p,!1,null,null,null),g=f.exports,v=g,y={name:"WmsForm",components:{WmsTypeSelect:v},props:{visible:{type:Boolean,required:!0},formData:{type:Object,default:null}},emits:["update:visible","success"],data:function(){var e=this;return{loading:!1,form:{name:"",wms_type:"",status:!0,is_sand_box:!1,config:{app_key:"",app_token:""}},rules:{name:[{required:!0,message:this.$t("components.WmsForm.message.name")}],wms_type:[{required:!0,message:this.$t("components.WmsForm.message.wms_type")}],app_key:[{required:!0,message:this.$t("components.WmsForm.message.app_key"),validator:function(t,a){return"goodcang"!==e.form.wms_type||a?Promise.resolve():Promise.reject(new Error(e.$t("components.WmsForm.message.app_key")))}}],app_token:[{required:!0,message:this.$t("components.WmsForm.message.app_token"),validator:function(t,a){return"goodcang"!==e.form.wms_type||a?Promise.resolve():Promise.reject(new Error(e.$t("components.WmsForm.message.app_token")))}}]}}},watch:{formData:{handler:function(e){if(e){var t="string"===typeof e.config?JSON.parse(e.config):e.config;this.form={id:e.id,name:e.name,wms_type:e.wms_type,status:1===e.status,is_sand_box:1===e.is_sand_box,api_charging:1===e.api_charging,config:{app_key:t.app_key||"",app_token:t.app_token||""}}}else this.resetForm()},immediate:!0}},methods:{handleWmsTypeChange:function(){this.form.config={app_key:"",app_token:""}},resetForm:function(){this.form={name:"",wms_type:"",status:!0,is_sand_box:!1,config:{app_key:"",app_token:""}}},handleSave:function(){var e=this;return Object(n["a"])(Object(o["a"])().mark((function t(){var a,i;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.loading=!0,a=Object(s["a"])(Object(s["a"])({},e.form),{},{status:e.form.status?1:2,is_sand_box:e.form.is_sand_box?1:2,config:JSON.stringify(e.form.config),api_charging:e.form.api_charging?1:2}),t.next=5,Object(l["d"])(a);case 5:i=t.sent,0===i.code&&(e.$message.success(e.$t("components.WmsForm.message.save.success")),e.$emit("success"),e.$emit("update:visible",!1)),t.next=11;break;case 9:t.prev=9,t.t0=t["catch"](0);case 11:return t.prev=11,e.loading=!1,t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[0,9,11,14]])})))()},handleCancel:function(){this.resetForm(),this.$emit("update:visible",!1)}}},b=y,w=Object(h["a"])(b,c,d,!1,null,null,null),k=w.exports,x=function(){return a.e("chunk-058512e0").then(a.bind(null,"7c9d2"))},$={name:"WmsModal",components:{WmsForm:k,LogisticsProviderModal:x},data:function(){return{modalVisible:!1,loading:!1,formVisible:!1,currentRecord:null,list:[],pagination:{current:1,pageSize:10,total:0},columns:[{title:this.$t("components.WmsModal.table.name"),dataIndex:"name",key:"name",scopedSlots:{customRender:"name"}},{title:this.$t("components.WmsModal.table.wms_type"),dataIndex:"wms_type",key:"wms_type",scopedSlots:{customRender:"wms_type"}},{title:this.$t("view.warehouse.list.api_charging"),dataIndex:"api_charging",key:"api_charging",scopedSlots:{customRender:"api_charging"}},{title:this.$t("components.WmsModal.table.status"),dataIndex:"status",key:"status",scopedSlots:{customRender:"status"}},{title:this.$t("components.WmsModal.table.is_sand_box"),dataIndex:"is_sand_box",key:"is_sand_box",scopedSlots:{customRender:"is_sand_box"}},{title:this.$t("components.WmsModal.table.create_time"),dataIndex:"create_time",key:"create_time",scopedSlots:{customRender:"create_time"}},{title:this.$t("components.WmsModal.table.action"),dataIndex:"action",key:"action",width:150,scopedSlots:{customRender:"action"}}]}},watch:{modalVisible:function(e){e&&this.fetchData()}},methods:{showModal:function(){this.modalVisible=!0},fetchData:function(){var e=this;return Object(n["a"])(Object(o["a"])().mark((function t(){var a;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,Object(l["b"])();case 4:a=t.sent,0===a.code&&(e.list=a.list,e.pagination.total=a.total||a.list.length);case 6:return t.prev=6,e.loading=!1,t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[1,,6,9]])})))()},handleTableChange:function(e){this.pagination.current=e.current,this.pagination.pageSize=e.pageSize,this.fetchData()},handleAdd:function(){this.currentRecord=null,this.formVisible=!0},handleEdit:function(e){this.currentRecord=Object(s["a"])({},e),this.formVisible=!0},handleDelete:function(e){this.fetchData()},handleFormSuccess:function(){this.formVisible=!1,this.fetchData()},handleCancel:function(){this.modalVisible=!1},changeStatus:function(e,t){var a=this;Object(l["e"])({id:t.id,status:e?1:2}).then((function(e){a.fetchData()}))},changeBoxStatus:function(e,t){var a=this;Object(l["e"])({id:t.id,is_sand_box:e?1:2}).then((function(e){a.fetchData()}))},changeApiCharging:function(e,t){var a=this;Object(l["e"])({id:t.id,api_charging:e?1:2}).then((function(e){a.fetchData()}))}}},S=$,C=(a("ffeb"),Object(h["a"])(S,i,r,!1,null,"736dc18e",null));t["default"]=C.exports},"6f71":function(e,t,a){"use strict";a.r(t);a("b0c0");var i=function(){var e=this,t=e._self._c;return t("a-select",{style:e.customStyle,attrs:{value:e.currentValue,placeholder:e.placeholder,mode:e.mode,loading:e.loading,allowClear:"",disabled:e.disabled},on:{change:e.handleChange}},[t("a-select-option",{attrs:{value:0}},[e._v(e._s(e.$t("components.WmsSelect.select.0")))]),e._l(e.options,(function(a){return t("a-select-option",{key:a.id,attrs:{value:a.id}},[e._v(" "+e._s(a.name)+" ")])}))],2)},r=[],s=a("c7eb"),o=a("1da1"),n=(a("a9e3"),a("d81d"),a("7db0"),a("d3b7"),a("f9ee")),l={name:"WmsSelect",props:{value:{type:[String,Number,Array],default:void 0},mode:{type:String,default:"default"},placeholder:{type:String,default:"请选择服务商"},customStyle:{type:Object,default:function(){return{width:"100%"}}},disabled:{type:Boolean,default:!1}},data:function(){return{loading:!1,options:[],currentValue:this.value}},watch:{value:{handler:function(e){this.currentValue=e},immediate:!0}},created:function(){this.fetchOptions()},methods:{fetchOptions:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var a;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,Object(n["b"])({status:1});case 4:a=t.sent,0===a.code&&a.list?(e.options=a.list.map((function(e){return{id:e.id,name:e.name,wms_type:e.wms_type}})),e.currentValue&&e.handleChange(e.currentValue)):e.currentValue&&e.handleChange(e.currentValue),t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](1),e.currentValue&&e.handleChange(e.currentValue);case 11:return t.prev=11,e.loading=!1,t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[1,8,11,14]])})))()},handleChange:function(e){this.currentValue=null!==e&&void 0!==e?e:0;var t=null!==e&&void 0!==e&&""!==e?this.options.find((function(t){return t.id===e})):null;t?(this.$emit("input",this.currentValue),this.$emit("change",this.currentValue,null===t||void 0===t?void 0:t.wms_type)):(this.$emit("input",0),this.$emit("change",0))}}},c=l,d=a("2877"),u=Object(d["a"])(c,i,r,!1,null,null,null);t["default"]=u.exports},7154:function(e,t,a){"use strict";a("a9d9")},"76f8":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e._self._c;return t("div",[t("a-card",{staticClass:"procureList",staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[t("div",{ref:"search",staticClass:"table-page-search-wrapper"},[t("a-form",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-row",{attrs:{type:"flex"}},[t("a-col",{attrs:{lg:11,xl:5,md:16}},[t("a-form-item",{attrs:{label:e.$t("view.purchaseOrder.list.purchaseId"),labelCol:{md:3,sm:8,lg:5},wrapperCol:{lg:14}}},[t("a-input",{attrs:{"allow-clear":""},model:{value:e.queryParam.purchase_id,callback:function(t){e.$set(e.queryParam,"purchase_id",t)},expression:"queryParam.purchase_id"}})],1)],1),t("a-col",{attrs:{lg:11,xl:5,md:16}},[t("a-form-item",{attrs:{label:e.$t("view.order.list.order_id"),labelCol:{md:3,sm:8,lg:5},wrapperCol:{lg:14}}},[t("a-input",{attrs:{"allow-clear":""},model:{value:e.queryParam.order_id,callback:function(t){e.$set(e.queryParam,"order_id",t)},expression:"queryParam.order_id"}})],1)],1),t("a-col",{attrs:{lg:11,xl:5,md:16}},[t("a-form-item",{attrs:{label:e.$t("view.order.list.export.time_select_title"),labelCol:{md:3,sm:8,lg:3},wrapperCol:{lg:21}}},[t("a-range-picker",{staticStyle:{width:"auto"},attrs:{"show-time":""},model:{value:e.exportTime,callback:function(t){e.exportTime=t},expression:"exportTime"}},[t("template",{slot:"renderExtraFooter"})],2)],1)],1),t("a-col",{attrs:{lg:24,xl:8}},[t("span",{staticClass:"table-page-search-submitButtons buttonsTools"},[t("a-button",{attrs:{type:"primary"},on:{click:e.handleQuery}},[t("a-icon",{attrs:{type:"search"}}),e._v(e._s(e.$t("view.order.list.query.btn"))+" ")],1),t("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.resetQuery}},[t("a-icon",{attrs:{type:"redo"}}),e._v(e._s(e.$t("view.order.list.reset.btn"))+" ")],1),t("purchaseUpload",{staticStyle:{"margin-left":"8px"},on:{uploadBack:function(t){return e.resetQuery()}}}),t("ExcelData",{attrs:{page:e.queryParam.page_no,pageSize:e.queryParam.page_size,total:e.total_count,loadData:e.changeSize,fileName:e.$t("app.menus.left.procure.procureOrder")}})],1)])],1)],1)],1)]),t("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[e.showFaHuoModal?t("fa-huo",{ref:"fauho",attrs:{isEdit:!1},on:{ok:e.getList,close:function(t){e.showFaHuoModal=!1}}}):e._e(),e.orderDetailModal?t("order-detail",{ref:"OrderDetail",on:{close:function(t){e.orderDetailModal=!1}}}):e._e(),t("advance-table",{attrs:{loading:e.loading,size:"middle","row-selection":null,"format-conditions":!1,columns:e.columns,"data-source":e.List,rowKey:"id",tableKey:"procure-order-table",expandedRowKeys:e.expandedRowKeys,pagination:{current:e.queryParam.page_no,pageSize:e.queryParam.page_size,total:e.total_count,showSizeChanger:!1,showLessItems:!1,showQuickJumper:!1,showTotal:function(t,a){return e.$t("view.order.list.table.total",{num:a[0]+"-"+a[1],total:t})},onChange:e.changeSize,onShowSizeChange:e.onShowSizeChange},scroll:{x:"100%"},title:e.$t("view.order.list.list")},scopedSlots:e._u([{key:"purchase_id",fn:function(a){var i=a.text,r=a.record;return t("span",{},[t("div",[1===r.is_self_take&&1!==r.is_virtual?t("div",{staticStyle:{display:"flex","margin-bottom":"2px"}},[t("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}}),t("a-tag",{attrs:{color:"green"}},[e._v(e._s(e.$t("view.procure.delivery.self_pickup")))])],1):e._e(),2===r.is_self_take&&1!==r.is_virtual?t("div",{staticStyle:{display:"flex","margin-bottom":"2px"}},[t("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}}),t("a-tag",{attrs:{color:"green"}},[e._v(e._s(e.$t("view.procure.delivery.drop_shipping")))])],1):e._e(),""!==r.assoc_order_id?t("div",{staticStyle:{display:"flex"}},[t("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[e._v(" "+e._s(e.$t("procure.list.order.assoc_order_id"))+" ")]),t("a-tag",{staticStyle:{cursor:"pointer"},attrs:{color:"cyan"},on:{click:function(){return e.copyToClipboard(r.assoc_order_id)}}},[e._v(" "+e._s(r.assoc_order_id)+" ")])],1):e._e(),t("div",{staticStyle:{display:"flex"}},[t("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[e._v(" "+e._s(e.$t("view.purchaseOrder.list.purchaseId"))+" ")]),t("div",{staticStyle:{width:"240px"}},[e._v(" "+e._s(i)+" "),t("copyText",{attrs:{text:i,tooltipText:e.$t("view.order.list.purchase_id.copy")}})],1)]),1==e.shop_id&&r.main_shop_order?t("div",{staticStyle:{display:"flex"}},[t("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[e._v(" "+e._s(e.$t("procure.list.order.order_id"))+" ")]),t("a",{staticStyle:{width:"240px"},on:{click:function(t){return e.handleOrderDetail(r)}}},[e._v(e._s(r.main_shop_order.order_id))]),t("copyText",{attrs:{text:r.main_shop_order.order_id,tooltipText:e.$t("view.order.list.order_id.copy")}})],1):e._e(),r.out_order_id&&r.sub_shop_id==e.shop_id?t("div",{staticStyle:{display:"flex"}},[t("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[e._v(" "+e._s(e.$t("procure.list.order.order_id"))+" ")]),t("a",{staticStyle:{width:"240px"},on:{click:function(t){return e.handleOrderDetail(r)}}},[e._v(e._s(r.out_order_id))]),t("copyText",{attrs:{text:r.out_order_id,tooltipText:e.$t("view.order.list.order_id.copy")}})],1):e._e(),t("div",{staticStyle:{display:"flex"}},[t("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[e._v(" "+e._s(e.$t("procure.list.order.createTime"))+" ")]),e._v(" "+e._s(r.create_time)+" ")]),1===r.is_self_take&&""!==r.logistics_company?t("div",{staticStyle:{display:"flex"}},[t("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[e._v(" "+e._s(e.$t("view.order.list.logistics_company"))+" ")]),e._v(" "+e._s(r.logistics_company)+" ")]):e._e(),1===r.is_self_take&&""!==r.logistics_number?t("div",{staticStyle:{display:"flex"}},[t("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[e._v(" "+e._s(e.$t("view.order.list.tracking_number"))+" ")]),e._v(" "+e._s(r.logistics_number)+" ")]):e._e(),1===r.is_self_take&&""!==r.miandan_url?t("div",{staticStyle:{display:"flex"}},[t("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[e._v(" "+e._s(e.$t("view.purchaseOrder.list.upload.voucher"))+" ")]),t("a",{attrs:{href:r.miandan_url,target:"_blank"}},[e._v(e._s(e.$t("view.purchaseOrder.list.upload.voucher.view")))])]):e._e(),1===e.shop_id?t("div",{staticStyle:{display:"flex"}},[t("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}},[e._v(" "+e._s(e.$t("view.order.detail.ship_from"))+" ")]),r.sub_shop_id?t("div",[t("supply-info",{attrs:{shopId:r.sub_shop_id}})],1):e._e()]):e._e(),t("div",{staticStyle:{display:"flex"}},[t("div",{staticStyle:{width:"100px","text-align":"right","margin-right":"0.5rem"}}),t("div",[1===r.is_virtual?t("a-tag",{attrs:{color:"#f50"}},[e._v(" "+e._s(e.$t("view.lockstock.log.lock.is_virtual.title"))+" ")]):e._e(),3===r.is_virtual?t("a-tag",{attrs:{color:"#87d068"}},[e._v(" "+e._s(e.$t("view.lockstock.log.use.lock.is_virtual.title"))+" ")]):e._e()],1)])])])}},{key:"status",fn:function(a){var i=a.text,r=a.record;return t("span",{},[t("div",["UNPAID"!==i&&"AFTER_SALE"!==i&&"REFUNDED"!==i?t("a",{on:{click:function(t){return e.openFahuo(r)}}},[e._v(" "+e._s(e.$t(i))+" ")]):t("span",[e._v(e._s(e.$t(i)))])])])}},{key:"items",fn:function(a){var i=a.text,r=a.record;return t("span",{},[r.items&&r.items.length?t("div",e._l(r.items,(function(a,s){return t("div",{key:r.purchase_id+"_"+r.id+"_"+s+(a?a.sku_id+"":""),staticStyle:{display:"flex","margin-bottom":"10px"}},[t("div",[t("a-avatar",{attrs:{shape:"square",size:85,src:a.img_url}})],1),t("div",{staticStyle:{"margin-left":"10px",flex:"1"}},[t("a-row",{attrs:{type:"flex"}},[t("a-col",{attrs:{flex:3}},[e._v(" "+e._s(a.title)+" ")])],1),t("a-row",{attrs:{type:"flex"}},[t("a-col",[e._v(" "+e._s((r.currency||"")+" "+a.price)+" ")]),t("a-col",{staticStyle:{"padding-left":"10px"},attrs:{flex:3}},[t("a-icon",{staticStyle:{"font-size":"10px","margin-right":"0","padding-right":"0"},attrs:{type:"close"}}),e._v(" "+e._s(a.num)+" ")],1)],1),t("a-row",{attrs:{type:"flex"}},[t("a-col",{attrs:{flex:3}},["string"==typeof a.sku_prop?t("span",[e._v(" "+e._s(a.sku_prop)+" ")]):t("span",e._l(a.sku_prop,(function(a,i){return t("div",{key:i},[t("span",[e._v(e._s(i)+":"+e._s(a))])])})),0)])],1),t("a-row",[t("a-col",{attrs:{flex:3}},[e._v(" "+e._s(e.$t("view.item.sku.barcode"))+" : "+e._s(a.barcode)+" ")]),t("a-col",{attrs:{flex:3}},[e._v(" "+e._s(e.$t("view.item.sku.out_id"))+" : "+e._s(a.out_id)+" ")]),t("a-col",{attrs:{flex:3}},[e._v(" "+e._s(e.$t("view.purchaseOrder.list.items.totalfee"))+" : "+e._s(r.currency+" "+a.payment)+" ")])],1),s<i.length-1?t("a-divider"):e._e()],1)])})),0):e._e()])}},{key:"payment",fn:function(a){var i=a.text,r=a.record;return t("span",{},[t("div",[e._v(e._s((r.currency||"")+" "+i))])])}},{key:"post_fee",fn:function(a){var i=a.text,r=a.record;return t("span",{},[t("div",[e._v(e._s((r.currency||"")+" "+i))])])}},{key:"paymemberInfo",fn:function(a){var i=a.record;return t("span",{},[t("a-row",[i.last_name&&""!==i.last_name?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_last_name"))+" : "+e._s(i.last_name)+" ")]):e._e(),i.first_name&&""!==i.first_name?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_first_name"))+" : "+e._s(i.first_name)+" ")]):e._e(),i.phone&&""!=i.phone?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_phone"))+" : "+e._s(i.phone)+" ")]):e._e(),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_country"))+" : "),t("fanyi-list",{attrs:{list:[i.country]}})],1),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_state"))+" : "+e._s(i.state)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_city"))+" : "+e._s(i.city)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_street"))+" : "+e._s(i.street)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_men"))+" : "+e._s(i.apartment)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.zipcode"))+" : "+e._s(i.zip_code)+" ")]),t("a-col",{attrs:{lg:24}},[t("a-button",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===i.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}],attrs:{type:"primary"},on:{click:function(t){return e.handleModifyShipping(i)}}},[e._v(" "+e._s(e.$t("view.system.resourcegroup.Update"))+" ")])],1)],1)],1)}},{key:"operation",fn:function(a){var i=a.record;return t("span",{},[e.shop_id==i.sub_shop_id&&"PAID"==i.status?t("procureApply",{attrs:{order:i},on:{okAftersale:e.getList}}):e._e(),"UNPAID"==i.status&&e.shop_id==i.sub_shop_id?t("a-divider",{attrs:{type:"vertical"}}):e._e(),e.shop_id==i.sub_shop_id?t("complaint-form",{attrs:{refId:i.purchase_id,orderId:i.out_order_id&&i.sub_shop_id==e.shop_id?i.out_order_id:1==e.shop_id?i.main_shop_order.order_id:"",type:"procure"},on:{ok:e.handleQuery}}):e._e(),"UNPAID"==i.status&&e.shop_id==i.sub_shop_id?t("a-divider",{attrs:{type:"vertical"}}):e._e(),e.shop_id!=i.sub_shop_id||e.loading?e._e():t("complaintDetail",{attrs:{orderId:i.purchase_id,type:"procure"}}),"UNPAID"==i.status?t("a-divider",{attrs:{type:"vertical"}}):e._e(),"UNPAID"==i.status?t("a",{on:{click:function(t){return e.closeProcure(i)}}},[e._v(" "+e._s(e.$t("wechat.pay.setting.close"))+" ")]):e._e(),"AFTER_SALE"==i.status?t("a-divider",{attrs:{type:"vertical"}}):e._e(),"AFTER_SALE"==i.status?t("a",{on:{click:function(t){return e.cancelAfterSale(i)}}},[e._v(" "+e._s(e.$t("view.order.list.aftersale.cancel.btn"))+" ")]):e._e(),"UNPAID"==i.status?t("h5pay",{ref:"h5Pay"+i.purchase_id,attrs:{orderId:i.purchase_id},on:{paySuccess:e.getList}}):e._e(),1===i.is_self_take&&"PAID"==i.status?t("a-divider",{attrs:{type:"vertical"}}):e._e(),1===i.is_self_take&&"PAID"==i.status?t("voucher-upload",{attrs:{"purchase-id":i.purchase_id,"shop-id":i.sub_shop_id},on:{success:e.getList}}):e._e()],1)}}])},[t("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[t("div",[1!==e.shop_id?t("autoPurchasePay"):e._e(),1!==e.shop_id?t("recharge-main-shop",{staticStyle:{"margin-right":"10px"},attrs:{rechargeVisible:!0}}):e._e(),1!==e.shop_id?t("procureAdd",{attrs:{type:"goods"},on:{backList:e.getList}}):e._e()],1)])])],1)],1)},r=[],s=a("5530"),o=a("bdcb"),n=Object(s["a"])({},o["default"]),l=n,c=(a("ab6a"),a("2877")),d=Object(c["a"])(l,i,r,!1,null,null,null);t["default"]=d.exports},"77c96":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e._self._c;return t("div",[t("a-card",{staticClass:"orderList",staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[t("div",{ref:"search",staticClass:"table-page-search-wrapper"},[t("a-form",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-row",{attrs:{gutter:1,type:"flex"}},[t("a-col",{attrs:{xxl:6,xl:8,lg:8}},[t("a-form-item",{attrs:{label:e.$t("view.order.detail.item")}},[t("good-list",{staticStyle:{width:"100%"},attrs:{type:"radio"},on:{changeitem:e.changeItem}})],1)],1),t("a-col",{attrs:{xxl:6,xl:8,lg:8,md:16}},[t("a-form-item",{attrs:{label:e.$t("view.order.list.export.time_select_title"),labelCol:{md:3,sm:8,lg:4},wrapperCol:{lg:20}}},[t("a-range-picker",{staticStyle:{width:"auto"},attrs:{"show-time":""},model:{value:e.exportTime,callback:function(t){e.exportTime=t},expression:"exportTime"}},[t("template",{slot:"renderExtraFooter"})],2)],1)],1),t("a-col",{attrs:{xxl:12,xl:7,lg:8}},[t("span",{staticClass:"table-page-search-submitButtons buttonsTools",staticStyle:{"justify-content":"end",display:"flex"}},[t("a-button",{attrs:{type:"primary"},on:{click:e.handleQuery}},[t("a-icon",{attrs:{type:"search"}}),e._v(e._s(e.$t("view.order.list.query.btn"))+" ")],1),t("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.resetQuery}},[t("a-icon",{attrs:{type:"redo"}}),e._v(e._s(e.$t("view.order.list.reset.btn"))+" ")],1),t("ExcelData",{attrs:{page:e.queryParam.page,pageSize:e.queryParam.limit,total:e.total_count,loadData:e.changeSize,fileName:e.$t("app.menus.left.supply.supplyOrder")}})],1)])],1),t("a-row",{attrs:{gutter:1,type:"flex"}},[1===e.shopId?t("a-col",{attrs:{xxl:6,lg:8}},[t("a-form-item",{attrs:{label:e.$t("view.order.list.shop.seller")}},[t("div",{staticStyle:{display:"flex","align-items":"center",width:"100%"}},[t("seller-list",{on:{changeuser:e.changeUser}})],1)])],1):e._e(),t("a-col",{attrs:{xxl:6,lg:8,md:16}},[1===e.shopId&&e.userId?t("a-form-item",{attrs:{label:e.$t("view.order.list.shop"),labelCol:{md:3,sm:8,lg:4},wrapperCol:{lg:20}}},[t("shop-select",{ref:"shopSelect",attrs:{userId:e.userId},on:{change:e.changeShop}})],1):e._e()],1),t("a-col",{attrs:{lg:8}})],1)],1)],1)]),t("div",[e.showReviewModal?t("review-list",{ref:"ReviewList",on:{close:function(t){e.showReviewModal=!1}}}):e._e(),e.orderDetailModal?t("order-detail",{ref:"OrderDetail",on:{close:function(t){e.orderDetailModal=!1}}}):e._e(),e.showFaHuoModal?t("review-list2",{ref:"ReviewList2",attrs:{mailingMode:2},on:{ok:e.getList,close:function(t){e.showFaHuoModal=!1}}}):e._e(),e.showInsureModal?t("insure-list",{ref:"InsureList",on:{ok:e.getList,close:function(t){e.showInsureModal=!1}}}):e._e(),e.showModifyShipping?t("modify-shipping",{ref:"ModifyShipping",on:{ok:e.getList,close:function(t){e.showModifyShipping=!1}}}):e._e(),e.showGigab2bModal?t("gigab2b",{ref:"pushDajian",on:{ok:e.getList,close:function(t){e.showGigab2bModal=!1}}}):e._e()],1),t("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[t("a-tabs",{staticClass:"loginTitle",on:{change:function(t){return e.orderQuery(t)}}},e._l(e.statusLists,(function(e){return t("a-tab-pane",{key:e.value,attrs:{tab:e.label}})})),1),t("advance-table",{attrs:{loading:e.loading,size:"middle","format-conditions":!1,columns:e.columns,"data-source":e.list,rowKey:"id",tableKey:"test-cat-catlist-table",expandedRowKeys:e.expandedRowKeys,pagination:{current:e.queryParam.page,pageSize:e.queryParam.limit,total:e.total_count,showSizeChanger:!0,showLessItems:!1,showQuickJumper:!1,showTotal:function(t,a){return e.$t("view.order.list.table.total",{num:a[0]+"-"+a[1],total:t})},onChange:e.changeSize,onShowSizeChange:e.onShowSizeChange},scroll:{x:"100%"},title:e.$t("view.order.list.list")},scopedSlots:e._u([{key:"order_id",fn:function(a){var i=a.text,r=a.record;return t("span",{},[1==e.shopId?t("a",{on:{click:function(t){return e.handleOrderDetail(r)}}},[e._v(" "+e._s(i)+" ")]):t("span",[e._v(" "+e._s(i)+" ")]),t("div",[e._v(e._s(r.create_time))]),t("dispath-note",{staticStyle:{display:"none"},attrs:{order:r}}),1===r.is_virtual?t("a-tag",{attrs:{color:"#f50"}},[e._v(" "+e._s(e.$t("view.lockstock.log.lock.is_virtual.title"))+" ")]):e._e()],1)}},{key:"shop_id",fn:function(e){var a=e.record;return t("span",{},[t("supply-info",{attrs:{shopId:a.shop_id}})],1)}},{key:"supply_order_item",fn:function(a){var i=a.text,r=a.record;return t("span",{},e._l(i,(function(a,s){var o,n,l,c;return i.length>0?t("div",{key:a.sku_id,staticStyle:{display:"flex","margin-bottom":"10px"}},[t("div",[t("a-avatar",{attrs:{shape:"square",size:85,src:a.main_img_url}}),t("div",{staticStyle:{"margin-top":"0.5rem"}},[t("a-tag",{attrs:{color:2==a.main_mailing_mode?"red":"green"}},[1===e.shopId?t("div",[2==a.main_mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.myself"))+" ")]):e._e(),1==a.main_mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.platform"))+" ")]):e._e(),0==a.main_mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.platform"))+" ")]):e._e()]):e._e(),1!==e.shopId?t("div",[2==a.main_mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.myself1"))+" ")]):e._e(),1==a.main_mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.platform1"))+" ")]):e._e(),0==a.main_mailing_mode?t("div",[e._v(" "+e._s(e.$t("view.item.component.item.supply.shippingConfig.platform1"))+" ")]):e._e()]):e._e()]),t("div",{domProps:{innerHTML:e._s(e.viewShipping(a,r))}})],1)],1),t("div",{staticStyle:{"margin-left":"10px",flex:"1"}},[t("a-row",{attrs:{type:"flex"}},[t("a-col",{attrs:{flex:3}},[e._v(" "+e._s(a.main_title)+" ")])],1),t("a-row",{attrs:{type:"flex"}},[t("a-col",{attrs:{flex:3}},["string"==typeof a.main_sku_prop?t("span",[e._v(" "+e._s(a.main_sku_prop)+" "),t("a-icon",{staticStyle:{"font-size":"10px","margin-right":"0","padding-right":"0"},attrs:{type:"close"}}),e._v(" "+e._s(a.main_num)+" ")],1):t("span",e._l(a.main_sku_prop,(function(i,r){return t("div",{key:r},[t("span",[e._v(e._s(r)+":"+e._s(i))]),t("a-icon",{staticStyle:{"font-size":"10px","margin-right":"0","padding-right":"0"},attrs:{type:"close"}}),e._v(" "+e._s(a.main_num)+" ")],1)})),0)])],1),t("a-row",[null!==(o=r.order_info)&&void 0!==o&&o.currency||r.currency?t("a-col",{attrs:{flex:3}},[e._v(" "+e._s(e.$t("view.item.list.sale_price"))+" : "+e._s((null===(n=r.order_info)||void 0===n?void 0:n.currency)||r.currency)+e._s(a.main_sku_price)+" ")]):e._e(),t("a-col",{attrs:{flex:3}},[e._v(" "+e._s(e.$t("view.item.sku.barcode"))+" : "+e._s(a.main_barcode)+" ")]),t("a-col",{attrs:{flex:3}},[e._v(" "+e._s(e.$t("view.item.sku.out_id"))+" : "+e._s(a.main_out_id)+" ")])],1),t("a-row",{attrs:{type:"flex"}},[t("a-col",[e._v(e._s(e.$t("view.order.list.deduction_ratio"))+":")]),t("a-col",[e._v(e._s(a.deduction_ratio)+"%")])],1),null!==(l=r.order_info)&&void 0!==l&&l.currency||r.currency?t("a-row",{attrs:{type:"flex"}},[t("a-col",[e._v(e._s(e.$t("view.order.list.deduction_fee"))+":")]),t("a-col",[e._v(e._s((null===(c=r.order_info)||void 0===c?void 0:c.currency)||r.currency)+e._s(a.deduction_fee))])],1):e._e(),s<i.length-1?t("a-divider"):e._e()],1)]):e._e()})),0)}},{key:"post_fee",fn:function(a){var i,r,s,o=a.record;return t("span",{},[null!==(i=o.order_info)&&void 0!==i&&i.post_fee&&(null!==(r=o.order_info)&&void 0!==r&&r.currency||o.currency)?t("span",[e._v(e._s((null===(s=o.order_info)||void 0===s?void 0:s.currency)||o.currency)+e._s(o.order_info.post_fee))]):e._e()])}},{key:"deduction_fee",fn:function(a){var i,r,s=a.record;return t("span",{},[null!==(i=s.order_info)&&void 0!==i&&i.currency||s.currency?t("span",[e._v(e._s((null===(r=s.order_info)||void 0===r?void 0:r.currency)||s.currency)+e._s(s.deduction_fee))]):e._e()])}},{key:"deduction_status",fn:function(a){var i=a.record;return t("span",{},[1===i.deduction_status?t("span",[e._v(e._s(e.$t("ORDER_WAIT_PAYMENT")))]):e._e(),2===i.deduction_status?t("span",[e._v(e._s(e.$t("ORDER_PAID")))]):e._e(),3===i.deduction_status?t("span",[e._v(e._s(e.$t("ORDER_REFUNDED")))]):e._e()])}},{key:"payment",fn:function(a){var i=a.text,r=a.record;return t("span",{},[""===r.from_id?t("a-row",[t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.list.biaojiahuobi"))+e._s(e.shopQuoteCurrency)+" "+e._s(i)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.list.payhuobiprice"))+" : "+e._s(r.trans_currency)+e._s(r.trans_amount)+" ")])],1):e._e(),""!==r.from_id?t("a-row",[t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.shopQuoteCurrency)+" "+e._s(i)+" ")])],1):e._e()],1)}},{key:"status",fn:function(a){var i=a.text;return t("span",{},[e._v(" "+e._s(e.$t(i))+" ")])}},{key:"order_info",fn:function(a){var i=a.record;return t("span",{},[i.order_info?t("a-row",[i.order_info.last_name&&""!==i.order_info.last_name?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_last_name"))+" : "+e._s(i.order_info.last_name)+" ")]):e._e(),i.order_info.first_name&&""!==i.order_info.first_name?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_first_name"))+" : "+e._s(i.order_info.first_name)+" ")]):e._e(),i.order_info.phone&&""!=i.order_info.phone?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_phone"))+" : "+e._s(i.order_info.phone)+" ")]):e._e(),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_country"))+" : "),t("fanyi-list",{attrs:{list:[i.order_info.country]}})],1),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_state"))+" : "+e._s(i.order_info.state)+" ")]),i.order_info.city?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_city"))+" : "+e._s(i.order_info.city)+" ")]):e._e(),i.order_info.street?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_street"))+" : "+e._s(i.order_info.street)+" ")]):e._e(),i.order_info.apartment?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_men"))+" : "+e._s(i.order_info.apartment)+" ")]):e._e(),i.order_info.zip_code?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.zipcode"))+" : "+e._s(i.order_info.zip_code)+" ")]):e._e(),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.memberNote"))+" : "+e._s(i.order_info.member_note)+" ")])],1):e._e()],1)}},{key:"paymemberInfo",fn:function(a){var i=a.record;return t("span",{},[t("a-row",[i.last_name&&""!==i.last_name?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_last_name"))+" : "+e._s(i.last_name)+" ")]):e._e(),i.first_name&&""!==i.first_name?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_first_name"))+" : "+e._s(i.first_name)+" ")]):e._e(),i.phone&&""!=i.phone?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_phone"))+" : "+e._s(i.phone)+" ")]):e._e(),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_country"))+" : "+e._s(i.country)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_state"))+" : "+e._s(i.state)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_city"))+" : "+e._s(i.city)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_street"))+" : "+e._s(i.street)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_men"))+" : "+e._s(i.apartment)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.zipcode"))+" : "+e._s(i.zip_code)+" ")]),t("a-col",{attrs:{lg:24}},[t("a-button",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===i.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}],attrs:{type:"primary"},on:{click:function(t){return e.handleModifyShipping(i)}}},[e._v(" "+e._s(e.$t("view.system.resourcegroup.Update"))+" ")])],1)],1)],1)}},{key:"operation",fn:function(a){var i=a.record;return t("span",{},[t("div",[1==e.shopId?t("complaintForm",{attrs:{refId:i.order_id,type:"supply"},on:{ok:e.handleQuery}}):e._e(),1!=e.shopId||e.loading?e._e():t("complaintDetail",{attrs:{orderId:i.order_id,type:"supply"}}),t("a",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===i.status&&1!=e.shopId&&e.isShowFahuoBtn(i)&&1!==i.is_virtual,expression:"record.status === 'ORDER_WAIT_SHIP' && shopId != 1 && isShowFahuoBtn(record) && record.is_virtual !== 1"}],on:{click:function(t){return e.handleFaHuo(i)}}},[e._v(" "+e._s(e.$t("view.order.list.ship.btn"))+" ")]),"ORDER_WAIT_PAYMENT"!==i.status&&"ORDER_WAIT_SHIP"===i.status&&1!=e.shopId&&i.isDajian&&1!==i.is_virtual?t("a-divider",{attrs:{type:"vertical"}}):e._e(),"ORDER_WAIT_PAYMENT"!==i.status&&1!=e.shopId&&i.isDajian&&1!==i.is_virtual?t("a",{on:{click:function(t){return e.pushDaJian(i)}}},[e._v(e._s(e.$t("view.order.list.pushdajian")))]):e._e(),t("a",{directives:[{name:"show",rawName:"v-show",value:1===i.deduction_status&&1!=e.shopId&&i.deduction_fee>0,expression:"record.deduction_status === 1 && shopId != 1 && record.deduction_fee > 0"}],on:{click:function(t){return e.supplyOrderPay(i)}}},[e._v(e._s(e.$t("procure.pay.deduction_fee.title")))])],1)])}}])},[t("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[t("div",[1!==e.shopId?t("recharge-main-shop",{staticStyle:{"margin-right":"10px"},attrs:{rechargeVisible:!0}}):e._e()],1)])])],1)],1)},r=[],s=a("5530"),o=a("dbc2"),n=Object(s["a"])({},o["default"]),l=n,c=(a("1d24"),a("2877")),d=Object(c["a"])(l,i,r,!1,null,null,null);t["default"]=d.exports},"7c9d2":function(e,t,a){"use strict";a.r(t);a("b0c0");var i=function(){var e=this,t=e._self._c;return t("ant-modal",{attrs:{visible:e.open,"modal-title":e.formTitle,"adjust-size":!0,modalHeight:"680",modalWidth:e.isMobile?"350":"640"},on:{cancel:e.cancel}},[t("a-form-model",{ref:"form",staticClass:"logisticsForm",attrs:{slot:"content",model:e.formData,layout:"vertical"},slot:"content"},[t("a-row",{staticClass:"form-row",attrs:{gutter:32}},[e.wmsId?e._e():t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.wms_id"),prop:"wms_id",rules:[{required:!0,message:e.$t("view.logistics.form.wms_idMessage"),trigger:"change"}]}},[t("WmsSelect",{attrs:{placeholder:e.$t("view.logistics.form.wms_idPlaceholder")},model:{value:e.formData.wms_id,callback:function(t){e.$set(e.formData,"wms_id",t)},expression:"formData.wms_id"}})],1)],1),e.warehouseCode?e._e():t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.warehouse_code"),prop:"warehouse_code",rules:[{required:!0,message:e.$t("view.logistics.form.warehouseCodeMessage"),trigger:"change"}]}},[t("GoodcangWarehouseSelect",{attrs:{wmsId:e.formData.wms_id,"data-key":"warehouse_code",placeholder:e.$t("view.logistics.form.warehouseCodePlaceholder")},on:{warehouseCode:e.handleWarehouseChange},model:{value:e.formData.warehouse_code,callback:function(t){e.$set(e.formData,"warehouse_code",t)},expression:"formData.warehouse_code"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.code"),prop:"data.code",rules:[{required:!0,message:e.$t("view.logistics.form.codeMessage"),trigger:"change"}]}},[t("a-input",{attrs:{placeholder:e.$t("view.logistics.form.codePlaceholder")},model:{value:e.formData.data.code,callback:function(t){e.$set(e.formData.data,"code",t)},expression:"formData.data.code"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.name"),prop:"data.name",rules:[{required:!0,message:e.$t("view.logistics.form.nameMessage"),trigger:"change"}]}},[t("a-input",{attrs:{placeholder:e.$t("view.logistics.form.namePlaceholder")},model:{value:e.formData.data.name,callback:function(t){e.$set(e.formData.data,"name",t)},expression:"formData.data.name"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.name_en"),prop:"data.name_en"}},[t("a-input",{attrs:{placeholder:e.$t("view.logistics.form.nameEnPlaceholder")},model:{value:e.formData.data.name_en,callback:function(t){e.$set(e.formData.data,"name_en",t)},expression:"formData.data.name_en"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.type"),prop:"data.type",rules:[{required:!0,message:e.$t("view.logistics.form.typePlaceholder"),trigger:"change"}]}},[t("a-select",{attrs:{placeholder:e.$t("view.logistics.form.typePlaceholder")},model:{value:e.formData.data.type,callback:function(t){e.$set(e.formData.data,"type",t)},expression:"formData.data.type"}},[t("a-select-option",{attrs:{value:"0"}},[e._v(e._s(e.$t("view.logistics.type.lastMile")))]),t("a-select-option",{attrs:{value:"1"}},[e._v(e._s(e.$t("view.logistics.type.returnPreselect")))]),t("a-select-option",{attrs:{value:"2"}},[e._v(e._s(e.$t("view.logistics.type.firstMile")))]),t("a-select-option",{attrs:{value:"3"}},[e._v(e._s(e.$t("view.logistics.type.returnSelfSelect")))])],1)],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.sp_code"),prop:"data.sp_code"}},[t("a-input",{attrs:{placeholder:e.$t("view.logistics.form.spCodePlaceholder")},model:{value:e.formData.data.sp_code,callback:function(t){e.$set(e.formData.data,"sp_code",t)},expression:"formData.data.sp_code"}})],1)],1),t("a-col",{attrs:{lg:8,md:8,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.is_signature")}},[t("a-radio-group",{model:{value:e.formData.data.is_signature,callback:function(t){e.$set(e.formData.data,"is_signature",t)},expression:"formData.data.is_signature"}},[t("a-radio",{attrs:{value:0}},[e._v(e._s(e.$t("view.logistics.option.no")))]),t("a-radio",{attrs:{value:1}},[e._v(e._s(e.$t("view.logistics.option.yes")))])],1)],1)],1),t("a-col",{attrs:{lg:8,md:8,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.address_validation")}},[t("a-radio-group",{model:{value:e.formData.data.address_validation,callback:function(t){e.$set(e.formData.data,"address_validation",t)},expression:"formData.data.address_validation"}},[t("a-radio",{attrs:{value:0}},[e._v(e._s(e.$t("view.logistics.option.no")))]),t("a-radio",{attrs:{value:1}},[e._v(e._s(e.$t("view.logistics.option.yes")))])],1)],1)],1),t("a-col",{attrs:{lg:8,md:8,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.is_specify_arrival_time")}},[t("a-radio-group",{model:{value:e.formData.data.is_specify_arrival_time,callback:function(t){e.$set(e.formData.data,"is_specify_arrival_time",t)},expression:"formData.data.is_specify_arrival_time"}},[t("a-radio",{attrs:{value:0}},[e._v(e._s(e.$t("view.logistics.option.no")))]),t("a-radio",{attrs:{value:1}},[e._v(e._s(e.$t("view.logistics.option.yes")))])],1)],1)],1),e.formData.data.is_specify_arrival_time?t("a-col",{attrs:{lg:24,md:24,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.delivery_time_list")}},[t("div",{staticClass:"time-picker-list"},[e._l(e.timeList,(function(a,i){return t("div",{key:i,staticClass:"time-picker-item"},[t("a-time-picker",{attrs:{format:"HH:mm",placeholder:e.$t("view.logistics.form.startTime")},model:{value:a.start,callback:function(t){e.$set(a,"start",t)},expression:"time.start"}}),t("span",{staticClass:"time-separator"},[e._v("~")]),t("a-time-picker",{attrs:{format:"HH:mm",placeholder:e.$t("view.logistics.form.endTime")},model:{value:a.end,callback:function(t){e.$set(a,"end",t)},expression:"time.end"}}),e.timeList.length>1?t("a-button",{staticClass:"delete-btn",attrs:{type:"link"},on:{click:function(t){return e.removeTimeRange(i)}}},[t("a-icon",{attrs:{type:"minus-circle"}})],1):e._e()],1)})),t("a-button",{attrs:{type:"dashed",block:""},on:{click:e.addTimeRange}},[t("a-icon",{attrs:{type:"plus"}}),e._v(" "+e._s(e.$t("view.logistics.button.addTime"))+" ")],1)],2)])],1):e._e(),t("a-col",{attrs:{lg:8,md:8,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.is_truck")}},[t("a-radio-group",{model:{value:e.formData.data.is_truck,callback:function(t){e.$set(e.formData.data,"is_truck",t)},expression:"formData.data.is_truck"}},[t("a-radio",{attrs:{value:0}},[e._v(e._s(e.$t("view.logistics.option.no")))]),t("a-radio",{attrs:{value:1}},[e._v(e._s(e.$t("view.logistics.option.yes")))])],1)],1)],1),t("a-col",{attrs:{lg:8,md:8,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.is_optional_board")}},[t("a-radio-group",{model:{value:e.formData.data.is_optional_board,callback:function(t){e.$set(e.formData.data,"is_optional_board",t)},expression:"formData.data.is_optional_board"}},[t("a-radio",{attrs:{value:0}},[e._v(e._s(e.$t("view.logistics.option.no")))]),t("a-radio",{attrs:{value:1}},[e._v(e._s(e.$t("view.logistics.option.yes")))])],1)],1)],1),t("a-col",{attrs:{lg:8,md:8,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.is_ooh")}},[t("a-radio-group",{model:{value:e.formData.data.is_ooh,callback:function(t){e.$set(e.formData.data,"is_ooh",t)},expression:"formData.data.is_ooh"}},[t("a-radio",{attrs:{value:0}},[e._v(e._s(e.$t("view.logistics.option.no")))]),t("a-radio",{attrs:{value:1}},[e._v(e._s(e.$t("view.logistics.option.yes")))])],1)],1)],1),t("a-col",{attrs:{lg:8,md:8,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.sm_business_type"),prop:"data.sm_business_type",rules:[{required:!0,message:e.$t("view.logistics.form.smBusinessTypeMessage"),trigger:"change"}]}},[t("a-select",{attrs:{placeholder:e.$t("view.logistics.form.smBusinessTypePlaceholder")},model:{value:e.formData.data.sm_business_type,callback:function(t){e.$set(e.formData.data,"sm_business_type",t)},expression:"formData.data.sm_business_type"}},[t("a-select-option",{attrs:{value:1}},[e._v(e._s(e.$t("view.logistics.sm_business_type.1")))]),t("a-select-option",{attrs:{value:3}},[e._v(e._s(e.$t("view.logistics.sm_business_type.3")))])],1)],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.logistics.distributor_type"),prop:"data.distributor_type",rules:[{required:!0,message:e.$t("view.logistics.form.distributorTypeMessage"),trigger:"change"}]}},[t("a-select",{attrs:{placeholder:e.$t("view.logistics.form.distributorTypePlaceholder")},model:{value:e.formData.data.distributor_type,callback:function(t){e.$set(e.formData.data,"distributor_type",t)},expression:"formData.data.distributor_type"}},[t("a-select-option",{attrs:{value:0}},[e._v(e._s(e.$t("view.logistics.distributor_type.0")))]),t("a-select-option",{attrs:{value:1}},[e._v(e._s(e.$t("view.logistics.distributor_type.1")))]),t("a-select-option",{attrs:{value:2}},[e._v(e._s(e.$t("view.logistics.distributor_type.2")))])],1)],1)],1)],1)],1),t("template",{slot:"footer"},[t("a-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(" "+e._s(e.$t("view.logistics.button.save"))+" ")]),t("a-button",{on:{click:e.cancel}},[e._v(" "+e._s(e.$t("view.logistics.button.cancel"))+" ")])],1)],2)},r=[],s=a("5530"),o=a("0de6"),n=Object(s["a"])({},o["default"]),l=n,c=(a("4139"),a("2877")),d=Object(c["a"])(l,i,r,!1,null,"a8e571fc",null);t["default"]=d.exports},"8a63":function(e,t,a){},"8b78":function(e,t,a){"use strict";a.r(t);a("99af");var i=function(){var e=this,t=e._self._c;return t("div",[t("a-card",{staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[t("div",{staticClass:"table-page-search-wrapper"},[t("a-form",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-row",{attrs:{gutter:48}},[t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"操作模块"}},[t("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"操作模块","allow-clear":""},model:{value:e.queryParam.module,callback:function(t){e.$set(e.queryParam,"module",t)},expression:"queryParam.module"}},e._l(e.moduleOptions,(function(a,i){return t("a-select-option",{key:i,attrs:{value:a.value}},[e._v(e._s(a.label))])})),1)],1)],1),t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"操作人员"}},[t("a-input",{attrs:{placeholder:"请输入操作人员ID","allow-clear":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.queryParam.member_id,callback:function(t){e.$set(e.queryParam,"member_id",t)},expression:"queryParam.member_id"}})],1)],1),t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"访问路径"}},[t("a-input",{attrs:{placeholder:"请输入访问路径","allow-clear":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.queryParam.url,callback:function(t){e.$set(e.queryParam,"url",t)},expression:"queryParam.url"}})],1)],1),t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"访问IP"}},[t("a-input",{attrs:{placeholder:"请输入IP地址","allow-clear":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.queryParam.ip,callback:function(t){e.$set(e.queryParam,"ip",t)},expression:"queryParam.ip"}})],1)],1),t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"请求方式"}},[t("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请求方式","allow-clear":""},model:{value:e.queryParam.method,callback:function(t){e.$set(e.queryParam,"method",t)},expression:"queryParam.method"}},e._l(e.methodOptions,(function(a,i){return t("a-select-option",{key:i,attrs:{value:a.value}},[e._v(e._s(a.label))])})),1)],1)],1),t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"耗时"}},[t("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"耗时","allow-clear":""},model:{value:e.queryParam.take_up_time,callback:function(t){e.$set(e.queryParam,"take_up_time",t)},expression:"queryParam.take_up_time"}},e._l(e.takeTimeOptions,(function(a,i){return t("a-select-option",{key:i,attrs:{value:a.value}},[e._v(e._s(a.label))])})),1)],1)],1),e.advanced?t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"状态码"}},[t("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"响应状态码","allow-clear":""},model:{value:e.queryParam.error_code,callback:function(t){e.$set(e.queryParam,"error_code",t)},expression:"queryParam.error_code"}},e._l(e.errorCodeOptions,(function(a,i){return t("a-select-option",{key:i,attrs:{value:a.value}},[e._v(e._s(a.label))])})),1)],1)],1):e._e(),e.advanced?t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"操作时间"}},[t("a-range-picker",{staticStyle:{width:"100%"},attrs:{valueFormat:"YYYY-MM-DD",format:"YYYY-MM-DD","allow-clear":""},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1)],1):e._e(),t("a-col",[t("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"right"}},[t("a-button",{attrs:{type:"primary"},on:{click:e.handleQuery}},[t("a-icon",{attrs:{type:"search"}}),e._v("查询")],1),t("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.resetQuery}},[t("a-icon",{attrs:{type:"redo"}}),e._v("重置")],1),t("a",{staticStyle:{"margin-left":"8px"},on:{click:e.toggleAdvanced}},[e._v(" "+e._s(e.advanced?"收起":"展开")+" "),t("a-icon",{attrs:{type:e.advanced?"up":"down"}})],1)],1)])],1)],1)],1)]),t("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[t("view-form",{ref:"viewForm"}),t("advance-table",{attrs:{columns:e.columns,"data-source":e.list,title:"系统参数",loading:e.loading,rowKey:"id",tableKey:"monitor-operlog-Operlog-table",isTableConfig:!1,isShowSetBtn:!1,size:"middle","format-conditions":!0,"row-selection":{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},pagination:{current:e.queryParam.page,limit:e.queryParam.limit,total:e.total,showSizeChanger:!0,showLessItems:!0,showQuickJumper:!0,showTotal:function(e,t){return"第 ".concat(t[0],"-").concat(t[1]," 条,总计 ").concat(e," 条")},onChange:e.changeSize,onShowSizeChange:e.onSizeChange}},on:{refresh:e.getList},scopedSlots:e._u([{key:"method",fn:function(a){var i=a.text,r=a.record;return t("span",{},[t("a-tag",{attrs:{color:e._f("operMethodFilter")(i)}},[e._v(" "+e._s(e.methodFormat(r))+" ")])],1)}},{key:"module",fn:function(a){var i=a.text,r=a.record;return t("span",{},[t("a-tag",{attrs:{color:e._f("operModuleFilter")(i)}},[e._v(" "+e._s(e.moduleFormat(r))+" ")])],1)}},{key:"error_code",fn:function(a){var i=a.text,r=a.record;return t("span",{},[t("a-tag",{attrs:{color:e._f("operErrorCodeFilter")(i)}},[e._v(" "+e._s(e.errorCodeFormat(r))+" ")])],1)}},{key:"take_up_time",fn:function(a){var i=a.text,r=a.record;return t("span",{},[t("a-tag",{attrs:{color:e._f("operTakeTimeFilter")(i)}},[e._v(" "+e._s(e.takeTimeFormat(r))+" ")])],1)}},{key:"operation",fn:function(a){a.text;var i=a.record;return t("span",{},[t("a",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:operlog:query"],expression:"['monitor:operlog:query']"}],on:{click:function(t){return e.$refs.viewForm.handleView(i)}}},[t("a-icon",{attrs:{type:"eye",theme:"twoTone"}}),e._v("详细 ")],1)])}},{key:"member_name",fn:function(a){a.text;var i=a.record;return t("span",{},[t("span",[e._v(e._s(e.memberNameFormat(i)))])])}}])},[t("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[e.multiple?e._e():t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:operlog:remove"],expression:"['monitor:operlog:remove']"}],attrs:{type:"danger",disabled:e.multiple},on:{click:e.handleDelete}},[t("a-icon",{attrs:{type:"delete"}}),e._v("删除 ")],1),t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:operlog:remove"],expression:"['monitor:operlog:remove']"}],attrs:{type:"danger"},on:{click:e.handleClean}},[t("a-icon",{attrs:{type:"delete"}}),e._v("清空 ")],1),t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:export"],expression:"['system:config:export']"}],on:{click:e.handleExport}},[t("a-icon",{attrs:{type:"download"}}),e._v("导出 ")],1)],1)])],1)],1)},r=[],s=(a("d81d"),a("b775"));function o(e){return Object(s["b"])({url:"/log/list",method:"get",params:e})}function n(e){return Object(s["b"])({url:"/monitor/operlog/"+e,method:"delete"})}function l(){return Object(s["b"])({url:"/log/clear",method:"post"})}var c=a("5881"),d=a("5d9e"),u=a("028d"),p={name:"Operlog",components:{ViewForm:c["default"],AdvanceTable:d["default"]},data:function(){return{list:[],selectedRowKeys:[],selectedRows:[],advanced:!1,single:!0,multiple:!0,ids:[],loading:!1,sunloading:!1,total:0,errorCodeOptions:[],takeTimeOptions:[],moduleOptions:[],methodOptions:[],labelCol:{span:6},wrapperCol:{span:18},dateRange:[],queryParam:{page:1,limit:10,module:void 0,member_id:void 0,method:void 0,url:void 0,error_code:void 0,take_up_time:void 0,ip:void 0},addModalRefName:"addModal",columns:[{title:"应用端口",dataIndex:"app_id",align:"center"},{title:"操作人员",dataIndex:"member_name",scopedSlots:{customRender:"member_name"},align:"center"},{title:"操作模块",dataIndex:"module",scopedSlots:{customRender:"module"},align:"center"},{title:"请求方式",dataIndex:"method",align:"center"},{title:"请求路径",dataIndex:"url",align:"center"},{title:"访问IP",dataIndex:"ip",align:"center"},{title:"IP地区",dataIndex:"region",align:"center"},{title:"状态码",dataIndex:"error_code",scopedSlots:{customRender:"error_code"},align:"center"},{title:"耗时",dataIndex:"take_up_time",scopedSlots:{customRender:"take_up_time"},align:"center"},{title:"操作日期",dataIndex:"created_at",align:"center"},{title:"操作",dataIndex:"operation",scopedSlots:{customRender:"operation"},align:"center"}]}},filters:{operTypeFilter:function(e){var t="blue";return 3!==e&&7!==e&&9!==e||(t="orange"),t},operModuleFilter:function(e){var t="blue";return"api"===e&&(t="orange"),t},operMethodFilter:function(e){var t="blue";return"POST"===e&&(t="orange"),t},operErrorCodeFilter:function(e){var t="orange";return 0!==e&&(t="red"),t},operTakeTimeFilter:function(){return"magenta"}},created:function(){var e=this;this.getList(),this.getDicts("req_code").then((function(t){e.errorCodeOptions=t})),this.getDicts("req_take_up_time").then((function(t){e.takeTimeOptions=t})),this.getDicts("sys_oper_module").then((function(t){e.moduleOptions=t})),this.getDicts("sys_oper_method").then((function(t){e.methodOptions=t}))},computed:{},watch:{},methods:{onSizeChange:function(e,t){this.queryParam.page=1,this.queryParam.limit=t,this.getList()},getList:function(){var e=this;this.loading=!0,o(this.addDateRange(this.queryParam,this.dateRange)).then((function(t){e.list=t.list,e.total=t.total_count,e.loading=!1}))},errorCodeFormat:function(e,t){return this.selectDictLabel(this.errorCodeOptions,e.error_code)},takeTimeFormat:function(e,t){return e.take_up_time+"ms"},moduleFormat:function(e,t){return this.selectDictLabel(this.moduleOptions,e.module)},methodFormat:function(e,t){return this.selectDictLabel(this.methodOptions,e.method)},memberNameFormat:function(e){return e.member_id<=0?"":"(#"+e.member_id+")"+e.member_name},handleQuery:function(){this.queryParam.page=1,this.getList()},resetQuery:function(){this.dateRange=[],this.queryParam={page:1,limit:10,module:void 0,member_id:void 0,method:void 0,url:void 0,error_code:void 0,take_up_time:void 0,ip:void 0},this.handleQuery()},onShowSizeChange:function(e,t){this.queryParam.limit=t,this.getList()},changeSize:function(e,t){this.queryParam.page=e,this.queryParam.limit=t,this.getList()},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectedRows=t,this.ids=this.selectedRows.map((function(e){return e.id})),this.multiple=!e.length},toggleAdvanced:function(){this.advanced=!this.advanced},handleDelete:function(e){var t=this,a=e.id||this.ids;this.$confirm({title:"确认删除所选中数据?",content:"当前选中编号为"+a+"的数据",onOk:function(){return n(a).then((function(){t.onSelectChange([],[]),t.getList(),t.$message.success("删除成功",3)}))},onCancel:function(){}})},handleClean:function(){var e=this;this.$confirm({title:"是否确认清空?",content:"此操作将会清空所有操作日志数据项",onOk:function(){return l().then((function(){e.onSelectChange([],[]),e.getList(),e.$message.success("清空成功",3)}))},onCancel:function(){}})},handleExport:function(){var e=this;this.$confirm({title:"是否确认导出?",content:"此操作将导出当前条件下所有数据而非选中数据",onOk:function(){return Object(u["g"])("/log/export",e.queryParam)},onCancel:function(){}})}}},m=p,_=a("2877"),h=Object(_["a"])(m,i,r,!1,null,null,null);t["default"]=h.exports},"8d56":function(e,t,a){},a9d9:function(e,t,a){},ab6a:function(e,t,a){"use strict";a("8d56")},b819:function(e,t,a){},cc90:function(e,t,a){"use strict";a.r(t);var i=a("fff4");t["default"]=i["a"]},d916:function(e,t,a){},dd7b:function(e,t,a){"use strict";a("ee15")},ee15:function(e,t,a){},f9ee:function(e,t,a){"use strict";a.d(t,"c",(function(){return r})),a.d(t,"e",(function(){return s})),a.d(t,"d",(function(){return o})),a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return l}));var i=a("b775");function r(){return Object(i["b"])({url:"/wms/methods",method:"post"})}function s(e){return Object(i["b"])({url:"/wms/change",method:"post",data:e})}function o(e){return Object(i["b"])({url:"/wms/set",method:"post",data:e})}function n(e){return Object(i["b"])({url:"/wms/get",method:"post",data:e})}function l(e){return Object(i["b"])({url:"/good_cang/warehouse/shipping_method/add",method:"post",data:e})}},ffeb:function(e,t,a){"use strict";a("8a63")},fff4:function(e,t,a){"use strict";var i=function(){var e=this,t=e._self._c;return t("span",[t("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$t("components.GoodcangWarehouseSelect.placeholder")},on:{change:e.handleChange},model:{value:e.currentValue,callback:function(t){e.currentValue=t},expression:"currentValue"}},e._l(e.warehouseList,(function(a){return t("a-select-option",{key:a.id,attrs:{value:"warehouse_code"===e.dataKey?a.warehouse_code:a.id}},[e._v(" "+e._s(a.warehouse_name)+" - ("+e._s(a.warehouse_code)+") ")])})),1)],1)},r=[],s=a("c7eb"),o=a("1da1"),n=(a("d3b7"),a("7db0"),a("3058")),l={name:"GoodcangWarehouseSelect",props:{value:{default:null},dataKey:{type:String,default:"warehouse_code"},wmsId:{default:null}},data:function(){return{loading:!1,warehouseList:[],currentValue:this.value}},watch:{value:{handler:function(e){this.currentValue=e},immediate:!0},wmsId:{handler:function(e){e&&this.fetchWarehouseList()},immediate:!0}},created:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.fetchWarehouseList();case 2:case"end":return t.stop()}}),t)})))()},methods:{fetchWarehouseList:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var a,i,r;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,a={},e.wmsId&&(a.wms_id=e.wmsId),t.next=6,Object(n["b"])(a);case 6:i=t.sent,0===i.code&&i.list&&(e.warehouseList=i.list,e.warehouseList.length>0&&(null===e.currentValue?(e.currentValue="warehouse_code"===e.dataKey?e.warehouseList[0].warehouse_code:e.warehouseList[0].id,e.handleChange(e.currentValue)):(r=e.warehouseList.some((function(t){return"warehouse_code"===e.dataKey?t.warehouse_code===e.currentValue:t.id===e.currentValue})),r||(e.currentValue="warehouse_code"===e.dataKey?e.warehouseList[0].warehouse_code:e.warehouseList[0].id),e.handleChange(e.currentValue)))),t.next=12;break;case 10:t.prev=10,t.t0=t["catch"](1);case 12:return t.prev=12,e.loading=!1,t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[1,10,12,15]])})))()},handleChange:function(e){var t=this,a=this.warehouseList.find((function(a){return"warehouse_code"===t.dataKey?a.warehouse_code===e:a.id===e}));a&&(this.$emit("warehouseCode",a),this.$emit("input",e),this.$emit("change",e))}}},c=l,d=a("2877"),u=Object(d["a"])(c,i,r,!1,null,null,null);t["a"]=u.exports}}]);
|
|
Binary file
|