|
@@ -0,0 +1,181 @@
|
|
|
|
|
+<!-- 医生商城处方列表页面 -->
|
|
|
|
|
+<template>
|
|
|
|
|
+ <div class="app-container">
|
|
|
|
|
+ <!-- 搜索表单 -->
|
|
|
|
|
+ <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="80px">
|
|
|
|
|
+ <el-form-item label="患者姓名" prop="patientName">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="queryParams.patientName"
|
|
|
|
|
+ placeholder="请输入患者姓名"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ style="width: 150px"
|
|
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="处方状态" prop="doctorConfirm">
|
|
|
|
|
+ <el-select v-model="queryParams.doctorConfirm" placeholder="处方状态" clearable size="small">
|
|
|
|
|
+ <el-option label="待开方" :value="0" />
|
|
|
|
|
+ <el-option label="待审核" :value="1" />
|
|
|
|
|
+ <el-option label="已拒方" :value="-1" />
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="处方类型" prop="prescribeType">
|
|
|
|
|
+ <el-select v-model="queryParams.prescribeType" placeholder="处方类型" clearable size="small">
|
|
|
|
|
+ <el-option label="西药" :value="1" />
|
|
|
|
|
+ <el-option label="中药" :value="2" />
|
|
|
|
|
+ <el-option label="中药+西药" :value="3" />
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="订单编号" prop="orderCode">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="queryParams.orderCode"
|
|
|
|
|
+ placeholder="请输入订单编号"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ style="width: 180px"
|
|
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="处方编号" prop="prescribeCode">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="queryParams.prescribeCode"
|
|
|
|
|
+ placeholder="请输入处方编号"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ style="width: 180px"
|
|
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item>
|
|
|
|
|
+ <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
|
|
+ <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 数据表格 -->
|
|
|
|
|
+ <el-table v-loading="loading" :data="prescribeList" stripe border>
|
|
|
|
|
+ <el-table-column label="处方编号" align="center" prop="prescribeCode" width="180" show-overflow-tooltip />
|
|
|
|
|
+ <el-table-column label="订单编号" align="center" prop="orderCode" width="180" show-overflow-tooltip />
|
|
|
|
|
+ <el-table-column label="患者姓名" align="center" prop="patientName" width="100" />
|
|
|
|
|
+ <el-table-column label="患者年龄" align="center" prop="patientAge" width="80" />
|
|
|
|
|
+ <el-table-column label="处方类型" align="center" prop="prescribeType" width="100">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <dict-tag :options="prescribeTypeOptions" :value="scope.row.prescribeType"/>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="处方状态" align="center" prop="doctorConfirm" width="120">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span v-if="scope.row.doctorConfirm === 0" class="warning">待医生开方</span>
|
|
|
|
|
+ <span v-else-if="scope.row.doctorConfirm === 1" class="success">已开方待审核</span>
|
|
|
|
|
+ <span v-else-if="scope.row.doctorConfirm === -1" class="danger">医生拒方</span>
|
|
|
|
|
+ <span v-else>-</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="中药处方图片" align="center" width="120">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-image
|
|
|
|
|
+ v-if="scope.row.prescribeImgUrl"
|
|
|
|
|
+ :src="scope.row.prescribeImgUrl"
|
|
|
|
|
+ :preview-src-list="[scope.row.prescribeImgUrl]"
|
|
|
|
|
+ fit="cover"
|
|
|
|
|
+ style="width: 60px; height: 60px; border-radius: 4px; cursor: pointer"
|
|
|
|
|
+ :initial-index="0"
|
|
|
|
|
+ />
|
|
|
|
|
+ <span v-else class="empty-text">无</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="西药处方图片" align="center" width="120">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-image
|
|
|
|
|
+ v-if="scope.row.prescribeImgStoreUrl"
|
|
|
|
|
+ :src="scope.row.prescribeImgStoreUrl"
|
|
|
|
|
+ :preview-src-list="[scope.row.prescribeImgStoreUrl]"
|
|
|
|
|
+ fit="cover"
|
|
|
|
|
+ style="width: 60px; height: 60px; border-radius: 4px; cursor: pointer"
|
|
|
|
|
+ />
|
|
|
|
|
+ <span v-else class="empty-text">无</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="创建时间" align="center" prop="createTime" width="160" />
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 分页组件 -->
|
|
|
|
|
+ <pagination
|
|
|
|
|
+ v-show="total>0"
|
|
|
|
|
+ :total="total"
|
|
|
|
|
+ :page.sync="queryParams.pageNum"
|
|
|
|
|
+ :limit.sync="queryParams.pageSize"
|
|
|
|
|
+ @pagination="getList"
|
|
|
|
|
+ />
|
|
|
|
|
+ </div>
|
|
|
|
|
+</template>
|
|
|
|
|
+
|
|
|
|
|
+<script>
|
|
|
|
|
+import { waitOpenPrescribeList } from "@/api/his/scrmPrescribe";
|
|
|
|
|
+
|
|
|
|
|
+export default {
|
|
|
|
|
+ name: "PrescribeList",
|
|
|
|
|
+ data() {
|
|
|
|
|
+ return {
|
|
|
|
|
+ // 遮罩层
|
|
|
|
|
+ loading: true,
|
|
|
|
|
+ // 显示搜索条件
|
|
|
|
|
+ showSearch: true,
|
|
|
|
|
+ // 处方列表数据
|
|
|
|
|
+ prescribeList: [],
|
|
|
|
|
+ // 总条数
|
|
|
|
|
+ total: 0,
|
|
|
|
|
+ // 查询参数
|
|
|
|
|
+ queryParams: {
|
|
|
|
|
+ pageNum: 1,
|
|
|
|
|
+ pageSize: 10,
|
|
|
|
|
+ patientName: null,
|
|
|
|
|
+ doctorConfirm: null,
|
|
|
|
|
+ prescribeType: null,
|
|
|
|
|
+ orderCode: null,
|
|
|
|
|
+ prescribeCode: null
|
|
|
|
|
+ },
|
|
|
|
|
+ // 处方类型字典
|
|
|
|
|
+ prescribeTypeOptions: [
|
|
|
|
|
+ { dictLabel: "西药", dictValue: 1 },
|
|
|
|
|
+ { dictLabel: "中药", dictValue: 2 },
|
|
|
|
|
+ { dictLabel: "中药+西药", dictValue: 3 }
|
|
|
|
|
+ ]
|
|
|
|
|
+ };
|
|
|
|
|
+ },
|
|
|
|
|
+ created() {
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ },
|
|
|
|
|
+ methods: {
|
|
|
|
|
+ /** 查询处方列表 */
|
|
|
|
|
+ getList() {
|
|
|
|
|
+ this.loading = true;
|
|
|
|
|
+ waitOpenPrescribeList(this.queryParams).then(response => {
|
|
|
|
|
+ this.prescribeList = response.rows;
|
|
|
|
|
+ this.total = response.total;
|
|
|
|
|
+ this.loading = false;
|
|
|
|
|
+ }).catch(() => {
|
|
|
|
|
+ this.loading = false;
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ /** 搜索按钮操作 */
|
|
|
|
|
+ handleQuery() {
|
|
|
|
|
+ this.queryParams.pageNum = 1;
|
|
|
|
|
+ this.getList();
|
|
|
|
|
+ },
|
|
|
|
|
+ /** 重置按钮操作 */
|
|
|
|
|
+ resetQuery() {
|
|
|
|
|
+ this.resetForm("queryForm");
|
|
|
|
|
+ this.handleQuery();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+};
|
|
|
|
|
+</script>
|
|
|
|
|
+
|
|
|
|
|
+<style scoped>
|
|
|
|
|
+.warning { color: #e6a23c; }
|
|
|
|
|
+.success { color: #67c23a; }
|
|
|
|
|
+.danger { color: #f56c6c; }
|
|
|
|
|
+.empty-text { color: #909399; font-size: 12px; }
|
|
|
|
|
+</style>
|