|  |  |  | @ -52,125 +52,127 @@ | 
			
		
	
		
			
				
					|  |  |  |  | </template> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | <script> | 
			
		
	
		
			
				
					|  |  |  |  |     import { | 
			
		
	
		
			
				
					|  |  |  |  |         filterDetailProducts, | 
			
		
	
		
			
				
					|  |  |  |  |     } from "../../api/warehouse/InvProducts"; | 
			
		
	
		
			
				
					|  |  |  |  |     import store from "../../store"; | 
			
		
	
		
			
				
					|  |  |  |  |     import draggable from "vuedraggable"; | 
			
		
	
		
			
				
					|  |  |  |  |     import {getBusType} from "../../api/warehouse/BusRole"; | 
			
		
	
		
			
				
					|  |  |  |  | import { | 
			
		
	
		
			
				
					|  |  |  |  |     filterDetailProducts, | 
			
		
	
		
			
				
					|  |  |  |  | } from "../../api/warehouse/InvProducts"; | 
			
		
	
		
			
				
					|  |  |  |  | import store from "../../store"; | 
			
		
	
		
			
				
					|  |  |  |  | import draggable from "vuedraggable"; | 
			
		
	
		
			
				
					|  |  |  |  | import {getBusType} from "../../api/warehouse/BusRole"; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     export default { | 
			
		
	
		
			
				
					|  |  |  |  |         name: "idQuery", | 
			
		
	
		
			
				
					|  |  |  |  |         props: { | 
			
		
	
		
			
				
					|  |  |  |  |             idQuery: { | 
			
		
	
		
			
				
					|  |  |  |  |                 type: Object, | 
			
		
	
		
			
				
					|  |  |  |  |                 required: true, | 
			
		
	
		
			
				
					|  |  |  |  |             }, | 
			
		
	
		
			
				
					|  |  |  |  | export default { | 
			
		
	
		
			
				
					|  |  |  |  |     name: "idQuery", | 
			
		
	
		
			
				
					|  |  |  |  |     props: { | 
			
		
	
		
			
				
					|  |  |  |  |         idQuery: { | 
			
		
	
		
			
				
					|  |  |  |  |             type: Object, | 
			
		
	
		
			
				
					|  |  |  |  |             required: true, | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         data() { | 
			
		
	
		
			
				
					|  |  |  |  |             return { | 
			
		
	
		
			
				
					|  |  |  |  |                 query: { | 
			
		
	
		
			
				
					|  |  |  |  |                     productIdFk:null, | 
			
		
	
		
			
				
					|  |  |  |  |                     customerId:null, | 
			
		
	
		
			
				
					|  |  |  |  |                     page: 1, | 
			
		
	
		
			
				
					|  |  |  |  |                     limit: 20, | 
			
		
	
		
			
				
					|  |  |  |  |                 }, | 
			
		
	
		
			
				
					|  |  |  |  |                 codeArry: [], | 
			
		
	
		
			
				
					|  |  |  |  |                 total: 0, | 
			
		
	
		
			
				
					|  |  |  |  |                 loading: true, | 
			
		
	
		
			
				
					|  |  |  |  |                 index: null, | 
			
		
	
		
			
				
					|  |  |  |  |                 formLoading: false, | 
			
		
	
		
			
				
					|  |  |  |  |                 formVisible: false, | 
			
		
	
		
			
				
					|  |  |  |  |                 deleteLoading: false, | 
			
		
	
		
			
				
					|  |  |  |  |                 orderNo: null, | 
			
		
	
		
			
				
					|  |  |  |  |                 busTypes: [], | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     data() { | 
			
		
	
		
			
				
					|  |  |  |  |         return { | 
			
		
	
		
			
				
					|  |  |  |  |             query: { | 
			
		
	
		
			
				
					|  |  |  |  |                 productIdFk: null, | 
			
		
	
		
			
				
					|  |  |  |  |                 customerId: null, | 
			
		
	
		
			
				
					|  |  |  |  |                 batchNo: null, | 
			
		
	
		
			
				
					|  |  |  |  |                 page: 1, | 
			
		
	
		
			
				
					|  |  |  |  |                 limit: 20, | 
			
		
	
		
			
				
					|  |  |  |  |             }, | 
			
		
	
		
			
				
					|  |  |  |  |             codeArry: [], | 
			
		
	
		
			
				
					|  |  |  |  |             total: 0, | 
			
		
	
		
			
				
					|  |  |  |  |             loading: true, | 
			
		
	
		
			
				
					|  |  |  |  |             index: null, | 
			
		
	
		
			
				
					|  |  |  |  |             formLoading: false, | 
			
		
	
		
			
				
					|  |  |  |  |             formVisible: false, | 
			
		
	
		
			
				
					|  |  |  |  |             deleteLoading: false, | 
			
		
	
		
			
				
					|  |  |  |  |             orderNo: null, | 
			
		
	
		
			
				
					|  |  |  |  |             busTypes: [], | 
			
		
	
		
			
				
					|  |  |  |  |         }; | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     components: { | 
			
		
	
		
			
				
					|  |  |  |  |         draggable, | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     methods: { | 
			
		
	
		
			
				
					|  |  |  |  |         onReset() { | 
			
		
	
		
			
				
					|  |  |  |  |             this.$router.push({ | 
			
		
	
		
			
				
					|  |  |  |  |                 path: "", | 
			
		
	
		
			
				
					|  |  |  |  |             }); | 
			
		
	
		
			
				
					|  |  |  |  |             this.query = { | 
			
		
	
		
			
				
					|  |  |  |  |                 productIdFk: null, | 
			
		
	
		
			
				
					|  |  |  |  |                 customerId: null, | 
			
		
	
		
			
				
					|  |  |  |  |                 page: 1, | 
			
		
	
		
			
				
					|  |  |  |  |                 limit: 20, | 
			
		
	
		
			
				
					|  |  |  |  |             }; | 
			
		
	
		
			
				
					|  |  |  |  |             this.getCodeList(); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         components: { | 
			
		
	
		
			
				
					|  |  |  |  |             draggable, | 
			
		
	
		
			
				
					|  |  |  |  |         onSubmit() { | 
			
		
	
		
			
				
					|  |  |  |  |             this.$router.push({ | 
			
		
	
		
			
				
					|  |  |  |  |                 path: "", | 
			
		
	
		
			
				
					|  |  |  |  |                 query: this.query, | 
			
		
	
		
			
				
					|  |  |  |  |             }); | 
			
		
	
		
			
				
					|  |  |  |  |             this.getCodeList(); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         handleSizeChange(val) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.query.limit = val; | 
			
		
	
		
			
				
					|  |  |  |  |             this.getCodeList(); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         handleCurrentChange(val) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.query.page = val; | 
			
		
	
		
			
				
					|  |  |  |  |             this.getCodeList(); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         methods: { | 
			
		
	
		
			
				
					|  |  |  |  |             onReset() { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.$router.push({ | 
			
		
	
		
			
				
					|  |  |  |  |                     path: "", | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |                 this.query = { | 
			
		
	
		
			
				
					|  |  |  |  |                     productIdFk:null, | 
			
		
	
		
			
				
					|  |  |  |  |                     customerId:null, | 
			
		
	
		
			
				
					|  |  |  |  |                     page: 1, | 
			
		
	
		
			
				
					|  |  |  |  |                     limit: 20, | 
			
		
	
		
			
				
					|  |  |  |  |                 }; | 
			
		
	
		
			
				
					|  |  |  |  |                 this.getCodeList(); | 
			
		
	
		
			
				
					|  |  |  |  |             }, | 
			
		
	
		
			
				
					|  |  |  |  |             onSubmit() { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.$router.push({ | 
			
		
	
		
			
				
					|  |  |  |  |                     path: "", | 
			
		
	
		
			
				
					|  |  |  |  |                     query: this.query, | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |                 this.getCodeList(); | 
			
		
	
		
			
				
					|  |  |  |  |             }, | 
			
		
	
		
			
				
					|  |  |  |  |             handleSizeChange(val) { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.query.limit = val; | 
			
		
	
		
			
				
					|  |  |  |  |                 this.getCodeList(); | 
			
		
	
		
			
				
					|  |  |  |  |             }, | 
			
		
	
		
			
				
					|  |  |  |  |             handleCurrentChange(val) { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.query.page = val; | 
			
		
	
		
			
				
					|  |  |  |  |                 this.getCodeList(); | 
			
		
	
		
			
				
					|  |  |  |  |             }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             getCodeList() { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.loading = true; | 
			
		
	
		
			
				
					|  |  |  |  |                 this.query.productIdFk = this.idQuery.id; | 
			
		
	
		
			
				
					|  |  |  |  |                 this.query.customerId = store.getters.customerId; | 
			
		
	
		
			
				
					|  |  |  |  |                 filterDetailProducts(this.query) //查找该单号下的所有条码 | 
			
		
	
		
			
				
					|  |  |  |  |                     .then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |                         this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |                         this.codeArry = response.data.list || []; | 
			
		
	
		
			
				
					|  |  |  |  |                         this.total = response.data.total || 0; | 
			
		
	
		
			
				
					|  |  |  |  |                     }) | 
			
		
	
		
			
				
					|  |  |  |  |                     .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                         this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |                         this.list = []; | 
			
		
	
		
			
				
					|  |  |  |  |                         this.total = 0; | 
			
		
	
		
			
				
					|  |  |  |  |                     }); | 
			
		
	
		
			
				
					|  |  |  |  |             }, | 
			
		
	
		
			
				
					|  |  |  |  |             intentBack() { | 
			
		
	
		
			
				
					|  |  |  |  |                 //  this.$router.push({path:'../readme/detail',query:{id:row.corpOrderId}}); | 
			
		
	
		
			
				
					|  |  |  |  |                 this.$router.go(-1); | 
			
		
	
		
			
				
					|  |  |  |  |             }, | 
			
		
	
		
			
				
					|  |  |  |  |             getActionName(action) { | 
			
		
	
		
			
				
					|  |  |  |  |                 for (let i = 0; i < this.busTypes.length; i++) { | 
			
		
	
		
			
				
					|  |  |  |  |                     if (this.busTypes[i].action === action) { | 
			
		
	
		
			
				
					|  |  |  |  |                         return this.busTypes[i].name; | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  |         getCodeList() { | 
			
		
	
		
			
				
					|  |  |  |  |             this.loading = true; | 
			
		
	
		
			
				
					|  |  |  |  |             this.query.productIdFk = this.idQuery.relIdFk; | 
			
		
	
		
			
				
					|  |  |  |  |             this.query.customerId = store.getters.customerId; | 
			
		
	
		
			
				
					|  |  |  |  |             this.query.batchNo = this.idQuery.batchNo; | 
			
		
	
		
			
				
					|  |  |  |  |             filterDetailProducts(this.query) //查找该单号下的所有条码 | 
			
		
	
		
			
				
					|  |  |  |  |                 .then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |                     this.codeArry = response.data.list || []; | 
			
		
	
		
			
				
					|  |  |  |  |                     this.total = response.data.total || 0; | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |  |                 .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |                     this.list = []; | 
			
		
	
		
			
				
					|  |  |  |  |                     this.total = 0; | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         intentBack() { | 
			
		
	
		
			
				
					|  |  |  |  |             //  this.$router.push({path:'../readme/detail',query:{id:row.corpOrderId}}); | 
			
		
	
		
			
				
					|  |  |  |  |             this.$router.go(-1); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         getActionName(action) { | 
			
		
	
		
			
				
					|  |  |  |  |             for (let i = 0; i < this.busTypes.length; i++) { | 
			
		
	
		
			
				
					|  |  |  |  |                 if (this.busTypes[i].action === action) { | 
			
		
	
		
			
				
					|  |  |  |  |                     return this.busTypes[i].name; | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  |             }, | 
			
		
	
		
			
				
					|  |  |  |  |             getBusType() { | 
			
		
	
		
			
				
					|  |  |  |  |                 let query = { | 
			
		
	
		
			
				
					|  |  |  |  |                     enabled: true, | 
			
		
	
		
			
				
					|  |  |  |  |                 }; | 
			
		
	
		
			
				
					|  |  |  |  |                 getBusType(query) | 
			
		
	
		
			
				
					|  |  |  |  |                     .then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |                         this.busTypes = response.data.list || []; | 
			
		
	
		
			
				
					|  |  |  |  |                         this.filterQuery.billAction = this.busTypes[0].action; | 
			
		
	
		
			
				
					|  |  |  |  |                         // this.getList(); | 
			
		
	
		
			
				
					|  |  |  |  |                     }) | 
			
		
	
		
			
				
					|  |  |  |  |                     .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                     }); | 
			
		
	
		
			
				
					|  |  |  |  |             }, | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         filters: {}, | 
			
		
	
		
			
				
					|  |  |  |  |         mounted() { | 
			
		
	
		
			
				
					|  |  |  |  |             document.body.ondrop = function (event) { | 
			
		
	
		
			
				
					|  |  |  |  |                 event.preventDefault(); | 
			
		
	
		
			
				
					|  |  |  |  |                 event.stopPropagation(); | 
			
		
	
		
			
				
					|  |  |  |  |         getBusType() { | 
			
		
	
		
			
				
					|  |  |  |  |             let query = { | 
			
		
	
		
			
				
					|  |  |  |  |                 enabled: true, | 
			
		
	
		
			
				
					|  |  |  |  |             }; | 
			
		
	
		
			
				
					|  |  |  |  |             getBusType(query) | 
			
		
	
		
			
				
					|  |  |  |  |                 .then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.busTypes = response.data.list || []; | 
			
		
	
		
			
				
					|  |  |  |  |                     this.filterQuery.billAction = this.busTypes[0].action; | 
			
		
	
		
			
				
					|  |  |  |  |                     // this.getList(); | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |  |                 .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         created() { | 
			
		
	
		
			
				
					|  |  |  |  |             this.getBusType(); | 
			
		
	
		
			
				
					|  |  |  |  |             this.getCodeList(); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |     }; | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     filters: {}, | 
			
		
	
		
			
				
					|  |  |  |  |     mounted() { | 
			
		
	
		
			
				
					|  |  |  |  |         document.body.ondrop = function (event) { | 
			
		
	
		
			
				
					|  |  |  |  |             event.preventDefault(); | 
			
		
	
		
			
				
					|  |  |  |  |             event.stopPropagation(); | 
			
		
	
		
			
				
					|  |  |  |  |         }; | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     created() { | 
			
		
	
		
			
				
					|  |  |  |  |         this.getBusType(); | 
			
		
	
		
			
				
					|  |  |  |  |         this.getCodeList(); | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | }; | 
			
		
	
		
			
				
					|  |  |  |  | </script> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | 
 |