|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-commission-entrant-index"],{"0d1e":function(e,t,a){var i=a("626a");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("4f06").default;n("2f311f4d",i,!0,{sourceMap:!1,shadowMode:!1})},"0d7d":function(e,t,a){"use strict";a.r(t);var i=a("dba6"),n=a("2e1d");for(var r in n)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(r);a("1467");var o,s=a("f0c5"),c=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"1c8ecc18",null,!1,i["a"],o);t["default"]=c.exports},"13af":function(e,t,a){"use strict";var i;a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return i}));var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"jPicker"},[a("v-uni-view",{staticClass:"showLine",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.showPicker.apply(void 0,arguments)}}},[e.listData.length>0&&-1!=e.nSel?a("v-uni-view",[e._v(e._s(e.listData[e.nSel][e.showKey]||e.listData[e.nSel]))]):a("v-uni-view",{staticStyle:{color:"#7d7d7d"}},[e._v(e._s(e.$t("message.workArea_Selelct")))])],1),e.pickerVisable?a("v-uni-view",{staticClass:"pickerMask",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.pickerVisable=!1}}},[a("v-uni-view",{staticClass:"alertArea JAnimateBtmIn",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.doNothing.apply(void 0,arguments)}}},["top"==e.searchPosition?a("v-uni-view",{staticClass:"searchInput"},[a("v-uni-view",{staticClass:"clickArea"},[a("v-uni-input",{staticClass:"jInput",attrs:{"placeholder-style":"color:#ffffff"},on:{input:function(t){arguments[0]=t=e.$handleEvent(t),e.filterOp.apply(void 0,arguments)}}}),a("v-uni-icon",{staticClass:"searchLogo",attrs:{type:"search"}})],1)],1):e._e(),a("v-uni-view",{staticClass:"pickerTop"},[a("v-uni-view",{staticClass:"lefBtn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.cancelSel.apply(void 0,arguments)}}},[e._v(e._s(e.$t("message.product_Cancel")))]),a("v-uni-view",{staticClass:"midInput"},["middle"==e.searchPosition?[a("v-uni-input",{staticClass:"searchArea",attrs:{focus:e.focus},on:{input:function(t){arguments[0]=t=e.$handleEvent(t),e.filterOp.apply(void 0,arguments)}}}),a("v-uni-icon",{staticClass:"searchIcon",attrs:{type:"search"}})]:e._e()],2),a("v-uni-view",{staticClass:"rigBtn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.sureSelect.apply(void 0,arguments)}}},[e._v(e._s(e.$t("message.workArea_Confirm")))])],1),a("v-uni-picker-view",{staticClass:"pickerView",attrs:{value:[e.nSel],"mask-style":"background-color:"+e.bgColor,"indicator-style":e.selStyle},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.selChange.apply(void 0,arguments)}}},[a("v-uni-picker-view-column",e._l(e.listData,(function(t,i){return a("v-uni-view",{key:i,staticClass:"opItem"},[e._v(e._s(t[e.showKey]||t))])})),1)],1)],1)],1):e._e()],1)},r=[]},1467:function(e,t,a){"use strict";var i=a("edef"),n=a.n(i);n.a},"1b63":function(e,t,a){"use strict";var i=a("4ea4");a("a623"),a("4160"),a("a434"),a("acd8"),a("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("96cf");var n=i(a("1da1")),r=i(a("d4ec")),o=i(a("bee2")),s=i(a("262e")),c=i(a("2caf")),l=a("9ab4"),u=a("60a3"),d=a("22da"),p=i(a("34b3")),f=a("54a3"),h=i(a("3c24")),m=a("7579"),v=function(e){(0,s.default)(a,e);var t=(0,c.default)(a);function a(){var e;return(0,r.default)(this,a),e=t.apply(this,arguments),e.model=h.default,e.detailHeader=m.detailHeader,e.form={documentNo:""},e.material={},e.materialList=[],e.materialIndex=null,e.list=[],e.every="",e.value="",e.type="text",e.border=!0,e.nowAmount="",e.Location=[],e.wlCode="",e}return(0,o.default)(a,[{key:"onLoad",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.QueryLoc();case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"QueryLoc",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){var t,a,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=JSON.parse(uni.getStorageSync("sendSpot")),a={loginName:f.session.loginName,sendSpot:t,factoryCode:f.session.factoryCode,workArea:f.session.workareaCode},e.next=4,this.model.queryByFactoryCodeAndWorkAreaCode(a);case 4:this.model.LoctionList.forEach((function(e){var t={};t.label=e.locationCode,t.value=e.locationCode+"("+e.sendSpot+")",t.sendSpot=e.sendSpot,i.Location.push(t)})),this.wlCode=this.Location[0];case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"query",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){var t,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!=this.form.documentNo){e.next=3;break}return this.customToast(this.$t("message.Commission_tips1")),e.abrupt("return");case 3:return e.next=5,this.model.queryOutsourcing(this.form.documentNo);case 5:t=e.sent,this.material=t.data,this.materialList=[],this.material.forEach((function(e){var t={};t.label=e.materialCode,t.value=e.materialCode,a.materialList.push(t)})),this.every=this.material[0],this.materialIndex=0;case 11:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"close",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!=this.form.documentNo){e.next=3;break}return this.customToast(this.$t("message.Commission_tips1")),e.abrupt("return");case 3:return e.next=5,this.model.documentNoClose(this.form.documentNo);case 5:"1"==this.model.closeCode&&(uni.showToast({duration:2e3,title:this.$t("message.Warehouse_Tip9"),image:"/static/icons/icon-51.png"}),this.empty(),this.form.documentNo="");case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"materialChoice",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(t){var a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.material.forEach((function(e,i){if(e.materialCode==t.pickerName.value)return a.every=e,void(a.materialIndex=i)})),this.wlCode={},this.Location=[],this.model.LoctionList.forEach((function(e){if(e.sendSpot==a.every.sendSpot){var t={};t.label=e.locationCode,t.value=e.locationCode+"("+e.sendSpot+")",t.sendSpot=e.sendSpot,a.Location.push(t)}})),0==this.Location.length){e.next=8;break}this.wlCode=this.Location[0],e.next=10;break;case 8:return e.next=10,this.QueryLoc();case 10:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"LocationChoice",value:function(e){this.wlCode=e.pickerName}},{key:"Add",value:function(){if(""!=this.nowAmount&&""!=this.wlCode)if(parseFloat(this.nowAmount)<=0)this.customToast(this.$t("message.Commission_tips3"));else if(parseFloat(this.nowAmount)>this.every.poAmount)this.customToast(this.$t("message.Commission_tips4"));else{var e=parseFloat(this.nowAmount)+parseFloat(this.every.receiptAmount);if(e>parseFloat(this.every.poAmount))this.customToast(this.$t("message.Commission_tips4"));else{var t={poNo:this.form.documentNo,materialCode:this.every.materialCode,loginName:this.session.loginName,factoryCode:this.session.factoryCode,wlCode:this.wlCode.label,nowAmount:this.nowAmount};this.list.push(t),this.material[this.materialIndex].receiptAmount+=parseFloat(this.list[this.list.length-1].nowAmount),this.nowAmount=""}}else this.customToast(this.$t("message.Commission_tips2"))}},{key:"deleteItem",value:function(e){var t=this;uni.showModal({content:this.$t("message.product_Delete"),cancelText:this.$t("message.Cancel"),confirmText:this.$t("message.workArea_Confirm"),success:function(a){var i;if(a.confirm)t.list.splice(e.contentIndex,1),t.material.forEach((function(t,a){t.materialCode==e.lineData.materialCode&&(i=a)})),t.material[i].receiptAmount-=parseFloat(e.lineData.nowAmount);else if(a.cancel)return}})}},{key:"empty",value:function(){this.list=[],this.wlCode="",this.nowAmount="",this.every="",this.materialList=[],this.material={},this.Location=[]}},{key:"onSubmit",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!=this.form.documentNo){e.next=3;break}return this.customToast(this.$t("message.Commission_tips1")),e.abrupt("return");case 3:if(null!=this.list&&0!=this.list.length){e.next=6;break}return this.customToast(this.$t("message.Commission_tips5")),e.abrupt("return");case 6:return e.next=8,this.model.submitOutsourcing(this.list);case 8:if(t=e.sent,"2"!=t.code){e.next=18;break}return uni.showToast({duration:2e3,title:this.$t("message.failed"),image:"/static/icons/icon-52.png"}),this.empty(),e.next=14,this.QueryLoc();case 14:return e.next=16,this.query();case 16:e.next=23;break;case 18:return this.empty(),e.next=21,this.QueryLoc();case 21:return e.next=23,this.query();case 23:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"bill",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!=this.form.documentNo){e.next=3;break}return this.customToast(this.$t("message._tips6")),e.abrupt("return");case 3:return t=JSON.parse(uni.getStorageSync("__GWMS_APP_STATE_DATA__")),a={loginName:t.session.user.loginName,poNo:this.form.documentNo},e.next=7,this.model.querydetaildlist(a);case 7:this.toPage(this.page.raw.commission.entrant.detail);case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),a}(d.BasePage);v=(0,l.__decorate)([(0,u.Component)({components:{jPicker:p.default}})],v);var g=v;t.default=g},"1ced":function(e,t,a){"use strict";a.r(t);var i=a("2e3c"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(r);t["default"]=n.a},"2e1d":function(e,t,a){"use strict";a.r(t);var i=a("1b63"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(r);t["default"]=n.a},"2e3c":function(e,t,a){"use strict";a("c975"),a("d3b7"),a("25f0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={name:"jPicker",data:function(){return{listData:this.options,nSel:-1,pickerVisable:!1,searchPosition:"middle",selStyle:"height:50px;"}},props:["options","showKey","valKey","val","position","disabled","bgColor","sureColor","focus"],watch:{options:function(e){this.listData=e,this.selByValKey()},val:{handler:function(){this.selByValKey()}},reset:function(e){""!==e&&void 0!==e&&null!==e||(this.nSel=-1)}},computed:{reset:function(){return this.val}},mounted:function(){this.selByValKey(),this.position&&(this.searchPosition=this.position)},methods:{showPicker:function(){this.disabled||(this.pickerVisable=!0,this.listData=this.options)},cancelSel:function(){if(this.pickerVisable=!1,this.val)if(this.valKey){for(var e=this.listData,t=0,a=e.length;t<a;t++)if(e[t][this.valKey]==this.val){this.nSel=t;break}}else this.nSel=this.val;else this.nSel=-1},sureSelect:function(){if(this.pickerVisable=!1,0==this.listData.length)uni.showToast({icon:"none",title:this.$t("message.unselected")}),this.$emit("sure",{});else{var e={pickerVal:this.nSel,pickerName:-1==this.nSel?this.listData[0]:this.listData[this.nSel]};console.log("子组件要传的值",e),this.$emit("bindpicker",e)}},selChange:function(e){console.log("触发机制。。"),this.nSel=e.detail.value[0]},filterOp:function(e){var t=e.detail.value;if(""!=t){t=t.toLowerCase();var a=this.options;this.listData=[],this.nSel=0;for(var i=0;i<a.length;i++){var n=a[i];this.showKey&&(n=a[i][this.showKey]),n.toString().toLowerCase().indexOf(t)>-1&&this.listData.push(a[i])}}else this.listData=this.options,this.nSel=this.val?this.val:-1,this.selByValKey()},selByValKey:function(){var e=this.options;if(this.listData=e,this.valKey){for(var t=0,a=e.length;t<a;t++)if(e[t][this.valKey]==this.val){this.nSel=t;break}}else this.nSel=this.val},doNothing:function(){}}};t.default=i},"34b3":function(e,t,a){"use strict";a.r(t);var i=a("13af"),n=a("1ced");for(var r in n)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(r);a("cd84");var o,s=a("f0c5"),c=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"6a09e354",null,!1,i["a"],o);t["default"]=c.exports},"3c24":function(e,t,a){"use strict";var i=a("4ea4");a("4160"),a("d81d"),a("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ReturningModule=void 0;var n=i(a("5530"));a("96cf");var r=i(a("1da1")),o=i(a("bee2")),s=i(a("262e")),c=i(a("2caf")),l=i(a("d4ec")),u=a("9ab4"),d=a("6fc5"),p=i(a("0613")),f=i(a("b32d")),h=a("110c"),m=a("54a3"),v=function e(){(0,l.default)(this,e)},g=function(e){(0,s.default)(a,e);var t=(0,c.default)(a);function a(){var e;return(0,l.default)(this,a),e=t.apply(this,arguments),e.returningTypeList=[],e.materielList=[],e.locationCodeList=[],e.LoctionList=[],e.closeCode="",e.oneMaterielDetail={},e.orderInInfo=new v,e.code="",e}return(0,o.default)(a,[{key:"queryOrder",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post(h.url.material.commission.entrant.queryOrder,(0,n.default)((0,n.default)({},t),{},{loginName:m.session.loginName,factoryCode:m.session.factoryCode}));case 2:return a=e.sent,i=a.data.records[0]||{},e.abrupt("return",{orderInInfo:i});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"materialComplete",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post(h.url.material.commission.goOut.materialComplete,(0,n.default)({factoryCode:m.session.factoryCode,loginName:m.session.loginName},t));case 2:a=e.sent,console.log(a,">>>>>res");case 4:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"info",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post(h.url.material.commission.entrant.info,{factoryCode:m.session.factoryCode,poNo:t,loginName:m.session.loginName});case 2:return a=e.sent,i=a.map((function(e){return{label:e.locationCode,value:e.locationCode}})),e.abrupt("return",{locationCodeList:i});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryReturningTypeList",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post(h.url.outbound.stoOutbound.yuetaiType,{factoryCode:m.session.factoryCode,whCode:m.session.warehouseCode,loginName:m.session.loginName});case 2:return t=e.sent,a=t.map((function(e){return{label:e.dockName,value:e.dockCode}})),e.abrupt("return",{returningTypeList:a});case 5:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"queryOrderInInfo",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a,i,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post(h.url.outbound.stoOutbound.info,{stoNo:t,deleteFlag:2,finalState:3,loginName:m.session.loginName});case 2:return a=e.sent,i=0,a.data.records.forEach((function(e){i+=e.orderAmount})),r=a.data.records.map((function(e){return(0,n.default)({label:e.materialCode,value:e.stoItem},e)})),console.log("materielList",r),a.data.records[0]&&(a.data.records[0].stoAmount=i),o=a.data.records[0]||{},e.abrupt("return",{orderInInfo:o,materielList:r});case 10:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"tluSubmit",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a,i,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={barcode:t[0].barCode,loginName:m.session.loginName},i={},e.next=4,f.default.post(h.url.outbound.stoOutbound.checkScan,a);case 4:return n=e.sent,r=n.data,console.log("shneme a ",r.records),i=r.records[0],r.records[0].materialCode=t[0].productCode,r.records[0].materialDesc=t[0].productDescZh,console.log("aaaaa",i),e.abrupt("return",i);case 12:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"confirm",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a,i,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post(h.url.outbound.stoOutbound.Bookkeeping,t);case 2:return a=e.sent,i=a.code,n=a.data,console.log("res数据",n,i),r=[],e.abrupt("return",{code:i,materielList:r});case 8:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryByFactoryCodeAndWorkAreaCode",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post("/wmspda/fg/queryByFactoryCodeAndWorkAreaCode",t);case 2:return a=e.sent,i=a,e.abrupt("return",{LoctionList:i});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"documentNoClose",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post("/wmspda/material/outsourcing/into/close",{loginName:m.session.loginName,factoryCode:m.session.factoryCode,poNo:t});case 2:return a=e.sent,i=a.code,e.abrupt("return",{closeCode:i});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryOutsourcing",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post(h.url.outbound.stoOutbound.queryOrder,{poNo:t,loginName:m.session.loginName,factoryCode:m.session.factoryCode});case 2:return a=e.sent,e.abrupt("return",a);case 4:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"submitOutsourcing",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post(h.url.outbound.stoOutbound.submit,t);case 2:return a=e.sent,e.abrupt("return",a);case 4:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"querydetaildlist",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post("/wmspda/material/outsourcing/into/info",t);case 2:return a=e.sent,console.log("明细》》》》》》》》》",a.list),this.detailedList=a.data,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),a}(d.VuexModule);t.ReturningModule=g,(0,u.__decorate)([d.Action],g.prototype,"queryOrder",null),(0,u.__decorate)([d.Action],g.prototype,"materialComplete",null),(0,u.__decorate)([d.MutationAction],g.prototype,"info",null),(0,u.__decorate)([d.MutationAction],g.prototype,"queryReturningTypeList",null),(0,u.__decorate)([d.MutationAction],g.prototype,"queryOrderInInfo",null),(0,u.__decorate)([d.Action],g.prototype,"tluSubmit",null),(0,u.__decorate)([d.MutationAction],g.prototype,"confirm",null),(0,u.__decorate)([d.MutationAction],g.prototype,"queryByFactoryCodeAndWorkAreaCode",null),(0,u.__decorate)([d.MutationAction],g.prototype,"documentNoClose",null),(0,u.__decorate)([d.Action],g.prototype,"queryOutsourcing",null),(0,u.__decorate)([d.Action],g.prototype,"submitOutsourcing",null),(0,u.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],g.prototype,"querydetaildlist",null),t.ReturningModule=g=(0,u.__decorate)([(0,d.Module)({namespaced:!0,dynamic:!0,store:p.default,name:"product.outbound.stoOutbound"})],g);var b=(0,d.getModule)(g);t.default=b},5530:function(e,t,a){"use strict";a("a4d3"),a("4de4"),a("4160"),a("e439"),a("dbb4"),a("b64b"),a("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(a("ade3"));function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function o(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?r(Object(a),!0).forEach((function(t){(0,i.default)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}},"626a":function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */\n/* uni.scss */.TEMP_page[data-v-6a09e354]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-6a09e354]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-6a09e354]{font-size:2em;font-weight:400}.jPicker[data-v-6a09e354]{width:100%}.jPicker .showLine[data-v-6a09e354]{width:100%;display:inline-block}.pickerMask[data-v-6a09e354]{background-color:rgba(0,0,0,.5);height:100vh;width:100vw;position:fixed;left:0;top:0;z-index:999}.alertArea[data-v-6a09e354]{position:fixed;bottom:0;left:0;width:100vw}.alertArea .searchInput[data-v-6a09e354]{width:100%;position:relative}.alertArea .searchInput .clickArea[data-v-6a09e354]{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;height:36px}.alertArea .searchInput .clickArea .jInput[data-v-6a09e354]{text-align:left;width:90%;border:none;height:30px;font-size:17px;padding:2px 8px;box-sizing:border-box;color:#fff}.alertArea .searchInput .clickArea .searchLogo[data-v-6a09e354]{width:30px;height:30px;line-height:30px;text-align:center}.alertArea .searchInput[data-v-6a09e354]:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:#678699;-webkit-filter:blur(18px);filter:blur(18px);z-index:-1}.alertArea .pickerTop[data-v-6a09e354]{background-color:#fff;height:52px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;\n /*border-bottom: 1px solid #000000;*/font-size:18px;box-sizing:border-box;-webkit-justify-content:space-around;justify-content:space-around}.alertArea .pickerTop .lefBtn[data-v-6a09e354],\n.alertArea .pickerTop .rigBtn[data-v-6a09e354]{font-size:18px;line-height:1rem}.alertArea .pickerTop .lefBtn[data-v-6a09e354]{color:grey}.alertArea .pickerTop .rigBtn[data-v-6a09e354]{color:#1e90ff}.alertArea .pickerTop .midInput[data-v-6a09e354]{width:64%;height:30px;position:relative;line-height:30px}.alertArea .pickerTop .midInput .searchArea[data-v-6a09e354]{text-align:left;background-color:#efefef;border-radius:20px;padding:4px 10px}.alertArea .pickerTop .midInput .searchIcon[data-v-6a09e354]{position:absolute;right:5px;top:0;width:30px;height:30px;text-align:center;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.alertArea .pickerView[data-v-6a09e354]{background-color:#fff;width:100%;height:300px;left:0}.alertArea .pickerView .opItem[data-v-6a09e354]{line-height:50px;text-align:center;background-color:#f3f3f3;color:#000}.JAnimateBtmIn[data-v-6a09e354]{-webkit-animation:btmIn-data-v-6a09e354 .3s ease;animation:btmIn-data-v-6a09e354 .3s ease}@-webkit-keyframes btmIn-data-v-6a09e354{0%{-webkit-transform:translateY(666px);transform:translateY(666px)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes btmIn-data-v-6a09e354{0%{-webkit-transform:translateY(666px);transform:translateY(666px)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}',""]),e.exports=t},7579:function(e,t,a){"use strict";var i=a("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.detailHeader=t.headers=void 0;var n=i(a("cd49")),r=[{label:n.default.$t("message.CommissionedSingleNumber"),key:"poNo",width:200},{label:n.default.$t("message.po_MaterielNo"),key:"materialCode",width:300},{label:n.default.$t("message.CommissionedMaterielDesc"),key:"materialDesc",width:300},{label:n.default.$t("message.CommissionedReceiptQuantity"),key:"amount",width:200},{label:n.default.$t("message.CommissionedLocation"),key:"wlCode",width:200}];t.headers=r;var o=[{label:n.default.$t("message.po_MaterielNo"),key:"materialCode",width:301},{label:n.default.$t("message.CommissionedLocation"),key:"wlCode",width:186},{label:n.default.$t("message.product_Number"),key:"nowAmount",width:186}];t.detailHeader=o},a623:function(e,t,a){"use strict";var i=a("23e7"),n=a("b727").every,r=a("a640"),o=a("ae40"),s=r("every"),c=o("every");i({target:"Array",proto:!0,forced:!s||!c},{every:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})},ade3:function(e,t,a){"use strict";function i(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},cd84:function(e,t,a){"use strict";var i=a("0d1e"),n=a.n(i);n.a},dba6:function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return i}));var i={uIcon:a("f86b").default,uSearch:a("9cf5").default,uButton:a("d9ad").default,uInput:a("d5da").default,uRow:a("d67a").default,uCol:a("b408").default},n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"page-raw-receipt"},[a("v-uni-view",{staticClass:"header",style:{backgroundColor:"rgba(23, 83, 234, "+e.scrollTop/100+")"}},[a("v-uni-view",{staticClass:"left"},[a("u-icon",{staticClass:"icon",attrs:{name:"arrow-left"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.uni.navigateBack({})}}})],1),a("v-uni-view",{staticClass:"title"},[e._v(e._s(e.$t("message.CommissionEntrant")))]),a("v-uni-view",{staticClass:"right"})],1),a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"single"},[a("v-uni-view",{staticClass:"single-left"},[a("v-uni-view",[e._v(e._s(e.$t("message.CommissionedSingleNumber")))]),a("u-search",{attrs:{placeholder:e.$t("message.InventoryPleaseScan"),"show-action":!1},on:{search:function(t){arguments[0]=t=e.$handleEvent(t),e.query.apply(void 0,arguments)}},model:{value:e.form.documentNo,callback:function(t){e.$set(e.form,"documentNo","string"===typeof t?t.trim():t)},expression:"form.documentNo"}})],1),a("v-uni-view",{staticClass:"single-right"},[a("u-button",{attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.query.apply(void 0,arguments)}}},[e._v(e._s(e.$t("message.Query")))])],1)],1),a("v-uni-view",{staticClass:"material"},[a("v-uni-view",{staticClass:"material-left"},[a("v-uni-view",[e._v(e._s(e.$t("message.CommissionedMaterielNo")))]),a("jPicker",{staticClass:"search",staticStyle:{width:"260rpx"},attrs:{sureColor:"#ff0000",showKey:"value",valKey:"value",val:e.every.materialCode,options:e.materialList},on:{bindpicker:function(t){arguments[0]=t=e.$handleEvent(t),e.materialChoice.apply(void 0,arguments)}}})],1)],1),a("v-uni-view",{staticClass:"material"},[a("v-uni-view",{staticClass:"material-right"},[a("v-uni-view",{staticClass:"material-right-title"},[e._v(e._s(e.$t("message.CommissionedMaterielDesc")))]),a("v-uni-view",{staticClass:"material-right-code",staticStyle:{overflow:"hidden"}},[e._v(e._s(e.every.materialDesc))])],1)],1),a("v-uni-view",{staticClass:"number"},[a("v-uni-view",{staticClass:"number-left"},[a("v-uni-view",{staticClass:"number-left-title"},[e._v(e._s(e.$t("message.CommissionedDemandData")))]),a("u-input",{staticClass:"input",staticStyle:{padding:"'0'",flex:"0.9"},attrs:{placeholder:" ",type:e.type,border:e.border,disabled:!0},model:{value:e.every.poAmount,callback:function(t){e.$set(e.every,"poAmount",t)},expression:"every.poAmount"}})],1),a("v-uni-view",{staticClass:"number-right"},[a("v-uni-view",{staticClass:"number-right-title"},[e._v(e._s(e.$t("message.Cumulative")))]),a("u-input",{staticClass:"input",staticStyle:{padding:"'0'"},attrs:{placeholder:" ",type:e.type,border:e.border,disabled:!0},model:{value:e.every.receiptAmount,callback:function(t){e.$set(e.every,"receiptAmount",t)},expression:"every.receiptAmount"}})],1)],1),a("v-uni-view",{staticClass:"library"},[a("v-uni-view",{staticClass:"library-left"},[a("v-uni-view",[e._v(e._s(e.$t("message.CommissionedLocation")))]),a("jPicker",{staticClass:"search",staticStyle:{width:"230rpx"},attrs:{sureColor:"#ff0000",showKey:"value",valKey:"value",val:e.wlCode.value,options:e.Location},on:{bindpicker:function(t){arguments[0]=t=e.$handleEvent(t),e.LocationChoice.apply(void 0,arguments)}}})],1),a("v-uni-view",{staticClass:"library-right"},[a("v-uni-view",{staticClass:"library-right-title"},[e._v(e._s(e.$t("message.CommissionedThisNumber")))]),a("u-input",{staticClass:"input",attrs:{placeholder:e.$t("message.po_PleaseInput"),type:"number",border:e.border},model:{value:e.nowAmount,callback:function(t){e.nowAmount=t},expression:"nowAmount"}})],1)],1),a("v-uni-view",{staticClass:"add"},[a("u-button",{attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.Add.apply(void 0,arguments)}}},[e._v(e._s(e.$t("message.product_add")))])],1),a("wyb-table",{ref:"table",staticClass:"table",attrs:{width:"100%","show-left-and-right-border":!0,headers:e.detailHeader,contents:e.list,"show-vert-border":!1},on:{onCellClick:function(t){arguments[0]=t=e.$handleEvent(t),e.deleteItem(t)}}})],1),a("v-uni-view",{staticClass:"bottom-bar"},[a("u-row",{staticClass:"button-bar"},[a("u-col",{attrs:{span:3}},[a("u-button",{attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.bill.apply(void 0,arguments)}}},[e._v(e._s(e.$t("message.CommissionedDetails")))])],1),a("u-col",{attrs:{span:3}},[a("u-button",{attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.close.apply(void 0,arguments)}}},[e._v(e._s(e.$t("message.closure")))])],1),a("u-col",{attrs:{span:3}},[a("u-button",{attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onSubmit.apply(void 0,arguments)}}},[e._v(e._s(e.$t("message.product_Upload")))])],1),a("u-col",{attrs:{span:3}},[a("u-button",{attrs:{type:"error"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.uni.navigateBack({})}}},[e._v(e._s(e.$t("message.po_Return")))])],1)],1)],1)],1)},r=[]},edef:function(e,t,a){var i=a("ef68");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("4f06").default;n("6ec604fc",i,!0,{sourceMap:!1,shadowMode:!1})},ef68:function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */\n/* uni.scss */.TEMP_page[data-v-1c8ecc18]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-1c8ecc18]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-1c8ecc18]{font-size:2em;font-weight:400}.page-raw-receipt[data-v-1c8ecc18]{background:#f2f2f2 -webkit-linear-gradient(bottom,#f2f2f2,#4a78ea 51%,#1753ea) no-repeat;background:#f2f2f2 linear-gradient(0deg,#f2f2f2,#4a78ea 51%,#1753ea) no-repeat;background-size:100% %?600?%;padding:%?118?% %?30?% %?162?%;min-height:100%}.page-raw-receipt .header[data-v-1c8ecc18]{position:fixed;top:%?36?%;left:0;right:0;z-index:99;display:-webkit-box;display:-webkit-flex;display:flex;height:%?88?%;line-height:%?88?%;color:#fff;font-size:%?34?%;font-weight:500;text-align:center}.page-raw-receipt .header .title[data-v-1c8ecc18]{-webkit-box-flex:3;-webkit-flex:3;flex:3}.page-raw-receipt .header .left[data-v-1c8ecc18],\n.page-raw-receipt .header .right[data-v-1c8ecc18]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.page-raw-receipt .header .icon[data-v-1c8ecc18]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:%?88?%;height:%?88?%}.page-raw-receipt .content[data-v-1c8ecc18]{width:100%;background:#fff;border-radius:%?15?%;padding:%?10?%}.page-raw-receipt .content .single[data-v-1c8ecc18]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .single .single-left[data-v-1c8ecc18]{width:80%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .single .single-left uni-view[data-v-1c8ecc18]{width:%?130?%;height:100%;line-height:%?100?%}.page-raw-receipt .content .single .single-right uni-button[data-v-1c8ecc18]{margin-top:%?15?%;width:%?150?%;height:%?70?%}.page-raw-receipt .content .material[data-v-1c8ecc18]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-left[data-v-1c8ecc18]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-left uni-view[data-v-1c8ecc18]{width:%?140?%;line-height:%?100?%}.page-raw-receipt .content .material .material-left .search[data-v-1c8ecc18]{padding-left:12px}.page-raw-receipt .content .material[data-v-1c8ecc18]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-right[data-v-1c8ecc18]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-right .material-right-title[data-v-1c8ecc18]{width:%?140?%;height:100%;line-height:%?100?%}.page-raw-receipt .content .material .material-right .material-right-code[data-v-1c8ecc18]{width:80%;height:100%;line-height:%?100?%;text-align:left;padding-left:10px}.page-raw-receipt .content .number[data-v-1c8ecc18]{height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .number .number-left[data-v-1c8ecc18]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .number .number-left .number-left-title[data-v-1c8ecc18]{width:%?120?%;height:100%;line-height:%?100?%}.page-raw-receipt .content .number .number-left .input[data-v-1c8ecc18]{width:%?200?%;height:%?70?%;margin-top:%?15?%;margin-left:%?15?%}.page-raw-receipt .content .number .number-right[data-v-1c8ecc18]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .number .number-right .number-right-title[data-v-1c8ecc18]{width:%?120?%;height:100%;line-height:%?100?%;text-align:center}.page-raw-receipt .content .number .number-right .input[data-v-1c8ecc18]{width:%?100?%;height:%?70?%;margin-top:%?15?%;margin-left:%?30?%}.page-raw-receipt .content .library[data-v-1c8ecc18]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .library .library-left[data-v-1c8ecc18]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .library .library-left uni-view[data-v-1c8ecc18]{width:%?70?%;line-height:%?100?%}.page-raw-receipt .content .library .library-left .search[data-v-1c8ecc18]{padding-left:1px;text-align:center}.page-raw-receipt .content .library .library-right[data-v-1c8ecc18]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .library .library-right .library-right-title[data-v-1c8ecc18]{width:%?120?%;height:100%;line-height:%?100?%;text-align:center}.page-raw-receipt .content .library .library-right .input[data-v-1c8ecc18]{width:%?200?%;height:%?70?%;margin-top:%?15?%;margin-left:%?30?%}.page-raw-receipt .content .add[data-v-1c8ecc18]{width:100%;height:%?100?%;position:relative}.page-raw-receipt .content .add uni-button[data-v-1c8ecc18]{position:absolute;top:%?10?%;right:%?20?%}.page-raw-receipt .bottom-bar[data-v-1c8ecc18]{position:fixed;bottom:0;left:0;right:0;z-index:99;background:#fff;box-shadow:0 %?1?% %?20?% 0 hsla(0,0%,50.2%,.2);padding:%?20?%}',""]),e.exports=t}}]); |