(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-commission-goOut-index"],{"0208":function(e,t,a){"use strict";a.r(t);var i=a("9ee2"),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},"0f73":function(e,t,a){"use strict";var i=a("4ea4");a("d81d"),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")),l=i(a("2caf")),u=i(a("d4ec")),c=a("9ab4"),d=a("6fc5"),f=i(a("0613")),p=i(a("b32d")),h=a("110c"),m=a("54a3"),v=function e(){(0,u.default)(this,e)},g=function(e){(0,s.default)(a,e);var t=(0,l.default)(a);function a(){var e;return(0,u.default)(this,a),e=t.apply(this,arguments),e.returningTypeList=[],e.materielList=[],e.locationCodeList=[],e.LocList=[],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,p.default.post(h.url.material.commission.goOut.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:"outInfo",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,p.default.post(h.url.material.commission.goOut.outInfo,{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:"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,p.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:"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,p.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,p.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:"closeCode",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,p.default.post(h.url.outbound.stoOutbound.close,{poNo:t,loginName:m.session.loginName,factoryCode:m.session.factoryCode});case 2:return a=e.sent,i=a.code,e.abrupt("return",{code:i});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryCodeAndWorkAreaCode",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,p.default.post("/wmspda/fg/queryByFactoryCodeAndWorkAreaCode",t);case 2:return a=e.sent,console.log(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>",a),i=a,console.log("LocList",i),e.abrupt("return",{LocList:i});case 7: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,p.default.post(h.url.outbound.stoOutbound.outsourcingQueryOrder,{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,p.default.post(h.url.outbound.stoOutbound.materialComplete,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,p.default.post("/wmspda/material/outsourcing/outInfo",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,c.__decorate)([d.Action],g.prototype,"queryOrder",null),(0,c.__decorate)([d.MutationAction],g.prototype,"outInfo",null),(0,c.__decorate)([d.Action],g.prototype,"materialComplete",null),(0,c.__decorate)([d.Action],g.prototype,"tluSubmit",null),(0,c.__decorate)([d.MutationAction],g.prototype,"confirm",null),(0,c.__decorate)([d.MutationAction],g.prototype,"closeCode",null),(0,c.__decorate)([d.MutationAction],g.prototype,"queryCodeAndWorkAreaCode",null),(0,c.__decorate)([d.Action],g.prototype,"queryOutsourcing",null),(0,c.__decorate)([d.Action],g.prototype,"submitOutsourcing",null),(0,c.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],g.prototype,"querydetaildlist",null),t.ReturningModule=g=(0,c.__decorate)([(0,d.Module)({namespaced:!0,dynamic:!0,store:f.default,name:"product.outbound.stoOut"})],g);var w=(0,d.getModule)(g);t.default=w},"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},"1f8d":function(e,t,a){var i=a("755e");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("4f06").default;n("2bde7a24",i,!0,{sourceMap:!1,shadowMode:!1})},"233d":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=[]},"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-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;tparseFloat(this.every.orderAmount))uni.showModal({title:this.$t("message.Pi_tip"),content:this.$t("message.demandQuantity"),cancelText:this.$t("message.Cancel"),confirmText:this.$t("message.workArea_Confirm"),success:function(t){if(t.confirm){var a={poNo:e.form.documentNo,materialCode:e.every.materialCode,loginName:e.session.loginName,factoryCode:e.session.factoryCode,wlCode:e.wlCode.label,nowAmount:e.nowAmount};e.list.push(a),e.material[e.materialIndex].outAmount+=parseFloat(e.list[e.list.length-1].nowAmount),e.nowAmount=""}else if(t.cancel)return}});else{var a={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(a),this.material[this.materialIndex].outAmount+=parseFloat(this.list[this.list.length-1].nowAmount),this.nowAmount=""}}else this.customToast(this.$t("message.Commission_tips2"));else this.customToast(this.$t("message.Commission_tips6"))}},{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].outAmount-=parseFloat(e.lineData.nowAmount);else if(a.cancel)return}})}},{key:"onSubmit",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 null!=this.list&&0!=this.list.length||this.customToast(this.$t("message.Commission_tips5")),e.next=3,this.model.submitOutsourcing(this.list);case 3:this.empty();case 4: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(localStorage.getItem("__GWMS_APP_STATE_DATA__")),a={loginName:t.session.user.loginName,poNo:this.form.documentNo,factoryCode:t.session.user.factoryCode},e.next=7,this.model.querydetaildlist(a);case 7:this.toPage(this.page.raw.commission.goOut.detail);case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),a}(d.BasePage);v=(0,u.__decorate)([(0,c.Component)({components:{jPicker:f.default}})],v);var g=v;t.default=g},a623:function(e,t,a){"use strict";var i=a("23e7"),n=a("b727").every,r=a("a640"),o=a("ae40"),s=r("every"),l=o("every");i({target:"Array",proto:!0,forced:!s||!l},{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},cd93:function(e,t,a){"use strict";var i=a("df9f"),n=a.n(i);n.a},df9f:function(e,t,a){var i=a("6b92");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("4f06").default;n("33fb30f9",i,!0,{sourceMap:!1,shadowMode:!1})},f349:function(e,t,a){"use strict";var i=a("1f8d"),n=a.n(i);n.a},f427: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.CommissionGoOut")))]),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'"},attrs:{placeholder:" ",type:e.type,border:e.border,disabled:!0},model:{value:e.every.orderAmount,callback:function(t){e.$set(e.every,"orderAmount",t)},expression:"every.orderAmount"}})],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.outAmount,callback:function(t){e.$set(e.every,"outAmount",t)},expression:"every.outAmount"}})],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.Loc},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.Closed")))])],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=[]}}]);