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
4.3 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/outStock/location"],{"1e8b":function(e,t,n){"use strict";n.r(t);var o=n("f69b"),i=n("803c");for(var u in i)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(u);n("32ed");var r=n("f0c5"),c=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,"47f41df9",null,!1,o["a"],void 0);t["default"]=c.exports},"32ed":function(e,t,n){"use strict";var o=n("705a"),i=n.n(o);i.a},3594:function(e,t,n){"use strict";(function(e,t){var o=n("4ea4");n("260f");o(n("66fd"));var i=o(n("1e8b"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"705a":function(e,t,n){},"7ede":function(e,t,n){"use strict";(function(e){var o=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n("2eee")),u=o(n("c973")),r=o(n("79eb")),c=o(n("3f96")),s=n("77cf"),a=o(n("94f0")),l={components:{FuzzyList:function(){n.e("components/fuzzySearch").then(function(){return resolve(n("a78c"))}.bind(null,n)).catch(n.oe)}},onLoad:function(e){e.orderNo&&(this.ruleForm.orderNo=e.orderNo,this.getList())},onShow:function(){(0,s.initScan)(this.scanSuccess),(0,s.startScan)()},onHide:function(){(0,s.stopScan)()},data:function(){return{ruleForm:{warehouseId:r.default.state.userInfo.branchId,orderNo:"",orderNos:[],workType:"4",locationList:[],number:"",userId:""},location:"",rules:{},show:!1,list:[],selectData:null,selected:!1}},methods:{input:function(e){this.show=!0,(0,a.default)(this.getList,500)},blurData:function(){var e=this;setTimeout((function(){e.selected||(e.show=!1)}),1)},select:function(e){this.selected=!0,this.pickerConfirm(e.optionText)},getList:function(){var e=this;c.default.storge.queryLocationByOrderNo({orderNo:this.ruleForm.orderNo,warehouseLocationCode:this.location}).then((function(t){var n=t.data;e.list=n||[],console.log(e.list,"this.list")}))},scanSuccess:function(e){var t=this;return(0,u.default)(i.default.mark((function n(){return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:t.pickerConfirm(e.trim());case 1:case"end":return n.stop()}}),n)})))()},pickerConfirm:function(e){this.ruleForm.locationList.push(e),this.ruleForm.locationList=Array.from(new Set(this.ruleForm.locationList)),this.show=!1,this.selected=!1},clearValue:function(e){this.ruleForm.locationList.splice(e,1)},getLocationData:function(){this.pickerConfirm(this.location)},getLocationScanData:function(){var t=this;e.scanCode({success:function(e){e.result&&t.pickerConfirm(e.result.trim())},fail:function(e){},complete:function(){}})},submitData:function(){this.queryData()},queryData:function(){var e=this;this.ruleForm.locationList.length?c.default.storge.forkliftIn(this.ruleForm).then((function(t){e.$refs.uToast.show({type:"success",message:"提交入库成功"}),e.ruleForm.locationList=[]})):this.$refs.uToast.show({type:"warning",message:"库位号不可缺少"})}}};t.default=l}).call(this,n("543d")["default"])},"803c":function(e,t,n){"use strict";n.r(t);var o=n("7ede"),i=n.n(o);for(var u in o)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(u);t["default"]=i.a},f69b:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return o}));var o={uNavbar:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-navbar/u-navbar")]).then(n.bind(null,"84d1"))},uForm:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-form/u-form")]).then(n.bind(null,"f0ab"))},uSearch:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-search/u-search")]).then(n.bind(null,"b477"))},uFormItem:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-form-item/u-form-item")]).then(n.bind(null,"baa1"))},uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(n.bind(null,"da7f"))},uToast:function(){return n.e("node-modules/uview-ui/components/u-toast/u-toast").then(n.bind(null,"b7df"))}},i=function(){var e=this,t=e.$createElement,n=(e._self._c,e.ruleForm.locationList.length),o=e.ruleForm.locationList.length;e._isMounted||(e.e0=function(t){e.show=!0}),e.$mp.data=Object.assign({},{$root:{g0:n,g1:o}})},u=[]}},[["3594","common/runtime","common/vendor"]]]);