|  |  |  | @ -11,7 +11,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |       <el-card style="margin-top: -5px;"> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-row> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="11"> | 
			
		
	
		
			
				
					|  |  |  |  |                         <el-form-item label="单据号:" prop="billNo" > | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item label="单据号:" prop="billNo"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-input v-model="formData.billNo" style="width: 90%" auto-complete="off" :disabled="true"></el-input> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-col> | 
			
		
	
	
		
			
				
					|  |  |  | @ -59,7 +59,8 @@ | 
			
		
	
		
			
				
					|  |  |  |  |         <el-row style="margin-top: -10px"> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="11"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item label="申购科室:" prop="locStorageCode"> | 
			
		
	
		
			
				
					|  |  |  |  |                             <el-select v-model="formData.targetInvCode"  placeholder="当前分库信息" @change="setWarehouseName" style="width: 90%" clearable> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-select v-model="formData.targetInvCode" placeholder="当前分库信息" @change="setWarehouseName" | 
			
		
	
		
			
				
					|  |  |  |  |                          style="width: 90%" clearable> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-option | 
			
		
	
		
			
				
					|  |  |  |  |                   v-for="item in subInvList" | 
			
		
	
		
			
				
					|  |  |  |  |                   :key="item.name" | 
			
		
	
	
		
			
				
					|  |  |  | @ -73,14 +74,16 @@ | 
			
		
	
		
			
				
					|  |  |  |  |           </el-col> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="11"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item label="申购说明:" prop="billNo"> | 
			
		
	
		
			
				
					|  |  |  |  |                             <el-input v-model="formData.remark" auto-complete="off" style="width: 90%" type="textarea" autosize></el-input> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-input v-model="formData.remark" auto-complete="off" style="width: 90%" type="textarea" | 
			
		
	
		
			
				
					|  |  |  |  |                         autosize></el-input> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-col> | 
			
		
	
		
			
				
					|  |  |  |  |         </el-row> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-row style="margin-top: -10px" v-show="formData.status==4"> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="11"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item label="拒绝原因:"> | 
			
		
	
		
			
				
					|  |  |  |  |                             <el-input v-model="formData.auditRemark" auto-complete="off" style="width: 90%" :disabled="true"></el-input> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-input v-model="formData.auditRemark" auto-complete="off" style="width: 90%" | 
			
		
	
		
			
				
					|  |  |  |  |                         :disabled="true"></el-input> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-col> | 
			
		
	
		
			
				
					|  |  |  |  |         </el-row> | 
			
		
	
	
		
			
				
					|  |  |  | @ -97,7 +100,8 @@ | 
			
		
	
		
			
				
					|  |  |  |  |           </el-button-group> | 
			
		
	
		
			
				
					|  |  |  |  |         </el-row> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-table v-loading="loading" :data="codeArray" style="width: 100%;" :row-class-name="tableRowClassName" border highlight-current-row max-height="300" height="300" ref="multipleTable"> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table v-loading="loading" :data="codeArray" style="width: 100%;" :row-class-name="tableRowClassName" border | 
			
		
	
		
			
				
					|  |  |  |  |                   highlight-current-row max-height="300" height="300" ref="multipleTable"> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-table-column label="序号" type="index" width="50"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-table-column label="产品通用名" prop="productName" show-overflow-tooltip></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-table-column label="规格型号" prop="spec" show-overflow-tooltip></el-table-column> | 
			
		
	
	
		
			
				
					|  |  |  | @ -119,8 +123,12 @@ | 
			
		
	
		
			
				
					|  |  |  |  |           <el-table-column label="医疗器械注册人" prop="ylqxzcrbarmc" show-overflow-tooltip></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-table-column label="操作" width="120"> | 
			
		
	
		
			
				
					|  |  |  |  |             <template slot-scope="scope"> | 
			
		
	
		
			
				
					|  |  |  |  |                             <el-button type="text" size="small" :disabled="scope.row.index === selectedIndex" @click.stop="true" @click.native="rowChange(scope.row)">编辑</el-button> | 
			
		
	
		
			
				
					|  |  |  |  |                             <el-button type="text" size="small" @click.stop="true" @click.native="deleteCodeArray(scope.$index, scope.row)">删除</el-button> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-button type="text" size="small" :disabled="scope.row.index === selectedIndex" @click.stop="true" | 
			
		
	
		
			
				
					|  |  |  |  |                          @click.native="rowChange(scope.row)">编辑 | 
			
		
	
		
			
				
					|  |  |  |  |               </el-button> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-button type="text" size="small" @click.stop="true" | 
			
		
	
		
			
				
					|  |  |  |  |                          @click.native="deleteCodeArray(scope.$index, scope.row)">删除 | 
			
		
	
		
			
				
					|  |  |  |  |               </el-button> | 
			
		
	
		
			
				
					|  |  |  |  |             </template> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         </el-table> | 
			
		
	
	
		
			
				
					|  |  |  | @ -207,6 +215,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |         limit: 10, | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       formData: { | 
			
		
	
		
			
				
					|  |  |  |  |         billType: "CPSG", | 
			
		
	
		
			
				
					|  |  |  |  |         id: null, | 
			
		
	
		
			
				
					|  |  |  |  |         billNo: null, | 
			
		
	
		
			
				
					|  |  |  |  |         billDate: "", | 
			
		
	
	
		
			
				
					|  |  |  | @ -236,7 +245,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |         2: "普通采购", | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       orderEditor: true, | 
			
		
	
		
			
				
					|  |  |  |  |             selectApplyVisible:false, | 
			
		
	
		
			
				
					|  |  |  |  |       selectApplyVisible: false, | 
			
		
	
		
			
				
					|  |  |  |  |       sOptions: [], | 
			
		
	
		
			
				
					|  |  |  |  |       sValue: [], | 
			
		
	
		
			
				
					|  |  |  |  |       sList: [], | 
			
		
	
	
		
			
				
					|  |  |  | @ -272,16 +281,16 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |           } | 
			
		
	
		
			
				
					|  |  |  |  |           if (status === '2') { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                         if(this.formData.billDate=="" || this.formData.billDate==null){ | 
			
		
	
		
			
				
					|  |  |  |  |             if (this.formData.billDate == "" || this.formData.billDate == null) { | 
			
		
	
		
			
				
					|  |  |  |  |               return this.$message.error("单据日期不能为空!"); | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |                         if(this.formData.targetInvCode=="" || this.formData.targetInvCode==null){ | 
			
		
	
		
			
				
					|  |  |  |  |             if (this.formData.targetInvCode == "" || this.formData.targetInvCode == null) { | 
			
		
	
		
			
				
					|  |  |  |  |               return this.$message.error("采购科室不能为空!"); | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |                         if(this.formData.emergency=="" || this.formData.emergency==null){ | 
			
		
	
		
			
				
					|  |  |  |  |             if (this.formData.emergency == "" || this.formData.emergency == null) { | 
			
		
	
		
			
				
					|  |  |  |  |               return this.$message.error("紧急程度不能为空!"); | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |                         if(this.formData.arrivalTime=="" || this.formData.arrivalTime==null){ | 
			
		
	
		
			
				
					|  |  |  |  |             if (this.formData.arrivalTime == "" || this.formData.arrivalTime == null) { | 
			
		
	
		
			
				
					|  |  |  |  |               return this.$message.error("到货时间不能为空!"); | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -311,11 +320,11 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |     submitFunction(status) { | 
			
		
	
		
			
				
					|  |  |  |  |       let tMessage = status === '1' ? '保存' : '提交'; | 
			
		
	
		
			
				
					|  |  |  |  |       this.loading = true; | 
			
		
	
		
			
				
					|  |  |  |  |             this.formData.id=this.pId; | 
			
		
	
		
			
				
					|  |  |  |  |             this.formData.invCode=this.$store.getters.locInvCode | 
			
		
	
		
			
				
					|  |  |  |  |             this.formData.deptCode=this.$store.getters.locDeptCode | 
			
		
	
		
			
				
					|  |  |  |  |       this.formData.id = this.pId; | 
			
		
	
		
			
				
					|  |  |  |  |       this.formData.invCode = this.$store.getters.locInvCode | 
			
		
	
		
			
				
					|  |  |  |  |       this.formData.deptCode = this.$store.getters.locDeptCode | 
			
		
	
		
			
				
					|  |  |  |  |       let tQuery = { | 
			
		
	
		
			
				
					|  |  |  |  |                 type:1, | 
			
		
	
		
			
				
					|  |  |  |  |         type: 1, | 
			
		
	
		
			
				
					|  |  |  |  |         editStatus: status, | 
			
		
	
		
			
				
					|  |  |  |  |         purApplyEntity: this.formData, | 
			
		
	
		
			
				
					|  |  |  |  |         subErpOrders: this.codeArray, | 
			
		
	
	
		
			
				
					|  |  |  | @ -334,16 +343,16 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |           this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |         }) | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |         setWarehouseName(obj){ | 
			
		
	
		
			
				
					|  |  |  |  |             this.formData.targetDeptCode= this.subInvList.find(item => item.code == obj).parentId; | 
			
		
	
		
			
				
					|  |  |  |  |     setWarehouseName(obj) { | 
			
		
	
		
			
				
					|  |  |  |  |       this.formData.targetDeptCode = this.subInvList.find(item => item.code == obj).parentId; | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     selectProductFunction() { | 
			
		
	
		
			
				
					|  |  |  |  |       this.selectProductVisible = true; | 
			
		
	
		
			
				
					|  |  |  |  |       //当父id为空的时候生成id | 
			
		
	
		
			
				
					|  |  |  |  |             if(this.pId==null){ | 
			
		
	
		
			
				
					|  |  |  |  |       if (this.pId == null) { | 
			
		
	
		
			
				
					|  |  |  |  |         addApplyId().then(response => { | 
			
		
	
		
			
				
					|  |  |  |  |           if (response.code === 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |                   this.pId=response.data | 
			
		
	
		
			
				
					|  |  |  |  |             this.pId = response.data | 
			
		
	
		
			
				
					|  |  |  |  |           } | 
			
		
	
		
			
				
					|  |  |  |  |         }).catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |           this.loading = false; | 
			
		
	
	
		
			
				
					|  |  |  | @ -354,10 +363,10 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |     closeDialogC2(rData) { | 
			
		
	
		
			
				
					|  |  |  |  |       this.selectProductVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |       this.selectApplyVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |             this.query={ | 
			
		
	
		
			
				
					|  |  |  |  |               orderIdFk:rData | 
			
		
	
		
			
				
					|  |  |  |  |       this.query = { | 
			
		
	
		
			
				
					|  |  |  |  |         orderIdFk: rData | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |             this.pId=rData; | 
			
		
	
		
			
				
					|  |  |  |  |       this.pId = rData; | 
			
		
	
		
			
				
					|  |  |  |  |       listApplyDetail(this.query) //查找该单号下的所有条码 | 
			
		
	
		
			
				
					|  |  |  |  |         .then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |           console.log(response) | 
			
		
	
	
		
			
				
					|  |  |  | @ -397,10 +406,10 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |     selectApply() { | 
			
		
	
		
			
				
					|  |  |  |  |       this.selectApplyVisible = true; | 
			
		
	
		
			
				
					|  |  |  |  |       //当父id为空的时候生成id | 
			
		
	
		
			
				
					|  |  |  |  |         if(this.pId==null){ | 
			
		
	
		
			
				
					|  |  |  |  |       if (this.pId == null) { | 
			
		
	
		
			
				
					|  |  |  |  |         addApplyId().then(response => { | 
			
		
	
		
			
				
					|  |  |  |  |           if (response.code === 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |               this.pId=response.data | 
			
		
	
		
			
				
					|  |  |  |  |             this.pId = response.data | 
			
		
	
		
			
				
					|  |  |  |  |           } | 
			
		
	
		
			
				
					|  |  |  |  |         }).catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |           this.loading = false; | 
			
		
	
	
		
			
				
					|  |  |  | @ -463,11 +472,10 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     findSubInvs() { | 
			
		
	
		
			
				
					|  |  |  |  |       this.subInvList = []; | 
			
		
	
		
			
				
					|  |  |  |  |       let query = { | 
			
		
	
		
			
				
					|  |  |  |  |                 filter:3 | 
			
		
	
		
			
				
					|  |  |  |  |         filter: 3 | 
			
		
	
		
			
				
					|  |  |  |  |       }; | 
			
		
	
		
			
				
					|  |  |  |  |       filterSubByInv(query) | 
			
		
	
		
			
				
					|  |  |  |  |         .then((response) => { | 
			
		
	
	
		
			
				
					|  |  |  | @ -491,7 +499,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |   created() { | 
			
		
	
		
			
				
					|  |  |  |  |     if (this.$isNotBlank(this.idQuery.id)) { | 
			
		
	
		
			
				
					|  |  |  |  |       this.query.limit = 100; | 
			
		
	
		
			
				
					|  |  |  |  |             this.pId=this.idQuery.id; | 
			
		
	
		
			
				
					|  |  |  |  |       this.pId = this.idQuery.id; | 
			
		
	
		
			
				
					|  |  |  |  |       this.query.orderIdFk = this.idQuery.id; | 
			
		
	
		
			
				
					|  |  |  |  |       this.formData = this.idQuery.formData; | 
			
		
	
		
			
				
					|  |  |  |  |       this.orderEditor = true; | 
			
		
	
	
		
			
				
					|  |  |  | @ -503,6 +511,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |         billNo: null, | 
			
		
	
		
			
				
					|  |  |  |  |         billDate: "", | 
			
		
	
		
			
				
					|  |  |  |  |         remark: "", | 
			
		
	
		
			
				
					|  |  |  |  |         billType: "CPSG", | 
			
		
	
		
			
				
					|  |  |  |  |         deptCode: null, | 
			
		
	
		
			
				
					|  |  |  |  |         locStorageCode: null, | 
			
		
	
		
			
				
					|  |  |  |  |         invWarehouseCode: null, | 
			
		
	
	
		
			
				
					|  |  |  | 
 |