|  |  | @ -203,6 +203,18 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             </el-table> |  |  |  |             </el-table> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </el-dialog> |  |  |  |         </el-dialog> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         <el-dialog | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             title="选择仓库信息" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             :visible.sync="dialogStorageVisible" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             width="70%" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             append-to-body | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             :close-on-click-modal="false" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             :close-on-press-escape="false" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             v-if="dialogStorageVisible" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         > | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <dialogSelectInvStorage  v-on:selectStorage="selectStorage"></dialogSelectInvStorage> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         </el-dialog> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         <el-dialog |  |  |  |         <el-dialog | 
			
		
	
		
		
			
				
					
					|  |  |  |             title="单号详情" |  |  |  |             title="单号详情" | 
			
		
	
		
		
			
				
					
					|  |  |  |             :visible.sync="codeDetailVisible" |  |  |  |             :visible.sync="codeDetailVisible" | 
			
		
	
	
		
		
			
				
					|  |  | @ -238,6 +250,7 @@ import { | 
			
		
	
		
		
			
				
					
					|  |  |  | import draggable from "vuedraggable"; |  |  |  | import draggable from "vuedraggable"; | 
			
		
	
		
		
			
				
					
					|  |  |  | import {saveAs} from "file-saver"; |  |  |  | import {saveAs} from "file-saver"; | 
			
		
	
		
		
			
				
					
					|  |  |  | import codeDetail from "./errorCode"; |  |  |  | import codeDetail from "./errorCode"; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import dialogSelectInvStorage from "./DialogSelectInvStorage"; | 
			
		
	
		
		
			
				
					
					|  |  |  | import addOrder from "./addOrder"; |  |  |  | import addOrder from "./addOrder"; | 
			
		
	
		
		
			
				
					
					|  |  |  | import store from "../../store"; |  |  |  | import store from "../../store"; | 
			
		
	
		
		
			
				
					
					|  |  |  | import {getBussinessType} from "../../api/basic/bussinessType"; |  |  |  | import {getBussinessType} from "../../api/basic/bussinessType"; | 
			
		
	
	
		
		
			
				
					|  |  | @ -295,6 +308,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |             adListNoDataText: "无数据", |  |  |  |             adListNoDataText: "无数据", | 
			
		
	
		
		
			
				
					
					|  |  |  |             queryAdIdAsyncLoading: false, |  |  |  |             queryAdIdAsyncLoading: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |             codeDetailVisible: false, |  |  |  |             codeDetailVisible: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             dialogStorageVisible:false, | 
			
		
	
		
		
			
				
					
					|  |  |  |             total: 0, |  |  |  |             total: 0, | 
			
		
	
		
		
			
				
					
					|  |  |  |             loading: true, |  |  |  |             loading: true, | 
			
		
	
		
		
			
				
					
					|  |  |  |             index: null, |  |  |  |             index: null, | 
			
		
	
	
		
		
			
				
					|  |  | @ -318,6 +332,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |     components: { |  |  |  |     components: { | 
			
		
	
		
		
			
				
					
					|  |  |  |         draggable, |  |  |  |         draggable, | 
			
		
	
		
		
			
				
					
					|  |  |  |         codeDetail, |  |  |  |         codeDetail, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         dialogSelectInvStorage, | 
			
		
	
		
		
			
				
					
					|  |  |  |         addOrder, |  |  |  |         addOrder, | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     methods: { |  |  |  |     methods: { | 
			
		
	
	
		
		
			
				
					|  |  | @ -346,8 +361,12 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         handleUnitClick(row) { |  |  |  |         handleUnitClick(row) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.curIndex = row.id; |  |  |  |             this.curIndex = row.id; | 
			
		
	
		
		
			
				
					
					|  |  |  |             let actionItem = this.getActionItem(row.action); |  |  |  |             let actionItem = this.getActionItem(row.action); | 
			
		
	
		
		
			
				
					
					|  |  |  |             // if(actionItem.co) |  |  |  |             if (actionItem.corpType == 0) {//选择供应商 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             this.dialogTableVisible = true; |  |  |  |                 this.dialogTableVisible = true; | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 this.dialogStorageVisible = true; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  |         closeDetailDialog(val) { |  |  |  |         closeDetailDialog(val) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.codeDetailVisible = false; |  |  |  |             this.codeDetailVisible = false; | 
			
		
	
	
		
		
			
				
					|  |  | @ -382,6 +401,21 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |                     this.dialogTableVisible = false; |  |  |  |                     this.dialogTableVisible = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |                 }); |  |  |  |                 }); | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         selectStorage(row) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             console.log(row.id); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             this.unitUpdateQuery.id = this.curIndex; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             this.unitUpdateQuery.fromCorp = row.name; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             this.unitUpdateQuery.fromCorpId = row.code; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             updateUnit(this.unitUpdateQuery) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 .then((response) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     this.dialogStorageVisible = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     this.getList(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 }) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 .catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     this.dialogStorageVisible = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 }); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         //获取订单列表 |  |  |  |         //获取订单列表 | 
			
		
	
		
		
			
				
					
					|  |  |  |         getList() { |  |  |  |         getList() { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.loading = true; |  |  |  |             this.loading = true; | 
			
		
	
	
		
		
			
				
					|  |  | 
 |