|  |  | @ -22,23 +22,29 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |           >草稿保存 |  |  |  |           >草稿保存 | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-button> |  |  |  |           </el-button> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-button size="mini" type="primary" @click.native="submit()" |  |  |  |           <el-button size="mini" type="primary" @click.native="submit()" | 
			
		
	
		
		
			
				
					
					|  |  |  |                      v-if="(viewType != 5 && viewType != 6)&&(curAction.checkWebNew != 2  || viewType !=1)" |  |  |  | 
 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           >立即提交 |  |  |  |           >立即提交 | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-button> |  |  |  |           </el-button> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-button size="mini" type="primary" @click.native="submit(1)" |  |  |  |           <el-button size="mini" type="primary" @click.native="revokeBill()" | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                      v-if="curAction.checkWebNew > 1  && viewType == 1" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           >待配货提交 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-button> |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-button size="mini" type="primary" @click.native="submit(1)" |  |  |  |           >撤回单据 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                      v-if="viewType == 5" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           >完成验收 |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           </el-button> |  |  |  |           </el-button> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-button size="mini" type="primary" @click.native="submit(1)" |  |  |  |           <!--                     v-if="(viewType != 5 && viewType != 6)&&(curAction.checkWebNew != 2  || viewType !=1)"--> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                      v-if=" viewType == 6" |  |  |  |           <!--          <el-button size="mini" type="primary" @click.native="submit(1)"--> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           >完成验收 |  |  |  |           <!--                     v-if="curAction.checkWebNew > 1  && viewType == 1"--> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           </el-button> |  |  |  |           <!--          >待配货提交--> | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           <!--          </el-button>--> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           <!--          <el-button size="mini" type="primary" @click.native="submit(1)"--> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           <!--                     v-if="viewType == 5"--> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           <!--          >完成验收--> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           <!--          </el-button>--> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           <!--          <el-button size="mini" type="primary" @click.native="submit(1)"--> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           <!--                     v-if=" viewType == 6"--> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           <!--          >完成验收--> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           <!--          </el-button>--> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         </el-button-group> |  |  |  |         </el-button-group> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <el-row> |  |  |  |         <el-row> | 
			
		
	
	
		
		
			
				
					|  |  | @ -69,7 +75,6 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-col> |  |  |  |           </el-col> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </el-row> |  |  |  |         </el-row> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <el-row> |  |  |  |         <el-row> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-col :span="11"> |  |  |  |           <el-col :span="11"> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-form-item prop="invCode" label="当前仓库:"> |  |  |  |             <el-form-item prop="invCode" label="当前仓库:"> | 
			
		
	
		
		
			
				
					
					|  |  |  |               <el-select |  |  |  |               <el-select | 
			
		
	
	
		
		
			
				
					|  |  | @ -387,12 +392,12 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     </el-card> |  |  |  |     </el-card> | 
			
		
	
		
		
			
				
					
					|  |  |  |     <el-tabs type="border-card" style="margin: 5px"> |  |  |  |     <el-tabs type="border-card" style="margin: 5px"> | 
			
		
	
		
		
			
				
					
					|  |  |  |       <el-tab-pane label="校验详情" v-if="viewCheckVisible || viewType == 7"> |  |  |  |       <el-tab-pane label="校验详情" v-if="viewCheckVisible || viewType == 7"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <biz-detail-panel |  |  |  |         <checkResultPanel | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           :idQuery="orderFormData" |  |  |  |           :idQuery="orderFormData" | 
			
		
	
		
		
			
				
					
					|  |  |  |           :viewType="viewType" |  |  |  |           :viewType="viewType" | 
			
		
	
		
		
			
				
					
					|  |  |  |           :curBustype="curAction" |  |  |  |           :curBustype="curAction" | 
			
		
	
		
		
			
				
					
					|  |  |  |           v-if="isCheckResultAlive" |  |  |  |           v-if="isCheckResultAlive" | 
			
		
	
		
		
			
				
					
					|  |  |  |         ></biz-detail-panel> |  |  |  |         ></checkResultPanel> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       </el-tab-pane> |  |  |  |       </el-tab-pane> | 
			
		
	
		
		
			
				
					
					|  |  |  |       <el-tab-pane label="业务详情" v-if="bizShow && viewBizVisible || (viewType ==5 || viewType==6)"> |  |  |  |       <el-tab-pane label="业务详情" v-if="bizShow && viewBizVisible || (viewType ==5 || viewType==6)"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <biz-detail-panel |  |  |  |         <biz-detail-panel | 
			
		
	
	
		
		
			
				
					|  |  | @ -477,7 +482,6 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |       ></DialogSelectUnit> |  |  |  |       ></DialogSelectUnit> | 
			
		
	
		
		
			
				
					
					|  |  |  |     </el-dialog> |  |  |  |     </el-dialog> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     <!--    绑定产品--> |  |  |  |     <!--    绑定产品--> | 
			
		
	
		
		
			
				
					
					|  |  |  |     <el-dialog |  |  |  |     <el-dialog | 
			
		
	
		
		
			
				
					
					|  |  |  |       :title="selectRlTitle" |  |  |  |       :title="selectRlTitle" | 
			
		
	
	
		
		
			
				
					|  |  | @ -496,7 +500,6 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |       ></selectRlDialog> |  |  |  |       ></selectRlDialog> | 
			
		
	
		
		
			
				
					
					|  |  |  |     </el-dialog> |  |  |  |     </el-dialog> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     <el-dialog |  |  |  |     <el-dialog | 
			
		
	
		
		
			
				
					
					|  |  |  |       title="请指定当前产品所在货位" |  |  |  |       title="请指定当前产品所在货位" | 
			
		
	
		
		
			
				
					
					|  |  |  |       :visible.sync="selectSpaceVisible" |  |  |  |       :visible.sync="selectSpaceVisible" | 
			
		
	
	
		
		
			
				
					|  |  | @ -513,6 +516,18 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     </el-dialog> |  |  |  |     </el-dialog> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     <el-dialog | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       title="提示" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       :visible.sync="checkTipDialogVisible" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       width="30%" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       center> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       <span>{{ checkTip }}</span> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       <span slot="footer" class="dialog-footer"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           <el-button @click="checkTipDialogVisible = false">取消</el-button> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           <el-button type="primary" @click="submit()">确定</el-button> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       </span> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     </el-dialog> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   </div> |  |  |  |   </div> | 
			
		
	
		
		
			
				
					
					|  |  |  | </template> |  |  |  | </template> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -524,7 +539,7 @@ import { | 
			
		
	
		
		
			
				
					
					|  |  |  |   submitOrderWeb, |  |  |  |   submitOrderWeb, | 
			
		
	
		
		
			
				
					
					|  |  |  |   saveOrderWeb, |  |  |  |   saveOrderWeb, | 
			
		
	
		
		
			
				
					
					|  |  |  |   updateCodeBindSup, |  |  |  |   updateCodeBindSup, | 
			
		
	
		
		
			
				
					
					|  |  |  |   enterCodeWeb, submitAllocateBiz, |  |  |  |   enterCodeWeb, submitAllocateBiz, rollbackWaitcheck, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | } from "../../api/inout/order"; |  |  |  | } from "../../api/inout/order"; | 
			
		
	
		
		
			
				
					
					|  |  |  | import {filterSubAll, findByFrom, findInvByUser} from "../../api/system/invSubWarehouse"; |  |  |  | import {filterSubAll, findByFrom, findInvByUser} from "../../api/system/invSubWarehouse"; | 
			
		
	
		
		
			
				
					
					|  |  |  | import {parseTime} from "../../utils/coTools"; |  |  |  | import {parseTime} from "../../utils/coTools"; | 
			
		
	
	
		
		
			
				
					|  |  | @ -618,7 +633,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |       fromOptions: [], |  |  |  |       fromOptions: [], | 
			
		
	
		
		
			
				
					
					|  |  |  |       isCodeAlive: true, |  |  |  |       isCodeAlive: true, | 
			
		
	
		
		
			
				
					
					|  |  |  |       bizShow: true, |  |  |  |       bizShow: true, | 
			
		
	
		
		
			
				
					
					|  |  |  |       isCheckResultAlive: false, |  |  |  |       isCheckResultAlive: true, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       isBizDetailAlive: true, |  |  |  |       isBizDetailAlive: true, | 
			
		
	
		
		
			
				
					
					|  |  |  |       isCodeDetailAlive: true, |  |  |  |       isCodeDetailAlive: true, | 
			
		
	
		
		
			
				
					
					|  |  |  |       editCodeVisible: false, |  |  |  |       editCodeVisible: false, | 
			
		
	
	
		
		
			
				
					|  |  | @ -679,6 +694,8 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |       preSpaceShow: false,     //寄售,预验收仓库界面 |  |  |  |       preSpaceShow: false,     //寄售,预验收仓库界面 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       spaceCodeList: [], |  |  |  |       spaceCodeList: [], | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       checkTipDialogVisible: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       checkTip: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |     }; |  |  |  |     }; | 
			
		
	
		
		
			
				
					
					|  |  |  |   }, |  |  |  |   }, | 
			
		
	
		
		
			
				
					
					|  |  |  |   components: { |  |  |  |   components: { | 
			
		
	
	
		
		
			
				
					|  |  | @ -1189,18 +1206,66 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.isCodeAlive = false; |  |  |  |       this.isCodeAlive = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.isBizDetailAlive = false; |  |  |  |       this.isBizDetailAlive = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.isCodeDetailAlive = false; |  |  |  |       this.isCodeDetailAlive = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.$nextTick(() => { |  |  |  |       this.$nextTick(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |         //重新加载组件 |  |  |  |         //重新加载组件 | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.isCodeAlive = true; |  |  |  |         this.isCodeAlive = true; | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.isBizDetailAlive = true; |  |  |  |         this.isBizDetailAlive = true; | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.isCodeDetailAlive = true; |  |  |  |         this.isCodeDetailAlive = true; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       }); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       //选择性刷新 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       if (this.isCheckResultAlive) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         this.isCheckResultAlive = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         this.$nextTick(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           //重新加载组件 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           this.isCheckResultAlive = true; | 
			
		
	
		
		
			
				
					
					|  |  |  |         }); |  |  |  |         }); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     refreshOrder(orderQuery) { |  |  |  |     refreshOrder(orderQuery) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.orderFormData = orderQuery; |  |  |  |       this.orderFormData = orderQuery; | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     //撤回单据 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     revokeBill() { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       this.$confirm("是否确定撤回改单据?", "提示", { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         confirmButtonText: "确定", | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         cancelButtonText: "取消", | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         type: "warning", | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       }) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         .then(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           let query = {billNo: this.orderFormData.billNo}; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           rollbackWaitcheck(query) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             .then((response) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               if (response.code == 20000) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 this.$message.success("撤回成功!"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 this.$message.error(response.message); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             }) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             .catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             }); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         }) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         .catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         }); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     //待校验以扫码结果为准 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     submitCodeResult() { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     //待校验以正确结果为准 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     submitCheckResult() { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     submit(val) { |  |  |  |     submit(val) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       if (this.$isBlank(this.orderFormData.action)) { |  |  |  |       if (this.$isBlank(this.orderFormData.action)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.$message.warning("单据类型不能为空!"); |  |  |  |         this.$message.warning("单据类型不能为空!"); | 
			
		
	
	
		
		
			
				
					|  |  | @ -1262,7 +1327,11 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.$message.error(response.message); |  |  |  |             this.$message.error(response.message); | 
			
		
	
		
		
			
				
					
					|  |  |  |           } |  |  |  |           } | 
			
		
	
		
		
			
				
					
					|  |  |  |         }); |  |  |  |         }); | 
			
		
	
		
		
			
				
					
					|  |  |  |       } else {   //校验后提交 |  |  |  |       } | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       if (this.viewType = 7) {    //待校验提交 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       } else {   //配货拣货后后提交 | 
			
		
	
		
		
			
				
					
					|  |  |  |         submitOrderWeb(tQuery).then((response) => { |  |  |  |         submitOrderWeb(tQuery).then((response) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |           if (response.code === 20000) { |  |  |  |           if (response.code === 20000) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.$message.success("提交成功"); |  |  |  |             this.$message.success("提交成功"); | 
			
		
	
	
		
		
			
				
					|  |  | 
 |