|
|
@@ -197,6 +197,8 @@
|
|
|
>查看
|
|
|
</el-button>
|
|
|
|
|
|
+ <el-button size="mini" type="text"
|
|
|
+ @click="handleRecord(scope.row)">审核记录</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -214,11 +216,34 @@
|
|
|
:title="show.title" :visible.sync="show.open">
|
|
|
<prescribeDetails ref="Details" />
|
|
|
</el-drawer>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <el-dialog title="审核记录" :visible.sync="recordDialogVisible" width="1000px" append-to-body>
|
|
|
+ <el-table v-loading="recordLoading" :data="recordList" border style="width: 100%; margin-top: 10px;"
|
|
|
+ max-height="400">
|
|
|
+ <el-table-column label="审核药师" align="center" prop="drugDoctorName" />
|
|
|
+ <el-table-column label="拒方原因" align="center" prop="auditReason" show-overflow-tooltip />
|
|
|
+ <el-table-column label="处方图片" align="center" width="140">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-image v-if="scope.row.prescribeImgUrl" :src="scope.row.prescribeImgUrl"
|
|
|
+ :preview-src-list="[scope.row.prescribeImgUrl]" style="width: 120px; height: 120px" fit="cover" />
|
|
|
+ <span v-else>无</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="审核时间" align="center" prop="createTime" />
|
|
|
+ <el-table-column label="审核状态" align="center" width="120">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ statusFormat(scope.row.auditStatus != null ? scope.row.auditStatus : scope.row.status) }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listPrescribe, getPrescribe, delPrescribe, addPrescribe, updatePrescribe, exportPrescribe,exportMessageFeedback } from "@/api/his/prescribe";
|
|
|
+import { listPrescribe, getPrescribe, delPrescribe, addPrescribe, updatePrescribe, exportPrescribe,exportMessageFeedback,recordList } from "@/api/his/prescribe";
|
|
|
import prescribeDetails from '../../components/his/prescribeDetails.vue';
|
|
|
import {allList}from "@/api/company/company";
|
|
|
import { getTask } from "@/api/common";
|
|
|
@@ -228,6 +253,10 @@ export default {
|
|
|
components: { prescribeDetails },
|
|
|
data() {
|
|
|
return {
|
|
|
+ //审核记录数据
|
|
|
+ recordLoading: false,
|
|
|
+ recordList: [],
|
|
|
+ recordDialogVisible: false,//审核记录弹窗控制
|
|
|
operateTime: {
|
|
|
minVal: null,
|
|
|
minUnit: 'sec', // 默认单位:秒
|
|
|
@@ -339,6 +368,12 @@ export default {
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ statusFormat(val) {
|
|
|
+ if (val === 0 || val === '0') return '待审核'
|
|
|
+ if (val === 1 || val === '1') return '审核通过'
|
|
|
+ if (val === 2 || val === '2') return '审核不通过'
|
|
|
+ return '-'
|
|
|
+ },
|
|
|
getAppMallOptions() {
|
|
|
getAppMallOptions({pageNum:1,pageSize:100,isMall:1}).then(response => {
|
|
|
this.appMallOptions = response.rows;
|
|
|
@@ -363,6 +398,15 @@ export default {
|
|
|
this.$refs.Details.getDetails(row.prescribeId);
|
|
|
}, 1);
|
|
|
},
|
|
|
+ //审核记录
|
|
|
+ handleRecord(row) {
|
|
|
+ this.recordDialogVisible = true;
|
|
|
+ this.recordLoading = true;
|
|
|
+ recordList(row.prescribeId).then(res =>{
|
|
|
+ this.recordLoading = false;
|
|
|
+ this.recordList = res.data;
|
|
|
+ })
|
|
|
+ },
|
|
|
/** 查询处方列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|