|  |  |  | @ -3,7 +3,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |     <el-form :model="formData" class="order-el-form" ref="formData" label-width="120px"> | 
			
		
	
		
			
				
					|  |  |  |  |       <el-card> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         <el-row :gutter="0"  v-if="isLinkDisabled"> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-row :gutter="0" v-if="isLinkDisabled"> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="24" align="right"> | 
			
		
	
		
			
				
					|  |  |  |  |             <div class="inv-hos-title"> | 
			
		
	
		
			
				
					|  |  |  |  |             <span | 
			
		
	
	
		
			
				
					|  |  |  | @ -87,6 +87,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |                 style="width: 90%" | 
			
		
	
		
			
				
					|  |  |  |  |                 :disabled="corpOrderIdDisabled" | 
			
		
	
		
			
				
					|  |  |  |  |                 filterable | 
			
		
	
		
			
				
					|  |  |  |  |                 @change="workPlaceCodeChange" | 
			
		
	
		
			
				
					|  |  |  |  |               > | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-option | 
			
		
	
		
			
				
					|  |  |  |  |                   v-for="item in curWorkPlaces" | 
			
		
	
	
		
			
				
					|  |  |  | @ -103,21 +104,21 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-col> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="8"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item prop="erpId" class="query-form-item" label="往来单位:"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-select | 
			
		
	
		
			
				
					|  |  |  |  |                 v-model="formData.erpId" | 
			
		
	
		
			
				
					|  |  |  |  |                 placeholder="往来单位" | 
			
		
	
		
			
				
					|  |  |  |  |                 style="width: 90%" | 
			
		
	
		
			
				
					|  |  |  |  |                 filterable | 
			
		
	
		
			
				
					|  |  |  |  |               > | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="8" v-if="this.formDataVisible != null &&  this.formDataVisible.operationType == 1"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item class="query-form-item" :label="this.formDataVisible.unitTittle + ':'"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-select v-model="formData.fromCorp" | 
			
		
	
		
			
				
					|  |  |  |  |                          filterable | 
			
		
	
		
			
				
					|  |  |  |  |                          remote | 
			
		
	
		
			
				
					|  |  |  |  |                          reserve-keyword | 
			
		
	
		
			
				
					|  |  |  |  |                          placeholder="请选择往来单位" clearable style="width: 90%"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-option | 
			
		
	
		
			
				
					|  |  |  |  |                   v-for="item in erpList" | 
			
		
	
		
			
				
					|  |  |  |  |                   :key="item.id" | 
			
		
	
		
			
				
					|  |  |  |  |                   v-for="item in fromInvOptions" | 
			
		
	
		
			
				
					|  |  |  |  |                   :key="item.erpId" | 
			
		
	
		
			
				
					|  |  |  |  |                   :label="item.name" | 
			
		
	
		
			
				
					|  |  |  |  |                   :value="item.id" | 
			
		
	
		
			
				
					|  |  |  |  |                   :value="item.erpId" | 
			
		
	
		
			
				
					|  |  |  |  |                 > | 
			
		
	
		
			
				
					|  |  |  |  |                   <span style="float: left">{{ item.name }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                   <span style="float: right; color: #8492a6; font-size: 13px">{{ item.code }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                 </el-option> | 
			
		
	
		
			
				
					|  |  |  |  |               </el-select> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-form-item> | 
			
		
	
	
		
			
				
					|  |  |  | @ -170,7 +171,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |       </el-card> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       <el-tabs type="border-card" style="margin: 15px"> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-tab-pane label="手动扫码"> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-tab-pane label="扫码详情"> | 
			
		
	
		
			
				
					|  |  |  |  |           <PannelOrderBiz | 
			
		
	
		
			
				
					|  |  |  |  |             v-if="panelALive" | 
			
		
	
		
			
				
					|  |  |  |  |             :dealStatus="2" | 
			
		
	
	
		
			
				
					|  |  |  | @ -179,14 +180,15 @@ | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         </el-tab-pane> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         <el-tab-pane label="自动赋码明细"> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-tab-pane label="扫码明细"> | 
			
		
	
		
			
				
					|  |  |  |  |           <prescribeCodePanel | 
			
		
	
		
			
				
					|  |  |  |  |             v-if="panelALive" | 
			
		
	
		
			
				
					|  |  |  |  |             :fifoSplit="3" | 
			
		
	
		
			
				
					|  |  |  |  |             :prescribeData="curRow" | 
			
		
	
		
			
				
					|  |  |  |  |           ></prescribeCodePanel> | 
			
		
	
		
			
				
					|  |  |  |  |         </el-tab-pane> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         <el-tab-pane label="拆零赋码明细"> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-tab-pane label="拆零明细"> | 
			
		
	
		
			
				
					|  |  |  |  |           <prescribeCodePanel | 
			
		
	
		
			
				
					|  |  |  |  |             v-if="panelALive" | 
			
		
	
		
			
				
					|  |  |  |  |             :prescribeData="curRow" | 
			
		
	
	
		
			
				
					|  |  |  | @ -194,7 +196,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |           ></prescribeCodePanel> | 
			
		
	
		
			
				
					|  |  |  |  |         </el-tab-pane> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         <el-tab-pane label="整取赋码明细"> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-tab-pane label="整取明细"> | 
			
		
	
		
			
				
					|  |  |  |  |           <prescribeCodePanel | 
			
		
	
		
			
				
					|  |  |  |  |             v-if="panelALive" | 
			
		
	
		
			
				
					|  |  |  |  |             :prescribeData="curRow" | 
			
		
	
	
		
			
				
					|  |  |  | @ -233,6 +235,7 @@ import PannelOrderBiz from "./PannelOrderBiz"; | 
			
		
	
		
			
				
					|  |  |  |  | import {listPage} from "@/api/basic/sysWorkplaceManage"; | 
			
		
	
		
			
				
					|  |  |  |  | import {enterCodeWeb} from "@/api/inout/order"; | 
			
		
	
		
			
				
					|  |  |  |  | import {draftOrder, finishOrder, tagCode} from "@/api/collect/splitCreateOrder"; | 
			
		
	
		
			
				
					|  |  |  |  | import {selectCorpList} from "@/api/basic/basicUnitMaintain"; | 
			
		
	
		
			
				
					|  |  |  |  | import {delDrugLevel} from "@/api/basic/product/drugUdiinfos"; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | export default { | 
			
		
	
	
		
			
				
					|  |  |  | @ -242,6 +245,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |   name: "prescribeTagCodeDeal", | 
			
		
	
		
			
				
					|  |  |  |  |   data() { | 
			
		
	
		
			
				
					|  |  |  |  |     return { | 
			
		
	
		
			
				
					|  |  |  |  |       fromInvOptions: [], | 
			
		
	
		
			
				
					|  |  |  |  |       //界面配置相关 | 
			
		
	
		
			
				
					|  |  |  |  |       //患者处方 | 
			
		
	
		
			
				
					|  |  |  |  |       loading: false, | 
			
		
	
	
		
			
				
					|  |  |  | @ -261,19 +265,23 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       list: [], | 
			
		
	
		
			
				
					|  |  |  |  |       total: 0, | 
			
		
	
		
			
				
					|  |  |  |  |       defaultSort: {prop: 'createTime', order: 'desc'}, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       formDataVisible:{ | 
			
		
	
		
			
				
					|  |  |  |  |         operationType: null, | 
			
		
	
		
			
				
					|  |  |  |  |         unitTittle: "往来单位", | 
			
		
	
		
			
				
					|  |  |  |  |         corpType: 1, | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       curWorkPlaces: [], | 
			
		
	
		
			
				
					|  |  |  |  |       erpList: [], | 
			
		
	
		
			
				
					|  |  |  |  |       formData: { | 
			
		
	
		
			
				
					|  |  |  |  |         tagStatus: -1, | 
			
		
	
		
			
				
					|  |  |  |  |         invCode:null, | 
			
		
	
		
			
				
					|  |  |  |  |         workPlaceCode:null, | 
			
		
	
		
			
				
					|  |  |  |  |         erpId:null, | 
			
		
	
		
			
				
					|  |  |  |  |         invCode: null, | 
			
		
	
		
			
				
					|  |  |  |  |         workPlaceCode: null, | 
			
		
	
		
			
				
					|  |  |  |  |         fromCorp: null, | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       selectPrescriptionVisible: false, | 
			
		
	
		
			
				
					|  |  |  |  |       corpOrderIdDisabled: false, | 
			
		
	
		
			
				
					|  |  |  |  |       isLinkDisabled: false, | 
			
		
	
		
			
				
					|  |  |  |  |       userInfo:{ | 
			
		
	
		
			
				
					|  |  |  |  |       userInfo: { | 
			
		
	
		
			
				
					|  |  |  |  |         inv: this.$store.getters.locInvName, | 
			
		
	
		
			
				
					|  |  |  |  |         deptName: this.$store.getters.locDeptName, | 
			
		
	
		
			
				
					|  |  |  |  |         userName: this.$store.getters.name, | 
			
		
	
	
		
			
				
					|  |  |  | @ -299,6 +307,22 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |     addOrder, errOrder, selectPrescribeDialog, prescribeCodePanel, PannelOrderBiz | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |   methods: { | 
			
		
	
		
			
				
					|  |  |  |  |     findFromInvList(val) { | 
			
		
	
		
			
				
					|  |  |  |  |       let cQuery = { | 
			
		
	
		
			
				
					|  |  |  |  |         corpType:this.formDataVisible.corpType, | 
			
		
	
		
			
				
					|  |  |  |  |       }; | 
			
		
	
		
			
				
					|  |  |  |  |       selectCorpList(cQuery) | 
			
		
	
		
			
				
					|  |  |  |  |         .then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |           this.fromInvOptions = response.data || []; | 
			
		
	
		
			
				
					|  |  |  |  |         }) | 
			
		
	
		
			
				
					|  |  |  |  |         .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |         }); | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     workPlaceCodeChange(value){ | 
			
		
	
		
			
				
					|  |  |  |  |       this.curWorkPlaces.forEach(item => {if(item.workplaceId == value){ this.formDataVisible =  item | 
			
		
	
		
			
				
					|  |  |  |  |       } }) | 
			
		
	
		
			
				
					|  |  |  |  |       return | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     handleClick(blankName) { | 
			
		
	
		
			
				
					|  |  |  |  |       // let url = window.location.origin+`#/tagCodeBlank?workplaceId=`+ this.stationList[index].workplaceId | 
			
		
	
		
			
				
					|  |  |  |  |       let url = window.location.origin + `#/` + blankName + `?workplaceId=` + this.workplaceId | 
			
		
	
	
		
			
				
					|  |  |  | @ -328,9 +352,10 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       listPage(query).then((res) => { | 
			
		
	
		
			
				
					|  |  |  |  |         this.curWorkPlaces = res.data.list || []; | 
			
		
	
		
			
				
					|  |  |  |  |         if (this.curWorkPlaces.length == 1 ) { | 
			
		
	
		
			
				
					|  |  |  |  |         if (this.curWorkPlaces.length == 1  && this.formData.workPlaceCode == null) { | 
			
		
	
		
			
				
					|  |  |  |  |           this.formData.workPlaceCode = this.curWorkPlaces[0].workplaceId; | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         this.workPlaceCodeChange(this.formData.workPlaceCode); | 
			
		
	
		
			
				
					|  |  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     //界面配置相关------------ | 
			
		
	
	
		
			
				
					|  |  |  | @ -432,13 +457,16 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |         return; | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       let tagQuery = { | 
			
		
	
		
			
				
					|  |  |  |  |         prescribeNum: this.formData.billNo, | 
			
		
	
		
			
				
					|  |  |  |  |         billNo: this.formData.billNo, | 
			
		
	
		
			
				
					|  |  |  |  |         code: this.filterQuery.code.trim(), | 
			
		
	
		
			
				
					|  |  |  |  |       }; | 
			
		
	
		
			
				
					|  |  |  |  |       tagCode(tagQuery).then(res => { | 
			
		
	
		
			
				
					|  |  |  |  |         this.loading = false | 
			
		
	
		
			
				
					|  |  |  |  |         if (res.code == 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |           this.formData.tagStatus = 2; | 
			
		
	
		
			
				
					|  |  |  |  |           this.formData = res.data; | 
			
		
	
		
			
				
					|  |  |  |  |         } else { | 
			
		
	
		
			
				
					|  |  |  |  |           this.$message.error(res.message) | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |       }).catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |         this.loading = false | 
			
		
	
	
		
			
				
					|  |  |  | @ -446,7 +474,6 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     saveDraftOrder() { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       this.$confirm('此操作将挂起当前正在处理单据,是否继续?', '提示', { | 
			
		
	
		
			
				
					|  |  |  |  |         confirmButtonText: '确定', | 
			
		
	
		
			
				
					|  |  |  |  |         cancelButtonText: '取消', | 
			
		
	
	
		
			
				
					|  |  |  | @ -462,8 +489,6 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |         }) | 
			
		
	
		
			
				
					|  |  |  |  |       }).catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     finishOrder() { | 
			
		
	
	
		
			
				
					|  |  |  | @ -501,7 +526,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     printCodeResult(data, isSuccess) { | 
			
		
	
		
			
				
					|  |  |  |  |       const resultParts = ["扫码解析结果:" + data.code]; | 
			
		
	
		
			
				
					|  |  |  |  |       const resultParts = ["追溯码:" + data.code + "\r\n"]; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       if (data.udi) { | 
			
		
	
		
			
				
					|  |  |  |  |         resultParts.push("层级标识: " + data.udi); | 
			
		
	
	
		
			
				
					|  |  |  | @ -533,13 +558,14 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       this.fromList = re.data.fromList; | 
			
		
	
		
			
				
					|  |  |  |  |     }); | 
			
		
	
		
			
				
					|  |  |  |  |     this.formData.invCode = this.$store.getters.locInvCode; | 
			
		
	
		
			
				
					|  |  |  |  |     this.findCurWorkPlaces(); | 
			
		
	
		
			
				
					|  |  |  |  |     if (this.$route.query.workplaceId != null){ | 
			
		
	
		
			
				
					|  |  |  |  |     if (this.$route.query.workplaceId != null) { | 
			
		
	
		
			
				
					|  |  |  |  |       this.isLinkDisabled = true | 
			
		
	
		
			
				
					|  |  |  |  |       this.corpOrderIdDisabled = true | 
			
		
	
		
			
				
					|  |  |  |  |       this.formData.workplaceCode = Number(this.$route.query.workplaceId); | 
			
		
	
		
			
				
					|  |  |  |  |       this.formData.workPlaceCode = Number(this.$route.query.workplaceId); | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     this.findCurWorkPlaces(); | 
			
		
	
		
			
				
					|  |  |  |  |     this.findFromInvList(""); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | 
 |