|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-ingoods-dnReceipt-dnReceiving"],{"01a3":function(e,t,i){"use strict";i.r(t);var n=i("a6f6"),a=i("1f2f");for(var r in a)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(r);i("9bf7");var o,s=i("f0c5"),l=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"3e483ae2",null,!1,n["a"],o);t["default"]=l.exports},"049a":function(e,t,i){var n=i("81e4");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("51955eb1",n,!0,{sourceMap:!1,shadowMode:!1})},"06c5":function(e,t,i){"use strict";i("a630"),i("fb6a"),i("d3b7"),i("25f0"),i("3ca3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=a(i("6b75"));function a(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(e){if("string"===typeof e)return(0,n.default)(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?(0,n.default)(e,t):void 0}}},"197f":function(e,t,i){"use strict";var n=i("1c08"),a=i.n(n);a.a},"1c08":function(e,t,i){var n=i("be37");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("cf586050",n,!0,{sourceMap:!1,shadowMode:!1})},"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")),u=n(i("262e")),c=n(i("2caf")),d=i("9ab4"),p=i("60a3"),f=i("22da"),h=n(i("34b3")),v=i("54a3"),m=n(i("e007")),g=i("8b71"),y=i("110c"),b=function(e){(0,u.default)(i,e);var t=(0,c.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:"onShow",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 e.next=2,this.queryLoction();case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"queryLoction",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(){var t,i,n,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.Location=[],t=JSON.parse(uni.getStorageSync("sendSpot")),i={loginName:v.session.loginName,sendSpot:t,factoryCode:v.session.factoryCode,workArea:v.session.workareaCode},e.next=5,this.model.queryByFactoryCodeAndWorkAreaCode(i);case 5:n=e.sent,n.forEach((function(e){var t={};t.label=e.locationCode,t.value=e.locationCode+"("+e.sendSpot+")",t.sendSpot=e.sendSpot,a.Location.push(t)})),this.wl=this.Location[0];case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{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(uni.getStorageSync("__GWMS_APP_STATE_DATA__")),a=JSON.parse(uni.getStorageSync("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({title:this.$t("message.successful"),duration:2e3,image:"/static/icons/icon-51.png"}),t=uni.getStorageSync("list"),uni.removeStorageSync("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.material)),console.log("this.materialList??>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>",this.materialList),this.materialList=this.materialList.filter((function(t){if(t.poNo==e.pickerName.value)return t.label=t.materialCode,t.value=t.materialCode,!0})),console.log("this.materialList",this.materialList),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:if(this.Location=e.sent,0!=this.Location.length){e.next=10;break}return e.next=10,this.queryLoction();case 10: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],this.receiptAmount=parseFloat(this.every.requestAmount),console.log("this.every",this.every);case 15: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:"debounce",value:function(e,t){var i;return function(){var n=this;clearTimeout(i);var a=arguments;i=setTimeout((function(){e.apply(n,a)}),t)}}},{key:"onSubmit",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(){var t,i=this;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&&(t=JSON.parse(uni.getStorageSync("__GWMS_APP_STATE_DATA__")),uni.request({url:t.server.address+y.url.material.DNorderin.info,method:"POST",data:{dnNo:this.form.documentNo,factoryCode:v.session.factoryCode,loginName:v.session.loginName},success:function(e){"0"!=e.data.code&&null!=e.data.list?i.resetForm():"0"==e.data.code&&null==e.data.list&&(i.empty(),i.form.documentNo="")}}));case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"Submit",value:function(){this.debounce(this.onSubmit(),1e3)}},{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(uni.getStorageSync("__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}(f.BasePage);b=(0,d.__decorate)([(0,p.Component)({components:{jPicker:h.default}})],b);var w=b;t.default=w},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<i;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 i=this.options;this.listData=[],this.nSel=0;for(var n=0;n<i.length;n++){var a=i[n];this.showKey&&(a=i[n][this.showKey]),a.toString().toLowerCase().indexOf(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;t<i;t++)if(e[t][this.valKey]==this.val){this.nSel=t;break}}else this.nSel=this.val},doNothing:function(){}}};t.default=n},3427:function(e,t,i){"use strict";function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},"34b3":function(e,t,i){"use strict";i.r(t);var n=i("b65a"),a=i("1ced");for(var r in a)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(r);i("197f");var o,s=i("f0c5"),l=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"03a6792d",null,!1,n["a"],o);t["default"]=l.exports},5530:function(e,t,i){"use strict";i("a4d3"),i("4de4"),i("4160"),i("e439"),i("dbb4"),i("b64b"),i("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=a(i("ade3"));function a(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function o(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?r(Object(i),!0).forEach((function(t){(0,n.default)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}},6005:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=a(i("6b75"));function a(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e))return(0,n.default)(e)}},"6b75":function(e,t,i){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},"81e4":function(e,t,i){var n=i("24fb");t=n(!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-3e483ae2]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-3e483ae2]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-3e483ae2]{font-size:2em;font-weight:400}.page-raw-receipt[data-v-3e483ae2]{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-3e483ae2]{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-3e483ae2]{-webkit-box-flex:3;-webkit-flex:3;flex:3}.page-raw-receipt .header .left[data-v-3e483ae2],\n.page-raw-receipt .header .right[data-v-3e483ae2]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.page-raw-receipt .header .icon[data-v-3e483ae2]{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-3e483ae2]{width:100%;background:#fff;border-radius:%?15?%;padding:%?10?%}.page-raw-receipt .content .single[data-v-3e483ae2]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .single .single-left[data-v-3e483ae2]{width:80%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .single .single-left uni-view[data-v-3e483ae2]{width:%?110?%;height:100%;line-height:%?100?%}.page-raw-receipt .content .single .single-right uni-button[data-v-3e483ae2]{margin-top:%?15?%;width:%?150?%;height:%?70?%}.page-raw-receipt .content .Purchase-title[data-v-3e483ae2]{width:100%}.page-raw-receipt .content .Purchase-title .Purchase[data-v-3e483ae2]{width:60%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .Purchase-title .Purchase uni-view[data-v-3e483ae2]{width:%?140?%;line-height:%?100?%}.page-raw-receipt .content .material[data-v-3e483ae2]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-left[data-v-3e483ae2]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-left uni-view[data-v-3e483ae2]{width:%?140?%;line-height:%?100?%;text-align:left}.page-raw-receipt .content .material .material-right[data-v-3e483ae2]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-right .material-right-title[data-v-3e483ae2]{width:%?140?%;height:100%;line-height:%?100?%}.page-raw-receipt .content .material .material-right .material-right-code[data-v-3e483ae2]{width:80%;height:100%;line-height:%?100?%;text-align:left;padding-left:10px}.page-raw-receipt .content .number[data-v-3e483ae2]{height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .number .number-left[data-v-3e483ae2]{width:45%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .number .number-left .number-left-title[data-v-3e483ae2]{width:%?120?%;height:100%;line-height:%?100?%}.page-raw-receipt .content .number .number-left .input[data-v-3e483ae2]{width:%?200?%;height:%?70?%;margin-top:%?15?%;margin-left:%?15?%}.page-raw-receipt .content .number .number-right[data-v-3e483ae2]{width:55%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .number .number-right .number-right-title[data-v-3e483ae2]{width:%?140?%;height:100%;line-height:%?100?%}.page-raw-receipt .content .number .number-right .input[data-v-3e483ae2]{width:%?200?%;height:%?70?%;margin-top:%?15?%;margin-left:%?15?%}.page-raw-receipt .content .add[data-v-3e483ae2]{width:100%;height:%?100?%;position:relative}.page-raw-receipt .content .add uni-button[data-v-3e483ae2]{position:absolute;top:%?10?%;right:%?20?%}.page-raw-receipt .bottom-bar[data-v-3e483ae2]{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},"8b71":function(e,t,i){"use strict";var n=i("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.containerListHeaders=t.ImportPOReceiveListHeaders=t.headers=void 0;var a=n(i("cd49")),r=[{label:a.default.$t("message.Line"),key:"poLine"},{label:a.default.$t("message.po_OddNumbers"),key:"poNo",width:350},{label:a.default.$t("message.Pi_materielNo"),key:"materialCode",width:350},{label:a.default.$t("message.CommissionedLocation"),key:"wlCode"},{label:a.default.$t("message.product_Number"),key:"receiptAmount"}];t.headers=r;var o=[{label:a.default.$t("message.po_OddNumbers"),key:"poNo",width:350},{label:a.default.$t("message.Line"),key:"poLine"},{label:a.default.$t("message.Pi_materielNo"),key:"materialCode",width:350},{label:a.default.$t("message.CommissionedMaterielDesc"),key:"materialDesc",width:450},{label:a.default.$t("message.po_DemandQuantity"),key:"poAmount"},{label:a.default.$t("message.Pi_unit"),key:"unit"}];t.ImportPOReceiveListHeaders=o;var s=[{label:a.default.$t("message.Container"),key:"palletCode",width:300},{label:a.default.$t("message.po_OddNumbers"),key:"poNo",width:350},{label:a.default.$t("message.Line"),key:"poLine"},{label:a.default.$t("message.Pi_materielNo"),key:"materialCode",width:350},{label:a.default.$t("message.CommissionedMaterielDesc"),key:"materialDesc",width:450},{label:a.default.$t("message.po_DemandQuantity"),key:"poAmount"},{label:a.default.$t("message.Pi_unit"),key:"unit"}];t.containerListHeaders=s},"9bf7":function(e,t,i){"use strict";var n=i("049a"),a=i.n(n);a.a},a623:function(e,t,i){"use strict";var n=i("23e7"),a=i("b727").every,r=i("a640"),o=i("ae40"),s=r("every"),l=o("every");n({target:"Array",proto:!0,forced:!s||!l},{every:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},a6f6: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.Submit.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=[]},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},b65a: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"},[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=[]},be37:function(e,t,i){var n=i("24fb");t=n(!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-03a6792d]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-03a6792d]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-03a6792d]{font-size:2em;font-weight:400}.jPicker[data-v-03a6792d]{width:100%}.jPicker .showLine[data-v-03a6792d]{width:100%;display:inline-block}.pickerMask[data-v-03a6792d]{background-color:rgba(0,0,0,.5);height:100vh;width:100vw;position:fixed;left:0;top:0;z-index:999}.alertArea[data-v-03a6792d]{position:fixed;bottom:0;left:0;width:100vw}.alertArea .searchInput[data-v-03a6792d]{width:100%;position:relative}.alertArea .searchInput .clickArea[data-v-03a6792d]{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-03a6792d]{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-03a6792d]{width:30px;height:30px;line-height:30px;text-align:center}.alertArea .searchInput[data-v-03a6792d]: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-03a6792d]{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-03a6792d],\n.alertArea .pickerTop .rigBtn[data-v-03a6792d]{font-size:18px;line-height:1rem}.alertArea .pickerTop .lefBtn[data-v-03a6792d]{color:grey}.alertArea .pickerTop .rigBtn[data-v-03a6792d]{color:#1e90ff}.alertArea .pickerTop .midInput[data-v-03a6792d]{width:64%;height:30px;position:relative;line-height:30px}.alertArea .pickerTop .midInput .searchArea[data-v-03a6792d]{text-align:left;background-color:#efefef;border-radius:20px;padding:4px 10px}.alertArea .pickerTop .midInput .searchIcon[data-v-03a6792d]{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-03a6792d]{background-color:#fff;width:100%;height:300px;left:0}.alertArea .pickerView .opItem[data-v-03a6792d]{line-height:50px;text-align:center;background-color:#f3f3f3;color:#000}.JAnimateBtmIn[data-v-03a6792d]{-webkit-animation:btmIn-data-v-03a6792d .3s ease;animation:btmIn-data-v-03a6792d .3s ease}@-webkit-keyframes btmIn-data-v-03a6792d{0%{-webkit-transform:translateY(666px);transform:translateY(666px)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes btmIn-data-v-03a6792d{0%{-webkit-transform:translateY(666px);transform:translateY(666px)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}',""]),e.exports=t},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")),u=i("9ab4"),c=i("6fc5"),d=n(i("0613")),p=n(i("b32d")),f=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.ImportPOReceiveList=[],e.containerList=[],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,p.default.post(f.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,p.default.post(f.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})),uni.setStorageSync("list",JSON.stringify(n)),uni.setStorageSync("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,p.default.post(f.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})),uni.setStorageSync("list",JSON.stringify(n)),uni.setStorageSync("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,p.default.post(f.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,p.default.post(f.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,p.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,p.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,p.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:"ImportPOReceive",value:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t){var i,n,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(f.url.material.DNorderin.russia,{containerCode:t,factoryCode:h.session.factoryCode,loginName:h.session.loginName});case 2:return i=e.sent,n=i.list,a=i.containerList,r=i.code,e.abrupt("return",{ImportPOReceiveList:n,containerList:a,code:r});case 7:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"empty",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 t=[],i=[],e.abrupt("return",{ImportPOReceiveList:t,containerList:i});case 3:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"containerListSubmit",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,p.default.post(f.url.material.DNorderin.enterrussia,{wlCode:t.wlCode,containerCode:t.containerCode,factoryCode:h.session.factoryCode,loginName:h.session.loginName,list:t.list});case 2:return i=e.sent,n=i.code,e.abrupt("return",{code:n});case 5:case"end":return e.stop()}}),e)})));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}(c.VuexModule);t.ReceiptModule=m,(0,u.__decorate)([c.Mutation],m.prototype,"updateOrderInInfoListKw",null),(0,u.__decorate)([c.Mutation],m.prototype,"updateCheckedOrderInInfoListKw",null),(0,u.__decorate)([c.Mutation],m.prototype,"checkAllOrderInInfoList",null),(0,u.__decorate)([c.MutationAction],m.prototype,"queryLocation",null),(0,u.__decorate)([c.MutationAction],m.prototype,"queryOrderInInfo",null),(0,u.__decorate)([c.MutationAction],m.prototype,"ImportQueryOrderInfo",null),(0,u.__decorate)([c.MutationAction],m.prototype,"submitOrderInEnter",null),(0,u.__decorate)([c.MutationAction],m.prototype,"submitImportOrder",null),(0,u.__decorate)([(0,c.Action)({commit:"updateCheckedOrderInInfoListKw"})],m.prototype,"changeOrderInLocation",null),(0,u.__decorate)([(0,c.Action)({commit:"updateCheckedOrderInInfo"})],m.prototype,"queryByFactoryCodeAndWorkAreaCode",null),(0,u.__decorate)([(0,c.Action)({commit:"updateCheckedOrderInInfoListKw"})],m.prototype,"querydetaildlist",null),(0,u.__decorate)([c.MutationAction],m.prototype,"ImportPOReceive",null),(0,u.__decorate)([c.MutationAction],m.prototype,"empty",null),(0,u.__decorate)([c.MutationAction],m.prototype,"containerListSubmit",null),t.ReceiptModule=m=(0,u.__decorate)([(0,c.Module)({namespaced:!0,dynamic:!0,store:d.default,name:"raw.ingoods.dnReceipt"})],m);var g=(0,c.getModule)(m);t.default=g}}]); |