yxk_pc_mdh/gyhl/static/js/114.72264757c5bf3fca7a2c.js

1 line
15 KiB
JavaScript
Raw Normal View History

2025-08-28 15:26:35 +08:00
webpackJsonp([114],{"8LQ8":function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify__=__webpack_require__("mvHQ"),__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify__),__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__=__webpack_require__("Dd8w"),__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__),__WEBPACK_IMPORTED_MODULE_2__components_btnInput_vue__=__webpack_require__("ysqt"),__WEBPACK_IMPORTED_MODULE_3_vuex__=__webpack_require__("NYxO"),__WEBPACK_IMPORTED_MODULE_4__components_System_dialogChooseSingleUser__=__webpack_require__("3MlD"),__WEBPACK_IMPORTED_MODULE_5__utils_config_js__=__webpack_require__("bzuE"),__WEBPACK_IMPORTED_MODULE_6_file_saver__=__webpack_require__("t4zo"),__WEBPACK_IMPORTED_MODULE_6_file_saver___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_file_saver__);__webpack_exports__.a={inject:["reload"],components:{btnInput:__WEBPACK_IMPORTED_MODULE_2__components_btnInput_vue__.a,DialogChooseSingleUser:__WEBPACK_IMPORTED_MODULE_4__components_System_dialogChooseSingleUser__.a},data:function(){return{page:1,pageSize:20,total:0,pageSizes:[10,20,50],formData:{planTime:"",checkersName:"",checkers:"",qrSign:0},auditStatus:"",config:__WEBPACK_IMPORTED_MODULE_5__utils_config_js__.a,btnDisabled:!0,itemIds:[],fac_type_list:[],fac_location_list:[],allotId:"",availableCount:0,totalCount:0,childList:[],planId:"",isDisabled:!1,btnOtherDisabled:!0,btnDelDisabled:!0,chooseOperatorVisible:!1,ChooseMaterielVisible:!1,chooseClientrVisible:!1,ChooseStockVisible:!1,ChooseConsumingStockVisible:!1,chooseUserVisible:!1,loading:!1,materielId:"",currentIndex:"",qrSignOptions:[{value:1,label:"扫码盘点"},{value:0,label:"手工盘点"}],ruleForm:{planTime:[{required:!0,message:"请选择计划盘点时间",trigger:"change"}]}}},computed:__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({},Object(__WEBPACK_IMPORTED_MODULE_3_vuex__.c)({userInfo:"user/getUserInfo"})),mounted:function(){this.formData.checkers=this.userInfo.userId,this.formData.checkersName=this.userInfo.name,this.formData.createBy=this.userInfo.userId,this.formData.createByName=this.userInfo.name;var e=new Date;this.$set(this.formData,"createTime",e.getFullYear()+"-"+this.settime(e.getMonth()+1)+"-"+this.settime(e.getDate())),this.$set(this.formData,"planTime",e.getFullYear()+"-"+this.settime(e.getMonth()+1)+"-"+this.settime(e.getDate())),this.initialize(),this.$route.query.id&&(this.formData.id=this.$route.query.id,this.planId=this.$route.query.id),this.planId&&this.getDetail()},watch:{allotId:{handler:function(e,t){this.btnDelDisabled=""==e||void 0==e}},formData:{handler:function(e){e.id||0!=e.salesType&&1!=e.salesType||(this.childList=[],this.itemIds=[])},deep:!0}},methods:__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({},Object(__WEBPACK_IMPORTED_MODULE_3_vuex__.d)({removeTagNav:"tagNav/removeTagNav"}),{handleSizeChange:function(e){this.pageSize=e,this.choceProCount()},handleCurrentChange:function(e){this.page=e,this.choceProCount()},clear:function(){this.$route.query.id&&(this.formData.id=void 0,this.planId=void 0),this.childList=[],this.formData={};var e=new Date;this.$set(this.formData,"outTime",e.getFullYear()+"-"+this.settime(e.getMonth()+1)+"-"+this.settime(e.getDate()))},choceProCount:function(){var e=this;this.$api.inventoryAPI.choceProCount({facilityId:this.formData.warehouse,isPc:this.formData.qrSign}).then(function(t){0==t.code&&t.data?e.childList=t.data:e.childList=[]})},settime:function(e){return 1==e.toString().length?"0"+e.toString():e},exportExcel:function(){console.log(this.planId),this.$api.inventoryAPI.exportExcel({planId:this.planId}).then(function(e){console.log(e)})},initialize:function(){var e=this;this.$api.gylInventoryAPI.facilityList({pageno:1,pagesize:1e3,auditSign:179}).then(function(t