@bee-hole/admin 1.25.19 → 1.25.20
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.e9f406ad.css → lang-package~4e34e71e.b4bd5e4c.css} +1 -1
- package/dist/css/{lang-package~4e34e71e.e9f406ad.css.gz → lang-package~4e34e71e.b4bd5e4c.css.gz} +0 -0
- package/dist/index.html +1 -1
- package/dist/js/{app~f075b844.c8f6c1b4.js → app~f075b844.922f40ce.js} +1 -1
- package/dist/js/app~f075b844.922f40ce.js.gz +0 -0
- package/dist/js/{chunk-1594f836.aa7528ad.js → chunk-1594f836.8fc9daae.js} +1 -1
- package/dist/js/chunk-1594f836.8fc9daae.js.gz +0 -0
- package/dist/js/lang-package~4e34e71e.f4ed062f.js +11 -0
- package/dist/js/lang-package~4e34e71e.f4ed062f.js.gz +0 -0
- package/package.json +1 -1
- package/dist/js/app~f075b844.c8f6c1b4.js.gz +0 -0
- package/dist/js/chunk-1594f836.aa7528ad.js.gz +0 -0
- package/dist/js/lang-package~4e34e71e.0b37ab7c.js +0 -11
- package/dist/js/lang-package~4e34e71e.0b37ab7c.js.gz +0 -0
- /package/dist/js/{chunk-03e1387e.ec2ad92c.js → chunk-03e1387e.271b847d.js} +0 -0
- /package/dist/js/{chunk-03e1387e.ec2ad92c.js.gz → chunk-03e1387e.271b847d.js.gz} +0 -0
- /package/dist/js/{chunk-0ba53954.8a614c9f.js → chunk-0ba53954.efc34dbe.js} +0 -0
- /package/dist/js/{chunk-0ba53954.8a614c9f.js.gz → chunk-0ba53954.efc34dbe.js.gz} +0 -0
- /package/dist/js/{chunk-0e20a560.668c38b3.js → chunk-0e20a560.b29ef088.js} +0 -0
- /package/dist/js/{chunk-0e20a560.668c38b3.js.gz → chunk-0e20a560.b29ef088.js.gz} +0 -0
- /package/dist/js/{chunk-4b8ab170.e86324eb.js → chunk-4b8ab170.d02f777b.js} +0 -0
- /package/dist/js/{chunk-4b8ab170.e86324eb.js.gz → chunk-4b8ab170.d02f777b.js.gz} +0 -0
- /package/dist/js/{chunk-e8891446.53bc548f.js → chunk-e8891446.26645b2b.js} +0 -0
- /package/dist/js/{chunk-e8891446.53bc548f.js.gz → chunk-e8891446.26645b2b.js.gz} +0 -0
- /package/dist/js/{lang-zh-TW-service~f63b1681.5fc407e5.js → lang-zh-TW-service~f63b1681.62b7736f.js} +0 -0
- /package/dist/js/{lang-zh-TW-service~f63b1681.5fc407e5.js.gz → lang-zh-TW-service~f63b1681.62b7736f.js.gz} +0 -0
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1594f836"],{"0280":function(e,t,a){"use strict";a.r(t);a("b0c0");var s=function(){var e=this,t=e._self._c;return t("span",{staticClass:"yahooPath"},[t("a-icon",{attrs:{type:"plus"},on:{click:e.openPathList}}),t("ant-modal",{attrs:{visible:e.show,"modal-title":e.formTitle,"adjust-size":!0,modalHeight:e.isMobile?"80vh":"680",modalWidth:e.isMobile?"100vw":"900"},on:{cancel:e.cancelPathList,ok:e.cancelPathList}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",[t("a-button",{on:{click:e.openFormInit}},[e._v(e._s(e.$t("components.yahooPathAdd.addbtn")))])],1),e.pathList?t("a-tree",{attrs:{replaceFields:{title:"name",key:"page_key",slot:"title",display:"display",hidden_page_flag:"hidden_page_flag",parentName:"parentName",parent_page_key:"parent_page_key"},treeData:e.pathList,loadedKeys:e.loadKeys,blockNode:!0,loadData:e.loadPath},on:{expand:e.expandNode},scopedSlots:e._u([{key:"title",fn:function(a,s){return[t("div",{staticClass:"pageKeyItem",staticStyle:{color:"#000",display:"flex","align-items":"center"}},[e._v(" "+e._s(a.name)+" "),t("a-icon",{staticStyle:{"margin-left":"15px"},attrs:{type:"edit"},on:{click:function(t){return e.handleUpdate({page_key:a.page_key,name:a.name,display:a.display,parent_page_key:a.parent_page_key,hidden_flag:a.hidden_page_flag,parentName:a.parentName},a,s)}}})],1)]}}],null,!1,2555784184)}):e._e()],1),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("a-button",{on:{click:e.cancelPathList}},[e._v(e._s(e.$t("view.test.list.form.button.cancel")))])],1)]),t("ant-modal",{attrs:{visible:e.open,"modal-title":e.formTitle1,"adjust-size":!0,modalHeight:e.isMobile?"80vh":"680",modalWidth:e.isMobile?"100vw":"900"},on:{cancel:e.cancelForm,ok:e.ok}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("a-form",[t("a-form-item",{attrs:{label:e.$t("components.yahooPathAdd.form.name")}},[t("a-input",{attrs:{placeholder:""},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.yahooPathAdd.form.display")}},[t("a-select",{model:{value:e.form.display,callback:function(t){e.$set(e.form,"display",t)},expression:"form.display"}},[t("a-select-option",{attrs:{value:"0"}},[e._v("私有")]),t("a-select-option",{attrs:{value:"1"}},[e._v("共有")])],1)],1),t("a-form-item",{attrs:{label:e.$t("components.yahooPathAdd.form.hiddenFlag")}},[t("a-select",{model:{value:e.form.hidden_flag,callback:function(t){e.$set(e.form,"hidden_flag",t)},expression:"form.hidden_flag"}},[t("a-select-option",{attrs:{value:"0"}},[e._v("普通页面")]),t("a-select-option",{attrs:{value:"1"}},[e._v("隐藏页面")])],1)],1),t("a-form-item",{attrs:{label:e.$t("components.yahooPathAdd.form.parentPageKey")}},[t("div",{attrs:{color:{color:e.form.page_key?"#ccc":"#000"}},on:{click:e.openPathSelect}},[t("a-icon",{attrs:{type:"plus"}}),e._v(e._s(e.parentName)+" ")],1)])],1)],1)]),t("ant-modal",{attrs:{visible:e.visable,"modal-title":e.formTitle2,"adjust-size":!0,modalHeight:e.isMobile?"80vh":"680",modalWidth:e.isMobile?"100vw":"900"},on:{cancel:e.cancelPathSelect,ok:e.cancelPathSelect}},[t("div",{attrs:{slot:"content"},slot:"content"},[e.pathList?t("a-tree",{attrs:{replaceFields:{title:"name",key:"page_key",slot:"title"},treeData:e.pathList,loadedKeys:e.loadKeys,loadData:e.loadPath,checkable:"",checkStrictly:!0,checkedKeys:e.pathKeys},on:{check:e.onCheck},scopedSlots:e._u([{key:"title",fn:function(a){var s=a.name;return[t("div",{staticClass:"pageKeyItem",staticStyle:{color:"#000",display:"flex","align-items":"center"}},[e._v(" "+e._s(s)+" ")])]}}],null,!1,1425135114)}):e._e()],1),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("a-button",{on:{click:e.cancelPathSelect}},[e._v(e._s(e.$t("view.test.list.form.button.cancel")))])],1)])],1)},i=[],o=a("5530"),n=a("c7eb"),r=a("1da1"),l=a("2909"),c=(a("d81d"),a("99af"),a("2dd7")),d=a("dcb0"),u=a("2f62"),m={name:"yahooPathAdd",components:{AntModal:c["default"]},data:function(){return{open:!1,pathList:[],form:{},visable:!1,show:!1,pathKeys:[],loadKeys:[],parentName:""}},computed:Object(o["a"])({},Object(u["c"])(["shopId","isMobile"])),props:{sellerId:{type:String,default:""}},created:function(){this.formTitle=this.$t("components.yahooPathAdd.form.name"),this.formTitle1=this.$t("components.yahooPathAdd.form.name.add.title"),this.formTitle2=this.$t("components.yahooPathAdd.form.name.select.title"),this.getPathList()},methods:{openAddForm:function(){this.open=!0},cancelForm:function(){this.open=!1},openPathList:function(){this.show=!0},cancelPathList:function(){this.show=!1},getPathList:function(e,t){var a=this,s={seller_id:this.sellerId};return e&&(s.page_key=e),Object(d["j"])(s).then((function(s){return s.data.results&&s.data.results.length>0?s.data.results?(s.data.results.map((function(a){a.title&&(a.label=a.name,a.isLeaf=!1),a.isLeaf=!1,a.label=a.name,a.parentName=t,e&&(a.parent_page_key=e)})),"0"!==s.data.total_results_available?e?s.data.results:(a.pathList=Object(l["a"])(s.data.results),a.pathList):[]):void 0:null}))},loadPath:function(e,t){var a=this;return Object(r["a"])(Object(n["a"])().mark((function t(){var s;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a.loadKeys.push(e.eventKey),a.parentName=e.label,t.next=4,a.getPathList(e.eventKey,e.label);case 4:s=t.sent,s&&s.length&&(e.dataRef.children=s),a.pathList=Object(l["a"])(a.pathList);case 7:case"end":return t.stop()}}),t)})))()},loadEvent:function(e){},onCheck:function(e,t){e.checked.length?this.pathKeys=[e.checked[e.checked.length-1]]:this.pathKeys=[],this.pathKeys.length?this.form.parent_page_key=this.pathKeys[0]:this.form.parent_page_key="",this.parentName=t.node.label},handleUpdate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.form=e,this.pathKeys=[],this.parentName=e.parentName,this.formTitle1=this.$t("components.yahooPathAdd.form.name.edit.title",{name:e.name}),this.openAddForm()},expandNode:function(e){var t=[];e.map((function(e){t.push(e)})),this.loadKeys=[].concat(t)},ok:function(){var e=this;this.form.seller_id=this.sellerId,Object(d["h"])(this.form).then((function(t){0===t.code&&(e.$message.success(e.$t("components.yahooPathAdd.success")),e.$emit("ok"),e.loadKeys=[],e.pathKeys=[],e.getPathList())}))},openPathSelect:function(){this.form.page_key||(this.visable=!0)},cancelPathSelect:function(){this.visable=!1},openFormInit:function(){this.parentName="",this.form=Object.assign({},{seller_id:this.sellerId}),this.pathKeys=[],this.formTitle1=this.$t("components.yahooPathAdd.form.name.add.title"),this.openAddForm()}}},p=Object(o["a"])({},m),h=p,f=(a("5ea1"),a("2877")),_=Object(f["a"])(h,s,i,!1,null,null,null);t["default"]=_.exports},"0867":function(e,t,a){"use strict";a("80b8")},"0c499":function(e,t,a){"use strict";a.r(t);var s=a("6f71");t["default"]=s["default"]},"0de6":function(e,t,a){"use strict";a.r(t);var s=a("c7eb"),i=a("1da1"),o=a("3835"),n=a("5530"),r=(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"),m=function(){return a.e("chunk-1594f836").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(n["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("~"),s=Object(o["a"])(a,2),i=s[0],n=s[1];return{start:e.$moment("2000-01-01 ".concat(i)),end:e.$moment("2000-01-01 ".concat(n))}}))}catch(s){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(i["a"])(Object(s["a"])().mark((function t(a){var i,o,r;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=14;break}return i=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(i),o=Object(n["a"])(Object(n["a"])({},e.formData),{},{data:Object(n["a"])(Object(n["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"])(o);case 7:r=t.sent,0===r.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(n["a"])({},Object(l["c"])(["shopId","isMobile"])),components:{AntModal:r["default"],WmsSelect:m,GoodcangWarehouseSelect:u["a"]}}},"0ef6":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;return t("div",{ref:"portaletDiv",staticClass:"module"},[e._m(0)])},i=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"module-in"},[t("ul",{staticClass:"information02"},[t("li",[t("div",{staticClass:"sky"},[t("img",{attrs:{src:a("924b"),alt:""}})]),t("div",{staticClass:"information02-data"},[t("span",[e._v("50%")]),t("p",[e._v("压力仪表盘")])])]),t("li",[t("div",{staticClass:"sky"},[t("img",{attrs:{src:a("4781"),alt:""}})]),t("div",{staticClass:"information02-data"},[t("span",[e._v("28%")]),t("p",[e._v("完成率")])])])])])}],o={created:function(){},mounted:function(){this.$emit("setHeight",this.$refs.portaletDiv.offsetHeight)},watch:{},components:{},methods:{}},n=o,r=(a("d936"),a("2877")),l=Object(r["a"])(n,s,i,!1,null,"0c32075c",null);t["default"]=l.exports},2826:function(e,t,a){"use strict";a("9117")},"2ab0":function(e,t,a){},3058:function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return o}));var s=a("b775");function i(e){return Object(s["b"])({url:"/good_cang/get_warehouse",method:"get",params:e})}function o(e){return Object(s["b"])({url:"/good_cang/warehouse/shipping_method",method:"get",params:e})}},4139:function(e,t,a){"use strict";a("b819")},4781:function(e,t,a){e.exports=a.p+"img/img02.9ac07e73.png"},"4b93":function(e,t,a){"use strict";a.r(t);a("b0c0");var s=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 s=a.text;return[t("a-tag",{attrs:{color:1===s?"green":""}},[e._v(" "+e._s(1===s?e.$t("components.WarehouseShippingSelect.table.is_signature_yes"):e.$t("components.WarehouseShippingSelect.table.is_signature_no"))+" ")])]}},{key:"is_truck",fn:function(a){var s=a.text;return[t("a-tag",{attrs:{color:1===s?"blue":""}},[e._v(" "+e._s(1===s?e.$t("components.WarehouseShippingSelect.table.is_truck_yes"):e.$t("components.WarehouseShippingSelect.table.is_truck_no"))+" ")])]}},{key:"is_enabled",fn:function(a){var s=a.text;return[t("a-tag",{attrs:{color:1===s?"green":""}},[e._v(" "+e._s(1===s?e.$t("components.WarehouseShippingSelect.table.is_enabled_yes"):e.$t("components.WarehouseShippingSelect.table.is_enabled_no"))+" ")])]}}])},[t("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"})])],1)],1)],1)},i=[],o=a("5530"),n=a("c7eb"),r=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-1594f836").then(a.bind(null,"7c9d2"))},u=function(){return Promise.resolve().then(a.bind(null,"5d9e"))},m={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("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"}}],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(r["a"])(Object(n["a"])().mark((function e(){return Object(n["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(r["a"])(Object(n["a"])().mark((function t(){var a,s;return Object(n["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),t.next=8,Object(l["a"])(a);case 8:s=t.sent,0===s.code&&(e.tableData=(s.list||[]).map((function(e){return Object(o["a"])({key:e.id},e)})),e.pagination.total=s.total_count||0),t.next=14;break;case 12:t.prev=12,t.t0=t["catch"](1);case 14:return t.prev=14,e.loading=!1,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[1,12,14,17]])})))()},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()}}},p=m,h=(a("2826"),a("2877")),f=Object(h["a"])(p,s,i,!1,null,"52c19135",null);t["default"]=f.exports},"5c7e":function(e,t,a){"use strict";a.r(t),a.d(t,"WarehouseShippingSelect",(function(){return h})),a.d(t,"WarehouseShippingTable",(function(){return f["default"]}));a("b0c0");var s=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)},i=[],o=a("c7eb"),n=a("2909"),r=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(r["a"])(Object(o["a"])().mark((function a(){var s,i,r,c;return Object(o["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(s=e.length>0&&void 0!==e[0]&&e[0],s||(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,i={page:t.pagination.page,limit:t.pagination.limit},t.warehouseId&&(i.cang_id=t.warehouseId),t.warehouseCode&&(i.warehouse_code=t.warehouseCode),t.wmsId&&(i.wms_id=t.wmsId),a.next=12,Object(l["a"])(i);case 12:r=a.sent,0===r.code&&(c=r.list||[],t.pagination.total=r.total_count||0,t.shippingList=s?[].concat(Object(n["a"])(t.shippingList),Object(n["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,m=(a("7154"),a("2877")),p=Object(m["a"])(u,s,i,!1,null,"33ba007d",null),h=p.exports,f=a("4b93");t["default"]=h},"5ea1":function(e,t,a){"use strict";a("a4d4")},6947:function(e,t,a){"use strict";a("b6ad")},"6a20":function(e,t,a){"use strict";a.r(t);var s=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,s){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,s)}}})],1)}},{key:"status",fn:function(a,s){return t("span",{},[t("div",[t("a-switch",{attrs:{checked:1==s.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,s)}}})],1)])}},{key:"is_sand_box",fn:function(a,s){return t("span",{},[t("a-switch",{attrs:{checked:1==s.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,s)}}})],1)}},{key:"action",fn:function(a,s){return t("span",{},[t("a-space",[t("a",{on:{click:function(t){return e.handleEdit(s)}}},[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)},i=[],o=a("5530"),n=a("c7eb"),r=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?[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)},m=[],p={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(r["a"])(Object(n["a"])().mark((function t(){var a;return Object(n["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)}}},h=p,f=a("2877"),_=Object(f["a"])(h,u,m,!1,null,null,null),g=_.exports,v=g,b={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(r["a"])(Object(n["a"])().mark((function t(){var a,s;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.loading=!0,a=Object(o["a"])(Object(o["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:s=t.sent,0===s.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)}}},y=b,w=Object(f["a"])(y,c,d,!1,null,null,null),$=w.exports,k=function(){return a.e("chunk-1594f836").then(a.bind(null,"7c9d2"))},x={name:"WmsModal",components:{WmsForm:$,LogisticsProviderModal:k},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(r["a"])(Object(n["a"])().mark((function t(){var a;return Object(n["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(o["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=x,D=(a("ffeb"),Object(f["a"])(S,s,i,!1,null,"736dc18e",null));t["default"]=D.exports},"6f71":function(e,t,a){"use strict";a.r(t);a("b0c0");var s=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)},i=[],o=a("c7eb"),n=a("1da1"),r=(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(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(r["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,s,i,!1,null,null,null);t["default"]=u.exports},7154:function(e,t,a){"use strict";a("a9d9")},"77c96":function(e,t,a){"use strict";a.r(t);var s=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 s=a.text,i=a.record;return t("span",{},[1==e.shopId?t("a",{on:{click:function(t){return e.handleOrderDetail(i)}}},[e._v(" "+e._s(s)+" ")]):t("span",[e._v(" "+e._s(s)+" ")]),t("div",[e._v(e._s(i.create_time))]),t("dispath-note",{staticStyle:{display:"none"},attrs:{order:i}})],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 s=a.text,i=a.record;return t("span",{},e._l(s,(function(a,o){return 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,i))}})],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(s,i){return t("div",{key:i},[t("span",[e._v(e._s(i)+":"+e._s(s))]),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",[t("a-col",{attrs:{flex:3}},[e._v(" "+e._s(e.$t("view.item.list.sale_price"))+" : "+e._s(i.order_info.currency)+e._s(a.main_sku_price)+" ")]),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),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(i.order_info.currency)+e._s(a.deduction_fee))])],1),o<s.length-1?t("a-divider"):e._e()],1)])})),0)}},{key:"deduction_fee",fn:function(a){var s=a.record;return t("span",{},[e._v(" "+e._s(s.order_info.currency)+e._s(s.deduction_fee)+" ")])}},{key:"deduction_status",fn:function(a){var s=a.record;return t("span",{},[1===s.deduction_status?t("span",[e._v(e._s(e.$t("ORDER_WAIT_PAYMENT")))]):e._e(),2===s.deduction_status?t("span",[e._v(e._s(e.$t("ORDER_PAID")))]):e._e()])}},{key:"payment",fn:function(a){var s=a.text,i=a.record;return t("span",{},[""===i.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(s)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.list.payhuobiprice"))+" : "+e._s(i.trans_currency)+e._s(i.trans_amount)+" ")])],1):e._e(),""!==i.from_id?t("a-row",[t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.shopQuoteCurrency)+" "+e._s(s)+" ")])],1):e._e()],1)}},{key:"status",fn:function(a){var s=a.text;return t("span",{},[e._v(" "+e._s(e.$t(s))+" ")])}},{key:"order_info",fn:function(a){var s=a.record;return t("span",{},[t("a-row",[s.order_info.last_name&&""!==s.order_info.last_name?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_last_name"))+" : "+e._s(s.order_info.last_name)+" ")]):e._e(),s.order_info.first_name&&""!==s.order_info.first_name?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_first_name"))+" : "+e._s(s.order_info.first_name)+" ")]):e._e(),s.order_info.phone&&""!=s.order_info.phone?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_phone"))+" : "+e._s(s.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:[s.order_info.country]}})],1),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_state"))+" : "+e._s(s.order_info.state)+" ")]),s.order_info.city?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_city"))+" : "+e._s(s.order_info.city)+" ")]):e._e(),s.order_info.street?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_street"))+" : "+e._s(s.order_info.street)+" ")]):e._e(),s.order_info.apartment?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_men"))+" : "+e._s(s.order_info.apartment)+" ")]):e._e(),s.order_info.zip_code?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.zipcode"))+" : "+e._s(s.order_info.zip_code)+" ")]):e._e(),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.memberNote"))+" : "+e._s(s.order_info.member_note)+" ")])],1)],1)}},{key:"paymemberInfo",fn:function(a){var s=a.record;return t("span",{},[t("a-row",[s.last_name&&""!==s.last_name?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_last_name"))+" : "+e._s(s.last_name)+" ")]):e._e(),s.first_name&&""!==s.first_name?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_first_name"))+" : "+e._s(s.first_name)+" ")]):e._e(),s.phone&&""!=s.phone?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_phone"))+" : "+e._s(s.phone)+" ")]):e._e(),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_country"))+" : "+e._s(s.country)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_state"))+" : "+e._s(s.state)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_city"))+" : "+e._s(s.city)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_street"))+" : "+e._s(s.street)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_men"))+" : "+e._s(s.apartment)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.zipcode"))+" : "+e._s(s.zip_code)+" ")]),t("a-col",{attrs:{lg:24}},[t("a-button",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===s.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}],attrs:{type:"primary"},on:{click:function(t){return e.handleModifyShipping(s)}}},[e._v(" "+e._s(e.$t("view.system.resourcegroup.Update"))+" ")])],1)],1)],1)}},{key:"operation",fn:function(a){var s=a.record;return t("span",{},[t("div",[1==e.shopId?t("complaintForm",{attrs:{refId:s.order_id,type:"supply"},on:{ok:e.handleQuery}}):e._e(),1!=e.shopId||e.loading?e._e():t("complaintDetail",{attrs:{orderId:s.order_id,type:"supply"}}),t("a",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===s.status&&1!=e.shopId&&e.isShowFahuoBtn(s),expression:"record.status === 'ORDER_WAIT_SHIP' && shopId != 1 && isShowFahuoBtn(record)"}],on:{click:function(t){return e.handleFaHuo(s)}}},[e._v(" "+e._s(e.$t("view.order.list.ship.btn"))+" ")]),"ORDER_WAIT_PAYMENT"!==s.status&&"ORDER_WAIT_SHIP"===s.status&&1!=e.shopId&&s.isDajian?t("a-divider",{attrs:{type:"vertical"}}):e._e(),"ORDER_WAIT_PAYMENT"!==s.status&&1!=e.shopId&&s.isDajian?t("a",{on:{click:function(t){return e.pushDaJian(s)}}},[e._v(e._s(e.$t("view.order.list.pushdajian")))]):e._e(),t("a",{directives:[{name:"show",rawName:"v-show",value:1===s.deduction_status&&1!=e.shopId&&s.deduction_fee>0,expression:"record.deduction_status === 1 && shopId != 1 && record.deduction_fee > 0"}],on:{click:function(t){return e.supplyOrderPay(s)}}},[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)},i=[],o=a("5530"),n=a("dbc2"),r=Object(o["a"])({},n["default"]),l=r,c=(a("0867"),a("2877")),d=Object(c["a"])(l,s,i,!1,null,null,null);t["default"]=d.exports},"7c9d2":function(e,t,a){"use strict";a.r(t);a("b0c0");var s=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,s){return t("div",{key:s,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(s)}}},[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)},i=[],o=a("5530"),n=a("0de6"),r=Object(o["a"])({},n["default"]),l=r,c=(a("4139"),a("2877")),d=Object(c["a"])(l,s,i,!1,null,"a8e571fc",null);t["default"]=d.exports},"80b8":function(e,t,a){},"8a63":function(e,t,a){},"8faf":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;return t("span",[t("a-button",{attrs:{type:"primary"},on:{click:e.openLoginModal}},[e._v(e._s(e.$t("view.user.syn.register.tab1")))]),t("a-modal",{attrs:{visible:e.visible,title:e.formTitle,zIndex:9999},on:{cancel:e.Cencel}},[t("div",[t("a-form-model",{ref:"form",staticClass:"user-layout-login",attrs:{id:"formLogin",model:e.formData,rules:e.rules}},[t("a-form-model-item",{attrs:{prop:"username"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.username.label")},model:{value:e.formData.username,callback:function(t){e.$set(e.formData,"username",t)},expression:"formData.username"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),t("a-form-model-item",{attrs:{prop:"password"}},[t("a-input-password",{attrs:{size:"large",placeholder:e.$t("view.login.email.add.password.label")},model:{value:e.formData.password,callback:function(t){e.$set(e.formData,"password",t)},expression:"formData.password"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1),t("a-form-model-item",{attrs:{prop:"realname"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.realname.label")},model:{value:e.formData.realname,callback:function(t){e.$set(e.formData,"realname",t)},expression:"formData.realname"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),t("a-form-model-item",{attrs:{prop:"mobile"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.mobile.label")},model:{value:e.formData.mobile,callback:function(t){e.$set(e.formData,"mobile",t)},expression:"formData.mobile"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"phone"},slot:"prefix"})],1)],1),t("a-form-model-item",{attrs:{prop:"email"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.email.label")},model:{value:e.formData.email,callback:function(t){e.$set(e.formData,"email",t)},expression:"formData.email"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"mail"},slot:"prefix"})],1)],1),t("a-row",{attrs:{gutter:16}},[t("a-col",{staticClass:"gutter-row",attrs:{lg:18,sm:18,md:18,xs:16}},[t("a-form-model-item",{attrs:{prop:"code"}},[t("a-input",{attrs:{size:"large",type:"text",autocomplete:"off",placeholder:e.$t("view.modal.email.code.placeholder")},model:{value:e.formData.code,callback:function(t){e.$set(e.formData,"code",t)},expression:"formData.code"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1)],1),t("a-col",{staticClass:"gutter-row",attrs:{lg:6,sm:6,md:6,xs:8}},[t("a-button",{staticClass:"login-button",staticStyle:{padding:"0 0px"},attrs:{type:"primary",loading:e.codeLoading,size:"large"},on:{click:e.getEmailCode}},[e._v(e._s(e.codeLoading?e.$t("view.modal.code.time",{time:e.currentCodeTime}):e.$t("view.modal.email.code")))])],1)],1),t("a-form-model-item",{attrs:{prop:"distribution_code"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.add.code.label")},model:{value:e.formData.distribution_code,callback:function(t){e.$set(e.formData,"distribution_code",t)},expression:"formData.distribution_code"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1)],1)],1),t("template",{slot:"footer"},[t("a-button",{key:"back",on:{click:e.Cencel}},[e._v(" "+e._s(e.$t("view.service.message.modal.cancelText"))+" ")]),t("a-button",{key:"submit",attrs:{type:"primary",loading:e.loading},on:{click:e.register}},[e._v(" "+e._s(e.$t("view.user.register"))+" ")])],1)],2)],1)},i=[],o=a("5530"),n=(a("d3b7"),a("a9e3"),a("25f0"),a("c0c7")),r=a("56cd"),l=a("bc3a"),c=a.n(l),d=a("ca00"),u={name:"PlatformRegiset",data:function(){return{formData:{},visible:!1,formTitle:"",loading:!1,codeLoading:!1,codeUrl:"",rules:{username:[{required:!0,message:this.$t("view.config.email.add.username.placeholder"),trigger:"blur"}],password:[{required:!0,message:this.$t("view.config.email.add.password.placeholder"),trigger:"blur"}],realname:[{required:!1,message:this.$t("view.config.email.add.realname.placeholder"),trigger:"blur"}],mobile:[{required:!1,message:this.$t("view.config.email.add.mobile.placeholder"),trigger:"blur"}],email:[{required:!1,message:this.$t("view.config.email.add.email.placeholder"),trigger:"blur"}],code:[{required:!0,message:this.$t("login.modal.code.relue"),trigger:"blur"}],cid:[{required:!0,message:"验证码ID不能为空",trigger:"blur"}]},currentCodeTime:0}},props:{role:{type:String,required:!0},registerUrl:{type:String,required:!0},showConfigList:{type:Boolean,default:!1},title:{type:String,required:!0}},created:function(){this.formTitle=this.title+this.$t("view.user.syn.register.tab1"),this.initData()},methods:{emilCode:function(e){return c.a.defaults.withCredentials=!0,fetch(this.registerUrl+"/admin/member/email/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((function(e){return e.json()})).then((function(e){return e}))},memberRegister:function(e){var t=JSON.parse(JSON.stringify(e));return t.role=Number(this.role),fetch(this.registerUrl+"/admin/member/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then((function(e){return e.json()})).then((function(e){return 0!==e.code&&r["a"].error({message:e.message,description:e.message}),e})).catch((function(e){}))},getEmailCode:function(){var e=this;this.codeLoading||this.$refs.form.validateField("email",(function(t){t||e.emilCode({email:e.formData.email}).then((function(t){0===t.code&&(e.codeLoading=!0,e.getCodeTime(),e.$message.success(e.$t("view.modal.code.succes")))}))}))},getCodeTime:function(){var e=this,t=30;this.currentCodeTime=t,this.CodeTime=setInterval((function(){t--,e.currentCodeTime=t,t<=0&&(e.codeLoading=!1,clearInterval(e.CodeTime))}),1e3)},initData:function(){var e=this;Object(n["j"])().then((function(t){t.user&&(e.formData={realname:t.user.realname,email:t.user.email,mobile:t.user.mobile,username:t.user.username,password:Object(d["g"])(6)})}))},register:function(){var e=this;this.$refs.form.validate((function(t){t&&(e.loading=!0,e.formData.remark="蜂洞客户",e.memberRegister(e.formData).then((function(t){e.loading=!1,0===t.code&&(e.$message.success(e.$t("view.modal.register.succes")),e.formData.huoyuan_name=e.title,e.formData.huoyuan_url=e.registerUrl,e.$emit("registerSuccess",e.formData),e.Cencel())})).catch((function(t){e.loading=!1,r["a"].error({message:t.toString(),description:t.toString()})})))}))},setConfig:function(){var e=this;this.showConfigList&&this.$refs.platfConfigRef.openModal(),setTimeout((function(){var t=e.formData;e.$refs.platfConfigRef.showModal({syntype:"beehole",api_url:e.registerUrl,app_key:t.username,app_secret:t.password,beehole_login_type:2})}),500)},openLoginModal:function(){this.visible=!0},Cencel:function(){this.visible=!1}},components:{}},m=Object(o["a"])({},u),p=m,h=(a("6947"),a("2877")),f=Object(h["a"])(p,s,i,!1,null,"21b00a37",null);t["default"]=f.exports},9117:function(e,t,a){},"924b":function(e,t,a){e.exports=a.p+"img/img01.319f61f4.png"},"92c5":function(e,t,a){},a4d4:function(e,t,a){},a9d9:function(e,t,a){},b6ad:function(e,t,a){},b819:function(e,t,a){},cc90:function(e,t,a){"use strict";a.r(t);var s=a("fff4");t["default"]=s["a"]},d916:function(e,t,a){},d936:function(e,t,a){"use strict";a("92c5")},f9ee:function(e,t,a){"use strict";a.d(t,"c",(function(){return i})),a.d(t,"e",(function(){return o})),a.d(t,"d",(function(){return n})),a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return l}));var s=a("b775");function i(){return Object(s["b"])({url:"/wms/methods",method:"post"})}function o(e){return Object(s["b"])({url:"/wms/change",method:"post",data:e})}function n(e){return Object(s["b"])({url:"/wms/set",method:"post",data:e})}function r(e){return Object(s["b"])({url:"/wms/get",method:"post",data:e})}function l(e){return Object(s["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 s=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)+" ")])})),1)],1)},i=[],o=a("c7eb"),n=a("1da1"),r=(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(n["a"])(Object(o["a"])().mark((function t(){return Object(o["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(n["a"])(Object(o["a"])().mark((function t(){var a,s,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={},e.wmsId&&(a.wms_id=e.wmsId),t.next=6,Object(r["b"])(a);case 6:s=t.sent,0===s.code&&s.list&&(e.warehouseList=s.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)):(i=e.warehouseList.some((function(t){return"warehouse_code"===e.dataKey?t.warehouse_code===e.currentValue:t.id===e.currentValue})),i||(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,s,i,!1,null,null,null);t["a"]=u.exports}}]);
|
|
1
|
+
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1594f836"],{"0280":function(e,t,a){"use strict";a.r(t);a("b0c0");var s=function(){var e=this,t=e._self._c;return t("span",{staticClass:"yahooPath"},[t("a-icon",{attrs:{type:"plus"},on:{click:e.openPathList}}),t("ant-modal",{attrs:{visible:e.show,"modal-title":e.formTitle,"adjust-size":!0,modalHeight:e.isMobile?"80vh":"680",modalWidth:e.isMobile?"100vw":"900"},on:{cancel:e.cancelPathList,ok:e.cancelPathList}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",[t("a-button",{on:{click:e.openFormInit}},[e._v(e._s(e.$t("components.yahooPathAdd.addbtn")))])],1),e.pathList?t("a-tree",{attrs:{replaceFields:{title:"name",key:"page_key",slot:"title",display:"display",hidden_page_flag:"hidden_page_flag",parentName:"parentName",parent_page_key:"parent_page_key"},treeData:e.pathList,loadedKeys:e.loadKeys,blockNode:!0,loadData:e.loadPath},on:{expand:e.expandNode},scopedSlots:e._u([{key:"title",fn:function(a,s){return[t("div",{staticClass:"pageKeyItem",staticStyle:{color:"#000",display:"flex","align-items":"center"}},[e._v(" "+e._s(a.name)+" "),t("a-icon",{staticStyle:{"margin-left":"15px"},attrs:{type:"edit"},on:{click:function(t){return e.handleUpdate({page_key:a.page_key,name:a.name,display:a.display,parent_page_key:a.parent_page_key,hidden_flag:a.hidden_page_flag,parentName:a.parentName},a,s)}}})],1)]}}],null,!1,2555784184)}):e._e()],1),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("a-button",{on:{click:e.cancelPathList}},[e._v(e._s(e.$t("view.test.list.form.button.cancel")))])],1)]),t("ant-modal",{attrs:{visible:e.open,"modal-title":e.formTitle1,"adjust-size":!0,modalHeight:e.isMobile?"80vh":"680",modalWidth:e.isMobile?"100vw":"900"},on:{cancel:e.cancelForm,ok:e.ok}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("a-form",[t("a-form-item",{attrs:{label:e.$t("components.yahooPathAdd.form.name")}},[t("a-input",{attrs:{placeholder:""},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.yahooPathAdd.form.display")}},[t("a-select",{model:{value:e.form.display,callback:function(t){e.$set(e.form,"display",t)},expression:"form.display"}},[t("a-select-option",{attrs:{value:"0"}},[e._v("私有")]),t("a-select-option",{attrs:{value:"1"}},[e._v("共有")])],1)],1),t("a-form-item",{attrs:{label:e.$t("components.yahooPathAdd.form.hiddenFlag")}},[t("a-select",{model:{value:e.form.hidden_flag,callback:function(t){e.$set(e.form,"hidden_flag",t)},expression:"form.hidden_flag"}},[t("a-select-option",{attrs:{value:"0"}},[e._v("普通页面")]),t("a-select-option",{attrs:{value:"1"}},[e._v("隐藏页面")])],1)],1),t("a-form-item",{attrs:{label:e.$t("components.yahooPathAdd.form.parentPageKey")}},[t("div",{attrs:{color:{color:e.form.page_key?"#ccc":"#000"}},on:{click:e.openPathSelect}},[t("a-icon",{attrs:{type:"plus"}}),e._v(e._s(e.parentName)+" ")],1)])],1)],1)]),t("ant-modal",{attrs:{visible:e.visable,"modal-title":e.formTitle2,"adjust-size":!0,modalHeight:e.isMobile?"80vh":"680",modalWidth:e.isMobile?"100vw":"900"},on:{cancel:e.cancelPathSelect,ok:e.cancelPathSelect}},[t("div",{attrs:{slot:"content"},slot:"content"},[e.pathList?t("a-tree",{attrs:{replaceFields:{title:"name",key:"page_key",slot:"title"},treeData:e.pathList,loadedKeys:e.loadKeys,loadData:e.loadPath,checkable:"",checkStrictly:!0,checkedKeys:e.pathKeys},on:{check:e.onCheck},scopedSlots:e._u([{key:"title",fn:function(a){var s=a.name;return[t("div",{staticClass:"pageKeyItem",staticStyle:{color:"#000",display:"flex","align-items":"center"}},[e._v(" "+e._s(s)+" ")])]}}],null,!1,1425135114)}):e._e()],1),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("a-button",{on:{click:e.cancelPathSelect}},[e._v(e._s(e.$t("view.test.list.form.button.cancel")))])],1)])],1)},i=[],o=a("5530"),n=a("c7eb"),r=a("1da1"),l=a("2909"),c=(a("d81d"),a("99af"),a("2dd7")),d=a("dcb0"),u=a("2f62"),m={name:"yahooPathAdd",components:{AntModal:c["default"]},data:function(){return{open:!1,pathList:[],form:{},visable:!1,show:!1,pathKeys:[],loadKeys:[],parentName:""}},computed:Object(o["a"])({},Object(u["c"])(["shopId","isMobile"])),props:{sellerId:{type:String,default:""}},created:function(){this.formTitle=this.$t("components.yahooPathAdd.form.name"),this.formTitle1=this.$t("components.yahooPathAdd.form.name.add.title"),this.formTitle2=this.$t("components.yahooPathAdd.form.name.select.title"),this.getPathList()},methods:{openAddForm:function(){this.open=!0},cancelForm:function(){this.open=!1},openPathList:function(){this.show=!0},cancelPathList:function(){this.show=!1},getPathList:function(e,t){var a=this,s={seller_id:this.sellerId};return e&&(s.page_key=e),Object(d["j"])(s).then((function(s){return s.data.results&&s.data.results.length>0?s.data.results?(s.data.results.map((function(a){a.title&&(a.label=a.name,a.isLeaf=!1),a.isLeaf=!1,a.label=a.name,a.parentName=t,e&&(a.parent_page_key=e)})),"0"!==s.data.total_results_available?e?s.data.results:(a.pathList=Object(l["a"])(s.data.results),a.pathList):[]):void 0:null}))},loadPath:function(e,t){var a=this;return Object(r["a"])(Object(n["a"])().mark((function t(){var s;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a.loadKeys.push(e.eventKey),a.parentName=e.label,t.next=4,a.getPathList(e.eventKey,e.label);case 4:s=t.sent,s&&s.length&&(e.dataRef.children=s),a.pathList=Object(l["a"])(a.pathList);case 7:case"end":return t.stop()}}),t)})))()},loadEvent:function(e){},onCheck:function(e,t){e.checked.length?this.pathKeys=[e.checked[e.checked.length-1]]:this.pathKeys=[],this.pathKeys.length?this.form.parent_page_key=this.pathKeys[0]:this.form.parent_page_key="",this.parentName=t.node.label},handleUpdate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.form=e,this.pathKeys=[],this.parentName=e.parentName,this.formTitle1=this.$t("components.yahooPathAdd.form.name.edit.title",{name:e.name}),this.openAddForm()},expandNode:function(e){var t=[];e.map((function(e){t.push(e)})),this.loadKeys=[].concat(t)},ok:function(){var e=this;this.form.seller_id=this.sellerId,Object(d["h"])(this.form).then((function(t){0===t.code&&(e.$message.success(e.$t("components.yahooPathAdd.success")),e.$emit("ok"),e.loadKeys=[],e.pathKeys=[],e.getPathList())}))},openPathSelect:function(){this.form.page_key||(this.visable=!0)},cancelPathSelect:function(){this.visable=!1},openFormInit:function(){this.parentName="",this.form=Object.assign({},{seller_id:this.sellerId}),this.pathKeys=[],this.formTitle1=this.$t("components.yahooPathAdd.form.name.add.title"),this.openAddForm()}}},p=Object(o["a"])({},m),h=p,f=(a("5ea1"),a("2877")),_=Object(f["a"])(h,s,i,!1,null,null,null);t["default"]=_.exports},"0867":function(e,t,a){"use strict";a("80b8")},"0c499":function(e,t,a){"use strict";a.r(t);var s=a("6f71");t["default"]=s["default"]},"0de6":function(e,t,a){"use strict";a.r(t);var s=a("c7eb"),i=a("1da1"),o=a("3835"),n=a("5530"),r=(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"),m=function(){return a.e("chunk-1594f836").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(n["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("~"),s=Object(o["a"])(a,2),i=s[0],n=s[1];return{start:e.$moment("2000-01-01 ".concat(i)),end:e.$moment("2000-01-01 ".concat(n))}}))}catch(s){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(i["a"])(Object(s["a"])().mark((function t(a){var i,o,r;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=14;break}return i=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(i),o=Object(n["a"])(Object(n["a"])({},e.formData),{},{data:Object(n["a"])(Object(n["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"])(o);case 7:r=t.sent,0===r.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(n["a"])({},Object(l["c"])(["shopId","isMobile"])),components:{AntModal:r["default"],WmsSelect:m,GoodcangWarehouseSelect:u["a"]}}},"0ef6":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;return t("div",{ref:"portaletDiv",staticClass:"module"},[e._m(0)])},i=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"module-in"},[t("ul",{staticClass:"information02"},[t("li",[t("div",{staticClass:"sky"},[t("img",{attrs:{src:a("924b"),alt:""}})]),t("div",{staticClass:"information02-data"},[t("span",[e._v("50%")]),t("p",[e._v("压力仪表盘")])])]),t("li",[t("div",{staticClass:"sky"},[t("img",{attrs:{src:a("4781"),alt:""}})]),t("div",{staticClass:"information02-data"},[t("span",[e._v("28%")]),t("p",[e._v("完成率")])])])])])}],o={created:function(){},mounted:function(){this.$emit("setHeight",this.$refs.portaletDiv.offsetHeight)},watch:{},components:{},methods:{}},n=o,r=(a("d936"),a("2877")),l=Object(r["a"])(n,s,i,!1,null,"0c32075c",null);t["default"]=l.exports},2826:function(e,t,a){"use strict";a("9117")},"2ab0":function(e,t,a){},3058:function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return o}));var s=a("b775");function i(e){return Object(s["b"])({url:"/good_cang/get_warehouse",method:"get",params:e})}function o(e){return Object(s["b"])({url:"/good_cang/warehouse/shipping_method",method:"get",params:e})}},4139:function(e,t,a){"use strict";a("b819")},4781:function(e,t,a){e.exports=a.p+"img/img02.9ac07e73.png"},"4b93":function(e,t,a){"use strict";a.r(t);a("b0c0");var s=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 s=a.text;return[t("a-tag",{attrs:{color:1===s?"green":""}},[e._v(" "+e._s(1===s?e.$t("components.WarehouseShippingSelect.table.is_signature_yes"):e.$t("components.WarehouseShippingSelect.table.is_signature_no"))+" ")])]}},{key:"is_truck",fn:function(a){var s=a.text;return[t("a-tag",{attrs:{color:1===s?"blue":""}},[e._v(" "+e._s(1===s?e.$t("components.WarehouseShippingSelect.table.is_truck_yes"):e.$t("components.WarehouseShippingSelect.table.is_truck_no"))+" ")])]}},{key:"is_enabled",fn:function(a){var s=a.text;return[t("a-tag",{attrs:{color:1===s?"green":""}},[e._v(" "+e._s(1===s?e.$t("components.WarehouseShippingSelect.table.is_enabled_yes"):e.$t("components.WarehouseShippingSelect.table.is_enabled_no"))+" ")])]}}])},[t("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"})])],1)],1)],1)},i=[],o=a("5530"),n=a("c7eb"),r=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-1594f836").then(a.bind(null,"7c9d2"))},u=function(){return Promise.resolve().then(a.bind(null,"5d9e"))},m={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("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"}}],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(r["a"])(Object(n["a"])().mark((function e(){return Object(n["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(r["a"])(Object(n["a"])().mark((function t(){var a,s;return Object(n["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),t.next=8,Object(l["a"])(a);case 8:s=t.sent,0===s.code&&(e.tableData=(s.list||[]).map((function(e){return Object(o["a"])({key:e.id},e)})),e.pagination.total=s.total_count||0),t.next=14;break;case 12:t.prev=12,t.t0=t["catch"](1);case 14:return t.prev=14,e.loading=!1,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[1,12,14,17]])})))()},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()}}},p=m,h=(a("2826"),a("2877")),f=Object(h["a"])(p,s,i,!1,null,"52c19135",null);t["default"]=f.exports},"5c7e":function(e,t,a){"use strict";a.r(t),a.d(t,"WarehouseShippingSelect",(function(){return h})),a.d(t,"WarehouseShippingTable",(function(){return f["default"]}));a("b0c0");var s=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)},i=[],o=a("c7eb"),n=a("2909"),r=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(r["a"])(Object(o["a"])().mark((function a(){var s,i,r,c;return Object(o["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(s=e.length>0&&void 0!==e[0]&&e[0],s||(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,i={page:t.pagination.page,limit:t.pagination.limit},t.warehouseId&&(i.cang_id=t.warehouseId),t.warehouseCode&&(i.warehouse_code=t.warehouseCode),t.wmsId&&(i.wms_id=t.wmsId),a.next=12,Object(l["a"])(i);case 12:r=a.sent,0===r.code&&(c=r.list||[],t.pagination.total=r.total_count||0,t.shippingList=s?[].concat(Object(n["a"])(t.shippingList),Object(n["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,m=(a("7154"),a("2877")),p=Object(m["a"])(u,s,i,!1,null,"33ba007d",null),h=p.exports,f=a("4b93");t["default"]=h},"5ea1":function(e,t,a){"use strict";a("a4d4")},6947:function(e,t,a){"use strict";a("b6ad")},"6a20":function(e,t,a){"use strict";a.r(t);var s=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,s){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,s)}}})],1)}},{key:"status",fn:function(a,s){return t("span",{},[t("div",[t("a-switch",{attrs:{checked:1==s.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,s)}}})],1)])}},{key:"is_sand_box",fn:function(a,s){return t("span",{},[t("a-switch",{attrs:{checked:1==s.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,s)}}})],1)}},{key:"action",fn:function(a,s){return t("span",{},[t("a-space",[t("a",{on:{click:function(t){return e.handleEdit(s)}}},[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)},i=[],o=a("5530"),n=a("c7eb"),r=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?[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)},m=[],p={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(r["a"])(Object(n["a"])().mark((function t(){var a;return Object(n["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)}}},h=p,f=a("2877"),_=Object(f["a"])(h,u,m,!1,null,null,null),g=_.exports,v=g,b={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(r["a"])(Object(n["a"])().mark((function t(){var a,s;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.loading=!0,a=Object(o["a"])(Object(o["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:s=t.sent,0===s.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)}}},y=b,w=Object(f["a"])(y,c,d,!1,null,null,null),$=w.exports,k=function(){return a.e("chunk-1594f836").then(a.bind(null,"7c9d2"))},x={name:"WmsModal",components:{WmsForm:$,LogisticsProviderModal:k},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(r["a"])(Object(n["a"])().mark((function t(){var a;return Object(n["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(o["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=x,D=(a("ffeb"),Object(f["a"])(S,s,i,!1,null,"736dc18e",null));t["default"]=D.exports},"6f71":function(e,t,a){"use strict";a.r(t);a("b0c0");var s=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)},i=[],o=a("c7eb"),n=a("1da1"),r=(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(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(r["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,s,i,!1,null,null,null);t["default"]=u.exports},7154:function(e,t,a){"use strict";a("a9d9")},"77c96":function(e,t,a){"use strict";a.r(t);var s=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 s=a.text,i=a.record;return t("span",{},[1==e.shopId?t("a",{on:{click:function(t){return e.handleOrderDetail(i)}}},[e._v(" "+e._s(s)+" ")]):t("span",[e._v(" "+e._s(s)+" ")]),t("div",[e._v(e._s(i.create_time))]),t("dispath-note",{staticStyle:{display:"none"},attrs:{order:i}})],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 s=a.text,i=a.record;return t("span",{},e._l(s,(function(a,o){return 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,i))}})],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(s,i){return t("div",{key:i},[t("span",[e._v(e._s(i)+":"+e._s(s))]),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",[t("a-col",{attrs:{flex:3}},[e._v(" "+e._s(e.$t("view.item.list.sale_price"))+" : "+e._s(i.order_info.currency)+e._s(a.main_sku_price)+" ")]),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),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(i.order_info.currency)+e._s(a.deduction_fee))])],1),o<s.length-1?t("a-divider"):e._e()],1)])})),0)}},{key:"deduction_fee",fn:function(a){var s=a.record;return t("span",{},[e._v(" "+e._s(s.order_info.currency)+e._s(s.deduction_fee)+" ")])}},{key:"deduction_status",fn:function(a){var s=a.record;return t("span",{},[1===s.deduction_status?t("span",[e._v(e._s(e.$t("ORDER_WAIT_PAYMENT")))]):e._e(),2===s.deduction_status?t("span",[e._v(e._s(e.$t("ORDER_PAID")))]):e._e()])}},{key:"payment",fn:function(a){var s=a.text,i=a.record;return t("span",{},[""===i.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(s)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.list.payhuobiprice"))+" : "+e._s(i.trans_currency)+e._s(i.trans_amount)+" ")])],1):e._e(),""!==i.from_id?t("a-row",[t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.shopQuoteCurrency)+" "+e._s(s)+" ")])],1):e._e()],1)}},{key:"status",fn:function(a){var s=a.text;return t("span",{},[e._v(" "+e._s(e.$t(s))+" ")])}},{key:"order_info",fn:function(a){var s=a.record;return t("span",{},[t("a-row",[s.order_info.last_name&&""!==s.order_info.last_name?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_last_name"))+" : "+e._s(s.order_info.last_name)+" ")]):e._e(),s.order_info.first_name&&""!==s.order_info.first_name?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_first_name"))+" : "+e._s(s.order_info.first_name)+" ")]):e._e(),s.order_info.phone&&""!=s.order_info.phone?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_phone"))+" : "+e._s(s.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:[s.order_info.country]}})],1),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_state"))+" : "+e._s(s.order_info.state)+" ")]),s.order_info.city?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_city"))+" : "+e._s(s.order_info.city)+" ")]):e._e(),s.order_info.street?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_street"))+" : "+e._s(s.order_info.street)+" ")]):e._e(),s.order_info.apartment?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_men"))+" : "+e._s(s.order_info.apartment)+" ")]):e._e(),s.order_info.zip_code?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.zipcode"))+" : "+e._s(s.order_info.zip_code)+" ")]):e._e(),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.memberNote"))+" : "+e._s(s.order_info.member_note)+" ")])],1)],1)}},{key:"paymemberInfo",fn:function(a){var s=a.record;return t("span",{},[t("a-row",[s.last_name&&""!==s.last_name?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_last_name"))+" : "+e._s(s.last_name)+" ")]):e._e(),s.first_name&&""!==s.first_name?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_first_name"))+" : "+e._s(s.first_name)+" ")]):e._e(),s.phone&&""!=s.phone?t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_phone"))+" : "+e._s(s.phone)+" ")]):e._e(),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_country"))+" : "+e._s(s.country)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_state"))+" : "+e._s(s.state)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_city"))+" : "+e._s(s.city)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_street"))+" : "+e._s(s.street)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.ship_men"))+" : "+e._s(s.apartment)+" ")]),t("a-col",{attrs:{lg:24}},[e._v(" "+e._s(e.$t("view.order.detail.zipcode"))+" : "+e._s(s.zip_code)+" ")]),t("a-col",{attrs:{lg:24}},[t("a-button",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===s.status,expression:"record.status === 'ORDER_WAIT_SHIP'"}],attrs:{type:"primary"},on:{click:function(t){return e.handleModifyShipping(s)}}},[e._v(" "+e._s(e.$t("view.system.resourcegroup.Update"))+" ")])],1)],1)],1)}},{key:"operation",fn:function(a){var s=a.record;return t("span",{},[t("div",[1==e.shopId?t("complaintForm",{attrs:{refId:s.order_id,type:"supply"},on:{ok:e.handleQuery}}):e._e(),1!=e.shopId||e.loading?e._e():t("complaintDetail",{attrs:{orderId:s.order_id,type:"supply"}}),t("a",{directives:[{name:"show",rawName:"v-show",value:"ORDER_WAIT_SHIP"===s.status&&1!=e.shopId&&e.isShowFahuoBtn(s),expression:"record.status === 'ORDER_WAIT_SHIP' && shopId != 1 && isShowFahuoBtn(record)"}],on:{click:function(t){return e.handleFaHuo(s)}}},[e._v(" "+e._s(e.$t("view.order.list.ship.btn"))+" ")]),"ORDER_WAIT_PAYMENT"!==s.status&&"ORDER_WAIT_SHIP"===s.status&&1!=e.shopId&&s.isDajian?t("a-divider",{attrs:{type:"vertical"}}):e._e(),"ORDER_WAIT_PAYMENT"!==s.status&&1!=e.shopId&&s.isDajian?t("a",{on:{click:function(t){return e.pushDaJian(s)}}},[e._v(e._s(e.$t("view.order.list.pushdajian")))]):e._e(),t("a",{directives:[{name:"show",rawName:"v-show",value:1===s.deduction_status&&1!=e.shopId&&s.deduction_fee>0,expression:"record.deduction_status === 1 && shopId != 1 && record.deduction_fee > 0"}],on:{click:function(t){return e.supplyOrderPay(s)}}},[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)},i=[],o=a("5530"),n=a("dbc2"),r=Object(o["a"])({},n["default"]),l=r,c=(a("0867"),a("2877")),d=Object(c["a"])(l,s,i,!1,null,null,null);t["default"]=d.exports},"7c9d2":function(e,t,a){"use strict";a.r(t);a("b0c0");var s=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,s){return t("div",{key:s,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(s)}}},[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)},i=[],o=a("5530"),n=a("0de6"),r=Object(o["a"])({},n["default"]),l=r,c=(a("4139"),a("2877")),d=Object(c["a"])(l,s,i,!1,null,"a8e571fc",null);t["default"]=d.exports},"80b8":function(e,t,a){},"8a63":function(e,t,a){},"8faf":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;return t("span",[t("a-button",{attrs:{type:"primary"},on:{click:e.openLoginModal}},[e._v(e._s(e.$t("view.user.syn.register.tab1")))]),t("a-modal",{attrs:{visible:e.visible,title:e.formTitle,zIndex:9999},on:{cancel:e.Cencel}},[t("div",[t("a-form-model",{ref:"form",staticClass:"user-layout-login",attrs:{id:"formLogin",model:e.formData,rules:e.rules}},[t("a-form-model-item",{attrs:{prop:"username"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.username.label")},model:{value:e.formData.username,callback:function(t){e.$set(e.formData,"username",t)},expression:"formData.username"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),t("a-form-model-item",{attrs:{prop:"password"}},[t("a-input-password",{attrs:{size:"large",placeholder:e.$t("view.login.email.add.password.label")},model:{value:e.formData.password,callback:function(t){e.$set(e.formData,"password",t)},expression:"formData.password"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1),t("a-form-model-item",{attrs:{prop:"realname"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.realname.label")},model:{value:e.formData.realname,callback:function(t){e.$set(e.formData,"realname",t)},expression:"formData.realname"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),t("a-form-model-item",{attrs:{prop:"mobile"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.mobile.label")},model:{value:e.formData.mobile,callback:function(t){e.$set(e.formData,"mobile",t)},expression:"formData.mobile"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"phone"},slot:"prefix"})],1)],1),t("a-form-model-item",{attrs:{prop:"email"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.email.add.email.label")},model:{value:e.formData.email,callback:function(t){e.$set(e.formData,"email",t)},expression:"formData.email"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"mail"},slot:"prefix"})],1)],1),t("a-row",{attrs:{gutter:16}},[t("a-col",{staticClass:"gutter-row",attrs:{lg:18,sm:18,md:18,xs:16}},[t("a-form-model-item",{attrs:{prop:"code"}},[t("a-input",{attrs:{size:"large",type:"text",autocomplete:"off",placeholder:e.$t("view.modal.email.code.placeholder")},model:{value:e.formData.code,callback:function(t){e.$set(e.formData,"code",t)},expression:"formData.code"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1)],1),t("a-col",{staticClass:"gutter-row",attrs:{lg:6,sm:6,md:6,xs:8}},[t("a-button",{staticClass:"login-button",staticStyle:{padding:"0 0px"},attrs:{type:"primary",loading:e.codeLoading,size:"large"},on:{click:e.getEmailCode}},[e._v(e._s(e.codeLoading?e.$t("view.modal.code.time",{time:e.currentCodeTime}):e.$t("view.modal.email.code")))])],1)],1),t("a-form-model-item",{attrs:{prop:"distribution_code"}},[t("a-input",{attrs:{size:"large",placeholder:e.$t("view.config.add.code.label")},model:{value:e.formData.distribution_code,callback:function(t){e.$set(e.formData,"distribution_code",t)},expression:"formData.distribution_code"}},[t("a-icon",{style:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"security-scan"},slot:"prefix"})],1)],1)],1)],1),t("template",{slot:"footer"},[t("a-button",{key:"back",on:{click:e.Cencel}},[e._v(" "+e._s(e.$t("view.service.message.modal.cancelText"))+" ")]),t("a-button",{key:"submit",attrs:{type:"primary",loading:e.loading},on:{click:e.register}},[e._v(" "+e._s(e.$t("view.user.register"))+" ")])],1)],2)],1)},i=[],o=a("5530"),n=(a("d3b7"),a("a9e3"),a("25f0"),a("c0c7")),r=a("56cd"),l=a("bc3a"),c=a.n(l),d=a("ca00"),u={name:"PlatformRegiset",data:function(){return{formData:{},visible:!1,formTitle:"",loading:!1,codeLoading:!1,codeUrl:"",rules:{username:[{required:!0,message:this.$t("view.config.email.add.username.placeholder"),trigger:"blur"}],password:[{required:!0,message:this.$t("view.config.email.add.password.placeholder"),trigger:"blur"}],realname:[{required:!1,message:this.$t("view.config.email.add.realname.placeholder"),trigger:"blur"}],mobile:[{required:!1,message:this.$t("view.config.email.add.mobile.placeholder"),trigger:"blur"}],email:[{required:!1,message:this.$t("view.config.email.add.email.placeholder"),trigger:"blur"}],code:[{required:!0,message:this.$t("login.modal.code.relue"),trigger:"blur"}],cid:[{required:!0,message:"验证码ID不能为空",trigger:"blur"}]},currentCodeTime:0}},props:{role:{type:String,required:!0},registerUrl:{type:String,required:!0},showConfigList:{type:Boolean,default:!1},title:{type:String,required:!0}},created:function(){this.formTitle=this.title+this.$t("view.user.syn.register.tab1"),this.initData()},methods:{emilCode:function(e){return c.a.defaults.withCredentials=!0,fetch(this.registerUrl+"/admin/member/email/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((function(e){return e.json()})).then((function(e){return e}))},memberRegister:function(e){var t=JSON.parse(JSON.stringify(e));return t.role=Number(this.role),fetch(this.registerUrl+"/admin/member/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then((function(e){return e.json()})).then((function(e){return 0!==e.code&&r["a"].error({message:e.message,description:e.message}),e})).catch((function(e){}))},getEmailCode:function(){var e=this;this.codeLoading||this.$refs.form.validateField("email",(function(t){t||e.emilCode({email:e.formData.email}).then((function(t){0===t.code&&(e.codeLoading=!0,e.getCodeTime(),e.$message.success(e.$t("view.modal.code.succes")))}))}))},getCodeTime:function(){var e=this,t=30;this.currentCodeTime=t,this.CodeTime=setInterval((function(){t--,e.currentCodeTime=t,t<=0&&(e.codeLoading=!1,clearInterval(e.CodeTime))}),1e3)},initData:function(){var e=this;Object(n["j"])().then((function(t){t.user&&(e.formData={realname:t.user.realname,email:t.user.email,mobile:t.user.mobile,username:t.user.username,password:Object(d["g"])(6)})}))},register:function(){var e=this;this.$refs.form.validate((function(t){t&&(e.loading=!0,e.formData.remark="蜂洞客户",e.memberRegister(e.formData).then((function(t){e.loading=!1,0===t.code&&(e.$message.success(e.$t("view.modal.register.succes")),e.formData.huoyuan_name=e.title,e.formData.huoyuan_url=e.registerUrl,e.$emit("registerSuccess",e.formData),e.Cencel())})).catch((function(t){e.loading=!1,r["a"].error({message:t.toString(),description:t.toString()})})))}))},setConfig:function(){var e=this;this.showConfigList&&this.$refs.platfConfigRef.openModal(),setTimeout((function(){var t=e.formData;e.$refs.platfConfigRef.showModal({syntype:"beehole",api_url:e.registerUrl,app_key:t.username,app_secret:t.password,beehole_login_type:2})}),500)},openLoginModal:function(){this.visible=!0},Cencel:function(){this.visible=!1}},components:{}},m=Object(o["a"])({},u),p=m,h=(a("6947"),a("2877")),f=Object(h["a"])(p,s,i,!1,null,"21b00a37",null);t["default"]=f.exports},9117:function(e,t,a){},"924b":function(e,t,a){e.exports=a.p+"img/img01.319f61f4.png"},"92c5":function(e,t,a){},a4d4:function(e,t,a){},a9d9:function(e,t,a){},b6ad:function(e,t,a){},b819:function(e,t,a){},cc90:function(e,t,a){"use strict";a.r(t);var s=a("fff4");t["default"]=s["a"]},d916:function(e,t,a){},d936:function(e,t,a){"use strict";a("92c5")},f9ee:function(e,t,a){"use strict";a.d(t,"c",(function(){return i})),a.d(t,"e",(function(){return o})),a.d(t,"d",(function(){return n})),a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return l}));var s=a("b775");function i(){return Object(s["b"])({url:"/wms/methods",method:"post"})}function o(e){return Object(s["b"])({url:"/wms/change",method:"post",data:e})}function n(e){return Object(s["b"])({url:"/wms/set",method:"post",data:e})}function r(e){return Object(s["b"])({url:"/wms/get",method:"post",data:e})}function l(e){return Object(s["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 s=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)},i=[],o=a("c7eb"),n=a("1da1"),r=(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(n["a"])(Object(o["a"])().mark((function t(){return Object(o["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(n["a"])(Object(o["a"])().mark((function t(){var a,s,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={},e.wmsId&&(a.wms_id=e.wmsId),t.next=6,Object(r["b"])(a);case 6:s=t.sent,0===s.code&&s.list&&(e.warehouseList=s.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)):(i=e.warehouseList.some((function(t){return"warehouse_code"===e.dataKey?t.warehouse_code===e.currentValue:t.id===e.currentValue})),i||(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,s,i,!1,null,null,null);t["a"]=u.exports}}]);
|
|
Binary file
|