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-ingoods-poReceipt-detail"],{"037f":function(e,t,i){var a=i("24fb");t=a(!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-4f0fd2ab]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-4f0fd2ab]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-4f0fd2ab]{font-size:2em;font-weight:400}.jPicker[data-v-4f0fd2ab]{width:100%}.jPicker .showLine[data-v-4f0fd2ab]{width:100%;display:inline-block}.pickerMask[data-v-4f0fd2ab]{background-color:rgba(0,0,0,.5);height:100vh;width:100vw;position:fixed;left:0;top:0;z-index:999}.alertArea[data-v-4f0fd2ab]{position:fixed;bottom:0;left:0;width:100vw}.alertArea .searchInput[data-v-4f0fd2ab]{width:100%;position:relative}.alertArea .searchInput .clickArea[data-v-4f0fd2ab]{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;height:36px}.alertArea .searchInput .clickArea .jInput[data-v-4f0fd2ab]{text-align:left;width:90%;border:none;height:30px;font-size:17px;padding:2px 8px;box-sizing:border-box;color:#fff}.alertArea .searchInput .clickArea .searchLogo[data-v-4f0fd2ab]{width:30px;height:30px;line-height:30px;text-align:center}.alertArea .searchInput[data-v-4f0fd2ab]:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:#678699;-webkit-filter:blur(18px);filter:blur(18px);z-index:-1}.alertArea .pickerTop[data-v-4f0fd2ab]{background-color:#fff;height:52px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;\n /*border-bottom: 1px solid #000000;*/font-size:18px;box-sizing:border-box;-webkit-justify-content:space-around;justify-content:space-around}.alertArea .pickerTop .lefBtn[data-v-4f0fd2ab],\n.alertArea .pickerTop .rigBtn[data-v-4f0fd2ab]{font-size:18px;line-height:1rem}.alertArea .pickerTop .lefBtn[data-v-4f0fd2ab]{color:grey}.alertArea .pickerTop .rigBtn[data-v-4f0fd2ab]{color:#1e90ff}.alertArea .pickerTop .midInput[data-v-4f0fd2ab]{width:64%;height:30px;position:relative;line-height:30px}.alertArea .pickerTop .midInput .searchArea[data-v-4f0fd2ab]{text-align:left;background-color:#efefef;border-radius:20px;padding:4px 10px}.alertArea .pickerTop .midInput .searchIcon[data-v-4f0fd2ab]{position:absolute;right:5px;top:0;width:30px;height:30px;text-align:center;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.alertArea .pickerView[data-v-4f0fd2ab]{background-color:#fff;width:100%;height:300px;left:0}.alertArea .pickerView .opItem[data-v-4f0fd2ab]{line-height:50px;text-align:center;background-color:#f3f3f3;color:#000}.JAnimateBtmIn[data-v-4f0fd2ab]{-webkit-animation:btmIn-data-v-4f0fd2ab .3s ease;animation:btmIn-data-v-4f0fd2ab .3s ease}@-webkit-keyframes btmIn-data-v-4f0fd2ab{0%{-webkit-transform:translateY(666px);transform:translateY(666px)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes btmIn-data-v-4f0fd2ab{0%{-webkit-transform:translateY(666px);transform:translateY(666px)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}',""]),e.exports=t},"03c0":function(e,t,i){var a=i("e4a4");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("4f06").default;n("91d909a0",a,!0,{sourceMap:!1,shadowMode:!1})},"1b21":function(e,t,i){"use strict";var a=i("03c0"),n=i.n(a);n.a},"1ced":function(e,t,i){"use strict";i.r(t);var a=i("2e3c"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);t["default"]=n.a},"2e3c":function(e,t,i){"use strict";i("c975"),i("d3b7"),i("25f0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={name:"jPicker",data:function(){return{listData:this.options,nSel:-1,pickerVisable:!1,searchPosition:"middle",selStyle:"height:50px;"}},props:["options","showKey","valKey","val","position","disabled","bgColor","sureColor","focus"],watch:{options:function(e){this.listData=e,this.selByValKey()},val:{handler:function(){this.selByValKey()}},reset:function(e){""!==e&&void 0!==e&&null!==e||(this.nSel=-1)}},computed:{reset:function(){return this.val}},mounted:function(){this.selByValKey(),this.position&&(this.searchPosition=this.position)},methods:{showPicker:function(){this.disabled||(this.pickerVisable=!0,this.listData=this.options)},cancelSel:function(){if(this.pickerVisable=!1,this.val)if(this.valKey){for(var e=this.listData,t=0,i=e.length;t<i;t++)if(e[t][this.valKey]==this.val){this.nSel=t;break}}else this.nSel=this.val;else this.nSel=-1},sureSelect:function(){if(this.pickerVisable=!1,0==this.listData.length)uni.showToast({icon:"none",title:this.$t("message.unselected")}),this.$emit("sure",{});else{var e={pickerVal:this.nSel,pickerName:-1==this.nSel?this.listData[0]:this.listData[this.nSel]};console.log("子组件要传的值",e),this.$emit("bindpicker",e)}},selChange:function(e){console.log("触发机制。。"),this.nSel=e.detail.value[0]},filterOp:function(e){var t=e.detail.value;if(""!=t){t=t.toLowerCase();var i=this.options;this.listData=[],this.nSel=0;for(var a=0;a<i.length;a++){var n=i[a];this.showKey&&(n=i[a][this.showKey]),n.toString().toLowerCase().indexOf(t)>-1&&this.listData.push(i[a])}}else this.listData=this.options,this.nSel=this.val?this.val:-1,this.selByValKey()},selByValKey:function(){var e=this.options;if(this.listData=e,this.valKey){for(var t=0,i=e.length;t<i;t++)if(e[t][this.valKey]==this.val){this.nSel=t;break}}else this.nSel=this.val},doNothing:function(){}}};t.default=a},"34b3":function(e,t,i){"use strict";i.r(t);var a=i("462b"),n=i("1ced");for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);i("4ce3");var s,r=i("f0c5"),l=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"4f0fd2ab",null,!1,a["a"],s);t["default"]=l.exports},"462b":function(e,t,i){"use strict";var a;i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return a}));var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"jPicker"},[i("v-uni-view",{staticClass:"showLine",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.showPicker.apply(void 0,arguments)}}},[e.listData.length>0&&-1!=e.nSel?i("v-uni-view",[e._v(e._s(e.listData[e.nSel][e.showKey]||e.listData[e.nSel]))]):i("v-uni-view",{staticStyle:{color:"#7d7d7d"}},[e._v(e._s(e.$t("message.workArea_Selelct")))])],1),e.pickerVisable?i("v-uni-view",{staticClass:"pickerMask"},[i("v-uni-view",{staticClass:"alertArea JAnimateBtmIn",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.doNothing.apply(void 0,arguments)}}},["top"==e.searchPosition?i("v-uni-view",{staticClass:"searchInput"},[i("v-uni-view",{staticClass:"clickArea"},[i("v-uni-input",{staticClass:"jInput",attrs:{"placeholder-style":"color:#ffffff"},on:{input:function(t){arguments[0]=t=e.$handleEvent(t),e.filterOp.apply(void 0,arguments)}}}),i("v-uni-icon",{staticClass:"searchLogo",attrs:{type:"search"}})],1)],1):e._e(),i("v-uni-view",{staticClass:"pickerTop"},[i("v-uni-view",{staticClass:"lefBtn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.cancelSel.apply(void 0,arguments)}}},[e._v(e._s(e.$t("message.product_Cancel")))]),i("v-uni-view",{staticClass:"midInput"},["middle"==e.searchPosition?[i("v-uni-input",{staticClass:"searchArea",attrs:{focus:e.focus},on:{input:function(t){arguments[0]=t=e.$handleEvent(t),e.filterOp.apply(void 0,arguments)}}}),i("v-uni-icon",{staticClass:"searchIcon",attrs:{type:"search"}})]:e._e()],2),i("v-uni-view",{staticClass:"rigBtn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.sureSelect.apply(void 0,arguments)}}},[e._v(e._s(e.$t("message.workArea_Confirm")))])],1),i("v-uni-picker-view",{staticClass:"pickerView",attrs:{value:[e.nSel],"mask-style":"background-color:"+e.bgColor,"indicator-style":e.selStyle},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.selChange.apply(void 0,arguments)}}},[i("v-uni-picker-view-column",e._l(e.listData,(function(t,a){return i("v-uni-view",{key:a,staticClass:"opItem"},[e._v(e._s(t[e.showKey]||t))])})),1)],1)],1)],1):e._e()],1)},o=[]},"4ce3":function(e,t,i){"use strict";var a=i("df18"),n=i.n(a);n.a},b9eb:function(e,t,i){"use strict";i.r(t);var a=i("f403"),n=i("c699");for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);i("1b21");var s,r=i("f0c5"),l=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"3d05d986",null,!1,a["a"],s);t["default"]=l.exports},c699:function(e,t,i){"use strict";i.r(t);var a=i("ef3a"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);t["default"]=n.a},df18:function(e,t,i){var a=i("037f");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("4f06").default;n("01d46963",a,!0,{sourceMap:!1,shadowMode:!1})},e4a4:function(e,t,i){var a=i("24fb");t=a(!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-3d05d986]{position:absolute;top:0;left:0;bottom:0;right:0}.TEMP_page .TEMP_card[data-v-3d05d986]{margin:%?36?% %?72?%}.TEMP_page .TEMP_card .TEMP_title[data-v-3d05d986]{font-size:2em;font-weight:400}.page-receipt-detail[data-v-3d05d986]{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:%?30?%;min-height:100%;padding-top:%?118?%}.page-receipt-detail .header[data-v-3d05d986]{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-receipt-detail .header .title[data-v-3d05d986]{-webkit-box-flex:3;-webkit-flex:3;flex:3}.page-receipt-detail .header .left[data-v-3d05d986],\n.page-receipt-detail .header .right[data-v-3d05d986]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.page-receipt-detail .header .icon[data-v-3d05d986]{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-receipt-detail .table-wrapper[data-v-3d05d986]{background-color:#fff}.page-receipt-detail .form[data-v-3d05d986]{background-color:#fff;padding:%?40?%;border-radius:%?10?%}.page-receipt-detail .bottom-bar[data-v-3d05d986]{z-index:21;position:fixed;bottom:0;left:0;right:0}.page-receipt-detail .bottom-bar .container[data-v-3d05d986]{background:#fff;box-shadow:0 %?1?% %?20?% 0 hsla(0,0%,50.2%,.2);padding:%?20?%}.page-receipt-detail .bottom-bar .extra[data-v-3d05d986]{background-color:#fff;margin:5px;border-radius:5px;padding:0 10px}',""]),e.exports=t},ef3a:function(e,t,i){"use strict";var a=i("4ea4");i("4160"),i("c975"),i("d81d"),i("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("96cf");var n=a(i("1da1")),o=a(i("d4ec")),s=a(i("bee2")),r=a(i("262e")),l=a(i("2caf")),c=i("9ab4"),d=i("60a3"),f=i("22da"),u=a(i("31aa")),p=i("b710"),h=a(i("34b3")),v=i("54a3"),b=function(e){(0,r.default)(i,e);var t=(0,l.default)(i);function i(){var e;return(0,o.default)(this,i),e=t.apply(this,arguments),e.model=u.default,e.factoryCode=v.session.factoryCode,e.locationCode="",e.headers=p.headers,e.number="",e.poNo="",e}return(0,s.default)(i,[{key:"onShow",value:function(){this.model.queryLocation();var e=JSON.parse(uni.getStorageSync("material")),t=JSON.parse(uni.getStorageSync("index"));this.model.orderInInfoList[t]=e,console.log(this.model.orderInInfoList),this.poNo=JSON.parse(uni.getStorageSync("poNo")),uni.removeStorageSync("material"),uni.removeStorageSync("index")}},{key:"gohome",value:function(){this.toPage(this.page.raw.ingoods.poReceipt.index),uni.removeStorageSync("material"),uni.removeStorageSync("index"),uni.removeStorageSync("poNo")}},{key:"bookTypeChange",value:function(e){this.locationCode=e.pickerName.value}},{key:"changeNumber",value:function(){var e=this;this.model.hasChecked?this.model.orderInInfoList.forEach((function(t){if(console.log("item.checked",t.checked),t.checked){if(e.locationCode&&(t.location=e.locationCode),e.number>t.requestAmount)return void e.customToast(e.$t("message.dn_Tip"));""==e.number?t.receiptAmount=t.requestAmount:t.receiptAmount=e.number}})):this.customToast(this.$t("message.dn_Select"))}},{key:"appoint",value:function(){var e=u.default.orderInInfoList.map((function(e){return 1==e.checked})),t=0;if(e.forEach((function(e){1==e&&t++})),t>1)uni.showToast({icon:"none",title:"只能选择一个PO单"});else if(0==t)uni.showToast({icon:"none",title:"请选择一个PO单"});else{var i=e.indexOf(!0);uni.setStorageSync("mater",JSON.stringify(u.default.orderInInfoList[i])),uni.setStorageSync("index",JSON.stringify(i)),this.toPage(this.page.raw.ingoods.poReceipt.idetailed)}}},{key:"onSubmit",value:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){var t,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(0!==this.model.orderInInfoList.length){e.next=3;break}return uni.showToast({icon:"none",title:this.$t("message.Pi_tip4")}),e.abrupt("return");case 3:if(t=[],this.model.orderInInfoList.forEach((function(e){!0===e.checked&&t.push(e)})),0!=t.length){e.next=8;break}return uni.showToast({icon:"none",title:"请先选中要提交的数据"}),e.abrupt("return");case 8:if(i=!0,t.forEach((function(e){if(null==e.wllist||0==e.wllist.length)return uni.showToast({icon:"none",title:"请确保所选数据都已分配库位"}),void(i=!1)})),1!=i){e.next=20;break}return e.next=13,this.model.submitOrderInEnter(t);case 13:return this.locationCode="",this.model.orderInInfo.supplyCode="",this.model.orderInInfo.poType="",this.model.orderInInfo.location="",this.model.queryOrderInInfo(this.poNo),e.next=20,this.redirectTo(this.page.raw.ingoods.poReceipt.detail);case 20:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),i}(f.BasePage);b=(0,c.__decorate)([(0,d.Component)({components:{jPicker:h.default}})],b);var g=b;t.default=g},f403:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return a}));var a={uIcon:i("f86b").default,uRow:i("d67a").default,uCol:i("b408").default,uButton:i("d9ad").default},n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"page-receipt-detail"},[i("v-uni-view",{staticClass:"header"},[i("v-uni-view",{staticClass:"left"},[i("u-icon",{staticClass:"icon",attrs:{name:"arrow-left"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.gohome.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"title"},[e._v(e._s(e.$t("message.po_Detailed")))]),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:e.headers,contents:e.model.orderInInfoList,"show-vert-border":!1}})],1),i("v-uni-view",{staticClass:"bottom-bar"},[i("div",{staticClass:"container"},[i("u-row",[i("u-col",{attrs:{span:3}},[i("u-button",{attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.model.checkAllOrderInInfoList(!e.model.isCheckedAll)}}},[e._v(e._s(e.model.isCheckedAll?this.$t("message.po_noSelectAll"):this.$t("message.po_SelectAll")))])],1),i("u-col",{attrs:{span:3}},[i("u-button",{staticClass:"appoint",attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.appoint.apply(void 0,arguments)}}},[e._v(e._s(e.$t("message.Pi_distribution")))])],1),i("u-col",{attrs:{span:3}},[i("u-button",{attrs:{type:"success",loading:e.$wait.is("*submitOrderInEnter")},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),i("u-col",{attrs:{span:3}},[i("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)},o=[]}}]);