(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/initiateInventoryCount/index"],{"1a44":function(e,n,o){"use strict";(function(e){var t=o("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=t(o("2eee")),r=t(o("c973")),a=t(o("79eb")),i=t(o("3f96")),c=o("77cf"),s={onShow:function(){var e=this;(0,c.initScan)(this.scanSuccess),(0,c.startScan)(),i.default.storge.queryByDictCode({dictCode:"warehouse_location",type:"3",searchKey:"",sqlText:"",placeholder:{"#warehouseId":a.default.state.userInfo.branchId}}).then((function(n){var o;null!==n&&void 0!==n&&null!==(o=n.data)&&void 0!==o&&o.records&&(e.columns=[n.data.records])}))},onHide:function(){(0,c.stopScan)()},data:function(){return{ruleForm:{warehouseId:a.default.state.userInfo.branchId,orderNo:"",orderNos:[],workType:"9",location:"",number:"",userId:""},show:!1,locationLabel:"",rules:{orderNo:{required:!0,message:"请输入订单号",trigger:["blur","change"]},number:{required:!0,message:"请输入盘点数",trigger:["blur","change"]}},columns:[[]]}},methods:{scanSuccess:function(e){var n=this;return(0,r.default)(u.default.mark((function o(){return u.default.wrap((function(o){while(1)switch(o.prev=o.next){case 0:n.ruleForm.orderNo=e.trim(),n.queryData();case 2:case"end":return o.stop()}}),o)})))()},pickerConfirm:function(e){this.ruleForm.location=e.value[0].optionValue,this.locationLabel=e.value[0].optionText,this.show=!1},clearValue:function(){this.ruleForm.location="",this.locationLabel=""},getSearchData:function(){this.queryData()},getScanData:function(){var n=this;e.scanCode({success:function(e){e.result&&(n.ruleForm.orderNo=e.result.trim(),n.queryData())},fail:function(e){},complete:function(){}})},submitData:function(){this.queryData()},queryData:function(){var e=this;this.ruleForm.location?this.$refs.ruleFormRef.validate().then((function(n){i.default.storge.inventory(e.ruleForm).then((function(n){e.$refs.uToast.show({type:"success",message:"提交盘点成功"}),e.ruleForm.orderNo="",e.ruleForm.location="",e.ruleForm.number="",e.locationLabel=""}))})):this.$refs.uToast.show({type:"warning",message:"请输入库位号"})}}};n.default=s}).call(this,o("543d")["default"])},"1c8f":function(e,n,o){"use strict";o.r(n);var t=o("1a44"),u=o.n(t);for(var r in t)["default"].indexOf(r)<0&&function(e){o.d(n,e,(function(){return t[e]}))}(r);n["default"]=u.a},"70ac":function(e,n,o){"use strict";(function(e,n){var t=o("4ea4");o("260f");t(o("66fd"));var u=t(o("e462"));e.__webpack_require_UNI_MP_PLUGIN__=o,n(u.default)}).call(this,o("bc2e")["default"],o("543d")["createPage"])},d032:function(e,n,o){"use strict";var t=o("db80"),u=o.n(t);u.a},db80:function(e,n,o){},e462:function(e,n,o){"use strict";o.r(n);var t=o("f412"),u=o("1c8f");for(var r in u)["default"].indexOf(r)<0&&function(e){o.d(n,e,(function(){return u[e]}))}(r);o("d032");var a=o("f0c5"),i=Object(a["a"])(u["default"],t["b"],t["c"],!1,null,"4cda21c8",null,!1,t["a"],void 0);n["default"]=i.exports},f412:function(e,n,o){"use strict";o.d(n,"b",(function(){return u})),o.d(n,"c",(function(){return r})),o.d(n,"a",(function(){return t}));var t={uNavbar:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-navbar/u-navbar")]).then(o.bind(null,"84d1"))},uForm:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-form/u-form")]).then(o.bind(null,"f0ab"))},uFormItem:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-form-item/u-form-item")]).then(o.bind(null,"baa1"))},uSearch:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-search/u-search")]).then(o.bind(null,"b477"))},uInput:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-input/u-input")]).then(o.bind(null,"b883"))},uIcon:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(o.bind(null,"da7f"))},uPicker:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-picker/u-picker")]).then(o.bind(null,"efe5"))},uToast:function(){return o.e("node-modules/uview-ui/components/u-toast/u-toast").then(o.bind(null,"b7df"))}},u=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n){e.show=!0},e.e1=function(n){e.show=!1})},r=[]}},[["70ac","common/runtime","common/vendor"]]]);