|  |  | @ -103,21 +103,12 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | </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"; | 
			
		
	
		
		
			
				
					
					|  |  |  | import {isBlank} from "@/utils/strUtil"; |  |  |  | import {isBlank} from "@/utils/strUtil"; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | export default { |  |  |  | export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |     data() { |  |  |  |     data() { | 
			
		
	
		
		
			
				
					
					|  |  |  |         return { |  |  |  |         return { | 
			
		
	
	
		
		
			
				
					|  |  | @ -127,13 +118,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 invSpaceCode: null, |  |  |  |                 invSpaceCode: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 page: 1, |  |  |  |                 page: 1, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 limit: 20, |  |  |  |                 limit: 20, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 customerId: null, |  |  |  |                 customerId: null | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             }, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             detailQuery: { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 code: null, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 orderIdFk: null, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 page: 1, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 limit: 20, |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             }, |  |  |  |             }, | 
			
		
	
		
		
			
				
					
					|  |  |  |             list: [], |  |  |  |             list: [], | 
			
		
	
		
		
			
				
					
					|  |  |  |             storageList: [], |  |  |  |             storageList: [], | 
			
		
	
	
		
		
			
				
					|  |  | @ -141,15 +126,7 @@ 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, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             idQuery: null, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             showSup: false, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             fromOptions: [], |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             spaceCodeList: [], |  |  |  |             spaceCodeList: [], | 
			
		
	
		
		
			
				
					
					|  |  |  |             statusMap: { |  |  |  |             statusMap: { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 0: "未提交", |  |  |  |                 0: "未提交", | 
			
		
	
	
		
		
			
				
					|  |  | @ -158,23 +135,13 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |             }, |  |  |  |             }, | 
			
		
	
		
		
			
				
					
					|  |  |  |         }; |  |  |  |         }; | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     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, | 
			
		
	
	
		
		
			
				
					|  |  | @ -188,40 +155,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) { | 
			
		
	
	
		
		
			
				
					|  |  | @ -229,21 +169,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) { | 
			
		
	
	
		
		
			
				
					|  |  | @ -258,24 +183,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() | 
			
		
	
	
		
		
			
				
					|  |  | @ -303,11 +210,6 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 this.invWarehouseDisabled = true; |  |  |  |                 this.invWarehouseDisabled = true; | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  |         corpChange(value) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (isBlank(value)) { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 this.findMethod(); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         submitAudit(row) { |  |  |  |         submitAudit(row) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         }, | 
			
		
	
	
		
		
			
				
					|  |  | @ -335,7 +237,6 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |     , |  |  |  |     , | 
			
		
	
		
		
			
				
					
					|  |  |  |     created() { |  |  |  |     created() { | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.getStorage(); |  |  |  |         this.getStorage(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.findMethod(); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         let query = this.$route.query; |  |  |  |         let query = this.$route.query; | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.filterQuery = Object.assign(this.filterQuery, query); |  |  |  |         this.filterQuery = Object.assign(this.filterQuery, query); | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.filterQuery.limit = parseInt(this.filterQuery.limit); |  |  |  |         this.filterQuery.limit = parseInt(this.filterQuery.limit); | 
			
		
	
	
		
		
			
				
					|  |  | 
 |