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
29 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-dnReceipt-dnReceiving"],{"01a3":function(e,t,n){"use strict";n.r(t);var i=n("fbf9"),r=n("1f2f");for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);n("86bb");var o,s=n("f0c5"),u=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"320dde5d",null,!1,i["a"],o);t["default"]=u.exports},"06c5":function(e,t,n){"use strict";n("a630"),n("fb6a"),n("d3b7"),n("25f0"),n("3ca3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var i=r(n("6b75"));function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(e){if("string"===typeof e)return(0,i.default)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,i.default)(e,t):void 0}}},"1f2f":function(e,t,n){"use strict";n.r(t);var i=n("1f5d"),r=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);t["default"]=r.a},"1f5d":function(e,t,n){"use strict";var i=n("4ea4");n("a623"),n("4de4"),n("4160"),n("13d5"),n("45fc"),n("a434"),n("acd8"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("5530")),a=i(n("2909"));n("96cf");var o=i(n("1da1")),s=i(n("d4ec")),u=i(n("bee2")),l=i(n("262e")),d=i(n("2caf")),c=n("9ab4"),p=n("60a3"),f=n("22da"),h=i(n("34b3")),v=n("54a3"),m=i(n("e007")),g=function(e){(0,l.default)(n,e);var t=(0,d.default)(n);function n(){var e;return(0,s.default)(this,n),e=t.apply(this,arguments),e.model=m.default,e.form={documentNo:""},e.material=[],e.poList=[],e.materialList=[],e.every={},e.value="",e.type="text",e.border=!0,e.receiptAmount="",e.Location=[],e.LocationList=[],e.wl={value:null},e.poNo=null,e.requestAmount=null,e}return(0,u.default)(n,[{key:"onReady",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:this.initLocation();case 1: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(){var t,n,i,r,a=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__")),n=JSON.parse(localStorage.getItem("sendSpot")),i={loginName:t.session.user.loginName,sendSpot:n,factoryCode:t.session.user.factoryCode,workArea:v.session.workareaCode},e.next=5,this.model.queryByFactoryCodeAndWorkAreaCode(i);case 5:r=e.sent,r.forEach((function(e){console.log("res is:",r);var t={};t.label=e.locationCode,t.value=e.locationCode+"("+e.sendSpot+")",t.sendSpot=e.sendSpot,a.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,o.default)(regeneratorRuntime.mark((function e(){var t,n;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:this.$t("message.Commission_tips1")}),e.abrupt("return");case 3:return this.initLocation(),e.next=6,this.model.queryOrderInInfo(this.form.documentNo);case 6:t=localStorage.getItem("list"),localStorage.removeItem("list"),this.material=JSON.parse(t),this.poList=(0,a.default)(this.material),n=this.removeDuplicates(this.poList,"poNo"),n.forEach((function(e){e.label=e.poNo,e.value=e.poNo})),this.poList=n;case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"removeDuplicates",value:function(e,t){var n={},i=[];return i=e.reduce((function(e,i){return!n[i[t]]&&(n[i[t]]=e.push(i)),e}),[]),i}},{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.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}))}},{key:"materialChoice",value:function(e){this.every=(0,r.default)({},e.pickerName)}},{key:"LocationChoice",value:function(e){this.wl=e.pickerName}},{key:"Add",value:function(){var e=this,t=this.totalLocation(this.LocationList);if(""!=this.receiptAmount&&""!=this.wl.value)if(parseFloat(this.receiptAmount)<=0)uni.showToast({icon:"none",title:this.$t("message.Commission_tips3")});else if(parseFloat(this.receiptAmount)>this.every.requestAmount||+this.receiptAmount+t>this.every.requestAmount)uni.showToast({icon:"none",title:this.$t("message.Commission_tips4")});else{var n=this.LocationList.some((function(t){return t.wlCode!==e.wl.label}));n?uni.showToast({icon:"none",title:this.$t("message._tips5")}):(this.LocationList.push((0,r.default)((0,r.default)({},this.every),{},{wlCode:this.wl.label,receiptAmount:this.receiptAmount})),this.receiptAmount="",n=!0,this.business())}else uni.showToast({icon:"none",title:this.$t("message.Commission_tips2")})}},{key:"deleteItem",value:function(e){this.LocationList.splice(e,1),this.business(),uni.showToast({icon:"none",title:this.$t("message.success")})}},{key:"resetForm",value:function(){this.form.documentNo="",this.LocationList=[],this.Location=[],this.poNo="",this.poList=[],this.wl={value:null},this.every={},this.materialList=[],this.receiptAmount=null}},{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 uni.showToast({icon:"none",title:this.$t("message.Commission_tips5")}),e.abrupt("return",null);case 3:return this.every.wllist=this.LocationList,console.log("new this.every :::: ",this.every),e.next=7,this.model.submitOrderInEnter([this.every]);case 7:this.resetForm();case 8: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,n;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:this.$t("message._tips6")}),e.abrupt("return");case 3:return t=JSON.parse(localStorage.getItem("__GWMS_APP_STATE_DATA__")),n={loginName:t.session.user.loginName,dnNo:this.form.documentNo},e.next=7,this.model.querydetaildlist(n);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}()},{key:"business",value:function(){this.every.receiptAmount=this.totalLocation(this.LocationList)}}]),n}(f.BasePage);g=(0,c.__decorate)([(0,p.Component)({components:{jPicker:h.default}})],g);var y=g;t.default=y},2909:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var i=s(n("6005")),r=s(n("db90")),a=s(n("06c5")),o=s(n("3427"));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return(0,i.default)(e)||(0,r.default)(e)||(0,a.default)(e)||(0,o.default)()}},3427:function(e,t,n){"use strict";function i(){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=i},"41eb":function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */\n/* uni.scss */.TEMP_page[data-v-320dde5d]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-320dde5d]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-320dde5d]{font-size:2em;font-weight:400}.page-raw-receipt[data-v-320dde5d]{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-320dde5d]{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-320dde5d]{-webkit-box-flex:3;-webkit-flex:3;flex:3}.page-raw-receipt .header .left[data-v-320dde5d],\n.page-raw-receipt .header .right[data-v-320dde5d]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.page-raw-receipt .header .icon[data-v-320dde5d]{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-320dde5d]{width:100%;background:#fff;border-radius:%?15?%;padding:%?10?%}.page-raw-receipt .content .single[data-v-320dde5d]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .single .single-left[data-v-320dde5d]{width:80%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .single .single-left uni-view[data-v-320dde5d]{width:%?110?%;height:100%;line-height:%?100?%}.page-raw-receipt .content .single .single-right uni-button[data-v-320dde5d]{margin-top:%?15?%;width:%?150?%;height:%?70?%}.page-raw-receipt .content .Purchase-title[data-v-320dde5d]{width:100%}.page-raw-receipt .content .Purchase-title .Purchase[data-v-320dde5d]{width:60%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .Purchase-title .Purchase uni-view[data-v-320dde5d]{width:%?200?%;line-height:%?100?%}.page-raw-receipt .content .material[data-v-320dde5d]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-left[data-v-320dde5d]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-left uni-view[data-v-320dde5d]{width:%?100?%;line-height:%?100?%}.page-raw-receipt .content .material[data-v-320dde5d]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-right[data-v-320dde5d]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-right .material-right-title[data-v-320dde5d]{width:%?120?%;height:100%;line-height:%?100?%}.page-raw-receipt .content .material .material-right .material-right-code[data-v-320dde5d]{width:80%;height:100%}.page-raw-receipt .content .number[data-v-320dde5d]{height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .number .number-left[data-v-320dde5d]{width:45%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .number .number-left .number-left-title[data-v-320dde5d]{width:%?120?%;height:100%;line-height:%?100?%}.page-raw-receipt .content .number .number-left .input[data-v-320dde5d]{width:%?200?%;height:%?70?%;margin-top:%?15?%;margin-left:%?15?%}.page-raw-receipt .content .number .number-right[data-v-320dde5d]{width:55%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .number .number-right .number-right-title[data-v-320dde5d]{width:%?140?%;height:100%;text-align:center;line-height:%?100?%}.page-raw-receipt .content .number .number-right .input[data-v-320dde5d]{width:%?200?%;height:%?70?%;margin-top:%?15?%;margin-left:%?15?%}.page-raw-receipt .content .library[data-v-320dde5d]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .library .library-left[data-v-320dde5d]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .library .library-left uni-view[data-v-320dde5d]{width:%?100?%;line-height:%?100?%}.page-raw-receipt .content .library .library-left .search[data-v-320dde5d]{padding-left:30px}.page-raw-receipt .content .library .library-right[data-v-320dde5d]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .library .library-right .library-right-title[data-v-320dde5d]{width:%?120?%;height:100%;line-height:%?100?%}.page-raw-receipt .content .library .library-right .input[data-v-320dde5d]{width:%?200?%;height:%?70?%;margin-top:%?15?%;margin-left:%?15?%}.page-raw-receipt .content .add[data-v-320dde5d]{width:100%;height:%?100?%;position:relative}.page-raw-receipt .content .add uni-button[data-v-320dde5d]{position:absolute;top:%?10?%;right:%?20?%}.page-raw-receipt .bottom-bar[data-v-320dde5d]{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},5530:function(e,t,n){"use strict";n("a4d3"),n("4de4"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=r(n("ade3"));function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},6005:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var i=r(n("6b75"));function r(e){return e&&e.__esModule?e:{default:e}}function a(e){if(Array.isArray(e))return(0,i.default)(e)}},"6b75":function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},"86bb":function(e,t,n){"use strict";var i=n("fe6c"),r=n.n(i);r.a},a623:function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").every,a=n("a640"),o=n("ae40"),s=a("every"),u=o("every");i({target:"Array",proto:!0,forced:!s||!u},{every:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},ade3:function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},db90:function(e,t,n){"use strict";function i(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("d3b7"),n("3ca3"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},e007:function(e,t,n){"use strict";var i=n("4ea4");n("4de4"),n("d81d"),n("4e82"),n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ReceiptModule=void 0,n("96cf");var r=i(n("1da1")),a=i(n("bee2")),o=i(n("262e")),s=i(n("2caf")),u=i(n("d4ec")),l=n("9ab4"),d=n("6fc5"),c=i(n("0613")),p=i(n("b32d")),f=n("110c"),h=n("54a3"),v=function e(){(0,u.default)(this,e)},m=function(e){(0,o.default)(n,e);var t=(0,s.default)(n);function n(){var e;return(0,u.default)(this,n),e=t.apply(this,arguments),e.sendSpot="",e.cboPlaceList=[],e.dnNo="",e.orderInInfo=new v,e.orderInInfoList=[],e.orderInInfoListEx=[],e.returningTypeList=[],e}return(0,a.default)(n,[{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,r.default)(regeneratorRuntime.mark((function e(){var t,n;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),n=t.data.records.map((function(e){return{label:e.sendSpot,value:e.sendSpot}})),e.abrupt("return",{cboPlaceList:n});case 6:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"queryOrderInInfo",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var n,i,r,a,o;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 n=e.sent,i=n.list,r=i[0]||{},a=i.filter((function(e){return"1"===e.userDefined10})),o=i.filter((function(e){return"0"===e.userDefined10})),localStorage.setItem("list",JSON.stringify(i)),localStorage.setItem("sendSpot",JSON.stringify(i[0].sendSpot)),e.abrupt("return",{dnNo:t,orderInInfo:r,orderInInfoList:a,orderInInfoListEx:o});case 10:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"ImportQueryOrderInfo",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var n,i,r,a,o;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 n=e.sent,i=n.list,r=i[0]||{},a=i.filter((function(e){return"1"===e.userDefined10})),o=i.filter((function(e){return"0"===e.userDefined10})),localStorage.setItem("list",JSON.stringify(i)),localStorage.setItem("sendSpot",JSON.stringify(i[0].sendSpot)),e.abrupt("return",{dnNo:t,orderInInfo:r,orderInInfoList:a,orderInInfoListEx:o});case 10:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"submitOrderInEnter",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var n,i;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 n=e.sent,uni.showToast({icon:"none",title:n.msg}),i=n.list.sort((function(e,t){return Number(e.accountingStatus)-Number(t.accountingStatus)})),e.abrupt("return",{orderInInfoList:i});case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"submitImportOrder",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var n,i;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 n=e.sent,uni.showToast({icon:"none",title:n.msg}),i=n.list.sort((function(e,t){return Number(e.accountingStatus)-Number(t.accountingStatus)})),e.abrupt("return",{orderInInfoList:i});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,r.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,r.default)(regeneratorRuntime.mark((function e(t){var n;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 n=e.sent,e.abrupt("return",n);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 n;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 n=e.sent,console.log("明细》》》》》》》》》",n.list),this.DNdetailedList=n.list,e.abrupt("return",n);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}}]),n}(d.VuexModule);t.ReceiptModule=m,(0,l.__decorate)([d.Mutation],m.prototype,"updateOrderInInfoListKw",null),(0,l.__decorate)([d.Mutation],m.prototype,"updateCheckedOrderInInfoListKw",null),(0,l.__decorate)([d.Mutation],m.prototype,"checkAllOrderInInfoList",null),(0,l.__decorate)([d.MutationAction],m.prototype,"queryLocation",null),(0,l.__decorate)([d.MutationAction],m.prototype,"queryOrderInInfo",null),(0,l.__decorate)([d.MutationAction],m.prototype,"ImportQueryOrderInfo",null),(0,l.__decorate)([d.MutationAction],m.prototype,"submitOrderInEnter",null),(0,l.__decorate)([d.MutationAction],m.prototype,"submitImportOrder",null),(0,l.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],m.prototype,"changeOrderInLocation",null),(0,l.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],m.prototype,"queryByFactoryCodeAndWorkAreaCode",null),(0,l.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],m.prototype,"querydetaildlist",null),t.ReceiptModule=m=(0,l.__decorate)([(0,d.Module)({namespaced:!0,dynamic:!0,store:c.default,name:"raw.ingoods.dnReceipt"})],m);var g=(0,d.getModule)(m);t.default=g},fbf9:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i}));var i={uIcon:n("f86b").default,uSearch:n("9cf5").default,uButton:n("d9ad").default,uInput:n("d5da").default,uTable:n("8365").default,uTr:n("18fd").default,uTh:n("4145").default,uTd:n("acc3").default,uRow:n("d67a").default,uCol:n("b408").default},r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"page-raw-receipt"},[n("v-uni-view",{staticClass:"header",style:{backgroundColor:"rgba(23, 83, 234, "+e.scrollTop/100+")"}},[n("v-uni-view",{staticClass:"left"},[n("u-icon",{staticClass:"icon",attrs:{name:"arrow-left"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.uni.navigateBack({})}}})],1),n("v-uni-view",{staticClass:"title"},[e._v(e._s(e.$t("message.dn_ReceivingGoods")))]),n("v-uni-view",{staticClass:"right"})],1),n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"single"},[n("v-uni-view",{staticClass:"single-left"},[n("v-uni-view",[e._v(e._s(e.$t("message.dn_OddNumbers")))]),n("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",t)},expression:"form.documentNo"}})],1),n("v-uni-view",{staticClass:"single-right"},[n("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),n("v-uni-view",{staticClass:"Purchase-title"},[n("v-uni-view",{staticClass:"Purchase"},[n("v-uni-view",[e._v(e._s(e.$t("message.Purchase")))]),n("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),n("v-uni-view",{staticClass:"material"},[n("v-uni-view",{staticClass:"material-left"},[n("v-uni-view",[e._v(e._s(e.$t("message.Materiel")))]),n("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),n("v-uni-view",{staticClass:"material"},[n("v-uni-view",{staticClass:"material-right"},[n("v-uni-view",{staticClass:"material-right-title"},[e._v(e._s(e.$t("message.CommissionedMaterielDesc")))]),n("v-uni-view",{staticClass:"material-right-code"},[e._v(e._s(e.every.materialDesc))])],1)],1),n("v-uni-view",{staticClass:"number"},[n("v-uni-view",{staticClass:"number-left"},[n("v-uni-view",{staticClass:"number-left-title"},[e._v(e._s(e.$t("message.DemandQuantity")))]),n("u-input",{staticClass:"input",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),n("v-uni-view",{staticClass:"number-right"},[n("v-uni-view",{staticClass:"number-right-title"},[e._v(e._s(e.$t("message.Cumulative")))]),n("u-input",{staticClass:"input",attrs:{placeholder:e.$t("message.po_PleaseInput"),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),n("v-uni-view",{staticClass:"library"},[n("v-uni-view",{staticClass:"library-left"},[n("v-uni-view",[e._v(e._s(e.$t("message.CommissionedLocation")))]),n("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),n("v-uni-view",{staticClass:"library-right"},[n("v-uni-view",{staticClass:"library-right-title"},[e._v(e._s(e.$t("message.CommissionedThisNumber")))]),n("u-input",{staticClass:"input",attrs:{placeholder:e.$t("message.po_PleaseInput"),type:e.type,border:e.border},model:{value:e.receiptAmount,callback:function(t){e.receiptAmount=t},expression:"receiptAmount"}})],1)],1),n("v-uni-view",{staticClass:"add"},[n("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),n("u-table",{staticClass:"library-table"},[n("u-tr",{staticClass:"u-tr"},[n("u-th",{staticClass:"u-th"},[e._v(e._s(e.$t("message.product_Location")))]),n("u-th",{staticClass:"u-th"},[e._v(e._s(e.$t("message.product_Number")))]),n("u-th",{staticClass:"u-th"},[e._v(e._s(e.$t("message.operation")))])],1),e._l(e.LocationList,(function(t,i){return n("u-tr",{key:i,staticClass:"u-tr"},[n("u-td",{staticClass:"u-td"},[e._v(e._s(t.wlCode))]),n("u-td",{staticClass:"u-td"},[e._v(e._s(t.receiptAmount))]),n("u-td",{staticClass:"u-td"},[n("div",{staticClass:"u-td",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.deleteItem(i)}}},[e._v(e._s(e.$t("message.product_Delete")))])])],1)}))],2)],1),n("v-uni-view",{staticClass:"bottom-bar"},[n("u-row",{staticClass:"button-bar"},[n("u-col",{attrs:{span:4}},[n("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),n("u-col",{attrs:{span:4}},[n("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),n("u-col",{attrs:{span:4}},[n("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)},a=[]},fe6c:function(e,t,n){var i=n("41eb");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4f06").default;r("21ad4e83",i,!0,{sourceMap:!1,shadowMode:!1})}}]);