pages-receipt-call.d331c9ec.js 8.52 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-receipt-call"],{"0436":function(t,e,n){"use strict";n.r(e);var a=n("70dc"),i=n("0509");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("3a94");var c,r=n("f0c5"),s=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"d41ab69e",null,!1,a["a"],c);e["default"]=s.exports},"0509":function(t,e,n){"use strict";n.r(e);var a=n("c3f9"),i=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},"3a94":function(t,e,n){"use strict";var a=n("68df"),i=n.n(a);i.a},"68df":function(t,e,n){var a=n("7c0a");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("0c703448",a,!0,{sourceMap:!1,shadowMode:!1})},"70dc":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={uniIcons:n("1968").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("v-uni-view",{staticClass:"header"},[n("v-uni-view",{staticClass:"content-top"},[n("v-uni-view",{staticClass:"content-item u-f u-f-aic plr-10"},[n("v-uni-view",{staticClass:"title require u-f1"},[t._v("库位号")]),n("v-uni-view",{staticClass:"inp u-f3"},[n("v-uni-picker",{attrs:{value:t.locationIndex,"range-key":"code",range:t.locationArr},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.locationPickerChange.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"u-f u-f-aic fr"},[n("v-uni-view",{staticClass:"uni-input"},[-1==t.locationIndex?n("v-uni-text",{staticClass:"placeholder-color"},[t._v("请选择")]):n("v-uni-text",[t._v(t._s(t.locationArr[t.locationIndex].code))])],1)],1)],1)],1)],1),n("v-uni-view",{staticClass:"content-item u-f u-f-aic plr-10"},[n("v-uni-view",{staticClass:"title u-f1"},[t._v("容器号")]),n("v-uni-view",{staticClass:"inp u-f3"},[n("v-uni-input",{attrs:{disabled:!0},model:{value:t.containerCode,callback:function(e){t.containerCode=e},expression:"containerCode"}})],1)],1)],1),n("v-uni-view",{staticClass:"center"},[n("v-uni-view",{staticClass:"common u-f u-f-jcsb plr-10"},[n("v-uni-view",[t._v("物料")]),n("v-uni-view",{staticClass:"num"},[t._v("合计数量:"+t._s(t.materialTotal))])],1),n("v-uni-view",{staticClass:"select-content"},t._l(t.materialArr,(function(e,a){return n("v-uni-view",{key:a,staticClass:"select-list u-f u-f-jcsb u-f-aic plr-10"},[n("v-uni-view",{staticClass:"left-content"},[n("v-uni-view",{staticClass:"name"},[t._v(t._s(e.materialName))]),n("v-uni-view",{staticClass:"code"},[t._v("编号:"+t._s(e.materialCode))]),n("v-uni-view",{staticClass:"total"},[n("v-uni-text",{staticClass:"mr"},[t._v("数量:"+t._s(e.qty)+",")]),n("v-uni-text",{staticClass:"mr"},[t._v("重量:"+t._s(e.weight)+",")]),t._v("单位:"+t._s(e.materialUnit))],1)],1),n("v-uni-view",{staticClass:"spec u-f u-f-aic"},[n("v-uni-text",{staticClass:"model"},[t._v("型号:"+t._s(e.materialSpec))]),n("uni-icons",{attrs:{type:"arrowright",size:"18",color:"gray"}})],1)],1)})),1)],1)],1),n("v-uni-view",{staticClass:"footer u-f u-f-aic"},[n("v-uni-button",{staticClass:"btn",attrs:{loading:t.loading,type:"warn",disabled:t.disabled},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.save.apply(void 0,arguments)}}},[t._v("保存")])],1)],1)},o=[]},"7c0a":function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.header[data-v-d41ab69e]{overflow-y:auto;padding-bottom:%?140?%}.header .content-top[data-v-d41ab69e]{background-color:#fff}.header .content-top .content-item[data-v-d41ab69e]{height:%?90?%;line-height:%?90?%;border-bottom:%?2?% solid #e5e5e5}.header .content-top .content-item .title[data-v-d41ab69e]{font-size:%?32?%}.header .content-top .content-item .inp[data-v-d41ab69e]{text-align:right;font-size:%?32?%}.header .content-top .content-item .inp[data-v-d41ab69e] uni-radio .uni-radio-input{margin-right:0}.header .content-top .content-item .inp .picker[data-v-d41ab69e]{-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.header .content-top .content-item .require[data-v-d41ab69e]{position:relative}.header .content-top .content-item .require[data-v-d41ab69e]::after{position:absolute;content:"*";color:red;font-size:%?48?%;top:%?6?%;left:%?-20?%}.header .center[data-v-d41ab69e]{margin:%?20?% 0;background-color:#fff}.header .center .common[data-v-d41ab69e]{height:%?90?%;line-height:%?90?%;font-size:%?32?%;border-bottom:%?2?% solid #e5e5e5}.header .center .common .num[data-v-d41ab69e]{color:#007aff;font-size:%?28?%}.header .center .select-content .select-list[data-v-d41ab69e]{height:%?170?%;background-color:#fff;border-bottom:%?2?% solid #e5e5e5}.header .center .select-content .select-list .left-content .name[data-v-d41ab69e]{font-size:%?32?%;font-weight:700}.header .center .select-content .select-list .left-content .code[data-v-d41ab69e],\r\n.header .center .select-content .select-list .left-content .total[data-v-d41ab69e]{margin-top:%?10?%}.header .center .select-content .select-list .left-content .code[data-v-d41ab69e]{color:#979797}.header .center .select-content .select-list .left-content .total[data-v-d41ab69e]{color:#007aff}.header .center .select-content .select-list .left-content .total .mr[data-v-d41ab69e]{margin-right:%?10?%}.header .center .select-content .select-list .spec[data-v-d41ab69e]{color:#979797}.header .center .select-content .select-list .spec .model[data-v-d41ab69e]{margin-right:%?10?%}.header .center .select-content .select-list .spec .uni-icons[data-v-d41ab69e]{margin-right:-5px}.footer[data-v-d41ab69e]{position:fixed;bottom:0;width:100%;height:%?140?%;background-color:#fff;border-top:%?2?% solid #e1f3d8}.footer .btn[data-v-d41ab69e]{width:100%;height:%?80?%;line-height:%?80?%;color:#fff;text-align:center;font-size:%?32?%;-webkit-border-radius:%?50?%;border-radius:%?50?%;margin:0 %?30?%;background-color:#007aff}',""]),t.exports=e},c3f9:function(t,e,n){"use strict";n("4160"),n("d3b7"),n("25f0"),n("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{loading:!1,disabled:!1,containerCode:"",destinationLocation:"",locationIndex:-1,locationArr:[],materialArr:[],materialTotal:null,companyCode:"",timer:null}},onLoad:function(){var t=this;this.$api.inventory.pickLocation().then((function(e){t.locationArr=e.data.data}));try{var e=uni.getStorageSync("userData").companies;e&&(this.companyCode=e.toString())}catch(n){}},onUnload:function(){this.timer&&(clearTimeout(this.timer),this.timer=null)},methods:{locationPickerChange:function(t){var e=this;this.locationIndex=t.target.value,this.destinationLocation=this.locationArr[this.locationIndex].code,this.containerCode=this.locationArr[this.locationIndex].containerCode,this.materialTotal=null,this.$api.inventory.inventoryDetailList({containerCode:this.containerCode}).then((function(t){e.materialArr=t.data.rows,e.materialArr.forEach((function(t){e.materialTotal+=t.qty}))}))},save:function(){var t=this;if(this.loading)return!1;if(this.destinationLocation){var e={containerCode:this.containerCode,destinationLocation:this.destinationLocation,type:200,companyCode:this.companyCode};this.loading=!0,this.disabled=!0,this.$api.task.callBox(e).then((function(e){200==e.data.code?(t.loading=!1,t.disabled=!1,t.$wx.showToast({title:"保存成功!"}),t.timer=setTimeout((function(){uni.redirectTo({url:"fast?empty"})}),400)):(uni.showModal({title:"提示",content:e.data.msg}),t.loading=!1,t.disabled=!1)})).catch((function(e){t.loading=!1,t.disabled=!1}))}else uni.showModal({title:"提示",content:"库位号不能为空!",showCancel:!1})}}};e.default=a}}]);