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
18 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-picking-ByOrder"],{"04a4":function(t,e,i){"use strict";i.r(e);var a=i("5674"),n=i("c380");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("afaa");var r,s=i("f0c5"),d=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"568617d2",null,!1,a["a"],r);e["default"]=d.exports},"2a2d":function(t,e,i){var a=i("9b02");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("6b2ba89c",a,!0,{sourceMap:!1,shadowMode:!1})},5674:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),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},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.index.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"title"},[t._v(t._s(t.$t("message.Pi_ByOrderPicking")))]),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.proOrderResultList,"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.totalMoAmount))])],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,placeholder:t.$t("message.Summary_PleaseInputNumber")},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("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.appoint.apply(void 0,arguments)}}},[t._v(t._s(t.$t("message.detailed")))])],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.po_Submit")))])],1),i("u-col",{attrs:{span:4}},[i("u-button",{attrs:{type:"error"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onUpload.apply(void 0,arguments)}}},[t._v(t._s(t.$t("message.po_Return")))])],1)],1)],1)])],1)},o=[]},"6f41":function(t,e,i){"use strict";i.r(e);var a=i("a360"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},9741:function(t,e,i){var a=i("a8b4");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("3a1d922c",a,!0,{sourceMap:!1,shadowMode:!1})},"9b02":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-568617d2]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-568617d2]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-568617d2]{font-size:2em;font-weight:400}.page-picking-order[data-v-568617d2]{background:#f2f2f2 -webkit-linear-gradient(bottom,#eee7e7,#4a78ea 51%,#1753ea) no-repeat;background:#f2f2f2 linear-gradient(0deg,#eee7e7,#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-568617d2]{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-568617d2]{-webkit-box-flex:3;-webkit-flex:3;flex:3}.page-picking-order .header .left[data-v-568617d2],\n.page-picking-order .header .right[data-v-568617d2]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.page-picking-order .header .icon[data-v-568617d2]{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-568617d2]{background-color:#fff;height:%?500?%;overflow-x:auto}.page-picking-order .form[data-v-568617d2]{background-color:#fff;padding:%?40?%;border-radius:%?10?%}.page-picking-order .Exhibition[data-v-568617d2]{width:100%;height:%?100?%;margin-top:%?20?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .Exhibition .Exhibition-left[data-v-568617d2]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .Exhibition .Exhibition-left .Exhibition-left-title[data-v-568617d2]{width:50%;height:100%;text-align:center;line-height:%?100?%}.page-picking-order .Exhibition .Exhibition-left .Exhibition-left-data[data-v-568617d2]{width:50%;height:100%;text-align:center;line-height:%?100?%}.page-picking-order .Exhibition .Exhibition-right[data-v-568617d2]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .Exhibition .Exhibition-right .Exhibition-right-title[data-v-568617d2]{width:50%;height:100%;line-height:%?100?%}.page-picking-order .Exhibition .Exhibition-right .Exhibition-right-data[data-v-568617d2]{width:50%;height:100%;text-align:center;line-height:%?100?%}.page-picking-order .library[data-v-568617d2]{width:100%;height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .library .library-left[data-v-568617d2]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .library .library-left uni-view[data-v-568617d2]{width:%?230?%;line-height:%?100?%;text-align:center}.page-picking-order .library .library-right[data-v-568617d2]{width:50%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex}.page-picking-order .library .library-right .library-right-title[data-v-568617d2]{width:%?120?%;height:100%;line-height:%?100?%;text-align:center}.page-picking-order .library .library-right .input[data-v-568617d2]{width:%?200?%;height:%?70?%;margin-top:%?15?%;margin-left:%?15?%}.page-picking-order .add[data-v-568617d2]{width:100%;height:%?100?%;position:relative}.page-picking-order .add uni-button[data-v-568617d2]{position:absolute;top:%?10?%;right:%?20?%}.page-picking-order .bottom-bar[data-v-568617d2]{z-index:21;position:fixed;bottom:0;left:0;right:0}.page-picking-order .bottom-bar .container[data-v-568617d2]{background:#fff;box-shadow:0 %?1?% %?20?% 0 hsla(0,0%,50.2%,.2);padding:%?20?%}.page-picking-order .bottom-bar .extra[data-v-568617d2]{background-color:#fff;margin:5px;border-radius:5px;padding:0 10px}.page-picking-order .bottom-bar .bottom-info .u-form-item[data-v-568617d2]{padding:0}',""]),t.exports=e},a360:function(t,e,i){"use strict";i("c975"),i("d81d"),i("a9e3"),i("d3b7"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={name:"u-form",props:{model:{type:Object,default:function(){return{}}},errorType:{type:Array,default:function(){return["message","toast"]}},borderBottom:{type:Boolean,default:!0},labelPosition:{type:String,default:"left"},labelWidth:{type:[String,Number],default:90},labelAlign:{type:String,default:"left"},labelStyle:{type:Object,default:function(){return{}}}},provide:function(){return{uForm:this}},data:function(){return{rules:{}}},created:function(){this.fields=[]},methods:{setRules:function(t){this.rules=t},resetFields:function(){this.fields.map((function(t){t.resetField()}))},validate:function(t){var e=this;return new Promise((function(i){var a=!0,n=0,o=[];e.fields.map((function(r){r.validation("",(function(r){r&&(a=!1,o.push(r)),++n===e.fields.length&&(i(a),-1===e.errorType.indexOf("none")&&e.errorType.indexOf("toast")>=0&&o.length&&e.$u.toast(o[0]),"function"==typeof t&&t(a))}))}))}))}}};e.default=a},a8b4: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-1f4305a4]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-1f4305a4]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-1f4305a4]{font-size:2em;font-weight:400}',""]),t.exports=e},aa8f:function(t,e,i){"use strict";i.r(e);var a=i("b0df"),n=i("6f41");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("ecb9");var r,s=i("f0c5"),d=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"1f4305a4",null,!1,a["a"],r);e["default"]=d.exports},ade3:function(t,e,i){"use strict";function a(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=a},afaa:function(t,e,i){"use strict";var a=i("2a2d"),n=i.n(a);n.a},b0df:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),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-form"},[t._t("default")],2)},o=[]},b5bf: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,i("96cf");var n=a(i("1da1")),o=a(i("d4ec")),r=a(i("bee2")),s=a(i("262e")),d=a(i("2caf")),l=i("9ab4"),u=i("60a3"),c=i("22da"),p=a(i("ef95")),f=i("7c2b"),h=i("54a3"),g=a(i("34b3")),b=function(t){(0,s.default)(i,t);var e=(0,d.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.LocationList=[],t.Location=[],t.someIndex=0,t.some={},t.qty="",t.form={amount:null},t.rules={amount:[{required:!0,message:t.$t("message.Pi_tip1")}]},t.locationCodeSelect=!1,t.headers=f.orderHeaders,t}return(0,r.default)(i,[{key:"index",value:function(){this.toPage(this.page.raw.handover.picking.result)}},{key:"LocationChoice",value:function(t){console.log("e>>>>>>>>>>>>>>>>>>>>>>>>",t),this.wlCode=t.pickerName}},{key:"handleRow",value:function(t){var e=t.data;this.someIndex=e[0].index,this.some=e[0].lineData,this.model.proOrderResultList[this.someIndex].wlList=[],this.model.proOrderResultList[this.someIndex].currentAmount=0,this.LocationList=[],this.qty=""}},{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(this.some!={}){var e=!0;if(0!=this.LocationList.length&&this.LocationList.forEach((function(i){if(t.wlCode.sendSpot!=i.Code)return uni.showToast({icon:"none",title:"请选择正确的库位"}),e=!1})),1==e)if(parseFloat(this.qty)+parseFloat(this.some.totalMoAmount)>parseFloat(this.some.amount))uni.showModal({title:"Tip",content:this.$t("message.Pi_tip11"),confirmText:this.$t("message.workArea_Confirm"),cancelText:this.$t("message.Cancel"),showCancel:!0,success:function(e){if(e.confirm){var i={wlCode:t.wlCode.label,qty:t.qty,Code:t.wlCode.sendSpot};t.LocationList.push(i);var a=JSON.stringify(t.some),n=JSON.parse(a);n.wlList=null,n.wlCode=t.wlCode.label,n.qty=t.qty,t.model.proOrderResultList[t.someIndex].wlList.push(n),t.model.proOrderResultList[t.someIndex].currentAmount+=parseFloat(t.qty),t.qty=""}}});else{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.proOrderResultList[this.someIndex].wlList.push(n),this.model.proOrderResultList[this.someIndex].currentAmount+=parseFloat(this.qty),this.qty=""}}else uni.showToast({icon:"none",title:"请先选择一个物料"});else uni.showToast({icon:"none",title:"请输入正确的库位和数量"})}},{key:"deleteItem",value:function(t){this.LocationList.splice(t,1),this.model.proOrderResultList[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.proOrderResultList[this.someIndex].currentAmount=t}},{key:"onShow",value:function(){var t=(0,n.default)(regeneratorRuntime.mark((function t(){var e,i,a,n,o,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=h.session.user,a=JSON.parse(localStorage.getItem("sendSpot")),n={loginName:e.session.user.loginName,sendSpot:a,factoryCode:e.session.user.factoryCode,workArea:i.list[0].workareaCode},t.next=6,this.model.queryByFactoryCodeAndWorkAreaCode(n);case 6:o=t.sent,o.forEach((function(t){var e={};e.label=t.locationCode,e.value=t.locationCode+"("+t.sendSpot+")",e.sendSpot=t.sendSpot,r.Location.push(e)})),this.again=JSON.parse(sessionStorage.getItem("params")),sessionStorage.removeItem("params");case 10: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,n.default)(regeneratorRuntime.mark((function t(){var e,i=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=[],this.model.proOrderResultList.forEach((function(t){1==t.checked&&e.push(t)})),t.next=4,this.model.saveProOrderResultUpload(e).then((function(){i.model.queryProOrderResult(i.again).then((function(){i.toPage(i.page.raw.handover.picking.result)}))}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),i}(c.BasePage);(0,l.__decorate)([(0,u.Ref)("form")],b.prototype,"$form",void 0),(0,l.__decorate)([(0,u.Ref)("submitForm")],b.prototype,"$submitForm",void 0),b=(0,l.__decorate)([(0,u.Component)({components:{jPicker:g.default}})],b);var v=b;e.default=v},c380:function(t,e,i){"use strict";i.r(e);var a=i("b5bf"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},ecb9:function(t,e,i){"use strict";var a=i("9741"),n=i.n(a);n.a}}]);