(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-ingoods-dnReceipt-dnReceiving"],{"01a3":function(e,t,i){"use strict";i.r(t);var n=i("f7f5"),a=i("1f2f");for(var r in a)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(r);i("10b4");var o,s=i("f0c5"),l=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"8e6feed2",null,!1,n["a"],o);t["default"]=l.exports},"10b4":function(e,t,i){"use strict";var n=i("62f3"),a=i.n(n);a.a},"1ced":function(e,t,i){"use strict";i.r(t);var n=i("2e3c"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(r);t["default"]=a.a},"1f2f":function(e,t,i){"use strict";i.r(t);var n=i("1f5d"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(r);t["default"]=a.a},"1f5d":function(e,t,i){"use strict";var n=i("4ea4");i("a623"),i("4de4"),i("7db0"),i("4160"),i("13d5"),i("a434"),i("acd8"),i("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(i("5530")),r=n(i("2909"));i("96cf");var o=n(i("1da1")),s=n(i("d4ec")),l=n(i("bee2")),c=n(i("262e")),u=n(i("2caf")),d=i("9ab4"),f=i("60a32"),p=i("22da"),h=n(i("34b3")),v=i("54a3"),m=n(i("e007")),g=i("8b71"),b=function(e){(0,c.default)(i,e);var t=(0,u.default)(i);function i(){var e;return(0,s.default)(this,i),e=t.apply(this,arguments),e.model=m.default,e.form={documentNo:""},e.material=[],e.poList=[],e.materialList=[],e.every={},e.everyIndex="",e.value="",e.headers=g.headers,e.type="text",e.DNReceivingList=[],e.border=!0,e.receiptAmount="",e.Location=[],e.LocationList=[],e.wl={value:null},e.poNo=null,e.requestAmount=null,e}return(0,l.default)(i,[{key:"initLocation",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(t){var i,n,a,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log("condition>>>>>>>>>>>>>>>>>>.",t),i=[],n=JSON.parse(localStorage.getItem("__GWMS_APP_STATE_DATA__")),a=JSON.parse(localStorage.getItem("sendSpot")),r={loginName:n.session.user.loginName,sendSpot:a,factoryCode:n.session.user.factoryCode,workArea:v.session.workareaCode},e.next=7,this.model.queryByFactoryCodeAndWorkAreaCode(r);case 7:return o=e.sent,console.log(">>>>>>>>>>>>>>",o),o.forEach((function(e){if(e.sendSpot===t.sendSpot){var n={};n.label=e.locationCode,n.value=e.locationCode+"("+e.sendSpot+")",n.sendSpot=e.sendSpot,i.push(n)}})),e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"query",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(){var t,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.empty(),this.form.documentNo){e.next=4;break}return this.customToast(this.$t("message.Commission_tips1")),e.abrupt("return");case 4:return e.next=6,this.model.queryOrderInInfo(this.form.documentNo);case 6:if("1"!=m.default.code){e.next=21;break}if(0!=this.model.orderInInfoList.length){e.next=10;break}return this.empty(),e.abrupt("return");case 10:uni.showToast({icon:"success",title:this.$t("message.successful")}),t=localStorage.getItem("list"),localStorage.removeItem("list"),this.material=JSON.parse(t),this.DNReceivingList=JSON.parse(t),this.DNReceivingList.forEach((function(e){e.wllist=[]})),this.poList=(0,r.default)(this.DNReceivingList),i=this.removeDuplicates(this.poList,"poNo"),i.forEach((function(e){e.label=e.poNo,e.value=e.poNo})),this.poList=i,this.poListChoice({pickerName:this.poList.find((function(){return!0}))});case 21:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"removeDuplicates",value:function(e,t){var i={},n=[];return n=e.reduce((function(e,n){return!i[n[t]]&&(i[n[t]]=e.push(n)),e}),[]),n}},{key:"totalLocation",value:function(e){var t=e.reduce((function(e,t){return e+ +t.receiptAmount}),0);return t}},{key:"poListChoice",value:function(e){this.receiptAmount="",this.poNo=e.pickerName.value,this.materialList=JSON.parse(JSON.stringify(this.removeDuplicates(this.material,"materialCode"))),this.materialList=this.materialList.filter((function(t){if(t.poNo==e.pickerName.value)return t.label=t.materialCode,t.value=t.materialCode,!0})),this.materialChoice({pickerName:this.materialList.find((function(){return!0}))})}},{key:"materialChoice",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(t){var i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.receiptAmount="",this.every=(0,a.default)({},t.pickerName),console.log("this.every",this.every),this.Location=[],e.next=6,this.initLocation(this.every);case 6:this.Location=e.sent,this.LocationChoice({pickerName:this.Location.find((function(){return!0}))}),this.DNReceivingList.forEach((function(e,t){e.poNo==i.every.poNo&&e.materialCode==i.every.materialCode&&e.poLine==i.every.poLine&&(i.everyIndex=t)})),this.every=this.DNReceivingList[this.everyIndex],console.log("this.every",this.every);case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"LocationChoice",value:function(e){this.wl=e.pickerName}},{key:"Add",value:function(){var e=parseFloat(this.every.requestAmount);if(""!=this.receiptAmount&&this.wl.value)if(parseFloat(this.receiptAmount)<=0)this.customToast(this.$t("message.Commission_tips3"));else if(parseFloat(this.receiptAmount)>e||parseFloat(this.receiptAmount)+parseFloat(this.every.receiptAmount)>e)this.customToast(this.$t("message.Commission_tips4"));else{var t=!0;if(1==t){this.LocationList.push((0,a.default)((0,a.default)({},this.every),{},{receiptAmount:this.receiptAmount,wlCode:this.wl.label})),this.DNReceivingList[this.everyIndex].wllist.push(this.LocationList[this.LocationList.length-1]);var i=0;this.DNReceivingList[this.everyIndex].wllist.forEach((function(e){i+=parseFloat(e.receiptAmount),e.wllist=null})),this.DNReceivingList[this.everyIndex].receiptAmount=i,this.receiptAmount="",this.every=this.DNReceivingList[this.everyIndex]}}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(i){if(i.confirm){t.LocationList.splice(e.contentIndex,1);var n=0;t.DNReceivingList.forEach((function(t,i){t.poNo==e.lineData.poNo&&t.materialCode==e.lineData.materialCode&&t.poLine==e.lineData.poLine&&(n=i)}));var a=0;t.DNReceivingList[n].wllist.forEach((function(t,i){t.receiptAmount==e.lineData.receiptAmount&&t.wlCode==e.lineData.wlCode&&(a=i)})),t.DNReceivingList[n].wllist.splice(a,1);var r=0;t.DNReceivingList[n].wllist.forEach((function(e){r+=parseFloat(e.receiptAmount)})),t.DNReceivingList[n].receiptAmount=r}else if(i.cancel)return}})}},{key:"resetForm",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.LocationList=[],this.Location=[],this.poNo="",this.poList=[],this.wl={value:null},this.every={},this.materialList=[],this.receiptAmount=null,this.DNReceivingList=[],e.next=11,this.query();case 11:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"empty",value:function(){this.LocationList=[],this.Location=[],this.poNo="",this.poList=[],this.wl={value:null},this.every={},this.materialList=[],this.receiptAmount=null,this.DNReceivingList=[]}},{key:"onSubmit",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(0!==this.LocationList.length){e.next=3;break}return this.customToast(this.$t("message.Commission_tips5")),e.abrupt("return",null);case 3:return e.next=5,this.model.submitOrderInEnter(this.DNReceivingList);case 5:"1"==this.model.SubmitCode&&this.resetForm();case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"bill",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(){var t,i;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__")),i={loginName:t.session.user.loginName,dnNo:this.form.documentNo},e.next=7,this.model.querydetaildlist(i);case 7:this.toPage(this.page.raw.ingoods.dnReceipt.Local);case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),i}(p.BasePage);b=(0,d.__decorate)([(0,f.Component)({components:{jPicker:h.default}})],b);var y=b;t.default=y},"1f8d":function(e,t,i){var n=i("755e");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("2bde7a24",n,!0,{sourceMap:!1,shadowMode:!1})},"233d":function(e,t,i){"use strict";var n;i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){return n}));var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"jPicker"},[i("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?i("v-uni-view",[e._v(e._s(e.listData[e.nSel][e.showKey]||e.listData[e.nSel]))]):i("v-uni-view",{staticStyle:{color:"#7d7d7d"}},[e._v(e._s(e.$t("message.workArea_Selelct")))])],1),e.pickerVisable?i("v-uni-view",{staticClass:"pickerMask",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.pickerVisable=!1}}},[i("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?i("v-uni-view",{staticClass:"searchInput"},[i("v-uni-view",{staticClass:"clickArea"},[i("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)}}}),i("v-uni-icon",{staticClass:"searchLogo",attrs:{type:"search"}})],1)],1):e._e(),i("v-uni-view",{staticClass:"pickerTop"},[i("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")))]),i("v-uni-view",{staticClass:"midInput"},["middle"==e.searchPosition?[i("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)}}}),i("v-uni-icon",{staticClass:"searchIcon",attrs:{type:"search"}})]:e._e()],2),i("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),i("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)}}},[i("v-uni-picker-view-column",e._l(e.listData,(function(t,n){return i("v-uni-view",{key:n,staticClass:"opItem"},[e._v(e._s(t[e.showKey]||t))])})),1)],1)],1)],1):e._e()],1)},r=[]},2909:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=s(i("6005")),a=s(i("db90")),r=s(i("06c5")),o=s(i("3427"));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return(0,n.default)(e)||(0,a.default)(e)||(0,r.default)(e)||(0,o.default)()}},"2e3c":function(e,t,i){"use strict";i("c975"),i("d3b7"),i("25f0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={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,i=e.length;t-1&&this.listData.push(i[n])}}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,i=e.length;t1?arguments[1]:void 0)}})},ade3:function(e,t,i){"use strict";function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},db90:function(e,t,i){"use strict";function n(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}i("a4d3"),i("e01a"),i("d28b"),i("a630"),i("d3b7"),i("3ca3"),i("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},e007:function(e,t,i){"use strict";var n=i("4ea4");i("4de4"),i("d81d"),i("4e82"),i("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ReceiptModule=void 0,i("96cf");var a=n(i("1da1")),r=n(i("bee2")),o=n(i("262e")),s=n(i("2caf")),l=n(i("d4ec")),c=i("9ab4"),u=i("6fc5"),d=n(i("0613")),f=n(i("b32d")),p=i("110c"),h=i("54a3"),v=function e(){(0,l.default)(this,e)},m=function(e){(0,o.default)(i,e);var t=(0,s.default)(i);function i(){var e;return(0,l.default)(this,i),e=t.apply(this,arguments),e.sendSpot="",e.cboPlaceList=[],e.SubmitCode="",e.dnNo="",e.code="",e.ImportDNReceivingList=[],e.orderInInfo=new v,e.orderInInfoList=[],e.orderInInfoListEx=[],e.returningTypeList=[],e}return(0,r.default)(i,[{key:"updateOrderInInfoListKw",value:function(e){this.orderInInfoList=this.orderInInfoList.map((function(t){return t.kw=e,t}))}},{key:"updateCheckedOrderInInfoListKw",value:function(e){this.orderInInfoList=this.orderInInfoList.map((function(t){return t.checked&&(t.kw=e),t}))}},{key:"checkAllOrderInInfoList",value:function(e){this.orderInInfoList=this.orderInInfoList.map((function(t){return t.checked=e,t}))}},{key:"queryLocation",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(){var t,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post(p.url.auth.query.location1,{factoryCode:h.session.factoryCode,loginName:h.session.loginName,userDefined3:1});case 2:return t=e.sent,console.log("result",t),i=t.data.records.map((function(e){return{label:e.sendSpot,value:e.sendSpot}})),e.abrupt("return",{cboPlaceList:i});case 6:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"queryOrderInInfo",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t){var i,n,a,r,o,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post(p.url.material.DNorderin.info,{dnNo:t,factoryCode:h.session.factoryCode,loginName:h.session.loginName});case 2:return i=e.sent,n=i.list,a=i.code,r=n[0]||{},o=n.filter((function(e){return"1"===e.userDefined10})),s=n.filter((function(e){return"0"===e.userDefined10})),localStorage.setItem("list",JSON.stringify(n)),localStorage.setItem("sendSpot",JSON.stringify(n[0].sendSpot)),e.abrupt("return",{dnNo:t,orderInInfo:r,orderInInfoList:o,orderInInfoListEx:s,code:a});case 11:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"ImportQueryOrderInfo",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t){var i,n,a,r,o,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post(p.url.material.DNorderin.ImportInfo,{dnNo:t,factoryCode:h.session.factoryCode,loginName:h.session.loginName});case 2:return i=e.sent,n=i.list,a=i.code,r=n[0]||{},o=n.filter((function(e){return"1"===e.userDefined10})),s=n.filter((function(e){return"0"===e.userDefined10})),localStorage.setItem("list",JSON.stringify(n)),localStorage.setItem("sendSpot",JSON.stringify(n[0].sendSpot)),e.abrupt("return",{dnNo:t,orderInInfo:r,orderInInfoList:o,orderInInfoListEx:s,code:a});case 11:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"submitOrderInEnter",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t){var i,n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post(p.url.material.DNorderin.enter,{dnNo:this.dnNo,factoryCode:h.session.factoryCode,loginName:h.session.loginName,list:t});case 2:return i=e.sent,uni.showToast({icon:"none",title:i.msg}),n=i.code,a=i.list.sort((function(e,t){return Number(e.accountingStatus)-Number(t.accountingStatus)})),e.abrupt("return",{orderInInfoList:a,SubmitCode:n});case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"submitImportOrder",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t){var i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post(p.url.material.DNorderin.ImportEnter,{dnNo:this.dnNo,factoryCode:h.session.factoryCode,loginName:h.session.loginName,list:t});case 2:return i=e.sent,uni.showToast({icon:"none",title:i.msg}),n=i.list.sort((function(e,t){return Number(e.accountingStatus)-Number(t.accountingStatus)})),e.abrupt("return",{orderInInfoList:n});case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"changeOrderInLocation",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post("/wmspda/material/orderin/enter",{warehouseCode:h.session.warehouseCode,factoryCode:h.session.factoryCode,loginName:h.session.loginName,locationCode:t});case 2:return e.abrupt("return",t);case 3:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryByFactoryCodeAndWorkAreaCode",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t){var 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 i=e.sent,e.abrupt("return",i);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,a.default)(regeneratorRuntime.mark((function e(t){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f.default.post("/wmspda/material/getDnRecSn",t);case 2:return i=e.sent,console.log("明细》》》》》》》》》",i.list),this.DNdetailedList=i.list,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"hasDnInfo",get:function(){return!!this.orderInInfo.dnNo}},{key:"isCheckedAll",get:function(){return!this.orderInInfoList.filter((function(e){return!e.checked})).length}},{key:"hasChecked",get:function(){return this.orderInInfoList.filter((function(e){return e.checked})).length>0}}]),i}(u.VuexModule);t.ReceiptModule=m,(0,c.__decorate)([u.Mutation],m.prototype,"updateOrderInInfoListKw",null),(0,c.__decorate)([u.Mutation],m.prototype,"updateCheckedOrderInInfoListKw",null),(0,c.__decorate)([u.Mutation],m.prototype,"checkAllOrderInInfoList",null),(0,c.__decorate)([u.MutationAction],m.prototype,"queryLocation",null),(0,c.__decorate)([u.MutationAction],m.prototype,"queryOrderInInfo",null),(0,c.__decorate)([u.MutationAction],m.prototype,"ImportQueryOrderInfo",null),(0,c.__decorate)([u.MutationAction],m.prototype,"submitOrderInEnter",null),(0,c.__decorate)([u.MutationAction],m.prototype,"submitImportOrder",null),(0,c.__decorate)([(0,u.Action)({commit:"updateCheckedOrderInInfoListKw"})],m.prototype,"changeOrderInLocation",null),(0,c.__decorate)([(0,u.Action)({commit:"updateCheckedOrderInInfoListKw"})],m.prototype,"queryByFactoryCodeAndWorkAreaCode",null),(0,c.__decorate)([(0,u.Action)({commit:"updateCheckedOrderInInfoListKw"})],m.prototype,"querydetaildlist",null),t.ReceiptModule=m=(0,c.__decorate)([(0,u.Module)({namespaced:!0,dynamic:!0,store:d.default,name:"raw.ingoods.dnReceipt"})],m);var g=(0,u.getModule)(m);t.default=g},f349:function(e,t,i){"use strict";var n=i("1f8d"),a=i.n(n);a.a},f7f5:function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){return n}));var n={uIcon:i("f86b").default,uSearch:i("9cf5").default,uButton:i("d9ad").default,uInput:i("d5da").default,uRow:i("d67a").default,uCol:i("b408").default},a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"page-raw-receipt"},[i("v-uni-view",{staticClass:"header",style:{backgroundColor:"rgba(23, 83, 234, "+e.scrollTop/100+")"}},[i("v-uni-view",{staticClass:"left"},[i("u-icon",{staticClass:"icon",attrs:{name:"arrow-left"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.uni.navigateBack({})}}})],1),i("v-uni-view",{staticClass:"title"},[e._v(e._s(e.$t("message.dn_ReceivingGoods")))]),i("v-uni-view",{staticClass:"right"})],1),i("v-uni-view",{staticClass:"content"},[i("v-uni-view",{staticClass:"single"},[i("v-uni-view",{staticClass:"single-left"},[i("v-uni-view",[e._v(e._s(e.$t("message.dn_OddNumbers")))]),i("u-search",{attrs:{placeholder:e.$t("message.dn_PleaseScan"),"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),i("v-uni-view",{staticClass:"single-right"},[i("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),i("v-uni-view",{staticClass:"Purchase-title"},[i("v-uni-view",{staticClass:"Purchase"},[i("v-uni-view",[e._v(e._s(e.$t("message.Purchase")))]),i("jPicker",{staticClass:"search",staticStyle:{width:"260rpx"},attrs:{sureColor:"#ff0000",showKey:"value",valKey:"value",val:e.poNo,options:e.poList},on:{bindpicker:function(t){arguments[0]=t=e.$handleEvent(t),e.poListChoice.apply(void 0,arguments)}}})],1)],1),i("v-uni-view",{staticClass:"material"},[i("v-uni-view",{staticClass:"material-left"},[i("v-uni-view",[e._v(e._s(e.$t("message.Materiel")))]),i("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),i("v-uni-view",{staticClass:"material"},[i("v-uni-view",{staticClass:"material-right"},[i("v-uni-view",{staticClass:"material-right-title"},[e._v(e._s(e.$t("message.CommissionedMaterielDesc")))]),i("v-uni-view",{staticClass:"material-right-code",staticStyle:{overflow:"hidden"}},[e._v(e._s(e.every.materialDesc))])],1)],1),i("v-uni-view",{staticClass:"number"},[i("v-uni-view",{staticClass:"number-left"},[i("v-uni-view",{staticClass:"number-left-title"},[e._v(e._s(e.$t("message.DemandQuantity")))]),i("u-input",{staticClass:"input",staticStyle:{padding:"'0'"},attrs:{placeholder:" ",type:e.type,border:e.border,disabled:!0},model:{value:e.every.requestAmount,callback:function(t){e.$set(e.every,"requestAmount",t)},expression:"every.requestAmount"}})],1),i("v-uni-view",{staticClass:"number-right"},[i("v-uni-view",{staticClass:"number-right-title"},[e._v(e._s(e.$t("message.Cumulative")))]),i("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),i("v-uni-view",{staticClass:"library"},[i("v-uni-view",{staticClass:"library-left"},[i("v-uni-view",[e._v(e._s(e.$t("message.CommissionedLocation")))]),i("jPicker",{staticClass:"search",staticStyle:{width:"230rpx"},attrs:{sureColor:"#ff0000",showKey:"value",valKey:"value",val:e.wl.value,options:e.Location},on:{bindpicker:function(t){arguments[0]=t=e.$handleEvent(t),e.LocationChoice.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"library-right"},[i("v-uni-view",{staticClass:"library-right-title"},[e._v(e._s(e.$t("message.CommissionedThisNumber")))]),i("u-input",{staticClass:"input",attrs:{placeholder:e.$t("message.po_PleaseInput"),type:"number",border:e.border},model:{value:e.receiptAmount,callback:function(t){e.receiptAmount=t},expression:"receiptAmount"}})],1)],1),i("v-uni-view",{staticClass:"add"},[i("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),i("wyb-table",{ref:"table",staticClass:"table",attrs:{width:"100%","show-left-and-right-border":!0,headers:e.headers,contents:e.LocationList,"show-vert-border":!1},on:{onCellClick:function(t){arguments[0]=t=e.$handleEvent(t),e.deleteItem(t)}}})],1),i("v-uni-view",{staticClass:"bottom-bar"},[i("u-row",{staticClass:"button-bar"},[i("u-col",{attrs:{span:4}},[i("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.detailed")))])],1),i("u-col",{attrs:{span:4}},[i("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.po_Submit")))])],1),i("u-col",{attrs:{span:4}},[i("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=[]}}]);