You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
22 KiB
JavaScript

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-ingoods-poReceipt-poReceiving"],{1240:function(e,t,i){"use strict";i.r(t);var a=i("84bb"),n=i("5250");for(var r in n)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(r);i("879d");var o,s=i("f0c5"),l=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"4d0514da",null,!1,a["a"],o);t["default"]=l.exports},"31aa":function(e,t,i){"use strict";var a=i("4ea4");i("4de4"),i("4160"),i("d81d"),i("4e82"),i("a9e3"),i("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ReceiptModule=void 0,i("96cf");var n=a(i("1da1")),r=a(i("bee2")),o=a(i("262e")),s=a(i("2caf")),l=a(i("d4ec")),u=i("9ab4"),d=i("6fc5"),c=a(i("0613")),p=a(i("b32d")),f=i("110c"),h=i("54a3"),v=function e(){(0,l.default)(this,e)},g=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.cboPlaceList=[],e.poNo="",e.code1="",e.orderInInfo=new v,e.orderInInfoList=[],e.orderInInfoListEx=[],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,n.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,n.default)(regeneratorRuntime.mark((function e(t){var i,a,n,r,o,s,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(f.url.material.POorderin.info,{poNo:t,factoryCode:h.session.factoryCode,loginName:h.session.loginName});case 2:return i=e.sent,a=i.list,n=i.code,r=n,console.log("code1",r),o=a[0]||{},s=a.filter((function(e){return"1"===e.userDefined10})),l=a.filter((function(e){return"0"===e.userDefined10})),s.forEach((function(e){e.receiptAmount=e.requestAmount})),localStorage.setItem("list",JSON.stringify(a)),localStorage.setItem("sendSpot",JSON.stringify(a[0].sendSpot)),e.abrupt("return",{poNo:t,orderInInfo:o,orderInInfoList:s,orderInInfoListEx:l,code1:r});case 14:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"submitOrderInEnter",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(t){var i,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.POorderin.enter,{poNo:this.poNo,factoryCode:h.session.factoryCode,loginName:h.session.loginName,list:t});case 2:return i=e.sent,uni.showToast({icon:"none",title:i.msg}),a=i.list.sort((function(e,t){return Number(e.accountingStatus)-Number(t.accountingStatus)})),e.abrupt("return",{orderInInfoList:a});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,n.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",{factoryCode:h.session.factoryCode,loginName:h.session.loginName,warehouseCode:h.session.warehouseCode,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,n.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:"hasPoInfo",get:function(){return!!this.orderInInfo.poNo}},{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}(d.VuexModule);t.ReceiptModule=g,(0,u.__decorate)([d.Mutation],g.prototype,"updateOrderInInfoListKw",null),(0,u.__decorate)([d.Mutation],g.prototype,"updateCheckedOrderInInfoListKw",null),(0,u.__decorate)([d.Mutation],g.prototype,"checkAllOrderInInfoList",null),(0,u.__decorate)([d.MutationAction],g.prototype,"queryLocation",null),(0,u.__decorate)([d.MutationAction],g.prototype,"queryOrderInInfo",null),(0,u.__decorate)([d.MutationAction],g.prototype,"submitOrderInEnter",null),(0,u.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],g.prototype,"changeOrderInLocation",null),(0,u.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],g.prototype,"queryByFactoryCodeAndWorkAreaCode",null),t.ReceiptModule=g=(0,u.__decorate)([(0,d.Module)({namespaced:!0,dynamic:!0,store:c.default,name:"raw.ingoods.poReceipt"})],g);var w=(0,d.getModule)(g);t.default=w},"4e83":function(e,t,i){var a=i("24fb");t=a(!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-4d0514da]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-4d0514da]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-4d0514da]{font-size:2em;font-weight:400}.page-raw-receipt[data-v-4d0514da]{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-4d0514da]{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-4d0514da]{-webkit-box-flex:3;-webkit-flex:3;flex:3}.page-raw-receipt .header .left[data-v-4d0514da],\n.page-raw-receipt .header .right[data-v-4d0514da]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.page-raw-receipt .header .icon[data-v-4d0514da]{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-4d0514da]{width:100%;background:#fff;border-radius:%?15?%;padding:%?10?%}.page-raw-receipt .content .single[data-v-4d0514da]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .single .single-left[data-v-4d0514da]{width:80%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .single .single-left uni-view[data-v-4d0514da]{width:%?110?%;height:100%;line-height:%?100?%}.page-raw-receipt .content .single .single-right uni-button[data-v-4d0514da]{margin-top:%?15?%;width:%?150?%;height:%?70?%}.page-raw-receipt .content .material[data-v-4d0514da]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-left[data-v-4d0514da]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-left uni-view[data-v-4d0514da]{width:%?100?%;line-height:%?100?%}.page-raw-receipt .content .material .material-right[data-v-4d0514da]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-right .material-right-title[data-v-4d0514da]{width:%?120?%;height:100%;line-height:%?100?%}.page-raw-receipt .content .material .material-right .material-right-code[data-v-4d0514da]{width:%?190?%;height:100%}.page-raw-receipt .content .number[data-v-4d0514da]{height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .number .number-left[data-v-4d0514da]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .number .number-left .number-left-title[data-v-4d0514da]{width:%?120?%;height:100%;line-height:%?100?%}.page-raw-receipt .content .number .number-left .input[data-v-4d0514da]{width:%?200?%;height:%?70?%;margin-top:%?15?%;margin-left:%?15?%}.page-raw-receipt .content .number .number-right[data-v-4d0514da]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .number .number-right .number-right-title[data-v-4d0514da]{width:%?120?%;height:100%;line-height:%?100?%}.page-raw-receipt .content .number .number-right .input[data-v-4d0514da]{width:%?200?%;height:%?70?%;margin-top:%?15?%;margin-left:%?15?%}.page-raw-receipt .content .library[data-v-4d0514da]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .library .library-left[data-v-4d0514da]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .library .library-left uni-view[data-v-4d0514da]{width:%?100?%;line-height:%?100?%}.page-raw-receipt .content .library .library-right[data-v-4d0514da]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .library .library-right .library-right-title[data-v-4d0514da]{width:%?120?%;height:100%;line-height:%?100?%}.page-raw-receipt .content .library .library-right .input[data-v-4d0514da]{width:%?200?%;height:%?70?%;margin-top:%?15?%;margin-left:%?15?%}.page-raw-receipt .content .add[data-v-4d0514da]{width:100%;height:%?100?%;position:relative}.page-raw-receipt .content .add uni-button[data-v-4d0514da]{position:absolute;top:%?10?%;right:%?20?%}.page-raw-receipt .bottom-bar[data-v-4d0514da]{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},5250:function(e,t,i){"use strict";i.r(t);var a=i("cfc7"),n=i.n(a);for(var r in a)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(r);t["default"]=n.a},"5d6f":function(e,t,i){var a=i("4e83");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("4f06").default;n("175be000",a,!0,{sourceMap:!1,shadowMode:!1})},"84bb":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){return a}));var a={uIcon:i("f86b").default,uSearch:i("9cf5").default,uButton:i("d9ad").default,uInput:i("d5da").default,uTable:i("8365").default,uTr:i("18fd").default,uTh:i("4145").default,uTd:i("acc3").default,uRow:i("d67a").default,uCol:i("b408").default},n=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.po_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.po_OddNumbers")))]),i("u-search",{attrs:{placeholder:e.$t("message.po_PleaseScan"),"show-action":!1},on:{search:function(t){arguments[0]=t=e.$handleEvent(t),e.model.queryOrderInInfo.apply(void 0,arguments)}},model:{value:e.form.documentNo,callback:function(t){e.$set(e.form,"documentNo",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("查询")])],1)],1),i("v-uni-view",{staticClass:"material"},[i("v-uni-view",{staticClass:"material-left"},[i("v-uni-view",[e._v("物料号")]),i("jPicker",{staticClass:"search",staticStyle:{width:"260rpx"},attrs:{sureColor:"#ff0000",showKey:"value",valKey:"value",val:e.wlCode,options:e.materialList},on:{bindpicker:function(t){arguments[0]=t=e.$handleEvent(t),e.materialChoice.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"material-right"},[i("v-uni-view",{staticClass:"material-right-title"},[e._v("物料描述")]),i("v-uni-view",{staticClass:"material-right-code"},[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("需求数量")]),i("u-input",{staticClass:"input",attrs:{type:e.type,border:e.border,placeholder:" ",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("累计数量")]),i("u-input",{staticClass:"input",attrs:{type:e.type,border:e.border,disabled:!0},model:{value:e.Cumulative,callback:function(t){e.Cumulative=t},expression:"Cumulative"}})],1)],1),i("v-uni-view",{staticClass:"library"},[i("v-uni-view",{staticClass:"library-left"},[i("v-uni-view",[e._v("库位")]),i("jPicker",{staticClass:"search",staticStyle:{width:"230rpx"},attrs:{sureColor:"#ff0000",showKey:"value",valKey:"value",val:e.wlCode,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("本次数量")]),i("u-input",{staticClass:"input",attrs:{type:e.type,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("添加")])],1),i("u-table",{staticClass:"library-table"},[i("u-tr",{staticClass:"u-tr"},[i("u-th",{staticClass:"u-th"},[e._v(e._s(e.$t("message.product_Location")))]),i("u-th",{staticClass:"u-th"},[e._v(e._s(e.$t("message.product_Number")))]),i("u-th",{staticClass:"u-th"},[e._v(e._s(e.$t("message.operation")))])],1),e._l(e.LocationList,(function(t,a){return i("u-tr",{key:a,staticClass:"u-tr"},[i("u-td",{staticClass:"u-td"},[e._v(e._s(t.wlCode))]),i("u-td",{staticClass:"u-td"},[e._v(e._s(t.receiptAmount))]),i("u-td",{staticClass:"u-td"},[i("div",{staticClass:"u-td",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.deleteItem(a)}}},[e._v(e._s(e.$t("message.product_Delete")))])])],1)}))],2)],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("收货明细")])],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("提交")])],1),i("u-col",{attrs:{span:4}},[i("u-button",{attrs:{type:"error"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.back.apply(void 0,arguments)}}},[e._v("返回")])],1)],1)],1)],1)},r=[]},"879d":function(e,t,i){"use strict";var a=i("5d6f"),n=i.n(a);n.a},a623:function(e,t,i){"use strict";var a=i("23e7"),n=i("b727").every,r=i("a640"),o=i("ae40"),s=r("every"),l=o("every");a({target:"Array",proto:!0,forced:!s||!l},{every:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})},cfc7:function(e,t,i){"use strict";var a=i("4ea4");i("a623"),i("4160"),i("a434"),i("acd8"),i("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("96cf");var n=a(i("1da1")),r=a(i("d4ec")),o=a(i("bee2")),s=a(i("262e")),l=a(i("2caf")),u=i("9ab4"),d=i("60a3"),c=i("22da"),p=a(i("34b3")),f=i("54a3"),h=a(i("31aa")),v=function(e){(0,s.default)(i,e);var t=(0,l.default)(i);function i(){var e;return(0,r.default)(this,i),e=t.apply(this,arguments),e.model=h.default,e.form={documentNo:""},e.material={},e.materialList=[],e.every="",e.value="",e.type="text",e.border=!0,e.Cumulative=0,e.sendSpotList=[],e.receiptAmount="",e.Location=[],e.LocationList=[],e.wlCode="",e.upload=[],e}return(0,o.default)(i,[{key:"onShow",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){var t,i,a,n,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=JSON.parse(localStorage.getItem("__GWMS_APP_STATE_DATA__")),i=JSON.parse(localStorage.getItem("sendSpot")),a={loginName:t.session.user.loginName,sendSpot:i,factoryCode:t.session.user.factoryCode,workArea:f.session.workareaCode},e.next=5,this.model.queryByFactoryCodeAndWorkAreaCode(a);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,r.Location.push(t)}));case 7: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,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!=this.form.documentNo){e.next=3;break}return uni.showToast({icon:"none",title:"请输入单号"}),e.abrupt("return");case 3:return e.next=5,this.model.queryOrderInInfo(this.form.documentNo);case 5:t=localStorage.getItem("list"),localStorage.removeItem("list"),this.material=JSON.parse(t),this.material.forEach((function(e){var t={};t.label=e.materialCode,t.value=e.materialCode,i.materialList.push(t)}));case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"materialChoice",value:function(e){var t=this;this.material.forEach((function(i){i.materialCode!=e.pickerName.value||(t.every=i)}))}},{key:"LocationChoice",value:function(e){console.log("e>>>>>>>>>>>>>>>>>>>>>>>>",e),this.wlCode=e.pickerName}},{key:"Add",value:function(){var e=this;if(""!=this.receiptAmount&&""!=this.wlCode)if(parseFloat(this.receiptAmount)<=0)uni.showToast({icon:"none",title:"请输入大于0的数量"});else if(parseFloat(this.receiptAmount)>this.every.requestAmount)uni.showToast({icon:"none",title:"不能大于需求数量,请重新输入"});else{var t=!0;if(0!=this.sendSpotList.length&&this.sendSpotList.forEach((function(i){e.wlCode.sendSpot!=i&&(t=!1)})),1==t){var i=JSON.stringify(this.every),a=JSON.parse(i);a.wllist=null,a.receiptAmount=this.receiptAmount,a.wlCode=this.wlCode.label,this.sendSpotList.push(this.wlCode.sendSpot),console.log("this.sendSpotList",this.sendSpotList),console.log("TEM",a),this.LocationList.push(a),this.every.wllist=this.LocationList,console.log("表格数据",this.LocationList),console.log("要上传的数据",this.every),this.receiptAmount="",t=!0,this.business()}else uni.showToast({icon:"none",title:"请选择相同库位"})}else uni.showToast({icon:"none",title:"请输入正确的库位和数量"})}},{key:"deleteItem",value:function(e){this.LocationList.splice(e,1),this.every.wllist.splice(e,1),console.log("表格数据",this.LocationList),console.log("要上传的数据",this.every),this.business()}},{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.every.wllist&&0!=this.every.wllist.length||uni.showToast({icon:"none",title:"请确保所选物料已分配库位"}),this.upload.push(this.every),e.next=4,this.model.submitOrderInEnter(this.upload);case 4:this.LocationList=[],this.wlCode="",this.receiptAmount="",this.Cumulative=0,this.every="",this.materialList=[];case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"bill",value:function(){this.redirectTo(this.page.raw.ingoods.dnReceipt.bill)}},{key:"business",value:function(){var e=0;this.LocationList.forEach((function(t){e+=parseFloat(t.receiptAmount)})),this.Cumulative=e,this.every.receiptAmount=e,console.log("this.every",this.every)}}]),i}(c.BasePage);v=(0,u.__decorate)([(0,d.Component)({components:{jPicker:p.default}})],v);var g=v;t.default=g}}]);