|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-commission-RUS-Out-index"],{1212:function(e,t,a){"use strict";a.r(t);var i=a("d442"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(r);t["default"]=n.a},"28f1":function(e,t,a){var i=a("db5f");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("4f06").default;n("2847f59c",i,!0,{sourceMap:!1,shadowMode:!1})},"291d":function(e,t,a){var i=a("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-3783e340]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-3783e340]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-3783e340]{font-size:2em;font-weight:400}.u-search[data-v-3783e340]{\ndisplay:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;\n-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-flex:1;-webkit-flex:1;flex:1}.u-content[data-v-3783e340]{\ndisplay:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;\n-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:0 %?18?%;-webkit-box-flex:1;-webkit-flex:1;flex:1}.u-clear-icon[data-v-3783e340]{\ndisplay:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;\n-webkit-box-align:center;-webkit-align-items:center;align-items:center}.u-input[data-v-3783e340]{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:%?28?%;line-height:1;margin:0 %?10?%;color:#909399}.u-close-wrap[data-v-3783e340]{width:%?40?%;height:100%;\ndisplay:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;\n-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;border-radius:50%}.u-placeholder-class[data-v-3783e340]{color:#909399}.u-action[data-v-3783e340]{font-size:%?28?%;color:#303133;width:0;overflow:hidden;-webkit-transition:all .3s;transition:all .3s;white-space:nowrap;text-align:center}.u-action-active[data-v-3783e340]{width:%?80?%;margin-left:%?10?%}',""]),e.exports=t},"43f6":function(e,t,a){"use strict";a.r(t);var i=a("980b"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(r);t["default"]=n.a},5530:function(e,t,a){"use strict";a("a4d3"),a("4de4"),a("4160"),a("e439"),a("dbb4"),a("b64b"),a("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(a("ade3"));function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function o(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?r(Object(a),!0).forEach((function(t){(0,i.default)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}},"60a3b":function(e,t,a){"use strict";var i=a("a0d2"),n=a.n(i);n.a},"8bf2":function(e,t,a){"use strict";var i=a("28f1"),n=a.n(i);n.a},"980b":function(e,t,a){"use strict";a("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={name:"u-search",props:{shape:{type:String,default:"round"},bgColor:{type:String,default:"#f2f2f2"},placeholder:{type:String,default:"请输入关键字"},clearabled:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},showAction:{type:Boolean,default:!0},actionStyle:{type:Object,default:function(){return{}}},actionText:{type:String,default:"搜索"},inputAlign:{type:String,default:"left"},disabled:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},borderColor:{type:String,default:"none"},value:{type:String,default:""},height:{type:[Number,String],default:64},inputStyle:{type:Object,default:function(){return{}}},maxlength:{type:[Number,String],default:"-1"},searchIconColor:{type:String,default:""},color:{type:String,default:"#606266"},placeholderColor:{type:String,default:"#909399"},margin:{type:String,default:"0"},searchIcon:{type:String,default:"search"}},data:function(){return{keyword:"",showClear:!1,show:!1,focused:this.focus}},watch:{keyword:function(e){this.$emit("input",e),this.$emit("change",e)},value:{immediate:!0,handler:function(e){this.keyword=e}}},computed:{showActionBtn:function(){return!(this.animation||!this.showAction)},borderStyle:function(){return this.borderColor?"1px solid ".concat(this.borderColor):"none"}},methods:{inputChange:function(e){this.keyword=e.detail.value},clear:function(){var e=this;this.keyword="",this.$nextTick((function(){e.$emit("clear")}))},search:function(e){this.$emit("search",e.detail.value);try{uni.hideKeyboard()}catch(e){}},custom:function(){this.$emit("custom",this.keyword);try{uni.hideKeyboard()}catch(e){}},getFocus:function(){this.focused=!0,this.animation&&this.showAction&&(this.show=!0),this.$emit("focus",this.keyword)},blur:function(){var e=this;setTimeout((function(){e.focused=!1}),100),this.show=!1,this.$emit("blur",this.keyword)},clickHandler:function(){this.disabled&&this.$emit("click")}}};t.default=i},"9cf5":function(e,t,a){"use strict";a.r(t);var i=a("c690"),n=a("43f6");for(var r in n)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(r);a("60a3b");var o,s=a("f0c5"),l=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"3783e340",null,!1,i["a"],o);t["default"]=l.exports},"9e6e":function(e,t,a){"use strict";a.r(t);var i=a("d646"),n=a("1212");for(var r in n)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(r);a("8bf2");var o,s=a("f0c5"),l=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"e007cfd0",null,!1,i["a"],o);t["default"]=l.exports},a0d2:function(e,t,a){var i=a("291d");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("4f06").default;n("4fc5a69a",i,!0,{sourceMap:!1,shadowMode:!1})},a623:function(e,t,a){"use strict";var i=a("23e7"),n=a("b727").every,r=a("a640"),o=a("ae40"),s=r("every"),l=o("every");i({target:"Array",proto:!0,forced:!s||!l},{every:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})},aa57:function(e,t,a){"use strict";var i=a("4ea4");a("4160"),a("d81d"),a("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ReturningModule=void 0;var n=i(a("5530"));a("96cf");var r=i(a("1da1")),o=i(a("bee2")),s=i(a("262e")),l=i(a("2caf")),c=i(a("d4ec")),u=a("9ab4"),d=a("6fc5"),f=i(a("0613")),p=i(a("b32d")),h=a("110c"),m=a("54a3"),b=function e(){(0,c.default)(this,e)},w=function(e){(0,s.default)(a,e);var t=(0,l.default)(a);function a(){var e;return(0,c.default)(this,a),e=t.apply(this,arguments),e.returningTypeList=[],e.materielList=[],e.locationCodeList=[],e.LocList=[],e.oneMaterielDetail={},e.orderInInfo=new b,e.code="",e.ContainerCode="",e}return(0,o.default)(a,[{key:"queryOrder",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(h.url.material.commission.goOut.queryOrder,(0,n.default)((0,n.default)({},t),{},{loginName:m.session.loginName,factoryCode:m.session.factoryCode}));case 2:return a=e.sent,i=a.data.records[0]||{},e.abrupt("return",{orderInInfo:i});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"outInfo",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(h.url.material.commission.goOut.outInfo,{factoryCode:m.session.factoryCode,poNo:t,loginName:m.session.loginName});case 2:return a=e.sent,i=a.map((function(e){return{label:e.locationCode,value:e.locationCode}})),e.abrupt("return",{locationCodeList:i});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"materialComplete",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(h.url.material.commission.goOut.materialComplete,(0,n.default)({factoryCode:m.session.factoryCode,loginName:m.session.loginName},t));case 2:a=e.sent,console.log(a,">>>>>res");case 4:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"tluSubmit",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a,i,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={barcode:t[0].barCode,loginName:m.session.loginName},i={},e.next=4,p.default.post(h.url.outbound.stoOutbound.checkScan,a);case 4:return n=e.sent,r=n.data,console.log("shneme a ",r.records),i=r.records[0],r.records[0].materialCode=t[0].productCode,r.records[0].materialDesc=t[0].productDescZh,console.log("aaaaa",i),e.abrupt("return",i);case 12:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"confirm",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a,i,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(h.url.outbound.stoOutbound.Bookkeeping,t);case 2:return a=e.sent,i=a.code,n=a.data,console.log("res数据",n,i),r=[],e.abrupt("return",{code:i,materielList:r});case 8:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"closeCode",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(h.url.outbound.stoOutbound.close,{poNo:t,loginName:m.session.loginName,factoryCode:m.session.factoryCode});case 2:return a=e.sent,i=a.code,e.abrupt("return",{code:i});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryCodeAndWorkAreaCode",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post("/wmspda/fg/queryByFactoryCodeAndWorkAreaCode",t);case 2:return a=e.sent,console.log(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>",a),i=a,console.log("LocList",i),e.abrupt("return",{LocList:i});case 7:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"queryItemLoc",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(){var t,a,i,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,p.default.post(h.url.sortscan.save.queryWlByMat,t);case 3:return a=e.sent,i=[],a.forEach((function(e){var t={label:e.locationCode,value:e.locationCode+"("+e.sendSpot+")("+e.amount+")"};i.push(t)})),e.abrupt("return",{LocList:i});case 7:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"queryOutsourcing",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(h.url.outbound.stoOutbound.outsourcingQueryOrder,{poNo:t,loginName:m.session.loginName,factoryCode:m.session.factoryCode});case 2:return a=e.sent,e.abrupt("return",a);case 4:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"submitOutsourcing",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(h.url.outbound.stoOutbound.materialCompleteRussia,t);case 2:return a=e.sent,e.abrupt("return",a);case 4:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"querydetaildlist",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post("/wmspda/material/outsourcing/outInfo",t);case 2:return a=e.sent,console.log("明细》》》》》》》》》",a.list),this.detailedList=a.data,e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"searchBarcode",value:function(){var e=(0,r.default)(regeneratorRuntime.mark((function e(t){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.default.post(h.url.auth.query.barcode,{factoryCode:m.session.factoryCode,loginName:m.session.loginName,barcode:t.barcode,productCode:t.productCode});case 2:return a=e.sent,i=a.data,e.abrupt("return",{ContainerCode:i});case 5:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()}]),a}(d.VuexModule);t.ReturningModule=w,(0,u.__decorate)([d.Action],w.prototype,"queryOrder",null),(0,u.__decorate)([d.MutationAction],w.prototype,"outInfo",null),(0,u.__decorate)([d.Action],w.prototype,"materialComplete",null),(0,u.__decorate)([d.Action],w.prototype,"tluSubmit",null),(0,u.__decorate)([d.MutationAction],w.prototype,"confirm",null),(0,u.__decorate)([d.MutationAction],w.prototype,"closeCode",null),(0,u.__decorate)([d.MutationAction],w.prototype,"queryCodeAndWorkAreaCode",null),(0,u.__decorate)([d.MutationAction],w.prototype,"queryItemLoc",null),(0,u.__decorate)([d.Action],w.prototype,"queryOutsourcing",null),(0,u.__decorate)([d.Action],w.prototype,"submitOutsourcing",null),(0,u.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],w.prototype,"querydetaildlist",null),(0,u.__decorate)([d.MutationAction],w.prototype,"searchBarcode",null),t.ReturningModule=w=(0,u.__decorate)([(0,d.Module)({namespaced:!0,dynamic:!0,store:f.default,name:"product.outbound.RUS-Out"})],w);var g=(0,d.getModule)(w);t.default=g},bbe9:function(e,t,a){"use strict";var i=a("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.detailHeader=t.headers=void 0;var n=i(a("cd49")),r=[{label:n.default.$t("message.CommissionedSingleNumber"),key:"poNo",width:200},{label:n.default.$t("message.po_MaterielNo"),key:"materialCode",width:300},{label:n.default.$t("message.CommissionedMaterielDesc"),key:"materialDesc",width:300},{label:n.default.$t("message.CommissionedGoOutNumber"),key:"outAmount",width:200},{label:n.default.$t("message.CommissionedLocation"),key:"wlCode",width:200},{label:n.default.$t("message.Container"),key:"userDefined6",width:400}];t.headers=r;var o=[{label:n.default.$t("message.po_MaterielNo"),key:"materialCode",width:301},{label:n.default.$t("message.CommissionedLocation"),key:"wlCode",width:186},{label:n.default.$t("message.product_Number"),key:"nowAmount",width:186},{label:n.default.$t("message.Container"),key:"barCode",width:400}];t.detailHeader=o},c690:function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return i}));var i={uIcon:a("f86b").default},n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"u-search",style:{margin:e.margin},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clickHandler.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"u-content",style:{backgroundColor:e.bgColor,borderRadius:"round"==e.shape?"100rpx":"10rpx",border:e.borderStyle,height:e.height+"rpx"}},[a("v-uni-view",{staticClass:"u-icon-wrap"},[a("u-icon",{staticClass:"u-clear-icon",attrs:{size:30,name:e.searchIcon,color:e.searchIconColor?e.searchIconColor:e.color}})],1),a("v-uni-input",{staticClass:"u-input",style:[{textAlign:e.inputAlign,color:e.color,backgroundColor:e.bgColor},e.inputStyle],attrs:{"confirm-type":"search",value:e.value,disabled:e.disabled,focus:e.focus,maxlength:e.maxlength,"placeholder-class":"u-placeholder-class",placeholder:e.placeholder,"placeholder-style":"color: "+e.placeholderColor,type:"text"},on:{blur:function(t){arguments[0]=t=e.$handleEvent(t),e.blur.apply(void 0,arguments)},confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.search.apply(void 0,arguments)},input:function(t){arguments[0]=t=e.$handleEvent(t),e.inputChange.apply(void 0,arguments)},focus:function(t){arguments[0]=t=e.$handleEvent(t),e.getFocus.apply(void 0,arguments)}}}),e.keyword&&e.clearabled&&e.focused?a("v-uni-view",{staticClass:"u-close-wrap",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clear.apply(void 0,arguments)}}},[a("u-icon",{staticClass:"u-clear-icon",attrs:{name:"close-circle-fill",size:"34",color:"#c0c4cc"}})],1):e._e()],1),a("v-uni-view",{staticClass:"u-action",class:[e.showActionBtn||e.show?"u-action-active":""],style:[e.actionStyle],on:{click:function(t){t.stopPropagation(),t.preventDefault(),arguments[0]=t=e.$handleEvent(t),e.custom.apply(void 0,arguments)}}},[e._v(e._s(e.actionText))])],1)},r=[]},d442:function(e,t,a){"use strict";var i=a("4ea4");a("a623"),a("4160"),a("a434"),a("acd8"),a("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("96cf");var n=i(a("1da1")),r=i(a("d4ec")),o=i(a("bee2")),s=i(a("262e")),l=i(a("2caf")),c=a("9ab4"),u=a("60a3"),d=a("22da"),f=i(a("34b3")),p=a("54a3"),h=a("bbe9"),m=i(a("aa57")),b=function(e){(0,s.default)(a,e);var t=(0,l.default)(a);function a(){var e;return(0,r.default)(this,a),e=t.apply(this,arguments),e.model=m.default,e.detailHeader=h.detailHeader,e.form={documentNo:""},e.material={},e.materialList=[],e.list=[],e.every="",e.value="",e.type="text",e.border=!0,e.nowAmount="",e.Loc=[],e.wlCode="",e.materialIndex=null,e.Barcode="",e.isfocus=!1,e.Container="",e}return(0,o.default)(a,[{key:"QueryLoc",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 e.next=2,this.model.queryItemLoc({workArea:p.session.workareaCode,loginName:p.session.loginName,sendSpot:null,materialCode:this.every.materialCode,factoryCode:p.session.factoryCode});case 2:this.Loc=[],this.wlCode="",0==this.model.LocList.length?uni.showModal({content:this.$t("message.selected"),showCancel:!1,confirmText:this.$t("message.workArea_Confirm")}):(this.Loc=this.model.LocList,this.wlCode=this.Loc[0]);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"empty",value:function(){this.list=[],this.wlCode="",this.nowAmount="",this.every="",this.materialList=[],this.Loc=[],this.Barcode="",this.Container=""}},{key:"close",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){var t=this;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.Commission_tips1")),e.abrupt("return");case 3:uni.showModal({content:this.$t("message.closing"),cancelText:this.$t("message.product_Cancel"),confirmText:this.$t("message.workArea_Confirm"),success:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a.confirm){e.next=6;break}return e.next=3,t.model.closeCode(t.form.documentNo);case 3:"1"==t.model.code&&(t.customToast(t.$t("message.Warehouse_Tip9")),t.empty(),t.form.documentNo),e.next=8;break;case 6:if(!a.cancel){e.next=8;break}return e.abrupt("return");case 8:case"end":return e.stop()}}),e)})));function a(t){return e.apply(this,arguments)}return a}()});case 4: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,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.list=[],this.nowAmount="",this.every="",""!=this.form.documentNo){e.next=6;break}return this.customToast(this.$t("message.Commission_tips1")),e.abrupt("return");case 6:return e.next=8,this.model.queryOutsourcing(this.form.documentNo);case 8:t=e.sent,this.material=t.data,this.materialList=[],this.material.forEach((function(e){var t={};t.label=e.materialCode,t.value=e.materialCode,a.materialList.push(t)})),this.every=this.material[0],this.materialIndex=0;case 14: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.nowAmount="",this.material.forEach(function(){var a=(0,n.default)(regeneratorRuntime.mark((function a(i,n){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(i.materialCode!=e.pickerName.value){a.next=4;break}return t.every=i,t.materialIndex=n,a.abrupt("return");case 4:case"end":return a.stop()}}),a)})));return function(e,t){return a.apply(this,arguments)}}())}},{key:"LocationChoice",value:function(e){this.wlCode=e.pickerName}},{key:"searchBarcode",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!=this.Barcode){e.next=3;break}return this.customToast(this.$t("message.barcode")),e.abrupt("return");case 3:return this.Container="",this.nowAmount="",t={productCode:this.every.materialCode,barcode:this.Barcode},e.next=8,this.model.searchBarcode(t);case 8:this.Container=this.model.ContainerCode,a={label:this.Container.locCode,value:this.Container.locCode+"("+this.Container.sendSpot+")",sendSpot:this.Container.sendSpot},this.Loc=[],this.Loc.push(a),this.wlCode=this.Loc[0],null==this.Container.cpRef4?this.nowAmount=this.Container.qty:this.nowAmount=parseFloat(this.Container.qty)-parseFloat(this.Container.cpRef4);case 14:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"Add",value:function(){var e=this;if(""!=this.Container){if(null==this.Container.cpRef4){if(parseFloat(this.nowAmount)>parseFloat(this.Container.qty))return void this.customToast(this.$t("message.AppendMateriel3"))}else if(parseFloat(this.nowAmount)>parseFloat(this.Container.qty)-parseFloat(this.Container.cpRef4))return void this.customToast(this.$t("message.AppendMateriel3"));var t=0;if(0!=this.list.length&&this.list.forEach((function(a){a.barCode==e.Container.barcode&&(t+=parseFloat(a.nowAmount))})),null==this.Container.cpRef4){if(parseFloat(this.nowAmount)+t>this.Container.qty)return void this.customToast(this.$t("message.AppendMateriel3"))}else if(parseFloat(this.nowAmount)+t>this.Container.qty-parseFloat(this.Container.cpRef4))return void this.customToast(this.$t("message.AppendMateriel3"));if(this.every)if(""!=this.nowAmount&&""!=this.wlCode)if(parseFloat(this.nowAmount)<=0)this.customToast(this.$t("message.Commission_tips3"));else{var a=parseFloat(this.nowAmount)+parseFloat(this.every.outAmount);if(a>parseFloat(this.every.orderAmount))uni.showModal({title:this.$t("message.Pi_tip"),content:this.$t("message.demandQuantity"),cancelText:this.$t("message.Cancel"),confirmText:this.$t("message.workArea_Confirm"),success:function(t){if(t.confirm){var a={poNo:e.form.documentNo,materialCode:e.every.materialCode,loginName:e.session.loginName,factoryCode:e.session.factoryCode,wlCode:e.wlCode.label,nowAmount:e.nowAmount,barCode:e.Container.barcode};e.list.push(a),e.material[e.materialIndex].outAmount+=parseFloat(e.list[e.list.length-1].nowAmount),e.nowAmount="",e.Container="",e.Loc=[],e.Barcode="",e.isfocus=!1,e.$nextTick((function(){e.isfocus=!0}))}else if(t.cancel)return}});else{var i={poNo:this.form.documentNo,materialCode:this.every.materialCode,loginName:this.session.loginName,factoryCode:this.session.factoryCode,wlCode:this.wlCode.label,nowAmount:this.nowAmount,barCode:this.Container.barcode};this.list.push(i),this.material[this.materialIndex].outAmount+=parseFloat(this.list[this.list.length-1].nowAmount),this.nowAmount="",this.Container="",this.Loc=[],this.Barcode=""}}else this.customToast(this.$t("message.Commission_tips2"));else this.customToast(this.$t("message.Commission_tips6"))}else this.customToast(this.$t("message.scanningContainer"))}},{key:"deleteItem",value:function(e){var t=this;uni.showModal({content:this.$t("message.product_Delete"),cancelText:this.$t("message.Cancel"),confirmText:this.$t("message.workArea_Confirm"),success:function(a){var i;if(a.confirm)t.list.splice(e.contentIndex,1),t.material.forEach((function(t,a){t.materialCode==e.lineData.materialCode&&(i=a)})),t.material[i].outAmount-=parseFloat(e.lineData.nowAmount);else if(a.cancel)return}})}},{key:"onSubmit",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return null!=this.list&&0!=this.list.length||this.customToast(this.$t("message.Commission_tips5")),e.next=3,this.model.submitOutsourcing(this.list);case 3:return this.empty(),e.next=6,this.query();case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"bill",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){var t;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={loginName:p.session.loginName,poNo:this.form.documentNo,factoryCode:p.session.factoryCode},e.next=6,this.model.querydetaildlist(t);case 6:this.toPage(this.page.raw.commission.RUSgoOut.detail);case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),a}(d.BasePage);b=(0,c.__decorate)([(0,u.Component)({components:{jPicker:f.default}})],b);var w=b;t.default=w},d646:function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return i}));var i={uIcon:a("f86b").default,uSearch:a("9cf5").default,uButton:a("d9ad").default,uInput:a("d5da").default,uRow:a("d67a").default,uCol:a("b408").default},n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"page-raw-receipt"},[a("v-uni-view",{staticClass:"header",style:{backgroundColor:"rgba(23, 83, 234, "+e.scrollTop/100+")"}},[a("v-uni-view",{staticClass:"left"},[a("u-icon",{staticClass:"icon",attrs:{name:"arrow-left"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.uni.navigateBack()}}})],1),a("v-uni-view",{staticClass:"title"},[e._v(e._s(e.$t("message.CommissionGoOut")))]),a("v-uni-view",{staticClass:"right"})],1),a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"single"},[a("v-uni-view",{staticClass:"single-left"},[a("v-uni-view",{staticClass:"centerstyle"},[e._v(e._s(e.$t("message.CommissionedSingleNumber")))]),a("u-search",{attrs:{placeholder:e.$t("message.InventoryPleaseScan"),"show-action":!1},on:{search:function(t){arguments[0]=t=e.$handleEvent(t),e.query.apply(void 0,arguments)}},model:{value:e.form.documentNo,callback:function(t){e.$set(e.form,"documentNo","string"===typeof t?t.trim():t)},expression:"form.documentNo"}})],1),a("v-uni-view",{staticClass:"single-right"},[a("u-button",{attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.query.apply(void 0,arguments)}}},[e._v(e._s(e.$t("message.Query")))])],1)],1),a("v-uni-view",{staticClass:"material"},[a("v-uni-view",{staticClass:"material-left"},[a("v-uni-view",[e._v(e._s(e.$t("message.CommissionedMaterielNo")))]),a("jPicker",{staticClass:"search",staticStyle:{width:"260rpx"},attrs:{sureColor:"#ff0000",showKey:"value",valKey:"value",val:e.every.materialCode,options:e.materialList},on:{bindpicker:function(t){arguments[0]=t=e.$handleEvent(t),e.materialChoice.apply(void 0,arguments)}}})],1)],1),a("v-uni-view",{staticClass:"material"},[a("v-uni-view",{staticClass:"material-right"},[a("v-uni-view",{staticClass:"material-right-title"},[e._v(e._s(e.$t("message.CommissionedMaterielDesc")))]),a("v-uni-view",{staticClass:"material-right-code",staticStyle:{overflow:"hidden"}},[e._v(e._s(e.every.materialDesc))])],1)],1),a("v-uni-view",{staticClass:"number"},[a("v-uni-view",{staticClass:"number-left"},[a("v-uni-view",{staticClass:"number-left-title"},[e._v(e._s(e.$t("message.CommissionedDemandData")))]),a("u-input",{staticClass:"input",staticStyle:{padding:"'0'",flex:"0.9"},attrs:{placeholder:" ",type:e.type,border:e.border,disabled:!0},model:{value:e.every.orderAmount,callback:function(t){e.$set(e.every,"orderAmount",t)},expression:"every.orderAmount"}})],1),a("v-uni-view",{staticClass:"number-right"},[a("v-uni-view",{staticClass:"number-right-title"},[e._v(e._s(e.$t("message.Cumulative")))]),a("u-input",{staticClass:"input",staticStyle:{padding:"'0'"},attrs:{placeholder:" ",type:e.type,border:e.border,disabled:!0},model:{value:e.every.outAmount,callback:function(t){e.$set(e.every,"outAmount",t)},expression:"every.outAmount"}})],1)],1),a("v-uni-view",{staticClass:"single"},[a("v-uni-view",{staticClass:"single-left"},[a("v-uni-view",[e._v(e._s(e.$t("message.Container"))+":")]),a("u-search",{staticStyle:{"z-index":"10000"},attrs:{placeholder:e.$t("message.PleaseScan"),focus:e.isfocus,"show-action":!1},on:{search:function(t){arguments[0]=t=e.$handleEvent(t),e.searchBarcode.apply(void 0,arguments)}},model:{value:e.Barcode,callback:function(t){e.Barcode=t},expression:"Barcode"}})],1),a("v-uni-view",{staticClass:"single-right"},[a("u-button",{attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.Add.apply(void 0,arguments)}}},[e._v(e._s(e.$t("message.product_add")))])],1)],1),a("v-uni-view",{staticClass:"library"},[a("v-uni-view",{staticClass:"library-left"},[a("v-uni-view",[e._v(e._s(e.$t("message.CommissionedLocation")))]),a("jPicker",{staticClass:"search",staticStyle:{width:"230rpx"},attrs:{sureColor:"#ff0000",showKey:"value",valKey:"value",val:e.wlCode.value,options:e.Loc},on:{bindpicker:function(t){arguments[0]=t=e.$handleEvent(t),e.LocationChoice.apply(void 0,arguments)}}})],1),a("v-uni-view",{staticClass:"library-right"},[a("v-uni-view",{staticClass:"library-right-title"},[e._v(e._s(e.$t("message.CommissionedThisNumber")))]),a("u-input",{staticClass:"input",attrs:{placeholder:e.$t("message.po_PleaseInput"),type:"number",border:e.border},model:{value:e.nowAmount,callback:function(t){e.nowAmount=t},expression:"nowAmount"}})],1)],1),a("wyb-table",{ref:"table",staticClass:"table",attrs:{width:"100%","show-left-and-right-border":!0,headers:e.detailHeader,contents:e.list,"show-vert-border":!1},on:{onCellClick:function(t){arguments[0]=t=e.$handleEvent(t),e.deleteItem(t)}}})],1),a("v-uni-view",{staticClass:"bottom-bar"},[a("u-row",{staticClass:"button-bar"},[a("u-col",{attrs:{span:4}},[a("u-button",{attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.bill.apply(void 0,arguments)}}},[e._v(e._s(e.$t("message.detailed")))])],1),a("u-col",{attrs:{span:4}},[a("u-button",{attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onSubmit.apply(void 0,arguments)}}},[e._v(e._s(e.$t("message.po_Submit")))])],1),a("u-col",{attrs:{span:4}},[a("u-button",{attrs:{type:"error"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.uni.navigateBack()}}},[e._v(e._s(e.$t("message.po_Return")))])],1)],1)],1)],1)},r=[]},db5f:function(e,t,a){var i=a("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-e007cfd0]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-e007cfd0]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-e007cfd0]{font-size:2em;font-weight:400}.page-raw-receipt[data-v-e007cfd0]{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-e007cfd0]{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-e007cfd0]{-webkit-box-flex:3;-webkit-flex:3;flex:3}.page-raw-receipt .header .left[data-v-e007cfd0],\n.page-raw-receipt .header .right[data-v-e007cfd0]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.page-raw-receipt .header .icon[data-v-e007cfd0]{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-e007cfd0]{width:100%;background:#fff;border-radius:%?15?%;padding:%?10?%}.page-raw-receipt .content .single[data-v-e007cfd0]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .single .single-left[data-v-e007cfd0]{width:80%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .single .single-left uni-view[data-v-e007cfd0]{width:%?130?%;height:100%;line-height:%?30?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.page-raw-receipt .content .single .single-right uni-button[data-v-e007cfd0]{margin-top:%?15?%;width:%?150?%;height:%?70?%}.page-raw-receipt .content .material[data-v-e007cfd0]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-left[data-v-e007cfd0]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-left uni-view[data-v-e007cfd0]{width:%?140?%;line-height:%?30?%;word-break:break-word;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.page-raw-receipt .content .material .material-left .search[data-v-e007cfd0]{padding-left:9px}.page-raw-receipt .content .material[data-v-e007cfd0]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-right[data-v-e007cfd0]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .material .material-right .material-right-title[data-v-e007cfd0]{width:%?322?%;height:100%;line-height:%?30?%;word-break:break-word;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;display:flex;align-items:center}.page-raw-receipt .content .material .material-right .material-right-code[data-v-e007cfd0]{width:80%;height:100%;line-height:%?100?%;text-align:left;padding-left:10px}.page-raw-receipt .content .number[data-v-e007cfd0]{height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .number .number-left[data-v-e007cfd0]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .number .number-left .number-left-title[data-v-e007cfd0]{width:%?120?%;height:100%;line-height:%?30?%;word-break:break-word;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.page-raw-receipt .content .number .number-left .input[data-v-e007cfd0]{width:%?200?%;height:%?70?%;margin-top:%?15?%;margin-left:%?15?%}.page-raw-receipt .content .number .number-right[data-v-e007cfd0]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .number .number-right .number-right-title[data-v-e007cfd0]{width:%?120?%;height:100%;line-height:%?100?%;text-align:center}.page-raw-receipt .content .number .number-right .input[data-v-e007cfd0]{width:%?200?%;height:%?70?%;margin-top:%?15?%;margin-left:%?30?%}.page-raw-receipt .content .library[data-v-e007cfd0]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .library .library-left[data-v-e007cfd0]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .library .library-left uni-view[data-v-e007cfd0]{width:%?70?%;line-height:%?22?%;word-break:break-word;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.page-raw-receipt .content .library .library-left .search[data-v-e007cfd0]{padding-left:1px;text-align:center;white-space:nowrap;overflow:scroll}.page-raw-receipt .content .library .library-right[data-v-e007cfd0]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-raw-receipt .content .library .library-right .library-right-title[data-v-e007cfd0]{width:%?120?%;height:100%;line-height:%?100?%;text-align:center}.page-raw-receipt .content .library .library-right .input[data-v-e007cfd0]{width:%?200?%;height:%?70?%;margin-top:%?15?%;margin-left:%?30?%}.page-raw-receipt .content .add[data-v-e007cfd0]{width:100%;height:%?100?%;position:absolute;top:349px;left:0}.page-raw-receipt .content .add uni-button[data-v-e007cfd0]{position:absolute;top:%?3?%;right:%?35?%;z-index:10000}.page-raw-receipt .bottom-bar[data-v-e007cfd0]{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?%}.centerstyle[data-v-e007cfd0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}',""]),e.exports=t}}]); |