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
31 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-handover-feeding-Location"],{"0542":function(t,e,i){var a=i("24fb");e=a(!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-244f4436]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-244f4436]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-244f4436]{font-size:2em;font-weight:400}.page-picking-order[data-v-244f4436]{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-244f4436]{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-244f4436]{-webkit-box-flex:3;-webkit-flex:3;flex:3}.page-picking-order .header .left[data-v-244f4436],\n.page-picking-order .header .right[data-v-244f4436]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.page-picking-order .header .icon[data-v-244f4436]{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-244f4436]{background-color:#fff;height:%?500?%;overflow-x:auto}.page-picking-order .form[data-v-244f4436]{background-color:#fff;padding:%?40?%;border-radius:%?10?%}.page-picking-order .Exhibition[data-v-244f4436]{width:100%;height:%?100?%;margin-top:%?20?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .Exhibition .Exhibition-left[data-v-244f4436]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .Exhibition .Exhibition-left .Exhibition-left-title[data-v-244f4436]{width:50%;height:100%;text-align:center;line-height:%?100?%}.page-picking-order .Exhibition .Exhibition-left .Exhibition-left-data[data-v-244f4436]{width:50%;height:100%;text-align:center;line-height:%?100?%}.page-picking-order .Exhibition .Exhibition-right[data-v-244f4436]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .Exhibition .Exhibition-right .Exhibition-right-title[data-v-244f4436]{width:50%;height:100%;line-height:%?100?%}.page-picking-order .Exhibition .Exhibition-right .Exhibition-right-data[data-v-244f4436]{width:50%;height:100%;text-align:center;line-height:%?100?%}.page-picking-order .library[data-v-244f4436]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .library .library-left[data-v-244f4436]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .library .library-left uni-view[data-v-244f4436]{width:%?230?%;line-height:%?100?%;text-align:center}.page-picking-order .library .library-right[data-v-244f4436]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .library .library-right .library-right-title[data-v-244f4436]{width:%?120?%;height:100%;line-height:%?100?%}.page-picking-order .library .library-right .input[data-v-244f4436]{width:%?200?%;height:%?70?%;margin-top:%?15?%;margin-left:%?15?%}.page-picking-order .add[data-v-244f4436]{width:100%;height:%?100?%;position:relative}.page-picking-order .add uni-button[data-v-244f4436]{position:absolute;top:%?10?%;right:%?20?%}.page-picking-order .bottom-bar[data-v-244f4436]{z-index:21;position:fixed;bottom:0;left:0;right:0}.page-picking-order .bottom-bar .container[data-v-244f4436]{background:#fff;box-shadow:0 %?1?% %?20?% 0 hsla(0,0%,50.2%,.2);padding:%?20?%}.page-picking-order .bottom-bar .extra[data-v-244f4436]{background-color:#fff;margin:5px;border-radius:5px;padding:0 10px}.page-picking-order .bottom-bar .bottom-info .u-form-item[data-v-244f4436]{padding:0}',""]),t.exports=e},"082d":function(t,e,i){var a=i("24fb");e=a(!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},"181f":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a}));var a={uIcon:i("f86b").default,uInput:i("d5da").default,uButton:i("d9ad").default,uTable:i("8365").default,uTr:i("18fd").default,uTh:i("4145").default,uTd:i("acc3").default,uForm:i("aa8f").default,uRow:i("d67a").default,uCol:i("b408").default,uFormItem:i("e0a3").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"page-picking-order"},[i("v-uni-view",{staticClass:"header"},[i("v-uni-view",{staticClass:"left"},[i("u-icon",{staticClass:"icon",attrs:{name:"arrow-left"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.uni.navigateBack()}}})],1),i("v-uni-view",{staticClass:"title"},[t._v(t._s(t.$t("message.FillingMaterials")))]),i("v-uni-view",{staticClass:"right"})],1),i("v-uni-view",{staticClass:"table-wrapper"},[i("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),i("v-uni-view",{staticClass:"Exhibition"},[i("v-uni-view",{staticClass:"Exhibition-left"},[i("v-uni-view",{staticClass:"Exhibition-left-title"},[t._v(t._s(t.$t("message.Pi_Station"))+":")]),i("v-uni-view",{staticClass:"Exhibition-left-data"},[t._v(t._s(t.some.sendSpot))])],1),i("v-uni-view",{staticClass:"Exhibition-right"},[i("v-uni-view",{staticClass:"Exhibition-right-title"},[t._v(t._s(t.$t("message.Pi_PickedQuantity"))+":")]),i("v-uni-view",{staticClass:"Exhibition-right-data"},[t._v(t._s(t.some.totalFillAmount))])],1)],1),i("v-uni-view",{staticClass:"library"},[i("v-uni-view",{staticClass:"library-left"},[i("v-uni-view",[t._v(t._s(t.$t("message.CommissionedLocation")))]),i("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),i("v-uni-view",{staticClass:"library-right"},[i("v-uni-view",{staticClass:"library-right-title"},[t._v(t._s(t.$t("message.CommissionedThisNumber")))]),i("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),i("v-uni-view",{staticClass:"add"},[i("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),i("u-table",{staticClass:"library-table"},[i("u-tr",{staticClass:"u-tr"},[i("u-th",{staticClass:"u-th"},[t._v(t._s(t.$t("message.product_Location")))]),i("u-th",{staticClass:"u-th"},[t._v(t._s(t.$t("message.product_Number")))]),i("u-th",{staticClass:"u-th"},[t._v(t._s(t.$t("message.operation")))])],1),t._l(t.LocationList,(function(e,a){return i("u-tr",{key:a,staticClass:"u-tr"},[i("u-td",{staticClass:"u-td"},[t._v(t._s(e.wlCode))]),i("u-td",{staticClass:"u-td"},[t._v(t._s(e.qty))]),i("u-td",{staticClass:"u-td"},[i("div",{staticClass:"u-td",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.deleteItem(a)}}},[t._v(t._s(t.$t("message.product_Delete")))])])],1)}))],2),i("v-uni-view",{staticClass:"bottom-bar"},[i("div",{staticClass:"extra"},[i("u-form",{ref:"form",attrs:{model:t.form,"error-type":["toast"]}},[i("u-row",{staticClass:"bottom-info"})],1)],1),i("u-form",{ref:"form2",staticStyle:{background:"rgb(242, 242, 242)"},attrs:{model:t.form2,"error-type":["toast"]}},[i("u-row",{staticClass:"bottom-info"},[i("u-col",{attrs:{span:6}},[i("u-form-item",{attrs:{prop:"operatorPass",label:t.$t("message.Summary_Receiver"),"label-width":"120rpx"}},[i("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),i("u-col",{attrs:{span:6}},[i("u-form-item",{attrs:{prop:"rfPwd",label:t.$t("message.Summary_Password")}},[i("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),i("div",{staticClass:"container"},[i("u-row",[i("u-col",{attrs:{span:4}},[i("u-button",{staticClass:"appoint",attrs:{type:"primary"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bill.apply(void 0,arguments)}}},[t._v(t._s(t.$t("message.Feeding_ReplenishmentDetails")))])],1),i("u-col",{attrs:{span:4}},[i("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),i("u-col",{attrs:{span:4}},[i("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=[]},"1a6e":function(t,e,i){"use strict";i.r(e);var a=i("181f"),n=i("3bce");for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);i("5c1f");var o,s=i("f0c5"),l=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"244f4436",null,!1,a["a"],o);e["default"]=l.exports},"2b99":function(t,e,i){"use strict";var a=i("6061"),n=i.n(a);n.a},"2bf0":function(t,e,i){"use strict";var a=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.headers=void 0;var n=a(i("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,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("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=[]},"38b9":function(t,e,i){var a=i("0542");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("8f3e198a",a,!0,{sourceMap:!1,shadowMode:!1})},"3bc7":function(t,e,i){var a=i("d659");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("19a78336",a,!0,{sourceMap:!1,shadowMode:!1})},"3bce":function(t,e,i){"use strict";i.r(e);var a=i("9f6e"),n=i.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},5530:function(t,e,i){"use strict";i("a4d3"),i("4de4"),i("4160"),i("e439"),i("dbb4"),i("b64b"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var a=n(i("ade3"));function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function o(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){(0,a.default)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}},"5c1f":function(t,e,i){"use strict";var a=i("38b9"),n=i.n(a);n.a},6061:function(t,e,i){var a=i("082d");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("db4938fc",a,!0,{sourceMap:!1,shadowMode:!1})},"80f4":function(t,e,i){"use strict";var a=i("3bc7"),n=i.n(a);n.a},"9f6e":function(t,e,i){"use strict";var a=i("4ea4");i("4160"),i("45fc"),i("a434"),i("acd8"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("5530"));i("96cf");var r=a(i("1da1")),o=a(i("d4ec")),s=a(i("bee2")),l=a(i("262e")),u=a(i("2caf")),c=i("9ab4"),d=i("60a3"),f=i("22da"),p=a(i("f59c")),h=i("54a3"),g=a(i("34b3")),v=i("2bf0"),m=i("cdd0"),b=function(t){(0,l.default)(i,t);var e=(0,u.default)(i);function i(){var t;return(0,o.default)(this,i),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=v.headers,t}return(0,s.default)(i,[{key:"LocationChoice",value:function(t){this.wlCode=t.pickerName}},{key:"onOperatorConfirm",value:function(){var t=(0,r.default)(regeneratorRuntime.mark((function t(e){var i,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,m.auth.getUserInfo({loginName:e});case 3:i=t.sent,a=i.userName,this.form2.operatorPass=e,this.operatorName=a,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:this.$t("message.AppendMateriel2")});else if(parseFloat(this.qty)>p.default.blDetailList[this.someIndex].amount)uni.showToast({icon:"none",title:this.$t("message.AppendMateriel3")});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:this.$t("message.AppendMateriel3")});else{if(0!=this.LocationList.length&&this.LocationList.forEach((function(e){if(t.wlCode.sendSpot!=e.Code)return uni.showToast({icon:"none",title:t.$t("message.AppendMateriel4")}),!1})),this.some!={}){if(!0){var i={wlCode:this.wlCode.label,qty:this.qty,Code:this.wlCode.sendSpot};this.LocationList.push(i);var a=JSON.stringify(this.some),n=JSON.parse(a);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:this.$t("message.AppendMateriel5")})}}else uni.showToast({icon:"none",title:this.$t("message.AppendMateriel1")})}},{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,i,a,n,r=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__")),i=JSON.parse(localStorage.getItem("sendSpot")),a={loginName:e.session.user.loginName,sendSpot:i,factoryCode:e.session.user.factoryCode,workArea:h.session.workareaCode},t.next=5,this.model.queryByFactoryCodeAndWorkAreaCode(a);case 5:n=t.sent,n.forEach((function(t){var e={};e.label=t.locationCode,e.value=t.locationCode+"("+t.sendSpot+")",e.sendSpot=t.sendSpot,r.Location.push(e)})),this.model.blDetailList.forEach((function(t){t.receiptAmount=0,t.wlQTyList=[]}));case 8:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"bill",value:function(){var t=(0,r.default)(regeneratorRuntime.mark((function t(){var e,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.some!={}&&null!=this.some.prdOrder){t.next=3;break}return uni.showToast({icon:"none",title:this.$t("message.Commission_tips6")}),t.abrupt("return");case 3:return e=JSON.parse(localStorage.getItem("__GWMS_APP_STATE_DATA__")),i={loginName:e.session.user.loginName,prdOrder:this.some.prdOrder},t.next=7,this.model.querydetaildlist(i);case 7:this.redirectTo(this.page.raw.handover.feeding.Local);case 8:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"onSubmit",value:function(){var t=(0,r.default)(regeneratorRuntime.mark((function t(){var e,i,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.model.blDetailList,i=(0,n.default)({dataList:e},this.form2),t.next=4,this.model.saveBlDetailUpload(i).then((function(){a.toPage(a.page.raw.handover.feeding.Location)}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),i}(f.BasePage);(0,c.__decorate)([(0,d.Ref)("form")],b.prototype,"$form",void 0),(0,c.__decorate)([(0,d.Ref)("submitForm")],b.prototype,"$submitForm",void 0),(0,c.__decorate)([(0,d.Ref)("form2")],b.prototype,"$form2",void 0),b=(0,c.__decorate)([(0,d.Component)({components:{jPicker:g.default}})],b);var y=b;e.default=y},a381:function(t,e,i){"use strict";i.r(e);var a=i("e536"),n=i.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},b408:function(t,e,i){"use strict";i.r(e);var a=i("f505"),n=i("f0ee");for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);i("2b99");var o,s=i("f0c5"),l=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"c7d59f46",null,!1,a["a"],o);e["default"]=l.exports},b87c:function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={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=a},cdd0:function(t,e,i){"use strict";var a=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.auth=void 0,i("96cf");var n=a(i("1da1")),r=a(i("d4ec")),o=a(i("bee2")),s=a(i("262e")),l=a(i("2caf")),u=i("9ab4"),c=i("6fc5"),d=a(i("b32d")),f=a(i("0613")),p=i("110c"),h=function(t){(0,s.default)(i,t);var e=(0,l.default)(i);function i(){return(0,r.default)(this,i),e.apply(this,arguments)}return(0,o.default)(i,[{key:"getUserInfo",value:function(){var t=(0,n.default)(regeneratorRuntime.mark((function t(e){var i,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=e.loginName,t.next=3,d.default.post(p.url.auth.userInfo,{loginName:i});case 3:if(a=t.sent,"1"===a.code){t.next=8;break}throw new Error(a.msg);case 8:return t.abrupt("return",a.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 i,a,n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=e.rfPwd,a=e.factoryCode,n=e.loginName,t.next=3,d.default.post(p.url.auth.pwd.check,{rfPwd:i,factoryCode:a,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}()}]),i}(c.VuexModule);(0,u.__decorate)([c.Action],h.prototype,"getUserInfo",null),(0,u.__decorate)([c.Action],h.prototype,"checkPassword",null),h=(0,u.__decorate)([(0,c.Module)({dynamic:!0,store:f.default,namespaced:!0,name:"auth"})],h);var g=(0,c.getModule)(h);e.auth=g},d659:function(t,e,i){var a=i("24fb");e=a(!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,i){"use strict";i.r(e);var a=i("3787"),n=i("a381");for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);i("80f4");var o,s=i("f0c5"),l=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"94c204aa",null,!1,a["a"],o);e["default"]=l.exports},e536:function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={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=a},f0ee:function(t,e,i){"use strict";i.r(e);var a=i("b87c"),n=i.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},f505:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("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,i){"use strict";var a=i("4ea4");i("4de4"),i("c740"),i("4160"),i("d81d"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FeedingModule=void 0;var n=a(i("5530"));i("96cf");var r=a(i("1da1")),o=a(i("d4ec")),s=a(i("bee2")),l=a(i("262e")),u=a(i("2caf")),c=i("9ab4"),d=i("6fc5"),f=a(i("0613")),p=a(i("b32d")),h=i("110c"),g=i("cdd0"),v=i("54a3"),m=function(t){(0,l.default)(i,t);var e=(0,u.default)(i);function i(){var t;return(0,o.default)(this,i),t=e.apply(this,arguments),t.blDetailList=[],t.locationList=[],t}return(0,s.default)(i,[{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,g.auth.checkPassword({factoryCode:v.session.factoryCode,loginName:v.session.loginName,rfPwd:e.rfPwd});case 2:return t.next=4,p.default.post(h.url.bl.u,(0,n.default)({factoryCode:v.session.factoryCode,loginName:v.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,i;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})),i={factoryCode:v.session.factoryCode,loginName:v.session.loginName,sapSupplyIdList:e},t.next=5,p.default.post(h.url.bl.unlock,i,{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 i,a;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:v.session.factoryCode,loginName:v.session.loginName},e));case 2:return i=t.sent,a=i.list,t.abrupt("return",{blDetailList:a});case 5:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"querydetaildlist",value:function(){var t=(0,r.default)(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,p.default.post("/wmspda/tl/getBlListSn",e);case 2:return i=t.sent,console.log("明细》》》》》》》》》",i.list),this.detailedList=i.list,t.abrupt("return",i);case 6:case"end":return t.stop()}}),t,this)})));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,i;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:v.session.factoryCode,loginName:v.session.loginName,workareaCode:v.session.workareaCode});case 2:return e=t.sent,i=e.list.map((function(t){return{label:t.locationCode,value:t.locationCode}})),t.abrupt("return",{locationList:i});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 i;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 i=t.sent,t.abrupt("return",i);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}))}}]),i}(d.VuexModule);e.FeedingModule=m,(0,c.__decorate)([d.Mutation],m.prototype,"clearState",null),(0,c.__decorate)([d.Mutation],m.prototype,"confirmCheckedBlDetailList",null),(0,c.__decorate)([(0,d.Action)({commit:"clearState"})],m.prototype,"saveBlDetailUpload",null),(0,c.__decorate)([d.Action],m.prototype,"unlockBlDetailList",null),(0,c.__decorate)([d.MutationAction],m.prototype,"queryBlDetailList",null),(0,c.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],m.prototype,"querydetaildlist",null),(0,c.__decorate)([d.MutationAction],m.prototype,"queryLocationList",null),(0,c.__decorate)([(0,d.Action)({commit:"updateCheckedOrderInInfoListKw"})],m.prototype,"queryByFactoryCodeAndWorkAreaCode",null),e.FeedingModule=m=(0,c.__decorate)([(0,d.Module)({namespaced:!0,dynamic:!0,store:f.default,name:"raw.handover.feeding"})],m);var b=(0,d.getModule)(m);e.default=b}}]);