1 line
19 KiB
JavaScript
1 line
19 KiB
JavaScript
|
webpackJsonp([54],{"2Fw0":function(t,e){},"6Qfm":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__warehouse_otherStockOut_printOtherStockOut_vue__=__webpack_require__("GpsL"),__WEBPACK_IMPORTED_MODULE_3_vuex__=__webpack_require__("NYxO"),__WEBPACK_IMPORTED_MODULE_4__components_System_dialogChooseSingleClient__=__webpack_require__("iGlD"),__WEBPACK_IMPORTED_MODULE_5__components_Dialog_dialogChooseSingleStock__=__webpack_require__("rfXi"),__WEBPACK_IMPORTED_MODULE_6__components_System_dialogChooseParts_vue__=__webpack_require__("CdUU"),__WEBPACK_IMPORTED_MODULE_7__utils_config_js__=__webpack_require__("bzuE");__webpack_exports__.a={inject:["reload"],components:{DialogChooseSingleClientr:__WEBPACK_IMPORTED_MODULE_4__components_System_dialogChooseSingleClient__.a,printOtherStockOut:__WEBPACK_IMPORTED_MODULE_2__warehouse_otherStockOut_printOtherStockOut_vue__.a,dialogChooseSingleStock:__WEBPACK_IMPORTED_MODULE_5__components_Dialog_dialogChooseSingleStock__.a,dialogChooseParts:__WEBPACK_IMPORTED_MODULE_6__components_System_dialogChooseParts_vue__.a},data:function(){return{formData:{outTime:"",clientName:"",clientId:""},planId:"",inHeadId:"",auditStatus:"",config:__WEBPACK_IMPORTED_MODULE_7__utils_config_js__.a,itemIds:[],lossStockId:"",availableCount:0,totalCount:0,childList:[],btnOtherDisabled:!0,btnDelDisabled:!1,chooseOperatorVisible:!1,ChooseMaterielVisible:!1,chooseClientrVisible:!1,ChooseStockVisible:!1,ChooseSalesOutStockVisible:!1,chooseUserVisible:!1,loading:!1,materielId:"",currentIndex:"",ruleForm:{outTime:[{required:!0,message:"请选择出库时间",trigger:"change"}]},printTotal:{count:"",amount:""},printList:[],printDetail:{clientName:"",outTime:"",outCode:""},printForm:[{title:"物料代码",prop_:"materielSerialNo"},{title:"物料名称",prop_:"materielName"},{title:"规格型号",prop_:"specification"},{title:"单位",prop_:"unitUomName"},{title:"批号",prop_:"batch"},{title:"数量",prop_:"count"},{title:"单价",prop_:"unitPrice"},{title:"金额",prop_:"amount"},{title:"仓库",prop_:"facName"},{title:"库位",prop_:"locationName"}]}},mounted:function(){var t=new Date;this.$set(this.formData,"outTime",t.getFullYear()+"-"+this.settime(t.getMonth()+1)+"-"+this.settime(t.getDate())),this.$route.query.id?(this.formData.id=this.$route.query.id,this.lossStockId=this.$route.query.id,this.getDetail()):(this.planId=this.$route.query.planId,console.log(this.planId),this.getDetail1())},watch:{lossStockId:{handler:function(t,e){this.btnDelDisabled=""!=t&&void 0!=t}}},methods:__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({},Object(__WEBPACK_IMPORTED_MODULE_3_vuex__.d)({removeTagNav:"tagNav/removeTagNav"}),{settime:function(t){return 1==t.toString().length?"0"+t.toString():t},getDetail1:function(){var t=this,e=this;this.loading=!0,this.$nextTick().then(function(){console.log(e.planId),t.$api.inventoryAPI.buildLossStock({planId:e.planId}).then(function(i){console.log(i),t.loading=!1,0==i.code?(e.childList=i.BodyData,e.childList.forEach(function(t){e.$set(t,"sourceId",t.itemId),e.$set(t,"thisSourceType",t.documentTypeId),e.$set(t,"code",t.code),e.$set(t,"thisSourceTypeName",t.documentTypeName)})):t.$message({message:i.msg,type:"error"})})})},getDetail:function(){var t=this,e=this;this.loading=!0,this.$nextTick().then(function(){t.$api.otherStockOutAPI.getDetail({id:t.lossStockId}).then(function(i){t.loading=!1,e.formData.id=i.stockOut.id,e.$set(e.formData,"auditStatus",i.stockOut.auditSign?i.stockOut.auditSign:""),e.auditStatus=t.formData.auditStatus,e.$s
|