|  |  |  | @ -1,26 +1,8 @@ | 
			
		
	
		
			
				
					|  |  |  |  | <template> | 
			
		
	
		
			
				
					|  |  |  |  |   <div> | 
			
		
	
		
			
				
					|  |  |  |  |   <!--  <div style="display: flex; justify-content: space-between; align-items: center;"  v-if="isLinkDisabled">--> | 
			
		
	
		
			
				
					|  |  |  |  |   <!--    <div style="margin-left: auto;">--> | 
			
		
	
		
			
				
					|  |  |  |  |   <!--          <span--> | 
			
		
	
		
			
				
					|  |  |  |  |   <!--            style="margin: 10px;color: #2d8cf0;font-size: 14px;"--> | 
			
		
	
		
			
				
					|  |  |  |  |   <!--          >部门 : {{ this.userInfo.deptName }}</span>--> | 
			
		
	
		
			
				
					|  |  |  |  |   <!--      <span--> | 
			
		
	
		
			
				
					|  |  |  |  |   <!--        style="font-weight: 500;color:rgb(51 48 48); font-size: 14px; margin-right: 20px"--> | 
			
		
	
		
			
				
					|  |  |  |  |   <!--      >    用户 : ({{--> | 
			
		
	
		
			
				
					|  |  |  |  |   <!--          this.userInfo.userName--> | 
			
		
	
		
			
				
					|  |  |  |  |   <!--        }})</span>--> | 
			
		
	
		
			
				
					|  |  |  |  |   <!--    </div>--> | 
			
		
	
		
			
				
					|  |  |  |  |   <!--  </div>--> | 
			
		
	
		
			
				
					|  |  |  |  |     <el-form :model="formData" class="order-el-form" ref="formData" label-width="120px"> | 
			
		
	
		
			
				
					|  |  |  |  |       <el-card> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         <!--<el-row :gutter="0">--> | 
			
		
	
		
			
				
					|  |  |  |  |         <!--  <el-col :span="24" align="right">--> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         <!--  </el-col>--> | 
			
		
	
		
			
				
					|  |  |  |  |         <!--</el-row>--> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         <!--  <el-alert--> | 
			
		
	
		
			
				
					|  |  |  |  |         <!--  style="margin-top: 15px"--> | 
			
		
	
		
			
				
					|  |  |  |  |         <!--  :title="msgTip"--> | 
			
		
	
	
		
			
				
					|  |  |  | @ -100,17 +82,13 @@ | 
			
		
	
		
			
				
					|  |  |  |  |           </el-col> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="6"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item prop="busType" class="query-form-item" label="当前业务类型:"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item prop="busType" class="query-form-item" label="业务类型:"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-select v-model="formData.busType" | 
			
		
	
		
			
				
					|  |  |  |  |                          ref="selectHeadEmpId" | 
			
		
	
		
			
				
					|  |  |  |  |                          filterable | 
			
		
	
		
			
				
					|  |  |  |  |                          remote | 
			
		
	
		
			
				
					|  |  |  |  |                          disabled | 
			
		
	
		
			
				
					|  |  |  |  |                          @focus="handleFocus" | 
			
		
	
		
			
				
					|  |  |  |  |                          @change="busTypeChange" | 
			
		
	
		
			
				
					|  |  |  |  |                          reserve-keyword | 
			
		
	
		
			
				
					|  |  |  |  |                          placeholder="请选择业务类型" clearable style="width: 60%" | 
			
		
	
		
			
				
					|  |  |  |  |               > | 
			
		
	
		
			
				
					|  |  |  |  |                          placeholder="请选择业务类型" clearable style="width: 90%"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-option | 
			
		
	
		
			
				
					|  |  |  |  |                   v-for="item in busTypeList" | 
			
		
	
		
			
				
					|  |  |  |  |                   :key="item.documentTypeCode" | 
			
		
	
	
		
			
				
					|  |  |  | @ -121,7 +99,6 @@ | 
			
		
	
		
			
				
					|  |  |  |  |                   <span style="float: right; color: #8492a6; font-size: 13px">{{ item.documentTypeCode }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                 </el-option> | 
			
		
	
		
			
				
					|  |  |  |  |               </el-select> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-button type="primary" @click="toggleBusType">切换业务</el-button> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-col> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -131,8 +108,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |                          filterable | 
			
		
	
		
			
				
					|  |  |  |  |                          remote | 
			
		
	
		
			
				
					|  |  |  |  |                          reserve-keyword | 
			
		
	
		
			
				
					|  |  |  |  |                          placeholder="请选择往来单位" clearable style="width: 90%" | 
			
		
	
		
			
				
					|  |  |  |  |               > | 
			
		
	
		
			
				
					|  |  |  |  |                          placeholder="请选择往来单位" clearable style="width: 90%"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-option | 
			
		
	
		
			
				
					|  |  |  |  |                   v-for="item in fromInvOptions" | 
			
		
	
		
			
				
					|  |  |  |  |                   :key="item.erpId" | 
			
		
	
	
		
			
				
					|  |  |  | @ -189,8 +165,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             :type="scanResultType" | 
			
		
	
		
			
				
					|  |  |  |  |             :closable="false" | 
			
		
	
		
			
				
					|  |  |  |  |             :dangerouslyUseHTMLString="true" | 
			
		
	
		
			
				
					|  |  |  |  |             :description="result" | 
			
		
	
		
			
				
					|  |  |  |  |           > | 
			
		
	
		
			
				
					|  |  |  |  |             :description="result"> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-alert> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         </div> | 
			
		
	
	
		
			
				
					|  |  |  | @ -331,12 +306,19 @@ import {delDrugLevel} from "@/api/basic/product/drugUdiinfos"; | 
			
		
	
		
			
				
					|  |  |  |  | import {getCurOrder, getNextOrder, findByBill} from "@/api/collect/collectOrder"; | 
			
		
	
		
			
				
					|  |  |  |  | import PanelOrderAllDetail from "@/views/collect/PanelOrderAllDetail"; | 
			
		
	
		
			
				
					|  |  |  |  | import {getWorkBindBusTypes, removeBusTypeById} from '@/api/basic/workPlace/sysWorkplaceDocuments' | 
			
		
	
		
			
				
					|  |  |  |  | import A from '../../plugins/KeyScaner' | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | export default { | 
			
		
	
		
			
				
					|  |  |  |  |   /** | 
			
		
	
		
			
				
					|  |  |  |  |    * 处理处方 | 
			
		
	
		
			
				
					|  |  |  |  |    */ | 
			
		
	
		
			
				
					|  |  |  |  |   name: "prescribeTagCodeDeal", | 
			
		
	
		
			
				
					|  |  |  |  |   props: { | 
			
		
	
		
			
				
					|  |  |  |  |     resetKey: { | 
			
		
	
		
			
				
					|  |  |  |  |       type: Function, | 
			
		
	
		
			
				
					|  |  |  |  |       required: true | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |   data() { | 
			
		
	
		
			
				
					|  |  |  |  |     return { | 
			
		
	
		
			
				
					|  |  |  |  |       fromInvOptions: [], | 
			
		
	
	
		
			
				
					|  |  |  | @ -419,8 +401,12 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |     PannelOrderBiz, | 
			
		
	
		
			
				
					|  |  |  |  |     PanelOrderAllDetail | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |   watch: { | 
			
		
	
		
			
				
					|  |  |  |  |     resetKey(newVal, oldVal) { | 
			
		
	
		
			
				
					|  |  |  |  |       this.$refs.inputRef.focus(); | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |   methods: { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     getBillNo(billNo) { | 
			
		
	
		
			
				
					|  |  |  |  |       let post = { | 
			
		
	
		
			
				
					|  |  |  |  |         billNo: billNo, | 
			
		
	
	
		
			
				
					|  |  |  | @ -465,6 +451,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |               this.findCurOrder(); | 
			
		
	
		
			
				
					|  |  |  |  |             } else { | 
			
		
	
		
			
				
					|  |  |  |  |               this.formData.busType = null | 
			
		
	
		
			
				
					|  |  |  |  |               this.$refs.inputRef.focus(); | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |           } | 
			
		
	
	
		
			
				
					|  |  |  | @ -499,11 +486,6 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       this.findCurOrder(); | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     toggleBusType(){ | 
			
		
	
		
			
				
					|  |  |  |  |       //隐藏下拉框内容 | 
			
		
	
		
			
				
					|  |  |  |  |       this.$refs.selectHeadEmpId.blur(); | 
			
		
	
		
			
				
					|  |  |  |  |       this.selectBusTypeDisabled = true | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     handleClick(blankName) { | 
			
		
	
		
			
				
					|  |  |  |  |       // let url = window.location.origin+`#/tagCodeBlank?workplaceId=`+ this.stationList[index].workplaceId | 
			
		
	
	
		
			
				
					|  |  |  | @ -827,11 +809,13 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     startDeal() { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       this.curRow = this.formData; | 
			
		
	
		
			
				
					|  |  |  |  |       this.dealSplitOrder() | 
			
		
	
		
			
				
					|  |  |  |  |       this.formData.tagStatus = 2; | 
			
		
	
		
			
				
					|  |  |  |  |       this.updateOrder(); | 
			
		
	
		
			
				
					|  |  |  |  |       this.refreshCodesPanel(this); | 
			
		
	
		
			
				
					|  |  |  |  |       this.$refs.inputRef.focus(); | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     //开始拆零 | 
			
		
	
	
		
			
				
					|  |  |  | @ -899,10 +883,9 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       this.formData.confirmFinish = false; | 
			
		
	
		
			
				
					|  |  |  |  |       this.refreshCodesPanel(this) | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     focusInput() { | 
			
		
	
		
			
				
					|  |  |  |  |       this.$refs.inputRef.focus(); | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |   mounted() { | 
			
		
	
		
			
				
					|  |  |  |  |     this.$refs.inputRef.focus(); | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |   created() { | 
			
		
	
		
			
				
					|  |  |  |  |     getHead("prescribeTagCodeDeal", "1").then((re) => { | 
			
		
	
	
		
			
				
					|  |  |  | @ -928,11 +911,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       this.getWorkBindBusTypes(this.formData.workPlaceCode); | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |   mounted() { | 
			
		
	
		
			
				
					|  |  |  |  |     this.$nextTick(() => { | 
			
		
	
		
			
				
					|  |  |  |  |       this.focusInput(); | 
			
		
	
		
			
				
					|  |  |  |  |     }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | } | 
			
		
	
	
		
			
				
					|  |  |  | 
 |