|
|
@@ -104,27 +104,32 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="160" />
|
|
|
- <el-table-column label="操作" align="center" width="180">
|
|
|
+ <el-table-column
|
|
|
+ label="操作"
|
|
|
+ align="center"
|
|
|
+ width="220"
|
|
|
+ class-name="small-padding fixed-width"
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
- type="primary"
|
|
|
- size="small"
|
|
|
- icon="el-icon-edit"
|
|
|
v-if="scope.row.doctorConfirm === 0 && scope.row.status!==2 && scope.row.isDocument===0"
|
|
|
+ type="text"
|
|
|
+ size="mini"
|
|
|
+ icon="el-icon-edit"
|
|
|
@click="handlePerfectPrescription(scope.row)"
|
|
|
- >完善处方</el-button>
|
|
|
+ >完善信息</el-button>
|
|
|
<el-button
|
|
|
- type="success"
|
|
|
- size="small"
|
|
|
+ v-if="scope.row.recipeType === 1 && (scope.row.doctorConfirm === 0 || scope.row.status===1) && scope.row.isDocument===0"
|
|
|
+ type="text"
|
|
|
+ size="mini"
|
|
|
icon="el-icon-plus"
|
|
|
- v-if="scope.row.isDocument===0 && (scope.row.doctorConfirm === 0 || scope.row.status===1)"
|
|
|
@click="handleOpenPrescribe(scope.row)"
|
|
|
>开方</el-button>
|
|
|
<el-button
|
|
|
- type="danger"
|
|
|
- size="small"
|
|
|
- icon="el-icon-close"
|
|
|
v-if="scope.row.doctorConfirm === 0 && scope.row.isDocument===0"
|
|
|
+ type="text"
|
|
|
+ size="mini"
|
|
|
+ icon="el-icon-close"
|
|
|
@click="handleRejectPrescribe(scope.row)"
|
|
|
>拒方</el-button>
|
|
|
</template>
|
|
|
@@ -146,6 +151,7 @@
|
|
|
:prescribe-id="currentPrescribeId"
|
|
|
:doctor-id="currentDoctorId"
|
|
|
:drug-doctor-id="currentDrugDoctorId"
|
|
|
+ :company-customer-id="currentCompanyCustomerId"
|
|
|
@success="handleAdviceSuccess"
|
|
|
/>
|
|
|
|
|
|
@@ -192,6 +198,7 @@ export default {
|
|
|
currentPrescribeId: null,
|
|
|
currentDoctorId: null,
|
|
|
currentDrugDoctorId: null,
|
|
|
+ currentCompanyCustomerId: null,
|
|
|
|
|
|
};
|
|
|
},
|
|
|
@@ -214,7 +221,7 @@ export default {
|
|
|
this.getList();
|
|
|
},
|
|
|
resetQuery() {
|
|
|
- this.$refs.queryForm.resetFields(); // 修复:使用 resetFields 方法
|
|
|
+ this.$refs.queryForm.resetFields();
|
|
|
this.handleQuery();
|
|
|
},
|
|
|
// 完善处方
|
|
|
@@ -222,6 +229,7 @@ export default {
|
|
|
this.currentPrescribeId = row.prescribeId;
|
|
|
this.currentDoctorId = row.doctorId;
|
|
|
this.currentDrugDoctorId = row.drugDoctorId;
|
|
|
+ this.currentCompanyCustomerId = row.companyCustomerId;
|
|
|
this.dialogVisible = true;
|
|
|
},
|
|
|
// 直接开方
|