| 
					
				 | 
			
			
				@@ -49,8 +49,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-table-column label="病情描述(主诉)" align="center" prop="chiefComplaint" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-table-column label="现病史" align="center" prop="nowIllness" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-table-column label="既往史" align="center" prop="historyIllness" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-       
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <!-- <el-table-column label="体重" align="center" prop="weight" /> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-table-column label="是否有过敏史" align="center" prop="isHistoryAllergic" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <!-- <el-table-column label="过敏史" align="center" prop="historyAllergic" /> --> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -59,10 +59,10 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-table-column label="是否是备孕/怀孕/哺乳期" align="center" prop="lactationFlag" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-table-column label="复诊凭证" align="center" prop="recordPic" width="120"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <el-image  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-image 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             v-if="scope.row.recordPic!=null" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             style="width: 50px; height: 50px" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            :src="parsePhoto(scope.row.recordPic)[0]"  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            :src="parsePhoto(scope.row.recordPic)[0]" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             :preview-src-list="parsePhoto(scope.row.recordPic)"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </el-image> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </template> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -100,11 +100,19 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             @click="handleShowOrder(scope.row)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             v-hasPermi="['store:prescribe:showOrder']" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           >查看订单</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            size="mini" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            type="text" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            @click="handleDoctorDeal(scope.row)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            v-hasPermi="['store:prescribe:showOrder']" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            v-if="scope.row.status === 0"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            医生开方 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </el-table> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <pagination 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       v-show="total>0" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       :total="total" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -112,9 +120,27 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       :limit.sync="queryParams.pageSize" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       @pagination="getList" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <el-dialog :title="show.title" v-if="show.open" :visible.sync="show.open" width="1000px" append-to-body> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <el-dialog :title="show.title" v-if="show.open" :visible.sync="show.open" width="1200px" append-to-body> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <product-order  ref="order" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </el-dialog> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <el-dialog title="医生开方" v-if="show.doctorOpen" :visible.sync="show.doctorOpen" width="1000px" append-to-body> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-form :model="editForm" ref="editForm" :rules="editRules"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-form-item label="主诉" prop="chiefComplaint" required> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-input type="textarea" v-model="editForm.chiefComplaint"></el-input> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-form-item label="诊断" prop="diagnose" required> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-input type="textarea" v-model="editForm.diagnose"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </el-input> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </el-form> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <div slot="footer" class="dialog-footer"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-button type="primary" @click="handleDoctorUpdate">确 定</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-button type="danger" @click="handleDoctorUpdate">拒 绝</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-button @click="handleDoctorDealCancel">取 消</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </el-dialog> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -129,8 +155,21 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       show:{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         open:false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        doctorOpen: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         title:"订单详情" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      editForm: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        chiefComplaint: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        diagnose: '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      editRules: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        chiefComplaint: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          { required: true, message: "请输入主述", trigger: "blur" } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        diagnose: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          { required: true, message: "请输入诊断意见", trigger: "blur" } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       prescribeStatusOptions:[], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 遮罩层 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       loading: true, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -196,6 +235,17 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     this.getList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    handleDoctorDeal(row){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.show.doctorOpen = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const prescribeId = row.prescribeId || this.ids 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      getPrescribe(prescribeId).then(response => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.form = response.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.editForm.chiefComplaint = this.form.chiefComplaint; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.editForm.diagnose = this.form.diagnose; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.open = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.title = "修改处方"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleShowOrder(row){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.show.open=true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       const orderId = row.orderId ; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -284,6 +334,26 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.title = "修改处方"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    handleDoctorDealCancel(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.editForm.chiefComplaint = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.editForm.diagnose = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.show.doctorOpen = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    handleDoctorUpdate(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.$refs['editForm'].validate(valid => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(valid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          let updateData = {...this.form,chiefComplaint: this.editForm.chiefComplaint,diagnose: this.editForm.diagnose} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          updatePrescribe(updateData).then(response => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (response.code === 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.msgSuccess("修改成功"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.show.doctorOpen = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.getList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.form = {}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 提交按钮 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     submitForm() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$refs["form"].validate(valid => { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -338,5 +408,4 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 |