|  |  | @ -1,7 +1,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | <template> |  |  |  | <template> | 
			
		
	
		
		
			
				
					
					|  |  |  |   <div> |  |  |  |   <div> | 
			
		
	
		
		
			
				
					
					|  |  |  |     <el-card style="margin: 5px;margin-top: -20px"> |  |  |  |     <el-card style="margin: 5px;margin-top: -20px"> | 
			
		
	
		
		
			
				
					
					|  |  |  |       <el-form :model="formData" :rules="formRules" ref="dataForm" label-width="100px" |  |  |  |       <el-form :model="orderFormData" :rules="formRules" ref="dataForm" label-width="100px" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                style="margin-bottom: -15px"> |  |  |  |                style="margin-bottom: -15px"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <el-button-group style="display: flex;margin: 0px 0 10px 80%; height: 35px"> |  |  |  |         <el-button-group style="display: flex;margin: 0px 0 10px 80%; height: 35px"> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-button |  |  |  |           <el-button | 
			
		
	
	
		
		
			
				
					|  |  | @ -14,7 +14,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-button |  |  |  |           <el-button | 
			
		
	
		
		
			
				
					
					|  |  |  |             size="mini" |  |  |  |             size="mini" | 
			
		
	
		
		
			
				
					
					|  |  |  |             type="primary" |  |  |  |             type="primary" | 
			
		
	
		
		
			
				
					
					|  |  |  |             @click.native="submit('0')" |  |  |  |             @click.native="submit()" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           >提交订单 |  |  |  |           >提交订单 | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-button |  |  |  |           </el-button | 
			
		
	
		
		
			
				
					
					|  |  |  |           > |  |  |  |           > | 
			
		
	
	
		
		
			
				
					|  |  | @ -22,7 +22,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         <el-row> |  |  |  |         <el-row> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-col :span="11"> |  |  |  |           <el-col :span="11"> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-form-item prop="corpOrderId" label="单据号:"> |  |  |  |             <el-form-item prop="corpOrderId" label="单据号:"> | 
			
		
	
		
		
			
				
					
					|  |  |  |               <el-input v-model="formData.corpOrderId" auto-complete="off" style="width: 90%" |  |  |  |               <el-input v-model="orderFormData.corpOrderId" auto-complete="off" style="width: 90%" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                         clearable |  |  |  |                         clearable | 
			
		
	
		
		
			
				
					
					|  |  |  |                         :disabled="corpOrderIdDisabled"></el-input> |  |  |  |                         :disabled="corpOrderIdDisabled"></el-input> | 
			
		
	
		
		
			
				
					
					|  |  |  |             </el-form-item> |  |  |  |             </el-form-item> | 
			
		
	
	
		
		
			
				
					|  |  | @ -30,10 +30,11 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-col :span="11"> |  |  |  |           <el-col :span="11"> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-form-item prop="createTime" label="单据时间:"> |  |  |  |             <el-form-item prop="createTime" label="单据时间:"> | 
			
		
	
		
		
			
				
					
					|  |  |  |               <el-date-picker |  |  |  |               <el-date-picker | 
			
		
	
		
		
			
				
					
					|  |  |  |                 v-model="formData.createTime" |  |  |  |                 v-model="orderFormData.createTime" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 type="datetime" |  |  |  |                 type="datetime" | 
			
		
	
		
		
			
				
					
					|  |  |  |                 placeholder="日期" |  |  |  |                 placeholder="日期" | 
			
		
	
		
		
			
				
					
					|  |  |  |                 clearable |  |  |  |                 clearable | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 value-format="yyyy-MM-dd HH:mm:ss" | 
			
		
	
		
		
			
				
					
					|  |  |  |                 :disabled="true" |  |  |  |                 :disabled="true" | 
			
		
	
		
		
			
				
					
					|  |  |  |                 style="width: 90%" |  |  |  |                 style="width: 90%" | 
			
		
	
		
		
			
				
					
					|  |  |  |               > |  |  |  |               > | 
			
		
	
	
		
		
			
				
					|  |  | @ -44,7 +45,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         <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 v-model="formData.invCode" placeholder="当前仓库信息" |  |  |  |               <el-select v-model="orderFormData.invCode" placeholder="当前仓库信息" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                          style="width: 90%" |  |  |  |                          style="width: 90%" | 
			
		
	
		
		
			
				
					
					|  |  |  |                          clearable |  |  |  |                          clearable | 
			
		
	
		
		
			
				
					
					|  |  |  |                          :disabled="corpOrderIdDisabled" @change="changeInv" filterable> |  |  |  |                          :disabled="corpOrderIdDisabled" @change="changeInv" filterable> | 
			
		
	
	
		
		
			
				
					|  |  | @ -61,10 +62,9 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |               </el-select> |  |  |  |               </el-select> | 
			
		
	
		
		
			
				
					
					|  |  |  |             </el-form-item> |  |  |  |             </el-form-item> | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-col> |  |  |  |           </el-col> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-col :span="11"> |  |  |  |           <el-col :span="11"> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-form-item prop="action" label="单据类型:"> |  |  |  |             <el-form-item prop="action" label="单据类型:"> | 
			
		
	
		
		
			
				
					
					|  |  |  |               <el-select v-model="formData.action" placeholder="请选择单据类型" |  |  |  |               <el-select v-model="orderFormData.action" placeholder="请选择单据类型" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                          :disabled="corpOrderIdDisabled" |  |  |  |                          :disabled="corpOrderIdDisabled" | 
			
		
	
		
		
			
				
					
					|  |  |  |                          clearable |  |  |  |                          clearable | 
			
		
	
		
		
			
				
					
					|  |  |  |                          style="width: 90%" |  |  |  |                          style="width: 90%" | 
			
		
	
	
		
		
			
				
					|  |  | @ -87,7 +87,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                           v-if="curAction.corpType ==0 || curAction.corpType == 2 || (curAction.corpType == 1 && !curAction.genUnit)" |  |  |  |                           v-if="curAction.corpType ==0 || curAction.corpType == 2 || (curAction.corpType == 1 && !curAction.genUnit)" | 
			
		
	
		
		
			
				
					
					|  |  |  |             > |  |  |  |             > | 
			
		
	
		
		
			
				
					
					|  |  |  |               <el-select |  |  |  |               <el-select | 
			
		
	
		
		
			
				
					
					|  |  |  |                 v-model="formData.fromCorp" |  |  |  |                 v-model="orderFormData.fromCorp" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 filterable |  |  |  |                 filterable | 
			
		
	
		
		
			
				
					
					|  |  |  |                 remote |  |  |  |                 remote | 
			
		
	
		
		
			
				
					
					|  |  |  |                 clearable |  |  |  |                 clearable | 
			
		
	
	
		
		
			
				
					|  |  | @ -112,7 +112,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                           v-if="curAction.corpType ==3" |  |  |  |                           v-if="curAction.corpType ==3" | 
			
		
	
		
		
			
				
					
					|  |  |  |                           label="往来信息:" |  |  |  |                           label="往来信息:" | 
			
		
	
		
		
			
				
					
					|  |  |  |             > |  |  |  |             > | 
			
		
	
		
		
			
				
					
					|  |  |  |               <el-select v-model="formData.fromInvCode" placeholder="请选择往来仓库" |  |  |  |               <el-select v-model="orderFormData.fromInvCode" placeholder="请选择往来仓库" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                          :disabled="corpOrderIdDisabled" filterable |  |  |  |                          :disabled="corpOrderIdDisabled" filterable | 
			
		
	
		
		
			
				
					
					|  |  |  |                          clearable |  |  |  |                          clearable | 
			
		
	
		
		
			
				
					
					|  |  |  |                          style="width: 90%" |  |  |  |                          style="width: 90%" | 
			
		
	
	
		
		
			
				
					|  |  | @ -132,7 +132,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             </el-form-item> |  |  |  |             </el-form-item> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-form-item prop="fromCorp" |  |  |  |             <el-form-item prop="fromCorp" | 
			
		
	
		
		
			
				
					
					|  |  |  |                           v-if="curAction.corpType ==1 && curAction.genUnit"> |  |  |  |                           v-if="curAction.corpType ==1 && curAction.genUnit"> | 
			
		
	
		
		
			
				
					
					|  |  |  |               <el-input v-model="formData.fromCorp" auto-complete="off" |  |  |  |               <el-input v-model="orderFormData.fromCorp" auto-complete="off" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                         clearable |  |  |  |                         clearable | 
			
		
	
		
		
			
				
					
					|  |  |  |                         style="width: 90%" |  |  |  |                         style="width: 90%" | 
			
		
	
		
		
			
				
					
					|  |  |  |                         :disabled="corpOrderIdDisabled" |  |  |  |                         :disabled="corpOrderIdDisabled" | 
			
		
	
	
		
		
			
				
					|  |  | @ -143,7 +143,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-col> |  |  |  |           </el-col> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-col :span="11"> |  |  |  |           <el-col :span="11"> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-form-item prop="remark" label="备注:"> |  |  |  |             <el-form-item prop="remark" label="备注:"> | 
			
		
	
		
		
			
				
					
					|  |  |  |               <el-input v-model="formData.remark" auto-complete="off" |  |  |  |               <el-input v-model="orderFormData.remark" auto-complete="off" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                         clearable |  |  |  |                         clearable | 
			
		
	
		
		
			
				
					
					|  |  |  |                         style="width: 90%" |  |  |  |                         style="width: 90%" | 
			
		
	
		
		
			
				
					
					|  |  |  |                         placeholder="请输入备注信息" |  |  |  |                         placeholder="请输入备注信息" | 
			
		
	
	
		
		
			
				
					|  |  | @ -161,7 +161,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                 ref='inputRef' |  |  |  |                 ref='inputRef' | 
			
		
	
		
		
			
				
					
					|  |  |  |                 style="ime-mode:disabled" |  |  |  |                 style="ime-mode:disabled" | 
			
		
	
		
		
			
				
					
					|  |  |  |                 type="tel" |  |  |  |                 type="tel" | 
			
		
	
		
		
			
				
					
					|  |  |  |                 v-model="formData.code" |  |  |  |                 v-model="codeFormData.code" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |               ></el-input> |  |  |  |               ></el-input> | 
			
		
	
		
		
			
				
					
					|  |  |  |             </el-form-item> |  |  |  |             </el-form-item> | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-col> |  |  |  |           </el-col> | 
			
		
	
	
		
		
			
				
					|  |  | @ -180,13 +180,13 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     </el-card> |  |  |  |     </el-card> | 
			
		
	
		
		
			
				
					
					|  |  |  |     <el-tabs type="border-card" style="margin: 5px"> |  |  |  |     <el-tabs type="border-card" style="margin: 5px"> | 
			
		
	
		
		
			
				
					
					|  |  |  |       <el-tab-pane label="业务详情"> |  |  |  |       <el-tab-pane label="业务详情"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <biz-detail-panel :idQuery="idQuery" v-if="isCodeAlive"></biz-detail-panel> |  |  |  |         <biz-detail-panel :idQuery="orderFormData" v-if="isCodeAlive"></biz-detail-panel> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       </el-tab-pane> |  |  |  |       </el-tab-pane> | 
			
		
	
		
		
			
				
					
					|  |  |  |       <el-tab-pane label="扫码详情"> |  |  |  |       <el-tab-pane label="扫码详情"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <codeDetailPanel :idQuery="idQuery" v-if="isCodeAlive"></codeDetailPanel> |  |  |  |         <codeDetailPanel :idQuery="orderFormData" v-if="isCodeAlive"></codeDetailPanel> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       </el-tab-pane> |  |  |  |       </el-tab-pane> | 
			
		
	
		
		
			
				
					
					|  |  |  |       <el-tab-pane label="扫码明细"> |  |  |  |       <el-tab-pane label="扫码明细"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <codesPanel :idQuery="idQuery" v-if="isCodeAlive"></codesPanel> |  |  |  |         <codesPanel :idQuery="orderFormData" v-if="isCodeAlive"></codesPanel> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       </el-tab-pane> |  |  |  |       </el-tab-pane> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     </el-tabs> |  |  |  |     </el-tabs> | 
			
		
	
	
		
		
			
				
					|  |  | @ -301,22 +301,27 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |   data() { |  |  |  |   data() { | 
			
		
	
		
		
			
				
					
					|  |  |  |     return { |  |  |  |     return { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       formData: { |  |  |  |       //单据相关 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       orderFormData: { | 
			
		
	
		
		
			
				
					
					|  |  |  |         billNo: null, |  |  |  |         billNo: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         corpOrderId: null, |  |  |  |         corpOrderId: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         action: null, |  |  |  |         action: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         createTime: new Date(), |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         invCode: null, |  |  |  |         invCode: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         fromCorp: null, |  |  |  |         fromCorp: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         fromInvCode: null, |  |  |  |         fromInvCode: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         remark: null, |  |  |  |         remark: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         code: "", |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         fromType: 2, |  |  |  |         fromType: 2, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       //扫码相关 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       codeFormData: { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         code: "", | 
			
		
	
		
		
			
				
					
					|  |  |  |         batchNo: null, |  |  |  |         batchNo: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         produceDate: null, |  |  |  |         produceDate: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         expireDate: null, |  |  |  |         expireDate: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         serialNo: null, |  |  |  |         serialNo: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |       }, |  |  |  |       }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       curInvOptions: [], |  |  |  |       curInvOptions: [], | 
			
		
	
		
		
			
				
					
					|  |  |  |       busTypeOptions: [], |  |  |  |       busTypeOptions: [], | 
			
		
	
		
		
			
				
					
					|  |  |  |       fromInvOptions: [], |  |  |  |       fromInvOptions: [], | 
			
		
	
	
		
		
			
				
					|  |  | @ -348,12 +353,8 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |       formVisible: false, |  |  |  |       formVisible: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |       deleteLoading: false, |  |  |  |       deleteLoading: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |       orderNo: null, |  |  |  |       orderNo: null, | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       fromStorageOptions: [], |  |  |  |       fromStorageOptions: [], | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       curRow: null, |  |  |  |       curRow: null, | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       dialogTableVisible: false, |  |  |  |       dialogTableVisible: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |       sitcomScan: false, |  |  |  |       sitcomScan: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |       selectRlTitle: "绑定产品", |  |  |  |       selectRlTitle: "绑定产品", | 
			
		
	
	
		
		
			
				
					|  |  | @ -382,7 +383,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         .then((response) => { |  |  |  |         .then((response) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.curInvOptions = response.data || []; |  |  |  |           this.curInvOptions = response.data || []; | 
			
		
	
		
		
			
				
					
					|  |  |  |           if (this.curInvOptions != null && this.curInvOptions.length == 1) { |  |  |  |           if (this.curInvOptions != null && this.curInvOptions.length == 1) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.formData.invWarehouseCode = this.curInvOptions[0].code; |  |  |  |             this.orderFormData.invWarehouseCode = this.curInvOptions[0].code; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             this.getBusTypeByInv() |  |  |  |             this.getBusTypeByInv() | 
			
		
	
		
		
			
				
					
					|  |  |  |           } |  |  |  |           } | 
			
		
	
		
		
			
				
					
					|  |  |  |         }) |  |  |  |         }) | 
			
		
	
	
		
		
			
				
					|  |  | @ -392,14 +393,14 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     //仓库改变 |  |  |  |     //仓库改变 | 
			
		
	
		
		
			
				
					
					|  |  |  |     changeInv() { |  |  |  |     changeInv() { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData.action = null; |  |  |  |       this.orderFormData.action = null; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       this.getBusTypeByInv(); |  |  |  |       this.getBusTypeByInv(); | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     //根据仓库,用户获取单据类型 |  |  |  |     //根据仓库,用户获取单据类型 | 
			
		
	
		
		
			
				
					
					|  |  |  |     getBusTypeByInv() { |  |  |  |     getBusTypeByInv() { | 
			
		
	
		
		
			
				
					
					|  |  |  |       let query = { |  |  |  |       let query = { | 
			
		
	
		
		
			
				
					
					|  |  |  |         code: this.formData.invCode, |  |  |  |         code: this.orderFormData.invCode, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       }; |  |  |  |       }; | 
			
		
	
		
		
			
				
					
					|  |  |  |       findByInvUser(query) |  |  |  |       findByInvUser(query) | 
			
		
	
		
		
			
				
					
					|  |  |  |         .then((response) => { |  |  |  |         .then((response) => { | 
			
		
	
	
		
		
			
				
					|  |  | @ -442,11 +443,11 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.curAction = this.getActionItem(item); |  |  |  |       this.curAction = this.getActionItem(item); | 
			
		
	
		
		
			
				
					
					|  |  |  |       if (this.curAction.corpType == 0 || this.curAction.corpType == 2 || (this.curAction.corpType == 1 && !this.curAction.genUnit)) { |  |  |  |       if (this.curAction.corpType == 0 || this.curAction.corpType == 2 || (this.curAction.corpType == 1 && !this.curAction.genUnit)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         //1.切换往来单位 |  |  |  |         //1.切换往来单位 | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.formData.fromCorp = null; |  |  |  |         this.orderFormData.fromCorp = null; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         this.findMethod(); |  |  |  |         this.findMethod(); | 
			
		
	
		
		
			
				
					
					|  |  |  |       } else if (this.curAction.corpType == 3) { |  |  |  |       } else if (this.curAction.corpType == 3) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         //2. 切换往来仓库 |  |  |  |         //2. 切换往来仓库 | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.formData.fromInvCode = null; |  |  |  |         this.orderFormData.fromInvCode = null; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         this.findFromInvList(); |  |  |  |         this.findFromInvList(); | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
	
		
		
			
				
					|  |  | @ -454,13 +455,13 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |     //获取往来仓库列表 |  |  |  |     //获取往来仓库列表 | 
			
		
	
		
		
			
				
					
					|  |  |  |     findFromInvList(val) { |  |  |  |     findFromInvList(val) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       let cQuery = { |  |  |  |       let cQuery = { | 
			
		
	
		
		
			
				
					
					|  |  |  |         locInvCode: this.formData.invCode, |  |  |  |         locInvCode: this.orderFormData.invCode, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       }; |  |  |  |       }; | 
			
		
	
		
		
			
				
					
					|  |  |  |       findByFrom(cQuery) |  |  |  |       findByFrom(cQuery) | 
			
		
	
		
		
			
				
					
					|  |  |  |         .then((response) => { |  |  |  |         .then((response) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.fromInvOptions = response.data || []; |  |  |  |           this.fromInvOptions = response.data || []; | 
			
		
	
		
		
			
				
					
					|  |  |  |           if (val == 1) { |  |  |  |           if (val == 1) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.formData.fromInvCode = this.fromInvOptions[0].code; |  |  |  |             this.orderFormData.fromInvCode = this.fromInvOptions[0].code; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           } |  |  |  |           } | 
			
		
	
		
		
			
				
					
					|  |  |  |         }) |  |  |  |         }) | 
			
		
	
		
		
			
				
					
					|  |  |  |         .catch(() => { |  |  |  |         .catch(() => { | 
			
		
	
	
		
		
			
				
					|  |  | @ -480,30 +481,28 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |     addCode(event) { |  |  |  |     addCode(event) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.originCode = ""; |  |  |  |       this.originCode = ""; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.sictomText = ""; |  |  |  |       this.sictomText = ""; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData.corpOrderId = this.formData.corpOrderId.trim(); |  |  |  |       this.orderFormData.corpOrderId = this.orderFormData.corpOrderId.trim(); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData.batchNo = ""; |  |  |  |       this.codeFormData.batchNo = ""; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData.produceDate = ""; |  |  |  |       this.codeFormData.produceDate = ""; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData.expireDate = ""; |  |  |  |       this.codeFormData.expireDate = ""; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData.serialNo = ""; |  |  |  |       this.codeFormData.serialNo = ""; | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       this.actionEnable = true; |  |  |  |       this.actionEnable = true; | 
			
		
	
		
		
			
				
					
					|  |  |  |       if (event == null) { |  |  |  |       if (event == null) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       } else event.target.select(); |  |  |  |       } else event.target.select(); | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.$refs.inputRef.select(); |  |  |  |       this.$refs.inputRef.select(); | 
			
		
	
		
		
			
				
					
					|  |  |  |       if (this.$isBlank(this.formData.action)) { |  |  |  |       if (this.$isBlank(this.orderFormData.action)) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         this.$message.warning("请选择单据类型!"); |  |  |  |         this.$message.warning("请选择单据类型!"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         return; |  |  |  |         return; | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |       if (this.$isBlank(this.formData.corpOrderId)) { |  |  |  |       if (this.$isBlank(this.orderFormData.corpOrderId)) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         let date = new Date(); |  |  |  |         let date = new Date(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.formData.corpOrderId = parseTime(date, '{y}{m}{d}{h}{i}{s}') + Math.ceil(Math.random() * 89 + 10); |  |  |  |         this.orderFormData.corpOrderId = parseTime(date, '{y}{m}{d}{h}{i}{s}') + Math.ceil(Math.random() * 89 + 10); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData.code = this.formData.code.trim(); |  |  |  |       this.codeFormData.code = this.codeFormData.code.trim(); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       if (this.$isBlank(this.formData.code)) return; |  |  |  |       if (this.$isBlank(this.codeFormData.code)) return; | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       this.loading = true; |  |  |  |       this.loading = true; | 
			
		
	
		
		
			
				
					
					|  |  |  |       let tQuery = Object.assign(JSON.parse(JSON.stringify(this.formData))); |  |  |  |       let tQuery = Object.assign(JSON.parse(JSON.stringify(this.orderFormData))); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       tQuery.orderId = this.idQuery.id; |  |  |  |       tQuery.code = this.codeFormData.code; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       tQuery.actDate = parseTime(this.formData.actDate, '{y}-{m}-{d} {h}:{i}:{s}'); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       tQuery.action = this.formData.action; |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       this.addCodeSubmit(tQuery); |  |  |  |       this.addCodeSubmit(tQuery); | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.$refs.inputRef.select(); |  |  |  |       this.$refs.inputRef.select(); | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
	
		
		
			
				
					|  |  | @ -565,10 +564,10 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |           } else if (response.code == 507) { |  |  |  |           } else if (response.code == 507) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.editOriginCodeVisible = true; |  |  |  |             this.editOriginCodeVisible = true; | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.editTitle = response.message; |  |  |  |             this.editTitle = response.message; | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.formData.produceDate = response.data.produceDate; |  |  |  |             this.codeFormData.produceDate = response.data.produceDate; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             this.formData.expireDate = response.data.expireDate; |  |  |  |             this.codeFormData.expireDate = response.data.expireDate; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             this.formData.batchNo = response.data.batchNo; |  |  |  |             this.codeFormData.batchNo = response.data.batchNo; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             this.formData.serialNo = response.data.serialNo; |  |  |  |             this.codeFormData.serialNo = response.data.serialNo; | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             this.$message({ |  |  |  |             this.$message({ | 
			
		
	
		
		
			
				
					
					|  |  |  |               type: 'error', |  |  |  |               type: 'error', | 
			
		
	
		
		
			
				
					
					|  |  |  |               message: "提交失败!" + this.editTitle, |  |  |  |               message: "提交失败!" + this.editTitle, | 
			
		
	
	
		
		
			
				
					|  |  | @ -592,32 +591,15 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     refreshCodesPanel() { |  |  |  |     refreshCodesPanel() { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.isCodeAlive = false; |  |  |  |       this.isCodeAlive = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.idQuery = |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.$nextTick(() => {  //重新加载组件 |  |  |  |       this.$nextTick(() => {  //重新加载组件 | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.isCodeAlive = true |  |  |  |         this.isCodeAlive = true | 
			
		
	
		
		
			
				
					
					|  |  |  |       }) |  |  |  |       }) | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     submit(formName) { |  |  |  |     submit() { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       if (this.total < 1) { |  |  |  |       let tQuery = Object.assign(JSON.parse(JSON.stringify(this.orderFormData))); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         this.$message.error('未添加条码'); |  |  |  |       tQuery.orderId = this.idQuery.billNo; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         return; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       let tQuery = { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         orderId: this.idQuery.id, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         locStorageCode: this.formData.locStorageCode, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         invStorageCode: this.formData.invStorageCode, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         invWarehouseCode: this.formData.invWarehouseCode, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         fromInvCode: this.formData.fromInvCode, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         subInvCode: this.formData.subInvCode, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         action: this.formData.action, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         fromCorp: this.formData.fromCorp, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         fromCorpId: this.formData.fromCorpId, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         outChangeEnable: this.formData.outChangeEnable, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         preCheck: this.formData.preCheck, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         deptCode: this.formData.deptCode, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       submitOrderWeb(tQuery) |  |  |  |       submitOrderWeb(tQuery) | 
			
		
	
		
		
			
				
					
					|  |  |  |         .then((response) => { |  |  |  |         .then((response) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |           if (response.code === 20000) { |  |  |  |           if (response.code === 20000) { | 
			
		
	
	
		
		
			
				
					|  |  | @ -630,23 +612,8 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         }); |  |  |  |         }); | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     saveOrder() { |  |  |  |     saveOrder() { | 
			
		
	
		
		
			
				
					
					|  |  |  |       if (this.total < 1) { |  |  |  |       let tQuery = Object.assign(JSON.parse(JSON.stringify(this.orderFormData))); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         this.$message.error('未添加条码'); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         return; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       if (this.formData.action == null || this.formData.action == '') { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.$message.error('未选择扫码单据类型'); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         return |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       if (this.formData.invWarehouseCode == null || this.formData.invWarehouseCode == '') { |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.$message.error('当前分库不能为空'); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         return; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       let tQuery = Object.assign(JSON.parse(JSON.stringify(this.formData))); |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       tQuery.orderId = this.idQuery.billNo; |  |  |  |       tQuery.orderId = this.idQuery.billNo; | 
			
		
	
		
		
			
				
					
					|  |  |  |       tQuery.actDate = parseTime(this.formData.actDate, '{y}-{m}-{d} {h}:{i}:{s}'); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       saveOrderWeb(tQuery).then((response) => { |  |  |  |       saveOrderWeb(tQuery).then((response) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (response.code === 20000) { |  |  |  |         if (response.code === 20000) { | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.closeDialog(); |  |  |  |           this.closeDialog(); | 
			
		
	
	
		
		
			
				
					|  |  | @ -676,42 +643,40 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.checkSuccess = true; |  |  |  |       this.checkSuccess = true; | 
			
		
	
		
		
			
				
					
					|  |  |  |       let tQuery = { |  |  |  |       let tQuery = { | 
			
		
	
		
		
			
				
					
					|  |  |  |         originCode: this.originCode, |  |  |  |         originCode: this.originCode, | 
			
		
	
		
		
			
				
					
					|  |  |  |         code: this.formData.code.trim(), |  |  |  |         code: this.codeFormData.code.trim(), | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |       enterCodeWeb(tQuery).then((response) => { |  |  |  |       enterCodeWeb(tQuery).then((response) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (response.code === 20000) { |  |  |  |         if (response.code === 20000) { | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.$refs.inputRef.focus(); |  |  |  |           this.$refs.inputRef.focus(); | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.$refs.inputRef.select(); |  |  |  |           this.$refs.inputRef.select(); | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.formData.code = response.data; |  |  |  |           this.codeFormData.code = response.data; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           this.addCode(); |  |  |  |           this.addCode(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } else { |  |  |  |         } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |           if (response.code == 502) { |  |  |  |           if (response.code == 502) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.checkSuccess = false; |  |  |  |             this.checkSuccess = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.formData.code = response.data; |  |  |  |             this.codeFormData.code = response.data; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             this.originCode = this.formData.code; |  |  |  |             this.originCode = this.codeFormData.code; | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           } else if (response.code == 501) { |  |  |  |           } else if (response.code == 501) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.checkSuccess = false; |  |  |  |             this.checkSuccess = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |             // this.formData.code = response.data; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             // this.originCode = this.formData.code; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.$message.error(response.message); |  |  |  |             this.$message.error(response.message); | 
			
		
	
		
		
			
				
					
					|  |  |  |           } else if (response.code == 503) { |  |  |  |           } else if (response.code == 503) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.checkSuccess = false; |  |  |  |             this.checkSuccess = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.formData.code = response.data; |  |  |  |             this.codeFormData.code = response.data; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             this.$confirm(response.message, "提示", { |  |  |  |             this.$confirm(response.message, "提示", { | 
			
		
	
		
		
			
				
					
					|  |  |  |               type: "warning", |  |  |  |               type: "warning", | 
			
		
	
		
		
			
				
					
					|  |  |  |             }) |  |  |  |             }) | 
			
		
	
		
		
			
				
					
					|  |  |  |               .then(() => { |  |  |  |               .then(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 this.formData.code = response.data; |  |  |  |                 this.codeFormData.code = response.data; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 this.addCode(); |  |  |  |                 this.addCode(); | 
			
		
	
		
		
			
				
					
					|  |  |  |               }) |  |  |  |               }) | 
			
		
	
		
		
			
				
					
					|  |  |  |               .catch(() => { |  |  |  |               .catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 this.formData.code = this.originCode; |  |  |  |                 this.codeFormData.code = this.originCode; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |               }); |  |  |  |               }); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |           } else if (response.code == 508) { |  |  |  |           } else if (response.code == 508) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.originCode = ""; |  |  |  |             this.originCode = ""; | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.formData.code = "01" + response.data.nameCode; |  |  |  |             this.codeFormData.code = "01" + response.data.nameCode; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             this.originCode = this.formData.code; |  |  |  |             this.originCode = this.codeFormData.code; | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           } else { |  |  |  |           } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.$alert(response.message, '提示', { |  |  |  |             this.$alert(response.message, '提示', { | 
			
		
	
		
		
			
				
					
					|  |  |  |               confirmButtonText: '确定', |  |  |  |               confirmButtonText: '确定', | 
			
		
	
	
		
		
			
				
					|  |  | @ -732,8 +697,8 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |     repeatAddCode(editData) { |  |  |  |     repeatAddCode(editData) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       let tQuery = editData; |  |  |  |       let tQuery = editData; | 
			
		
	
		
		
			
				
					
					|  |  |  |       tQuery.orderId = this.idQuery.id; |  |  |  |       tQuery.orderId = this.idQuery.id; | 
			
		
	
		
		
			
				
					
					|  |  |  |       tQuery.actDate = parseTime(this.formData.actDate, '{y}-{m}-{d} {h}:{i}:{s}'); |  |  |  |       tQuery.actDate = parseTime(this.orderFormData.actDate, '{y}-{m}-{d} {h}:{i}:{s}'); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       tQuery.action = this.formData.action; |  |  |  |       tQuery.action = this.orderFormData.action; | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       this.closeCodeDialog(); |  |  |  |       this.closeCodeDialog(); | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.addCodeSubmit(tQuery); |  |  |  |       this.addCodeSubmit(tQuery); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -822,7 +787,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |     window.sc = new A.KeyScaner(inputer);//传入要监听的DOM节点 |  |  |  |     window.sc = new A.KeyScaner(inputer);//传入要监听的DOM节点 | 
			
		
	
		
		
			
				
					
					|  |  |  |     sc.onInput = function (text) { |  |  |  |     sc.onInput = function (text) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       if (text.includes("delete")) { |  |  |  |       if (text.includes("delete")) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         that.formData.code = ""; |  |  |  |         that.codeFormData.code = ""; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         that.sictomText = ""; |  |  |  |         that.sictomText = ""; | 
			
		
	
		
		
			
				
					
					|  |  |  |         that.originCode = ""; |  |  |  |         that.originCode = ""; | 
			
		
	
		
		
			
				
					
					|  |  |  |         return; |  |  |  |         return; | 
			
		
	
	
		
		
			
				
					|  |  | @ -831,44 +796,34 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         let tempTxt = text; |  |  |  |         let tempTxt = text; | 
			
		
	
		
		
			
				
					
					|  |  |  |         let str = tempTxt.replace(/[\r]/g, ""); |  |  |  |         let str = tempTxt.replace(/[\r]/g, ""); | 
			
		
	
		
		
			
				
					
					|  |  |  |         that.sictomText = that.sictomText + str; |  |  |  |         that.sictomText = that.sictomText + str; | 
			
		
	
		
		
			
				
					
					|  |  |  |         that.formData.code = that.sictomText; |  |  |  |         that.codeFormData.code = that.sictomText; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       } else { |  |  |  |       } else { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         that.formData.code = text; |  |  |  |         that.codeFormData.code = text; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         // setTimeout(function(){  that.formData.code = text; }, 3000); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |     }; |  |  |  |     }; | 
			
		
	
		
		
			
				
					
					|  |  |  |     inputer.focus(); |  |  |  |     inputer.focus(); | 
			
		
	
		
		
			
				
					
					|  |  |  |   }, |  |  |  |   }, | 
			
		
	
		
		
			
				
					
					|  |  |  |   created() { |  |  |  |   created() { | 
			
		
	
		
		
			
				
					
					|  |  |  |     this.formData.code = ''; |  |  |  |     this.codeFormData.code = ''; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     this.codeArray = []; |  |  |  |     this.codeArray = []; | 
			
		
	
		
		
			
				
					
					|  |  |  |     if (this.$isNotBlank(this.idQuery.billNo)) { |  |  |  |     if (this.$isNotBlank(this.idQuery.billNo)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData.actDate = new Date(this.idQuery.actDate); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData.corpOrderId = this.idQuery.corpOrderId; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.corpOrderIdDisabled = true; |  |  |  |       this.corpOrderIdDisabled = true; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData.action = this.idQuery.action; |  |  |  |       this.orderFormData = this.idQuery; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData.fromCorp = this.idQuery.fromCorp; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData.deptCode = this.idQuery.deptCode |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData.invCode = this.idQuery.invCode; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData.fromInvCode = this.idQuery.fromInvCode; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData.preCheck = this.idQuery.preCheck; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData.remark = this.idQuery.remark; |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       this.actionEnable = true; |  |  |  |       this.actionEnable = true; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.refreshCodesPanel(); |  |  |  |       this.refreshCodesPanel(); | 
			
		
	
		
		
			
				
					
					|  |  |  |       //选择框候选数据 |  |  |  |       //选择框候选数据 | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.findInvByUser(); |  |  |  |       this.findInvByUser(); | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.getBusTypeByInv(); |  |  |  |       this.getBusTypeByInv(); | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.findMethod(this.formData.fromCorp); |  |  |  |       this.findMethod(this.orderFormData.fromCorp); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       this.findFromInvList(); |  |  |  |       this.findFromInvList(); | 
			
		
	
		
		
			
				
					
					|  |  |  |     } else { |  |  |  |     } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.corpOrderIdDisabled = false; |  |  |  |       this.corpOrderIdDisabled = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData.actDate = new Date(); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       let date = new Date(); |  |  |  |       let date = new Date(); | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData.corpOrderId = parseTime(date, '{y}{m}{d}{h}{i}{s}') + Math.ceil(Math.random() * 89 + 10); |  |  |  |       this.orderFormData.createTime = parseTime(date, '{y}-{m}-{d} {h}:{i}:{s}'); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData.invCode = this.$store.getters.locInvCode; |  |  |  |       this.orderFormData.corpOrderId = parseTime(date, '{y}{m}{d}{h}{i}{s}') + Math.ceil(Math.random() * 89 + 10); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       this.orderFormData.deptCode = this.$store.getters.deptCode; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       this.orderFormData.invCode = this.$store.getters.locInvCode; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.findInvByUser(); |  |  |  |       this.findInvByUser(); | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |