|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-raw-handover-feeding-Location","pages-raw-handover-feeding-detail~pages-raw-handover-feeding-index"],{"082d":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.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-c7d59f46]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-c7d59f46]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-c7d59f46]{font-size:2em;font-weight:400}.u-col-0[data-v-c7d59f46]{width:0}.u-col-1[data-v-c7d59f46]{width:8.3333333333%}.u-col-2[data-v-c7d59f46]{width:16.6666666667%}.u-col-3[data-v-c7d59f46]{width:25%}.u-col-4[data-v-c7d59f46]{width:33.3333333333%}.u-col-5[data-v-c7d59f46]{width:41.6666666667%}.u-col-6[data-v-c7d59f46]{width:50%}.u-col-7[data-v-c7d59f46]{width:58.3333333333%}.u-col-8[data-v-c7d59f46]{width:66.6666666667%}.u-col-9[data-v-c7d59f46]{width:75%}.u-col-10[data-v-c7d59f46]{width:83.3333333333%}.u-col-11[data-v-c7d59f46]{width:91.6666666667%}.u-col-12[data-v-c7d59f46]{width:100%}',""]),t.exports=e},"14b5":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.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-0b5d3b33]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-0b5d3b33]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-0b5d3b33]{font-size:2em;font-weight:400}.page-picking-order[data-v-0b5d3b33]{background:#f2f2f2 -webkit-linear-gradient(bottom,#311818,#4a78ea 51%,#1753ea) no-repeat;background:#f2f2f2 linear-gradient(0deg,#311818,#4a78ea 51%,#1753ea) no-repeat;background-size:100% %?600?%;padding:%?30?%;min-height:100%;padding-top:%?118?%;padding-bottom:%?222?%}.page-picking-order .header[data-v-0b5d3b33]{position:fixed;top:%?36?%;left:0;right:0;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-picking-order .header .title[data-v-0b5d3b33]{-webkit-box-flex:3;-webkit-flex:3;flex:3}.page-picking-order .header .left[data-v-0b5d3b33],\n.page-picking-order .header .right[data-v-0b5d3b33]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.page-picking-order .header .icon[data-v-0b5d3b33]{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-picking-order .table-wrapper[data-v-0b5d3b33]{background-color:#fff;height:%?500?%;overflow-x:auto}.page-picking-order .form[data-v-0b5d3b33]{background-color:#fff;padding:%?40?%;border-radius:%?10?%}.page-picking-order .Exhibition[data-v-0b5d3b33]{width:100%;height:%?100?%;margin-top:%?20?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .Exhibition .Exhibition-left[data-v-0b5d3b33]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .Exhibition .Exhibition-left .Exhibition-left-title[data-v-0b5d3b33]{width:50%;height:100%;text-align:center;line-height:%?100?%}.page-picking-order .Exhibition .Exhibition-left .Exhibition-left-data[data-v-0b5d3b33]{width:50%;height:100%;text-align:center;line-height:%?100?%}.page-picking-order .Exhibition .Exhibition-right[data-v-0b5d3b33]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .Exhibition .Exhibition-right .Exhibition-right-title[data-v-0b5d3b33]{width:50%;height:100%;line-height:%?100?%}.page-picking-order .Exhibition .Exhibition-right .Exhibition-right-data[data-v-0b5d3b33]{width:50%;height:100%;text-align:center;line-height:%?100?%}.page-picking-order .library[data-v-0b5d3b33]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .library .library-left[data-v-0b5d3b33]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .library .library-left uni-view[data-v-0b5d3b33]{width:%?230?%;line-height:%?100?%;text-align:center}.page-picking-order .library .library-right[data-v-0b5d3b33]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .library .library-right .library-right-title[data-v-0b5d3b33]{width:%?120?%;height:100%;line-height:%?100?%}.page-picking-order .library .library-right .input[data-v-0b5d3b33]{width:%?200?%;height:%?70?%;margin-top:%?15?%;margin-left:%?15?%}.page-picking-order .add[data-v-0b5d3b33]{width:100%;height:%?100?%;position:relative}.page-picking-order .add uni-button[data-v-0b5d3b33]{position:absolute;top:%?10?%;right:%?20?%}.page-picking-order .bottom-bar[data-v-0b5d3b33]{z-index:21;position:fixed;bottom:0;left:0;right:0}.page-picking-order .bottom-bar .container[data-v-0b5d3b33]{background:#fff;box-shadow:0 %?1?% %?20?% 0 hsla(0,0%,50.2%,.2);padding:%?20?%}.page-picking-order .bottom-bar .extra[data-v-0b5d3b33]{background-color:#fff;margin:5px;border-radius:5px;padding:0 10px}.page-picking-order .bottom-bar .bottom-info .u-form-item[data-v-0b5d3b33]{padding:0}',""]),t.exports=e},"1a6e":function(t,e,a){"use strict";a.r(e);var i=a("278c"),n=a("3bce");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("48e0");var o,s=a("f0c5"),l=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"0b5d3b33",null,!1,i["a"],o);e["default"]=l.exports},"278c":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uIcon:a("f86b").default,uInput:a("d5da").default,uButton:a("d9ad").default,uTable:a("8365").default,uTr:a("18fd").default,uTh:a("4145").default,uTd:a("acc3").default,uForm:a("aa8f").default,uRow:a("d67a").default,uCol:a("b408").default,uFormItem:a("e0a3").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"page-picking-order"},[a("v-uni-view",{staticClass:"header"},[a("v-uni-view",{staticClass:"left"},[a("u-icon",{staticClass:"icon",attrs:{name:"arrow-left"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.uni.navigateBack()}}})],1),a("v-uni-view",{staticClass:"title"},[t._v(t._s(t.$t("message.FillingMaterials")))]),a("v-uni-view",{staticClass:"right"})],1),a("v-uni-view",{staticClass:"table-wrapper"},[a("wyb-table",{ref:"table",staticClass:"table",attrs:{width:"100%","enable-check":"single","show-left-and-right-border":!0,headers:t.headers,contents:t.model.blDetailList,"show-vert-border":!1},on:{onCheck:function(e){arguments[0]=e=t.$handleEvent(e),t.handleRow.apply(void 0,arguments)}}})],1),a("v-uni-view",{staticClass:"Exhibition"},[a("v-uni-view",{staticClass:"Exhibition-left"},[a("v-uni-view",{staticClass:"Exhibition-left-title"},[t._v(t._s(t.$t("message.Pi_Station"))+":")]),a("v-uni-view",{staticClass:"Exhibition-left-data"},[t._v(t._s(t.some.sendSpot))])],1),a("v-uni-view",{staticClass:"Exhibition-right"},[a("v-uni-view",{staticClass:"Exhibition-right-title"},[t._v(t._s(t.$t("message.Pi_PickedQuantity"))+":")]),a("v-uni-view",{staticClass:"Exhibition-right-data"},[t._v(t._s(t.some.totalFillAmount))])],1)],1),a("v-uni-view",{staticClass:"library"},[a("v-uni-view",{staticClass:"library-left"},[a("v-uni-view",[t._v(t._s(t.$t("message.CommissionedLocation")))]),a("jPicker",{staticClass:"search",staticStyle:{width:"230rpx"},attrs:{sureColor:"#ff0000",showKey:"value",valKey:"value",val:t.wlCode,options:t.Location},on:{bindpicker:function(e){arguments[0]=e=t.$handleEvent(e),t.LocationChoice.apply(void 0,arguments)}}})],1),a("v-uni-view",{staticClass:"library-right"},[a("v-uni-view",{staticClass:"library-right-title"},[t._v(t._s(t.$t("message.CommissionedThisNumber")))]),a("u-input",{staticClass:"input",attrs:{type:t.type,border:t.border},model:{value:t.qty,callback:function(e){t.qty=e},expression:"qty"}})],1)],1),a("v-uni-view",{staticClass:"add"},[a("u-button",{attrs:{type:"primary"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.Add.apply(void 0,arguments)}}},[t._v(t._s(t.$t("message.product_add")))])],1),a("u-table",{staticClass:"library-table"},[a("u-tr",{staticClass:"u-tr"},[a("u-th",{staticClass:"u-th"},[t._v(t._s(t.$t("message.product_Location")))]),a("u-th",{staticClass:"u-th"},[t._v(t._s(t.$t("message.product_Number")))]),a("u-th",{staticClass:"u-th"},[t._v(t._s(t.$t("message.operation")))])],1),t._l(t.LocationList,(function(e,i){return a("u-tr",{key:i,staticClass:"u-tr"},[a("u-td",{staticClass:"u-td"},[t._v(t._s(e.wlCode))]),a("u-td",{staticClass:"u-td"},[t._v(t._s(e.qty))]),a("u-td",{staticClass:"u-td"},[a("div",{staticClass:"u-td",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.deleteItem(i)}}},[t._v(t._s(t.$t("message.product_Delete")))])])],1)}))],2),a("v-uni-view",{staticClass:"bottom-bar"},[a("div",{staticClass:"extra"},[a("u-form",{ref:"form",attrs:{model:t.form,"error-type":["toast"]}},[a("u-row",{staticClass:"bottom-info"})],1)],1),a("u-form",{ref:"form2",staticStyle:{background:"rgb(242, 242, 242)"},attrs:{model:t.form2,"error-type":["toast"]}},[a("u-row",{staticClass:"bottom-info"},[a("u-col",{attrs:{span:6}},[a("u-form-item",{attrs:{prop:"operatorPass",label:t.$t("message.Summary_Receiver"),"label-width":"120rpx"}},[a("u-input",{attrs:{placeholder:t.$t("message.po_PleaseInput")},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onOperatorConfirm.apply(void 0,arguments)}},model:{value:t.operatorName,callback:function(e){t.operatorName=e},expression:"operatorName"}})],1)],1),a("u-col",{attrs:{span:6}},[a("u-form-item",{attrs:{prop:"rfPwd",label:t.$t("message.Summary_Password")}},[a("u-input",{attrs:{type:"password",placeholder:t.$t("message.po_PleaseInput")},model:{value:t.form2.rfPwd,callback:function(e){t.$set(t.form2,"rfPwd",e)},expression:"form2.rfPwd"}})],1)],1)],1)],1),a("div",{staticClass:"container"},[a("u-row",[a("u-col",{attrs:{span:4}},[a("u-button",{staticClass:"appoint",attrs:{type:"primary"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.appoint.apply(void 0,arguments)}}},[t._v(t._s(t.$t("message.Feeding_ReplenishmentDetails")))])],1),a("u-col",{attrs:{span:4}},[a("u-button",{attrs:{type:"success"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onSubmit.apply(void 0,arguments)}}},[t._v(t._s(t.$t("message.product_Upload")))])],1),a("u-col",{attrs:{span:4}},[a("u-button",{attrs:{type:"error"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.uni.navigateBack()}}},[t._v(t._s(t.$t("message.po_Return")))])],1)],1)],1)],1)],1)},r=[]},"2b99":function(t,e,a){"use strict";var i=a("6061"),n=a.n(i);n.a},"2bf0":function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.headers=void 0;var n=i(a("cd49")),r=[{label:n.default.$t("message.po_MaterielNo"),key:"materialCode",width:220},{label:n.default.$t("message.po_MaterielDes"),key:"materialDesc",width:350},{label:n.default.$t("message.po_ActualQuantity"),key:"fillAmount"},{label:n.default.$t("message.Summary_Number"),key:"amount"},{label:n.default.$t("message.Feeding_ReplenishedQuantity"),key:"totalFillAmount"},{label:n.default.$t("message.po_Location"),key:"locationCode"}];e.headers=r},3787:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"u-row",style:{alignItems:t.uAlignItem,justifyContent:t.uJustify},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.click.apply(void 0,arguments)}}},[t._t("default")],2)},r=[]},"3bc7":function(t,e,a){var i=a("d659");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("19a78336",i,!0,{sourceMap:!1,shadowMode:!1})},"3bce":function(t,e,a){"use strict";a.r(e);var i=a("9f6e"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"48e0":function(t,e,a){"use strict";var i=a("6b17"),n=a.n(i);n.a},5530:function(t,e,a){"use strict";a("a4d3"),a("4de4"),a("4160"),a("e439"),a("dbb4"),a("b64b"),a("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var i=n(a("ade3"));function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function o(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?r(Object(a),!0).forEach((function(e){(0,i.default)(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}},6061:function(t,e,a){var i=a("082d");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("db4938fc",i,!0,{sourceMap:!1,shadowMode:!1})},"6b17":function(t,e,a){var i=a("14b5");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("7d9874d4",i,!0,{sourceMap:!1,shadowMode:!1})},"80f4":function(t,e,a){"use strict";var i=a("3bc7"),n=a.n(i);n.a},"9f6e":function(t,e,a){"use strict";var i=a("4ea4");a("4160"),a("45fc"),a("a434"),a("acd8"),a("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("5530"));a("96cf");var r=i(a("1da1")),o=i(a("d4ec")),s=i(a("bee2")),l=i(a("262e")),u=i(a("2caf")),d=a("9ab4"),c=a("60a3"),f=a("22da"),p=i(a("f59c")),h=a("54a3"),b=i(a("34b3")),g=a("2bf0"),v=a("cdd0"),m=function(t){(0,l.default)(a,t);var e=(0,u.default)(a);function a(){var t;return(0,o.default)(this,a),t=e.apply(this,arguments),t.submitForm={receiver:"",receiverName:"",password:""},t.model=p.default,t.type="text",t.wlCode="",t.border=!0,t.operatorName="",t.LocationList=[],t.Location=[],t.someIndex=0,t.some={},t.qty="",t.form={amount:null},t.form2={operatorPass:""},t.rules={amount:[{required:!0,message:t.$t("message.Pi_tip1")}]},t.locationCodeSelect=!1,t.headers=g.headers,t}return(0,s.default)(a,[{key:"LocationChoice",value:function(t){this.wlCode=t.pickerName}},{key:"onOperatorConfirm",value:function(){var t=(0,r.default)(regeneratorRuntime.mark((function t(e){var a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,v.auth.getUserInfo({loginName:e});case 3:a=t.sent,i=a.userName,this.form2.operatorPass=e,this.operatorName=i,t.next=13;break;case 9:t.prev=9,t.t0=t["catch"](0),this.form2.operatorPass="",this.operatorName="";case 13:case"end":return t.stop()}}),t,this,[[0,9]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"handleRow",value:function(t){var e=t.data;this.someIndex=e[0].index,this.some=e[0].lineData,this.model.blDetailList[this.someIndex].wlList=[]}},{key:"Add",value:function(){var t=this;if(""!=this.qty&&""!=this.wlCode)if(parseFloat(this.qty)<=0)uni.showToast({icon:"none",title:"请输入大于0的数量"});else if(parseFloat(this.qty)>p.default.blDetailList[this.someIndex].amount)uni.showToast({icon:"none",title:"不能大于需求数量,请重新输入"});else{var e=parseFloat(this.qty);if(this.LocationList.forEach((function(t){e+=parseFloat(t.qty)})),e>this.model.blDetailList[this.someIndex].amount)uni.showToast({icon:"none",title:"不能大于需求数量,请重新输入"});else{if(0!=this.LocationList.length&&this.LocationList.forEach((function(e){if(t.wlCode.sendSpot!=e.Code)return uni.showToast({icon:"none",title:"请选择正确的库位"}),!1})),this.some!={}){if(!0){var a={wlCode:this.wlCode.label,qty:this.qty,Code:this.wlCode.sendSpot};this.LocationList.push(a);var i=JSON.stringify(this.some),n=JSON.parse(i);n.wlList=null,n.wlCode=this.wlCode.label,n.qty=this.qty,this.model.blDetailList[this.someIndex].wlList.push(n),this.qty="",this.business()}}else uni.showToast({icon:"none",title:"请先选择一个物料"})}}else uni.showToast({icon:"none",title:"请输入正确的库位和数量"})}},{key:"deleteItem",value:function(t){this.LocationList.splice(t,1),this.model.blDetailList[this.someIndex].wlList.splice(t,1),this.business()}},{key:"business",value:function(){var t=0;this.LocationList.forEach((function(e){t+=parseFloat(e.qty)})),this.model.blDetailList[this.someIndex].fillAmount=t}},{key:"onShow",value:function(){var t=(0,r.default)(regeneratorRuntime.mark((function t(){var e,a,i,n,r,o=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=JSON.parse(localStorage.getItem("__GWMS_APP_STATE_DATA__")),a=h.session.user,i=JSON.parse(localStorage.getItem("sendSpot")),n={loginName:e.session.user.loginName,sendSpot:i,factoryCode:e.session.user.factoryCode,workArea:a.list[0].workareaCode},t.next=6,this.model.queryByFactoryCodeAndWorkAreaCode(n);case 6:r=t.sent,r.forEach((function(t){var e={};e.label=t.locationCode,e.value=t.locationCode+"("+t.sendSpot+")",e.sendSpot=t.sendSpot,o.Location.push(e)})),this.model.blDetailList.forEach((function(t){t.receiptAmount=0,t.wlQTyList=[]}));case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"appoint",value:function(){}},{key:"onSubmit",value:function(){var t=(0,r.default)(regeneratorRuntime.mark((function t(){var e,a,i=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.model.blDetailList,a=(0,n.default)({dataList:e},this.form2),t.next=4,this.model.saveBlDetailUpload(a).then((function(){i.toPage(i.page.raw.handover.feeding.Location)}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),a}(f.BasePage);(0,d.__decorate)([(0,c.Ref)("form")],m.prototype,"$form",void 0),(0,d.__decorate)([(0,c.Ref)("submitForm")],m.prototype,"$submitForm",void 0),(0,d.__decorate)([(0,c.Ref)("form2")],m.prototype,"$form2",void 0),m=(0,d.__decorate)([(0,c.Component)({components:{jPicker:b.default}})],m);var y=m;e.default=y},a381:function(t,e,a){"use strict";a.r(e);var i=a("e536"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},b408:function(t,e,a){"use strict";a.r(e);var i=a("f505"),n=a("f0ee");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("2b99");var o,s=a("f0c5"),l=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"c7d59f46",null,!1,i["a"],o);e["default"]=l.exports},b87c:function(t,e,a){"use strict";a("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"u-col",props:{span:{type:[Number,String],default:12},offset:{type:[Number,String],default:0},justify:{type:String,default:"start"},align:{type:String,default:"center"},textAlign:{type:String,default:"left"},stop:{type:Boolean,default:!0}},data:function(){return{gutter:20}},created:function(){this.parent=!1},mounted:function(){this.parent=this.$u.$parent.call(this,"u-row"),this.parent&&(this.gutter=this.parent.gutter)},computed:{uJustify:function(){return"end"==this.justify||"start"==this.justify?"flex-"+this.justify:"around"==this.justify||"between"==this.justify?"space-"+this.justify:this.justify},uAlignItem:function(){return"top"==this.align?"flex-start":"bottom"==this.align?"flex-end":this.align}},methods:{click:function(t){this.$emit("click")}}};e.default=i},cdd0:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.auth=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")),u=a("9ab4"),d=a("6fc5"),c=i(a("b32d")),f=i(a("0613")),p=a("110c"),h=function(t){(0,s.default)(a,t);var e=(0,l.default)(a);function a(){return(0,r.default)(this,a),e.apply(this,arguments)}return(0,o.default)(a,[{key:"getUserInfo",value:function(){var t=(0,n.default)(regeneratorRuntime.mark((function t(e){var a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.loginName,t.next=3,c.default.post(p.url.auth.userInfo,{loginName:a});case 3:if(i=t.sent,"1"===i.code){t.next=8;break}throw new Error(i.msg);case 8:return t.abrupt("return",i.list[0]);case 9:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"checkPassword",value:function(){var t=(0,n.default)(regeneratorRuntime.mark((function t(e){var a,i,n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.rfPwd,i=e.factoryCode,n=e.loginName,t.next=3,c.default.post(p.url.auth.pwd.check,{rfPwd:a,factoryCode:i,loginName:n});case 3:if(r=t.sent,"1"===r.code){t.next=8;break}throw new Error(r.msg);case 8:return t.abrupt("return",r);case 9:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}()}]),a}(d.VuexModule);(0,u.__decorate)([d.Action],h.prototype,"getUserInfo",null),(0,u.__decorate)([d.Action],h.prototype,"checkPassword",null),h=(0,u.__decorate)([(0,d.Module)({dynamic:!0,store:f.default,namespaced:!0,name:"auth"})],h);var b=(0,d.getModule)(h);e.auth=b},d659:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.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-94c204aa]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-94c204aa]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-94c204aa]{font-size:2em;font-weight:400}.u-row[data-v-94c204aa]{\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-flex-wrap:wrap;flex-wrap:wrap}',""]),t.exports=e},d67a:function(t,e,a){"use strict";a.r(e);var i=a("3787"),n=a("a381");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("80f4");var o,s=a("f0c5"),l=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"94c204aa",null,!1,i["a"],o);e["default"]=l.exports},e536:function(t,e,a){"use strict";a("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"u-row",props:{gutter:{type:[String,Number],default:20},justify:{type:String,default:"start"},align:{type:String,default:"center"},stop:{type:Boolean,default:!0}},computed:{uJustify:function(){return"end"==this.justify||"start"==this.justify?"flex-"+this.justify:"around"==this.justify||"between"==this.justify?"space-"+this.justify:this.justify},uAlignItem:function(){return"top"==this.align?"flex-start":"bottom"==this.align?"flex-end":this.align}},methods:{click:function(t){this.$emit("click")}}};e.default=i},f0ee:function(t,e,a){"use strict";a.r(e);var i=a("b87c"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},f505:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"u-col",class:["u-col-"+t.span],style:{padding:"0 "+Number(t.gutter)/2+"rpx",marginLeft:100/12*t.offset+"%",flex:"0 0 "+100/12*t.span+"%",alignItems:t.uAlignItem,justifyContent:t.uJustify,textAlign:t.textAlign},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.click.apply(void 0,arguments)}}},[t._t("default")],2)},r=[]},f59c:function(t,e,a){"use strict";var i=a("4ea4");a("4de4"),a("c740"),a("4160"),a("d81d"),a("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FeedingModule=void 0;var n=i(a("5530"));a("96cf");var r=i(a("1da1")),o=i(a("d4ec")),s=i(a("bee2")),l=i(a("262e")),u=i(a("2caf")),d=a("9ab4"),c=a("6fc5"),f=i(a("0613")),p=i(a("b32d")),h=a("110c"),b=a("cdd0"),g=a("54a3"),v=function(t){(0,l.default)(a,t);var e=(0,u.default)(a);function a(){var t;return(0,o.default)(this,a),t=e.apply(this,arguments),t.blDetailList=[],t.locationList=[],t}return(0,s.default)(a,[{key:"clearState",value:function(){this.blDetailList=[]}},{key:"confirmCheckedBlDetailList",value:function(t){this.blDetailList.filter((function(t){return t.checked})).forEach((function(e){t.locationCode&&(e.wkposCodeP=t.locationCode),t.amount&&(e.fillAmount=t.amount)}))}},{key:"saveBlDetailUpload",value:function(){var t=(0,r.default)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,b.auth.checkPassword({factoryCode:g.session.factoryCode,loginName:g.session.loginName,rfPwd:e.rfPwd});case 2:return t.next=4,p.default.post(h.url.bl.u,(0,n.default)({factoryCode:g.session.factoryCode,loginName:g.session.loginName},e));case 4:uni.showToast({icon:"success",title:"success"});case 5:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"unlockBlDetailList",value:function(){var t=(0,r.default)(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=this.blDetailList.map((function(t){return t.sapSupplyId})),a={factoryCode:g.session.factoryCode,loginName:g.session.loginName,sapSupplyIdList:e},t.next=5,p.default.post(h.url.bl.unlock,a,{custom:{hideError:!0}});case 5:t.next=9;break;case 7:t.prev=7,t.t0=t["catch"](0);case 9:case"end":return t.stop()}}),t,this,[[0,7]])})));function e(){return t.apply(this,arguments)}return e}()},{key:"queryBlDetailList",value:function(){var t=(0,r.default)(regeneratorRuntime.mark((function t(e){var a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,p.default.post(h.url.bl.query,(0,n.default)({factoryCode:g.session.factoryCode,loginName:g.session.loginName},e));case 2:return a=t.sent,i=a.list,t.abrupt("return",{blDetailList:i});case 5:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"queryLocationList",value:function(){var t=(0,r.default)(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,p.default.post(h.url.auth.query.location,{factoryCode:g.session.factoryCode,loginName:g.session.loginName,workareaCode:g.session.workareaCode});case 2:return e=t.sent,a=e.list.map((function(t){return{label:t.locationCode,value:t.locationCode}})),t.abrupt("return",{locationList:a});case 5:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}()},{key:"queryByFactoryCodeAndWorkAreaCode",value:function(){var t=(0,r.default)(regeneratorRuntime.mark((function t(e){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,p.default.post("/wmspda/fg/queryByFactoryCodeAndWorkAreaCode",e);case 2:return a=t.sent,t.abrupt("return",a);case 4:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"hasBlDetailChecked",get:function(){return this.checkedBlDetailList.length>0}},{key:"checkedBlDetailList",get:function(){return this.blDetailList.filter((function(t){return t.checked}))}},{key:"hasBlDetailFillAmount",get:function(){return this.blDetailList.findIndex((function(t){return t.fillAmount}))>-1}},{key:"blDetailUploadList",get:function(){return this.blDetailList.map((function(t){return t.checked||(t.fillAmount=0),t}))}}]),a}(c.VuexModule);e.FeedingModule=v,(0,d.__decorate)([c.Mutation],v.prototype,"clearState",null),(0,d.__decorate)([c.Mutation],v.prototype,"confirmCheckedBlDetailList",null),(0,d.__decorate)([(0,c.Action)({commit:"clearState"})],v.prototype,"saveBlDetailUpload",null),(0,d.__decorate)([c.Action],v.prototype,"unlockBlDetailList",null),(0,d.__decorate)([c.MutationAction],v.prototype,"queryBlDetailList",null),(0,d.__decorate)([c.MutationAction],v.prototype,"queryLocationList",null),(0,d.__decorate)([(0,c.Action)({commit:"updateCheckedOrderInInfoListKw"})],v.prototype,"queryByFactoryCodeAndWorkAreaCode",null),e.FeedingModule=v=(0,d.__decorate)([(0,c.Module)({namespaced:!0,dynamic:!0,store:f.default,name:"raw.handover.feeding"})],v);var m=(0,c.getModule)(v);e.default=m}}]); |