|
@@ -64,6 +64,8 @@
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">修改</el-button>
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">修改</el-button>
|
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">删除</el-button>
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">删除</el-button>
|
|
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-view" @click="handlePrescribe(scope.row)">查看处方</el-button>
|
|
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-document" @click="handleCollection(scope.row)">查看信息采集</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
@@ -196,6 +198,53 @@
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 处方列表弹窗 -->
|
|
|
|
|
+ <el-dialog title="处方信息" :visible.sync="prescribeOpen" width="1100px" append-to-body :close-on-click-modal="false">
|
|
|
|
|
+ <el-table v-loading="prescribeLoading" :data="prescribeList">
|
|
|
|
|
+ <el-table-column label="处方ID" align="center" prop="prescribeId" />
|
|
|
|
|
+ <el-table-column label="处方单号" align="center" prop="prescribeCode" />
|
|
|
|
|
+ <el-table-column label="处方类型" align="center" prop="prescribeType">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <dict-tag :options="prescribeTypeOptions" :value="scope.row.prescribeType" />
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="患者姓名" align="center" prop="patientName" />
|
|
|
|
|
+ <el-table-column label="医生姓名" align="center" prop="doctorName" />
|
|
|
|
|
+ <el-table-column label="是否确认" align="center" prop="doctorConfirm">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <dict-tag :options="doctorConfirmOptions" :value="scope.row.doctorConfirm" />
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="审核时间" align="center" prop="auditTime" width="180">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span>{{ parseTime(scope.row.auditTime, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="处方图片" align="center" prop="prescribeImgUrl">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-image
|
|
|
|
|
+ v-if="scope.row.doctorConfirm == 1 && scope.row.prescribeImgUrl"
|
|
|
|
|
+ style="width: 60px; height: 60px"
|
|
|
|
|
+ :src="scope.row.prescribeImgUrl"
|
|
|
|
|
+ :preview-src-list="[scope.row.prescribeImgUrl]"
|
|
|
|
|
+ />
|
|
|
|
|
+ <span v-else>-</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ <pagination
|
|
|
|
|
+ v-show="prescribeTotal > 0"
|
|
|
|
|
+ :total="prescribeTotal"
|
|
|
|
|
+ :page.sync="prescribeQueryParams.pageNum"
|
|
|
|
|
+ :limit.sync="prescribeQueryParams.pageSize"
|
|
|
|
|
+ @pagination="getPrescribeList"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 信息采集弹窗 -->
|
|
|
|
|
+ <collection-info-dialog :visible.sync="collectionVisible" :phone="currentPhone" />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -207,12 +256,14 @@ import {
|
|
|
updatePatientInfo,
|
|
updatePatientInfo,
|
|
|
delPatientInfo,
|
|
delPatientInfo,
|
|
|
exportPatientInfo,
|
|
exportPatientInfo,
|
|
|
- getDoctorBaseInfo
|
|
|
|
|
|
|
+ getDoctorBaseInfo,
|
|
|
|
|
+ getPrescribeListByPhone
|
|
|
} from '@/api/patientInfo'
|
|
} from '@/api/patientInfo'
|
|
|
import { parseTime } from "../../utils/common";
|
|
import { parseTime } from "../../utils/common";
|
|
|
-
|
|
|
|
|
|
|
+import CollectionInfoDialog from './CollectionInfoDialog.vue' // 引入信息采集表组件
|
|
|
export default {
|
|
export default {
|
|
|
name: "Patient",
|
|
name: "Patient",
|
|
|
|
|
+ components: { CollectionInfoDialog }, // 注册信息采集表组件
|
|
|
data() {
|
|
data() {
|
|
|
// 自定义年龄验证器(备用,el-input-number 已设 min,此规则确保即使组件异常也能拦截)
|
|
// 自定义年龄验证器(备用,el-input-number 已设 min,此规则确保即使组件异常也能拦截)
|
|
|
const validateAge = (rule, value, callback) => {
|
|
const validateAge = (rule, value, callback) => {
|
|
@@ -309,7 +360,28 @@ export default {
|
|
|
practiseCode: '',
|
|
practiseCode: '',
|
|
|
certificateCode: '',
|
|
certificateCode: '',
|
|
|
signUrl: ''
|
|
signUrl: ''
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ // 处方相关
|
|
|
|
|
+ prescribeOpen: false,
|
|
|
|
|
+ prescribeLoading: false,
|
|
|
|
|
+ prescribeList: [],
|
|
|
|
|
+ prescribeTotal: 0,
|
|
|
|
|
+ currentPhone: '',
|
|
|
|
|
+ prescribeQueryParams: {
|
|
|
|
|
+ pageNum: 1,
|
|
|
|
|
+ pageSize: 10
|
|
|
|
|
+ },
|
|
|
|
|
+ doctorConfirmOptions: [
|
|
|
|
|
+ { dictValue: '0', dictLabel: "未确认" },
|
|
|
|
|
+ { dictValue: '1', dictLabel: "已确认" }
|
|
|
|
|
+ ],
|
|
|
|
|
+ prescribeTypeOptions: [
|
|
|
|
|
+ { dictValue: '1', dictLabel: "西药" },
|
|
|
|
|
+ { dictValue: '2', dictLabel: "中药" },
|
|
|
|
|
+ { dictValue: '3', dictLabel: "OTC" }
|
|
|
|
|
+ ],
|
|
|
|
|
+ //控制信息采集弹窗的变量
|
|
|
|
|
+ collectionVisible: false,
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -492,7 +564,41 @@ export default {
|
|
|
params.endTime = dateRange[1];
|
|
params.endTime = dateRange[1];
|
|
|
}
|
|
}
|
|
|
return params;
|
|
return params;
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ /** 打开处方弹窗 */
|
|
|
|
|
+ handlePrescribe(row) {
|
|
|
|
|
+ this.currentPhone = row.phone;
|
|
|
|
|
+ this.prescribeQueryParams.pageNum = 1;
|
|
|
|
|
+ this.prescribeOpen = true;
|
|
|
|
|
+ this.getPrescribeList();
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ /** 查询处方列表 */
|
|
|
|
|
+ getPrescribeList() {
|
|
|
|
|
+ this.prescribeLoading = true;
|
|
|
|
|
+ const params = {
|
|
|
|
|
+ phone: this.currentPhone,
|
|
|
|
|
+ pageNum: this.prescribeQueryParams.pageNum,
|
|
|
|
|
+ pageSize: this.prescribeQueryParams.pageSize
|
|
|
|
|
+ };
|
|
|
|
|
+ getPrescribeListByPhone(params).then(response => {
|
|
|
|
|
+ const data = response.data; // 后端返回 PageInfo,data 中包含 list 和 total
|
|
|
|
|
+ this.prescribeList = data.list || [];
|
|
|
|
|
+ this.prescribeTotal = data.total || 0;
|
|
|
|
|
+ this.prescribeLoading = false;
|
|
|
|
|
+ }).catch(() => {
|
|
|
|
|
+ this.prescribeLoading = false;
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ /** 打开信息采集弹窗 */
|
|
|
|
|
+ handleCollection(row) {
|
|
|
|
|
+ if (!row.phone) {
|
|
|
|
|
+ this.$message.warning('该客户未登记手机号,无法查看信息采集表')
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ this.currentPhone = row.phone
|
|
|
|
|
+ this.collectionVisible = true
|
|
|
|
|
+ },
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|