|  |  |  | @ -2,47 +2,47 @@ | 
			
		
	
		
			
				
					|  |  |  |  |   <div> | 
			
		
	
		
			
				
					|  |  |  |  |     <el-card class="el-card"> | 
			
		
	
		
			
				
					|  |  |  |  |       <el-form :model="orderQuery" size="mini" label-width="100px" v-show="showSearch"> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-row> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="6"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item class="query-form-item" label="单据编号:"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-input v-model="orderQuery.bill_code" placeholder="单据编号" | 
			
		
	
		
			
				
					|  |  |  |  |                         style="width: 90%" | 
			
		
	
		
			
				
					|  |  |  |  |                         clearable="true" | 
			
		
	
		
			
				
					|  |  |  |  |               ></el-input> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-col> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="6"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item label="单据类型:" class="query-form-item"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-select v-model="orderQuery.bill_type" style="width: 90%" placeholder="选择单据" clearable> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-option label="所有" :value="'A'"></el-option> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-option label="入库" :value="'AI'"></el-option> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-option label="出库" :value="'AO'"></el-option> | 
			
		
	
		
			
				
					|  |  |  |  |               </el-select> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-col> | 
			
		
	
		
			
				
					|  |  |  |  | <!--        <el-row>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <el-col :span="6">--> | 
			
		
	
		
			
				
					|  |  |  |  |           <!--  <el-form-item class="query-form-item" label="药品信息:">--> | 
			
		
	
		
			
				
					|  |  |  |  |           <!--    <el-input v-model="orderQuery.cpmctymc" placeholder="药品信息" clearable="true"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            <el-form-item class="query-form-item" label="单据编号:">--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--              <el-input v-model="orderQuery.bill_code" placeholder="单据编号"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                        style="width: 90%"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                        clearable="true"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--              ></el-input>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            </el-form-item>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          </el-col>--> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="6"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item class="query-form-item" label="发货单位:"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-input v-model="orderQuery.bzgg" placeholder="发货单位" clearable="true" | 
			
		
	
		
			
				
					|  |  |  |  |                         style="width: 90%" | 
			
		
	
		
			
				
					|  |  |  |  |               ></el-input> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-col> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="6"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item class="query-form-item" label="收货单位:"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-input v-model="orderQuery.ylqxzcrbarmc" placeholder="收货单位" | 
			
		
	
		
			
				
					|  |  |  |  |                         style="width: 90%" | 
			
		
	
		
			
				
					|  |  |  |  |                         clearable="true" | 
			
		
	
		
			
				
					|  |  |  |  |               ></el-input> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-col> | 
			
		
	
		
			
				
					|  |  |  |  |         </el-row> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <el-col :span="6">--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            <el-form-item label="单据类型:" class="query-form-item">--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--              <el-select v-model="orderQuery.bill_type" style="width: 90%" placeholder="选择单据" clearable>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                <el-option label="所有" :value="'A'"></el-option>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                <el-option label="入库" :value="'AI'"></el-option>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                <el-option label="出库" :value="'AO'"></el-option>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--              </el-select>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            </el-form-item>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          </el-col>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <!–<el-col :span="6">–>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <!–  <el-form-item class="query-form-item" label="药品信息:">–>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <!–    <el-input v-model="orderQuery.cpmctymc" placeholder="药品信息" clearable="true"–>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <!–              style="width: 90%"–>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <!–    ></el-input>–>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <!–  </el-form-item>–>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <!–</el-col>–>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <el-col :span="6">--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            <el-form-item class="query-form-item" label="发货单位:">--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--              <el-input v-model="orderQuery.bzgg" placeholder="发货单位" clearable="true"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                        style="width: 90%"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--              ></el-input>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            </el-form-item>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          </el-col>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <el-col :span="6">--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            <el-form-item class="query-form-item" label="收货单位:">--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--              <el-input v-model="orderQuery.ylqxzcrbarmc" placeholder="收货单位"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                        style="width: 90%"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                        clearable="true"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--              ></el-input>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            </el-form-item>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          </el-col>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--        </el-row>--> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-row> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="6"> | 
			
		
	
	
		
			
				
					|  |  |  | @ -86,79 +86,55 @@ | 
			
		
	
		
			
				
					|  |  |  |  |           </template> | 
			
		
	
		
			
				
					|  |  |  |  |         </el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column label="序号" type="index"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column | 
			
		
	
		
			
				
					|  |  |  |  |           label="订单编号" | 
			
		
	
		
			
				
					|  |  |  |  |           prop="billCode" | 
			
		
	
		
			
				
					|  |  |  |  |           width="140" | 
			
		
	
		
			
				
					|  |  |  |  |           show-overflow-tooltip | 
			
		
	
		
			
				
					|  |  |  |  |         ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column | 
			
		
	
		
			
				
					|  |  |  |  |           label="单据类型" | 
			
		
	
		
			
				
					|  |  |  |  |           prop="billTypeName" | 
			
		
	
		
			
				
					|  |  |  |  |           show-overflow-tooltip | 
			
		
	
		
			
				
					|  |  |  |  |         ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column label="订单编号" prop="billCode" width="140" show-overflow-tooltip ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column width="120" label="单据时间" prop="billTimeFormat" show-overflow-tooltip ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column label="单据类型" prop="billType" show-overflow-tooltip ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column label="药品信息" prop="physicInfo" show-overflow-tooltip ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column label="药品名称" prop="physicName" show-overflow-tooltip ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column label="制剂数量" prop="prepnCount" show-overflow-tooltip ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column width="100" label="生产批号" prop="produceBatchNo" show-overflow-tooltip ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column label="发货企业" prop="toUserName"  show-overflow-tooltip  ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column  label="收货企业" prop="fromUserName" show-overflow-tooltip  ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column label="生产日期"  prop="produceDate" show-overflow-tooltip ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column label="有效期至" prop="exprieDate" show-overflow-tooltip ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column  width="120" label="最小包装数量" prop="codeCount"  show-overflow-tooltip ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column  width="120" label="厂商" prop="produceEntName"  show-overflow-tooltip ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       </el-table> | 
			
		
	
		
			
				
					|  |  |  |  |       <pagination | 
			
		
	
		
			
				
					|  |  |  |  |         v-show="pageTotal>0" | 
			
		
	
		
			
				
					|  |  |  |  |         :total="pageTotal" | 
			
		
	
		
			
				
					|  |  |  |  |         :page.sync="orderQuery.page" | 
			
		
	
		
			
				
					|  |  |  |  |         :limit.sync="orderQuery.limit" | 
			
		
	
		
			
				
					|  |  |  |  |       /> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--@pagination="getList"--> | 
			
		
	
		
			
				
					|  |  |  |  |     </el-card> | 
			
		
	
		
			
				
					|  |  |  |  | <!--    <el-card>--> | 
			
		
	
		
			
				
					|  |  |  |  |       <el-tabs type="border-card" style="margin: 15px"> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-tab-pane label="单据明细"> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-table | 
			
		
	
		
			
				
					|  |  |  |  |             :data="aliYljgBillDetailDrugList" | 
			
		
	
		
			
				
					|  |  |  |  |             style="width: 100%" | 
			
		
	
		
			
				
					|  |  |  |  |             highlight-current-row="false" | 
			
		
	
		
			
				
					|  |  |  |  |             v-loading="loading" | 
			
		
	
		
			
				
					|  |  |  |  |             border | 
			
		
	
		
			
				
					|  |  |  |  |             ref="multipleTable" | 
			
		
	
		
			
				
					|  |  |  |  |           > | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="药品通用名" prop="prodName" width="140" show-overflow-tooltip ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column width="140" label="药品商品名" prop="prodName" show-overflow-tooltip ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="生产企业名称" prop="productEntName" show-overflow-tooltip ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="药品信息" prop="physicInfo" show-overflow-tooltip ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="药品名称" prop="physicName" show-overflow-tooltip ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="制剂数量" prop="prepnCount" show-overflow-tooltip ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column width="100" label="生产批号" prop="produceBatchNo" show-overflow-tooltip ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="包装单位描述" prop="pkgUnitDesc"  show-overflow-tooltip  ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column  label="制剂规格描述" prop="SC73399619155911" show-overflow-tooltip  ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="生产日期"  prop="produceDate" show-overflow-tooltip ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="有效期至" prop="exprieDate" show-overflow-tooltip ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column | 
			
		
	
		
			
				
					|  |  |  |  |           label="药品信息" | 
			
		
	
		
			
				
					|  |  |  |  |           prop="packUnit" | 
			
		
	
		
			
				
					|  |  |  |  |           show-overflow-tooltip | 
			
		
	
		
			
				
					|  |  |  |  |         ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column | 
			
		
	
		
			
				
					|  |  |  |  |           width="100" | 
			
		
	
		
			
				
					|  |  |  |  |           label="批次号" | 
			
		
	
		
			
				
					|  |  |  |  |           prop="bzgg" | 
			
		
	
		
			
				
					|  |  |  |  |           show-overflow-tooltip | 
			
		
	
		
			
				
					|  |  |  |  |         ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column | 
			
		
	
		
			
				
					|  |  |  |  |           label="发货单位" | 
			
		
	
		
			
				
					|  |  |  |  |           prop="fromUserName" | 
			
		
	
		
			
				
					|  |  |  |  |           show-overflow-tooltip | 
			
		
	
		
			
				
					|  |  |  |  |         ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column | 
			
		
	
		
			
				
					|  |  |  |  |           label="收货单位" | 
			
		
	
		
			
				
					|  |  |  |  |           prop="toUserName" | 
			
		
	
		
			
				
					|  |  |  |  |           show-overflow-tooltip | 
			
		
	
		
			
				
					|  |  |  |  |         ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column | 
			
		
	
		
			
				
					|  |  |  |  |           label="包装规格" | 
			
		
	
		
			
				
					|  |  |  |  |           prop="zczbhhzbapzbh" | 
			
		
	
		
			
				
					|  |  |  |  |           show-overflow-tooltip | 
			
		
	
		
			
				
					|  |  |  |  |         ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column | 
			
		
	
		
			
				
					|  |  |  |  |           label="生产日期" | 
			
		
	
		
			
				
					|  |  |  |  |           prop="price" | 
			
		
	
		
			
				
					|  |  |  |  |           show-overflow-tooltip | 
			
		
	
		
			
				
					|  |  |  |  |         ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <!--<el-table-column--> | 
			
		
	
		
			
				
					|  |  |  |  |         <!--  label="器械类别"--> | 
			
		
	
		
			
				
					|  |  |  |  |         <!--  prop="qxlb"--> | 
			
		
	
		
			
				
					|  |  |  |  |         <!--  show-overflow-tooltip--> | 
			
		
	
		
			
				
					|  |  |  |  |         <!--></el-table-column>--> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column | 
			
		
	
		
			
				
					|  |  |  |  |           label="有效期至" | 
			
		
	
		
			
				
					|  |  |  |  |           prop="companyName" | 
			
		
	
		
			
				
					|  |  |  |  |           show-overflow-tooltip | 
			
		
	
		
			
				
					|  |  |  |  |         ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column | 
			
		
	
		
			
				
					|  |  |  |  |           width="120" | 
			
		
	
		
			
				
					|  |  |  |  |           label="最小包装数量" | 
			
		
	
		
			
				
					|  |  |  |  |           prop="companyName" | 
			
		
	
		
			
				
					|  |  |  |  |           show-overflow-tooltip | 
			
		
	
		
			
				
					|  |  |  |  |         ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column | 
			
		
	
		
			
				
					|  |  |  |  |           width="120" | 
			
		
	
		
			
				
					|  |  |  |  |           label="单据时间" | 
			
		
	
		
			
				
					|  |  |  |  |           prop="billTime" | 
			
		
	
		
			
				
					|  |  |  |  |           show-overflow-tooltip | 
			
		
	
		
			
				
					|  |  |  |  |         ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="操作" width="160" fixed="right"> | 
			
		
	
		
			
				
					|  |  |  |  |               <template slot-scope="scope"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-button | 
			
		
	
		
			
				
					|  |  |  |  |               type="text" | 
			
		
	
		
			
				
					|  |  |  |  |               size="small" | 
			
		
	
		
			
				
					|  |  |  |  |               @click.native.stop="handleDetailClick(scope.row)" | 
			
		
	
		
			
				
					|  |  |  |  |             >详情 | 
			
		
	
		
			
				
					|  |  |  |  |             </el-button> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-button | 
			
		
	
		
			
				
					|  |  |  |  |                   type="text" | 
			
		
	
		
			
				
					|  |  |  |  |                   size="small" | 
			
		
	
	
		
			
				
					|  |  |  | @ -168,25 +144,22 @@ | 
			
		
	
		
			
				
					|  |  |  |  |               </template> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-table> | 
			
		
	
		
			
				
					|  |  |  |  |       <pagination | 
			
		
	
		
			
				
					|  |  |  |  |         v-show="pageTotal>0" | 
			
		
	
		
			
				
					|  |  |  |  |         :total="pageTotal" | 
			
		
	
		
			
				
					|  |  |  |  |         :page.sync="orderQuery.page" | 
			
		
	
		
			
				
					|  |  |  |  |         :limit.sync="orderQuery.limit" | 
			
		
	
		
			
				
					|  |  |  |  |       /> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--@pagination="getList"--> | 
			
		
	
		
			
				
					|  |  |  |  |     </el-card> | 
			
		
	
		
			
				
					|  |  |  |  |         </el-tab-pane> | 
			
		
	
		
			
				
					|  |  |  |  |       </el-tabs> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | <!--    </el-card>--> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     <el-dialog | 
			
		
	
		
			
				
					|  |  |  |  |       title="追溯码明细" | 
			
		
	
		
			
				
					|  |  |  |  |       :visible.sync="codeDetailVisible" | 
			
		
	
		
			
				
					|  |  |  |  |       append-to-body width="60%" | 
			
		
	
		
			
				
					|  |  |  |  |       append-to-body width="65%" | 
			
		
	
		
			
				
					|  |  |  |  |       :close-on-click-modal="false" | 
			
		
	
		
			
				
					|  |  |  |  |       :close-on-press-escape="false" | 
			
		
	
		
			
				
					|  |  |  |  |       v-if="codeDetailVisible" | 
			
		
	
		
			
				
					|  |  |  |  |     > | 
			
		
	
		
			
				
					|  |  |  |  |       <retraceCodeDetailDialog> | 
			
		
	
		
			
				
					|  |  |  |  |       <retraceCodeDetailDialog | 
			
		
	
		
			
				
					|  |  |  |  |       :dataList="this.codes"> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       </retraceCodeDetailDialog> | 
			
		
	
		
			
				
					|  |  |  |  |     </el-dialog> | 
			
		
	
	
		
			
				
					|  |  |  | @ -195,10 +168,17 @@ | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | <script> | 
			
		
	
		
			
				
					|  |  |  |  | import retraceCodeDetailDialog from './retraceCodeDetailDialog' | 
			
		
	
		
			
				
					|  |  |  |  | // import { getCodeList } from '@/api/inout/order' | 
			
		
	
		
			
				
					|  |  |  |  | import { aliYljgSearchbillPage,aliYljgBillDetail } from '@/api/thrsys/alihealthBus.js' | 
			
		
	
		
			
				
					|  |  |  |  | import { addAliBizProduct } from '@/api/inout/order.js' | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | export default { | 
			
		
	
		
			
				
					|  |  |  |  |   components: { retraceCodeDetailDialog }, | 
			
		
	
		
			
				
					|  |  |  |  |   props: { | 
			
		
	
		
			
				
					|  |  |  |  |     orderFormData: { | 
			
		
	
		
			
				
					|  |  |  |  |       type: Object, | 
			
		
	
		
			
				
					|  |  |  |  |       required: true, | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |   data() { | 
			
		
	
		
			
				
					|  |  |  |  |     return { | 
			
		
	
		
			
				
					|  |  |  |  |       orderQuery: { | 
			
		
	
	
		
			
				
					|  |  |  | @ -206,28 +186,13 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |         bill_type: 'A', | 
			
		
	
		
			
				
					|  |  |  |  |         begin_date:'', | 
			
		
	
		
			
				
					|  |  |  |  |         ens_date:'', | 
			
		
	
		
			
				
					|  |  |  |  |         cur_page: 1, | 
			
		
	
		
			
				
					|  |  |  |  |         page_size: 10 | 
			
		
	
		
			
				
					|  |  |  |  |         page: 1, | 
			
		
	
		
			
				
					|  |  |  |  |         limit: 10 | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       pageTotal: 10, | 
			
		
	
		
			
				
					|  |  |  |  |       dataList: [ | 
			
		
	
		
			
				
					|  |  |  |  |         { | 
			
		
	
		
			
				
					|  |  |  |  |           billCode: '1000110', | 
			
		
	
		
			
				
					|  |  |  |  |           billTypeName: '使用出库', | 
			
		
	
		
			
				
					|  |  |  |  |           packUnit: '注射用A型肉毒毒素 注射剂 100U/瓶', | 
			
		
	
		
			
				
					|  |  |  |  |           bzgg: '20230958-2', | 
			
		
	
		
			
				
					|  |  |  |  |           // prepnSpec:"注射剂", | 
			
		
	
		
			
				
					|  |  |  |  |           fromUserName: '厦门湖里妇幼保健院' | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         { | 
			
		
	
		
			
				
					|  |  |  |  |           billCode: '1000111', | 
			
		
	
		
			
				
					|  |  |  |  |           billTypeName: '采购入库', | 
			
		
	
		
			
				
					|  |  |  |  |           packUnit: '注射用A型肉毒毒素 注射剂 100U/瓶', | 
			
		
	
		
			
				
					|  |  |  |  |           bzgg: '20230958-2', | 
			
		
	
		
			
				
					|  |  |  |  |           prepnSpec: '厦门湖里妇幼保健院', | 
			
		
	
		
			
				
					|  |  |  |  |           fromUserName: '国药控股福建有限公司' | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |       ], | 
			
		
	
		
			
				
					|  |  |  |  |       dataList: [], | 
			
		
	
		
			
				
					|  |  |  |  |       aliYljgBillDetailDrugList: [], | 
			
		
	
		
			
				
					|  |  |  |  |       codes: [], | 
			
		
	
		
			
				
					|  |  |  |  |       pickerOptions: { | 
			
		
	
		
			
				
					|  |  |  |  |         shortcuts: [ | 
			
		
	
		
			
				
					|  |  |  |  |           { | 
			
		
	
	
		
			
				
					|  |  |  | @ -253,25 +218,43 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       actDateRange: [], | 
			
		
	
		
			
				
					|  |  |  |  |       showSearch: true, | 
			
		
	
		
			
				
					|  |  |  |  |       codeDetailVisible: false, | 
			
		
	
		
			
				
					|  |  |  |  |       radioCheck: null | 
			
		
	
		
			
				
					|  |  |  |  |       radioCheck: null, | 
			
		
	
		
			
				
					|  |  |  |  |       currentRow: null | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |   methods: { | 
			
		
	
		
			
				
					|  |  |  |  |     confirmSelect() { | 
			
		
	
		
			
				
					|  |  |  |  |       if (this.currentRow == null) { | 
			
		
	
		
			
				
					|  |  |  |  |         this.$message.error('请选择要选入的单据!') | 
			
		
	
		
			
				
					|  |  |  |  |         return | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       this.orderFormData.aliData = this.currentRow | 
			
		
	
		
			
				
					|  |  |  |  |       addAliBizProduct(this.orderFormData).then((res) => { | 
			
		
	
		
			
				
					|  |  |  |  |         if (res.code === 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |           this.codeDetailVisible = false | 
			
		
	
		
			
				
					|  |  |  |  |           this.$message.success('选入成功') | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         } else { | 
			
		
	
		
			
				
					|  |  |  |  |           this.$message.error(res.message) | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |       }).catch((error) => { | 
			
		
	
		
			
				
					|  |  |  |  |         this.$message.error('选入失败') | 
			
		
	
		
			
				
					|  |  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     hideSearch() { | 
			
		
	
		
			
				
					|  |  |  |  |       this.showSearch = !this.showSearch | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     search() { | 
			
		
	
		
			
				
					|  |  |  |  |       this.getList() | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     handleCodeDetailClick(row) { | 
			
		
	
		
			
				
					|  |  |  |  |       this.codes = row.aliYljgBillDetailDrugCodeList | 
			
		
	
		
			
				
					|  |  |  |  |       this.codeDetailVisible = true | 
			
		
	
		
			
				
					|  |  |  |  |       const parts = row.packUnit.split(' ') | 
			
		
	
		
			
				
					|  |  |  |  |       let drugName = parts[0] // 第一个字段 | 
			
		
	
		
			
				
					|  |  |  |  |       let dosageForm = parts[1] // 第二个字段 | 
			
		
	
		
			
				
					|  |  |  |  |       let packUnitDetail = parts.slice(2).join(' ') | 
			
		
	
		
			
				
					|  |  |  |  |       console.log('1', drugName) | 
			
		
	
		
			
				
					|  |  |  |  |       console.log('2', dosageForm) | 
			
		
	
		
			
				
					|  |  |  |  |       console.log('3', packUnitDetail) | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     handleChange(currentRow) { | 
			
		
	
		
			
				
					|  |  |  |  |       this.radioCheck = currentRow.billCode | 
			
		
	
		
			
				
					|  |  |  |  |       this.currentRow = currentRow | 
			
		
	
		
			
				
					|  |  |  |  |       this.getBillDetail(currentRow) | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     createDateTime() { | 
			
		
	
		
			
				
					|  |  |  |  |       const end = new Date(); // 结束日期为当前日期 | 
			
		
	
	
		
			
				
					|  |  |  | @ -285,21 +268,27 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       }; | 
			
		
	
		
			
				
					|  |  |  |  |       this.actDateRange = [formatDate(start), formatDate(end)]; | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     // getList() { | 
			
		
	
		
			
				
					|  |  |  |  |     //   if (this.actDateRange !== null) { | 
			
		
	
		
			
				
					|  |  |  |  |     //     this.orderQuery.begin_date = this.actDateRange[0] | 
			
		
	
		
			
				
					|  |  |  |  |     //     this.orderQuery.ens_date = this.actDateRange[1] | 
			
		
	
		
			
				
					|  |  |  |  |     //   } | 
			
		
	
		
			
				
					|  |  |  |  |     //   getCodeList().then(res => { | 
			
		
	
		
			
				
					|  |  |  |  |     //     if (res.code == 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |     //       this.dataList = res.data | 
			
		
	
		
			
				
					|  |  |  |  |     //     } | 
			
		
	
		
			
				
					|  |  |  |  |     //   }) | 
			
		
	
		
			
				
					|  |  |  |  |     // } | 
			
		
	
		
			
				
					|  |  |  |  |     getList() { | 
			
		
	
		
			
				
					|  |  |  |  |       if (this.actDateRange !== null) { | 
			
		
	
		
			
				
					|  |  |  |  |         this.orderQuery.begin_date = this.actDateRange[0] | 
			
		
	
		
			
				
					|  |  |  |  |         this.orderQuery.ens_date = this.actDateRange[1] | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       aliYljgSearchbillPage(this.orderQuery).then(res => { | 
			
		
	
		
			
				
					|  |  |  |  |         if (res.code == 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |           this.dataList = res.data.list || [] | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     getBillDetail(currentRow) { | 
			
		
	
		
			
				
					|  |  |  |  |       aliYljgBillDetail(currentRow).then(res => { | 
			
		
	
		
			
				
					|  |  |  |  |         if (res.code == 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |           this.aliYljgBillDetailDrugList = res.data.aliYljgBillDetailDrugList || [] | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |   created() { | 
			
		
	
		
			
				
					|  |  |  |  |     // this.getList() | 
			
		
	
		
			
				
					|  |  |  |  |     this.createDateTime() | 
			
		
	
		
			
				
					|  |  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  |  | } | 
			
		
	
	
		
			
				
					|  |  |  | 
 |