|  |  | @ -3,52 +3,6 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         <el-card> |  |  |  |         <el-card> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-form :inline="true" :model="filterQuery" size="mini"> |  |  |  |             <el-form :inline="true" :model="filterQuery" size="mini"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-row style="width: 100%"> |  |  |  |                 <el-row style="width: 100%"> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-form-item class="query-form-item"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-input v-model="filterQuery.nameCode" placeholder="产品标识DI" clearable></el-input> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-form-item> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-form-item class="query-form-item"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-input v-model="filterQuery.productsName" placeholder="产品名称" clearable></el-input> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-form-item> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-form-item class="query-form-item"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-input v-model="filterQuery.batchNo" placeholder="批次号" clearable></el-input> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-form-item> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-form-item class="query-form-item"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-select |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 v-model="filterQuery.supId" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 filterable |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 remote |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 clearable="true" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 reserve-keyword |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 placeholder="请输入供应商名称" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 :remote-method="findMethod" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 size="mini" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 :loading="loading" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 @change="corpChange" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             > |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |               <el-option |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                   v-for="item in fromOptions" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                   :key="item.name" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                   :label="item.name" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                   :value="item.erpId" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |               > |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <span style="float: left">{{ item.name }}</span> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |               </el-option> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </el-select> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-form-item> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         </el-row> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         <el-row style="width: 100%"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-form-item class="query-form-item"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-input v-model="filterQuery.ggxh" placeholder="规格型号" clearable></el-input> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-form-item> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-form-item class="query-form-item"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-input v-model="filterQuery.zczbhhzbapzbh" placeholder="批准文号" clearable></el-input> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-form-item> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-form-item class="query-form-item"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-input v-model="filterQuery.ylqxzcrbarmc" placeholder="生产厂家" clearable></el-input> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-form-item> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     <el-form-item class="query-form-item"> |  |  |  |                     <el-form-item class="query-form-item"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                         <el-select v-model="filterQuery.invStorageCode" placeholder="请选择当前仓库" clearable="true" |  |  |  |                         <el-select v-model="filterQuery.invStorageCode" placeholder="请选择当前仓库" clearable="true" | 
			
		
	
		
		
			
				
					
					|  |  |  |                                    @change="invChange" |  |  |  |                                    @change="invChange" | 
			
		
	
	
		
		
			
				
					|  |  | @ -139,19 +93,6 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             </el-table> |  |  |  |             </el-table> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </el-card> |  |  |  |         </el-card> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <el-dialog |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         title="库存详情" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         :visible.sync="codeDetailVisible" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         :close-on-click-modal="false" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         :close-on-press-escape="false" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         width="85%" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         v-if="codeDetailVisible" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     > |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       <codeDetail |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           :idQuery="idQuery" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           v-on:closeDetailDialog="closeDetailDialog" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       ></codeDetail> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     </el-dialog> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         <el-pagination |  |  |  |         <el-pagination | 
			
		
	
		
		
			
				
					
					|  |  |  |             :page-size="filterQuery.limit" |  |  |  |             :page-size="filterQuery.limit" | 
			
		
	
		
		
			
				
					
					|  |  |  |             @current-change="handleCurrentChange" |  |  |  |             @current-change="handleCurrentChange" | 
			
		
	
	
		
		
			
				
					|  |  | @ -162,15 +103,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | </template> |  |  |  | </template> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | <script> |  |  |  | <script> | 
			
		
	
		
		
			
				
					
					|  |  |  | import { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |   filterProducts, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |   deleteProducts, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | } from "../../api/inventory/InvProducts"; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | import draggable from "vuedraggable"; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | import codeDetail from "./InvProductsDetail"; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | import store from "../../store"; |  |  |  | import store from "../../store"; | 
			
		
	
		
		
			
				
					
					|  |  |  | import {getBussinessType} from "../../api/basic/bussinessType"; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain"; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | import {filterUplLocInv} from "@/api/basic/invWarehouse"; |  |  |  | import {filterUplLocInv} from "@/api/basic/invWarehouse"; | 
			
		
	
		
		
			
				
					
					|  |  |  | import {filterSubByInv} from "@/api/basic/invSubWarehouse"; |  |  |  | import {filterSubByInv} from "@/api/basic/invSubWarehouse"; | 
			
		
	
		
		
			
				
					
					|  |  |  | import {userInfo} from "@/api/auth/login"; |  |  |  | import {userInfo} from "@/api/auth/login"; | 
			
		
	
	
		
		
			
				
					|  |  | @ -183,21 +116,9 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |             filterQuery: { |  |  |  |             filterQuery: { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 invWarehouseCode: null, |  |  |  |                 invWarehouseCode: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 invStorageCode: null, |  |  |  |                 invStorageCode: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         productsName: null, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         nameCode: null, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         relIdFk: null, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         batchNo: null, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 page: 1, |  |  |  |                 page: 1, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 limit: 20, |  |  |  |                 limit: 20, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 customerId: null, |  |  |  |                 customerId: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         supId: null, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         unitFk: null, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       }, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       detailQuery: { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         code: null, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         productIdFk: null, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         page: 1, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         limit: 20, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             }, |  |  |  |             }, | 
			
		
	
		
		
			
				
					
					|  |  |  |             list: [], |  |  |  |             list: [], | 
			
		
	
		
		
			
				
					
					|  |  |  |             storageList: [], |  |  |  |             storageList: [], | 
			
		
	
	
		
		
			
				
					|  |  | @ -205,35 +126,16 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |             codeDetailVisible: false, |  |  |  |             codeDetailVisible: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |             total: 0, |  |  |  |             total: 0, | 
			
		
	
		
		
			
				
					
					|  |  |  |             loading: true, |  |  |  |             loading: true, | 
			
		
	
		
		
			
				
					
					|  |  |  |       index: null, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       dialogTableVisible: false, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             invWarehouseDisabled: true, |  |  |  |             invWarehouseDisabled: true, | 
			
		
	
		
		
			
				
					
					|  |  |  |       formLoading: false, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       dialogVisible: false, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       deleteLoading: false, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       busTypes: [], |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       idQuery: null, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       showSup: false, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       fromOptions: [], |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         }; |  |  |  |         }; | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |   components: { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     draggable, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     codeDetail, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |   }, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     methods: { |  |  |  |     methods: { | 
			
		
	
		
		
			
				
					
					|  |  |  |         onReset() { |  |  |  |         onReset() { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.$router.push({ |  |  |  |             this.$router.push({ | 
			
		
	
		
		
			
				
					
					|  |  |  |                 path: "", |  |  |  |                 path: "", | 
			
		
	
		
		
			
				
					
					|  |  |  |             }); |  |  |  |             }); | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.filterQuery = { |  |  |  |             this.filterQuery = { | 
			
		
	
		
		
			
				
					
					|  |  |  |         productsName: null, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         nameCode: null, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         relIdFk: null, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         batchNo: null, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 customerId: null, |  |  |  |                 customerId: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         unitFk: null, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         supId: null, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 invWarehouseCode: null, |  |  |  |                 invWarehouseCode: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 invStorageCode: null, |  |  |  |                 invStorageCode: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 page: 1, |  |  |  |                 page: 1, | 
			
		
	
	
		
		
			
				
					|  |  | @ -247,40 +149,13 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.filterQuery.page = 1; |  |  |  |             this.filterQuery.page = 1; | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.getList(); |  |  |  |             this.getList(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     handleSizeChange(val) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.filterQuery.limit = val; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.getList(); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         handleCurrentChange(val) { |  |  |  |         handleCurrentChange(val) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.filterQuery.page = val; |  |  |  |             this.filterQuery.page = val; | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.getList(); |  |  |  |             this.getList(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     handleUnitClick(row) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.curIndex = row.id; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.dialogTableVisible = true; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     closeDetailDialog(val) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.codeDetailVisible = false; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     closeDialog() { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.getList(); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         getList() { |  |  |  |         getList() { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.loading = true; |  |  |  |             this.loading = true; | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.filterQuery.customerId = store.getters.customerId; |  |  |  |             this.filterQuery.customerId = store.getters.customerId; | 
			
		
	
		
		
			
				
					
					|  |  |  |       filterProducts(this.filterQuery) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           .then((response) => { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.showSup = response.data.showSup; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.loading = false; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.list = response.data.list || []; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.total = response.data.total || 0; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           }) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           .catch(() => { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.loading = false; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.list = []; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.total = 0; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           }); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         deleteOrders(data) { |  |  |  |         deleteOrders(data) { | 
			
		
	
	
		
		
			
				
					|  |  | @ -288,21 +163,6 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |             let query = { |  |  |  |             let query = { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 id: data, |  |  |  |                 id: data, | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |       deleteProducts(query) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           .then((response) => { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (response.code == 20000) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |               this.getList(); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |               this.$message({ |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 type: "success", |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 message: "删除成功!", |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |               }); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             } else { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |               this.$message.error(response.message); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           }) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           .catch(() => { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           }); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         deleteDialog(rowId) { |  |  |  |         deleteDialog(rowId) { | 
			
		
	
	
		
		
			
				
					|  |  | @ -317,24 +177,6 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 .catch(() => { |  |  |  |                 .catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 }); |  |  |  |                 }); | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     findMethod(query) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.fromOptions = []; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       let cQuery = { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         key: query, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         customerName: query, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         page: 1, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         limit: 20 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       }; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       getBasicUnitMaintains(cQuery) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           .then((response) => { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.loading = false; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.fromOptions = response.data.page.list || []; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           }) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           .catch(() => { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.loading = false; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           }); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         getStorage() { |  |  |  |         getStorage() { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.storageList = []; |  |  |  |             this.storageList = []; | 
			
		
	
		
		
			
				
					
					|  |  |  |             filterUplLocInv() |  |  |  |             filterUplLocInv() | 
			
		
	
	
		
		
			
				
					|  |  | @ -345,7 +187,6 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 }); |  |  |  |                 }); | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         invChange() { |  |  |  |         invChange() { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.filterQuery.invWarehouseCode = ""; |  |  |  |             this.filterQuery.invWarehouseCode = ""; | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.subInvList = []; |  |  |  |             this.subInvList = []; | 
			
		
	
	
		
		
			
				
					|  |  | @ -364,57 +205,13 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 this.invWarehouseDisabled = true; |  |  |  |                 this.invWarehouseDisabled = true; | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     intentDetail(row) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.idQuery = row; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.idQuery.customerId = null; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.codeDetailVisible = true; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     corpChange(value) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       if (isBlank(value)) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.findMethod(); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     , |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     getBusType() { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       let query = { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         enabled: true, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       }; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       getBussinessType(query) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           .then((response) => { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.busTypes = response.data.list || []; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.filterQuery.billAction = this.busTypes[0].action; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             // this.getList(); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           }) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           .catch(() => { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           }); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     getActionName(action) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       for (let i = 0; i < this.busTypes.length; i++) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (this.busTypes[i].action === action) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           return this.busTypes[i].name; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |   }, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |   filters: { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     statusFilterType(status) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       const statusMap = { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         false: "success", |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         true: "danger", |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       }; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       return statusMap[status]; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     , |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |   } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |   , |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     mounted() { |  |  |  |     mounted() { | 
			
		
	
		
		
			
				
					
					|  |  |  |         document.body.ondrop = function (event) { |  |  |  |         document.body.ondrop = function (event) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             event.preventDefault(); |  |  |  |             event.preventDefault(); | 
			
		
	
		
		
			
				
					
					|  |  |  |             event.stopPropagation(); |  |  |  |             event.stopPropagation(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         }; |  |  |  |         }; | 
			
		
	
		
		
			
				
					
					|  |  |  |   } |  |  |  |     }, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   , |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     created() { |  |  |  |     created() { | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.getStorage(); |  |  |  |         this.getStorage(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.findMethod(); |  |  |  |         this.findMethod(); | 
			
		
	
	
		
		
			
				
					|  |  | @ -434,10 +231,8 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |         }).catch((error) => { |  |  |  |         }).catch((error) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |         }); |  |  |  |         }); | 
			
		
	
		
		
			
				
					
					|  |  |  |   } |  |  |  |     }, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   , |  |  |  | }; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | ; |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | </script> |  |  |  | </script> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | <style type="text/scss" lang="scss"> |  |  |  | <style type="text/scss" lang="scss"> | 
			
		
	
	
		
		
			
				
					|  |  | 
 |