|
|
@@ -8,7 +8,8 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="处方单号" prop="prescribeCode">
|
|
|
- <el-input v-model="queryParams.prescribeCode" placeholder="请输入处方单号" clearable @keyup.enter.native="handleQuery" />
|
|
|
+ <el-input v-model="queryParams.prescribeCode" placeholder="请输入处方单号" clearable
|
|
|
+ @keyup.enter.native="handleQuery" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="订单编号" prop="orderCode">
|
|
|
<el-input v-model="queryParams.orderCode" placeholder="请输入订单编号" clearable @keyup.enter.native="handleQuery" />
|
|
|
@@ -20,26 +21,12 @@
|
|
|
<el-input v-model="queryParams.doctorName" placeholder="请输入医生姓名" clearable @keyup.enter.native="handleQuery" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="创建时间" prop="dateRange">
|
|
|
- <el-date-picker
|
|
|
- v-model="dateRange"
|
|
|
- type="daterange"
|
|
|
- range-separator="至"
|
|
|
- start-placeholder="开始日期"
|
|
|
- end-placeholder="结束日期"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- @change="handleDateRangeChange"
|
|
|
- ></el-date-picker>
|
|
|
+ <el-date-picker v-model="dateRange" type="daterange" range-separator="至" start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期" value-format="yyyy-MM-dd" @change="handleDateRangeChange"></el-date-picker>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="审核时间" prop="auditRange">
|
|
|
- <el-date-picker
|
|
|
- v-model="auditRange"
|
|
|
- type="daterange"
|
|
|
- range-separator="至"
|
|
|
- start-placeholder="开始日期"
|
|
|
- end-placeholder="结束日期"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- @change="handleAuditDateRangeChange"
|
|
|
- ></el-date-picker>
|
|
|
+ <el-date-picker v-model="auditRange" type="daterange" range-separator="至" start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期" value-format="yyyy-MM-dd" @change="handleAuditDateRangeChange"></el-date-picker>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
@@ -49,56 +36,24 @@
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- plain
|
|
|
- icon="el-icon-plus"
|
|
|
- size="mini"
|
|
|
- @click="handleAdd"
|
|
|
- v-hasPermi="['his:prescribe:add']"
|
|
|
- >新增</el-button>
|
|
|
+ <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
|
|
|
+ v-hasPermi="['his:prescribe:add']">新增</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="success"
|
|
|
- plain
|
|
|
- icon="el-icon-edit"
|
|
|
- size="mini"
|
|
|
- :disabled="single"
|
|
|
- @click="handleUpdate"
|
|
|
- v-hasPermi="['his:prescribe:edit']"
|
|
|
- >修改</el-button>
|
|
|
+ <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
|
|
|
+ v-hasPermi="['his:prescribe:edit']">修改</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="danger"
|
|
|
- plain
|
|
|
- icon="el-icon-delete"
|
|
|
- size="mini"
|
|
|
- :disabled="multiple"
|
|
|
- @click=""
|
|
|
- v-hasPermi="['his:prescribe:remove']"
|
|
|
- >删除</el-button>
|
|
|
+ <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click=""
|
|
|
+ v-hasPermi="['his:prescribe:remove']">删除</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="warning"
|
|
|
- plain
|
|
|
- icon="el-icon-download"
|
|
|
- size="mini"
|
|
|
- @click="handleExport"
|
|
|
- v-hasPermi="['his:prescribe:export']"
|
|
|
- >导出</el-button>
|
|
|
+ <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
|
|
|
+ v-hasPermi="['his:prescribe:export']">导出</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="info"
|
|
|
- plain
|
|
|
- icon="el-icon-download"
|
|
|
- size="mini"
|
|
|
- @click="handleMessageFeedbackExport"
|
|
|
- v-hasPermi="['his:prescribe:messageFeedbackExport']"
|
|
|
- >导出医疗信息反馈单</el-button>
|
|
|
+ <el-button type="info" plain icon="el-icon-download" size="mini" @click="handleMessageFeedbackExport"
|
|
|
+ v-hasPermi="['his:prescribe:messageFeedbackExport']">导出医疗信息反馈单</el-button>
|
|
|
</el-col>
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
@@ -109,17 +64,18 @@
|
|
|
<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"/>
|
|
|
+ <dict-tag :options="prescribeTypeOptions" :value="scope.row.prescribeType" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="订单编号" align="center" prop="orderCode" width="180" />
|
|
|
<el-table-column label="患者姓名" align="center" prop="patientName" />
|
|
|
<el-table-column label="医生姓名" align="center" prop="doctorName" />
|
|
|
- <el-table-column label="是否确认" align="center" prop="doctorConfirm" >
|
|
|
+ <el-table-column label="是否确认" align="center" prop="doctorConfirm">
|
|
|
<template slot-scope="scope">
|
|
|
- <dict-tag :options="doctorConfirmOptions" :value="scope.row.doctorConfirm"/>
|
|
|
+ <dict-tag :options="doctorConfirmOptions" :value="scope.row.doctorConfirm" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="拒方次数" align="center" prop="refuseCount" />
|
|
|
<el-table-column label="操作时间" align="center" prop="operateTime" />
|
|
|
<el-table-column label="审核时间" align="center" prop="auditTime" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
@@ -133,30 +89,18 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- v-if="scope.row.doctorConfirm == 0"
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-edit"
|
|
|
- @click="handleUpdate(scope.row)"
|
|
|
- >开方</el-button>
|
|
|
- <el-button
|
|
|
- v-if="scope.row.doctorConfirm == 1"
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- @click="handleUpdate(scope.row)"
|
|
|
- >查看</el-button>
|
|
|
+ <el-button v-if="scope.row.doctorConfirm == 0" size="mini" type="text" icon="el-icon-edit"
|
|
|
+ @click="handleUpdate(scope.row)">开方</el-button>
|
|
|
+ <el-button v-if="scope.row.doctorConfirm == 1" size="mini" type="text"
|
|
|
+ @click="handleUpdate(scope.row)">查看</el-button>
|
|
|
+ <el-button v-if="scope.row.doctorConfirm == 1" size="mini" type="text"
|
|
|
+ @click="handleRecord(scope.row)">审核记录</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
|
|
|
- <pagination
|
|
|
- v-show="total>0"
|
|
|
- :total="total"
|
|
|
- :page.sync="queryParams.pageNum"
|
|
|
- :limit.sync="queryParams.pageSize"
|
|
|
- @pagination="getList"
|
|
|
- />
|
|
|
+ <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
|
|
+ @pagination="getList" />
|
|
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body @close="handleDialogClose">
|
|
|
<el-tabs v-model="activeTab" type="border-card">
|
|
|
@@ -170,10 +114,10 @@
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="订单ID" prop="inquiryOrderId">
|
|
|
- <el-input v-model="form.inquiryOrderId" placeholder="请输入订单ID" disabled/>
|
|
|
+ <el-input v-model="form.inquiryOrderId" placeholder="请输入订单ID" disabled />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="店铺订单ID" prop="storeOrderId">
|
|
|
- <el-input v-model="form.storeOrderId" placeholder="请输入店铺订单ID" disabled/>
|
|
|
+ <el-input v-model="form.storeOrderId" placeholder="请输入店铺订单ID" disabled />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="患者姓名" prop="patientName">
|
|
|
<el-input v-model="form.patientName" placeholder="请输入患者姓名" />
|
|
|
@@ -187,9 +131,9 @@
|
|
|
<el-option label="女" value="2"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
-<!-- <el-form-item label="患者电话" prop="patientTel">-->
|
|
|
-<!-- <el-input v-model="form.patientTel" placeholder="请输入患者电话" disabled/>-->
|
|
|
-<!-- </el-form-item>-->
|
|
|
+ <!-- <el-form-item label="患者电话" prop="patientTel">-->
|
|
|
+ <!-- <el-input v-model="form.patientTel" placeholder="请输入患者电话" disabled/>-->
|
|
|
+ <!-- </el-form-item>-->
|
|
|
<el-form-item label="体重" prop="weight">
|
|
|
<el-input v-model="form.weight" placeholder="请输入体重" />
|
|
|
</el-form-item>
|
|
|
@@ -203,12 +147,8 @@
|
|
|
<el-input v-model="form.historyAllergic" placeholder="请输入过敏史" />
|
|
|
</el-form-item>
|
|
|
<!-- 定位在右下角的按钮 -->
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- size="mini"
|
|
|
- style="position: absolute; bottom: 5px; right: 20px;"
|
|
|
- @click="openCollectionInfo"
|
|
|
- >
|
|
|
+ <el-button type="primary" size="mini" style="position: absolute; bottom: 5px; right: 20px;"
|
|
|
+ @click="openCollectionInfo">
|
|
|
查看采集信息
|
|
|
</el-button>
|
|
|
</el-form>
|
|
|
@@ -220,59 +160,33 @@
|
|
|
<!-- 诊断 -->
|
|
|
<el-form-item label="诊断" prop="diagnose">
|
|
|
<el-input v-model="form.diagnose" placeholder="请输入诊断">
|
|
|
- <i
|
|
|
- slot="suffix"
|
|
|
- class="el-icon-search el-input__icon"
|
|
|
- style="cursor: pointer;"
|
|
|
- @click="handleCommonlyDiagnoseWorlds"
|
|
|
- ></i>
|
|
|
+ <i slot="suffix" class="el-icon-search el-input__icon" style="cursor: pointer;"
|
|
|
+ @click="handleCommonlyDiagnoseWorlds"></i>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
|
|
|
<!-- 医嘱 -->
|
|
|
<el-form-item label="医嘱" prop="remark">
|
|
|
<div style="display: flex; align-items: center;">
|
|
|
- <el-input
|
|
|
- v-model="form.remark"
|
|
|
- type="textarea"
|
|
|
- placeholder="请输入医嘱"
|
|
|
- style="flex: 1;"
|
|
|
- ></el-input>
|
|
|
+ <el-input v-model="form.remark" type="textarea" placeholder="请输入医嘱" style="flex: 1;"></el-input>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <!-- 药品操作按钮 -->
|
|
|
+ <!-- 药品操作按钮 -->
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- v-if="currentConfirm === 0"
|
|
|
- type="primary"
|
|
|
- icon="el-icon-plus"
|
|
|
- size="mini"
|
|
|
- @click="handleAddDrug"
|
|
|
- :disabled="!form.prescribeId"
|
|
|
- >新增药品</el-button>
|
|
|
+ <el-button v-if="currentConfirm === 0" type="primary" icon="el-icon-plus" size="mini"
|
|
|
+ @click="handleAddDrug" :disabled="!form.prescribeId">新增药品</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="2.5">
|
|
|
- <el-button
|
|
|
- v-if="currentConfirm === 0"
|
|
|
- type="success"
|
|
|
- icon="el-icon-search"
|
|
|
- size="mini"
|
|
|
- @click="openCommonPrescribeDialog"
|
|
|
- :disabled="!form.prescribeId"
|
|
|
- >常用药品</el-button>
|
|
|
+ <el-button v-if="currentConfirm === 0" type="success" icon="el-icon-search" size="mini"
|
|
|
+ @click="openCommonPrescribeDialog" :disabled="!form.prescribeId">常用药品</el-button>
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
<!-- 药品列表表格 -->
|
|
|
- <el-table
|
|
|
- v-loading="drugLoading"
|
|
|
- :data="drugList"
|
|
|
- border
|
|
|
- max-height="400"
|
|
|
- >
|
|
|
- <el-table-column label="药品名称" align="center" prop="drugName" />
|
|
|
+ <el-table v-loading="drugLoading" :data="drugList" border max-height="400">
|
|
|
+ <el-table-column label="药品名称" align="center" prop="drugName" />
|
|
|
<el-table-column label="规格" align="center" prop="drugSpec" width="100" />
|
|
|
<el-table-column label="使用方法" align="center" prop="usageMethod" width="100" />
|
|
|
<el-table-column label="频次" align="center" prop="usageFrequencyUnit" width="80" />
|
|
|
@@ -281,31 +195,19 @@
|
|
|
{{ scope.row.usagePerUseCount }}{{ scope.row.usagePerUseUnit }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column v-if="currentConfirm === 0" label="操作" align="center" class-name="small-padding fixed-width" width="150">
|
|
|
+ <el-table-column v-if="currentConfirm === 0" label="操作" align="center"
|
|
|
+ class-name="small-padding fixed-width" width="150">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-edit"
|
|
|
- @click="handleUpdateDrug(scope.row)"
|
|
|
- >编辑</el-button>
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-delete"
|
|
|
- @click="handleDeleteDrug(scope.row)"
|
|
|
- >删除</el-button>
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-edit"
|
|
|
+ @click="handleUpdateDrug(scope.row)">编辑</el-button>
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-delete"
|
|
|
+ @click="handleDeleteDrug(scope.row)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<!-- 药品分页 -->
|
|
|
- <pagination
|
|
|
- v-show="drugTotal>0"
|
|
|
- :total="drugTotal"
|
|
|
- :page.sync="drugQueryParams.pageNum"
|
|
|
- :limit.sync="drugQueryParams.pageSize"
|
|
|
- @pagination="getDrugList"
|
|
|
- />
|
|
|
+ <pagination v-show="drugTotal > 0" :total="drugTotal" :page.sync="drugQueryParams.pageNum"
|
|
|
+ :limit.sync="drugQueryParams.pageSize" @pagination="getDrugList" />
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
<!-- Tab 3: 用户信息采集 -->
|
|
|
@@ -326,7 +228,8 @@
|
|
|
<el-col :span="8">
|
|
|
<div class="info-item">
|
|
|
<span class="label">患者性别:</span>
|
|
|
- <span class="value">{{ form.patientGender === '1' ? '男' : form.patientGender === '2' ? '女' : '—' }}</span>
|
|
|
+ <span class="value">{{ form.patientGender === '1' ? '男' : form.patientGender === '2' ? '女' : '—'
|
|
|
+ }}</span>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
@@ -350,11 +253,7 @@
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <collectionDetail
|
|
|
- :userId="form.userId"
|
|
|
- :prescribeId="form.prescribeId"
|
|
|
- v-if="form.userId"
|
|
|
- />
|
|
|
+ <collectionDetail :userId="form.userId" :prescribeId="form.prescribeId" v-if="form.userId" />
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
<!-- 查看采集信息的弹窗 -->
|
|
|
@@ -401,7 +300,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
- <collectionDetail :userId="form.userId" :prescribeId="form.prescribeId" v-if="collectionDialogVisible"/>
|
|
|
+ <collectionDetail :userId="form.userId" :prescribeId="form.prescribeId" v-if="collectionDialogVisible" />
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="collectionDialogVisible = false">关 闭</el-button>
|
|
|
</span>
|
|
|
@@ -440,19 +339,9 @@
|
|
|
</el-dialog>
|
|
|
|
|
|
<!-- ✅ 新增:常用语选择对话框 -->
|
|
|
- <el-dialog
|
|
|
- :title="suggestDialogTitle"
|
|
|
- :visible.sync="showSuggestDialog"
|
|
|
- width="600px"
|
|
|
- append-to-body
|
|
|
- @closed="clearSuggestList"
|
|
|
- >
|
|
|
- <el-table
|
|
|
- :data="suggestList"
|
|
|
- height="300"
|
|
|
- border
|
|
|
- @row-click="handleSuggestRowClick"
|
|
|
- >
|
|
|
+ <el-dialog :title="suggestDialogTitle" :visible.sync="showSuggestDialog" width="600px" append-to-body
|
|
|
+ @closed="clearSuggestList">
|
|
|
+ <el-table :data="suggestList" height="300" border @row-click="handleSuggestRowClick">
|
|
|
<el-table-column type="index" width="50" />
|
|
|
<el-table-column label="内容" prop="diagnose" show-overflow-tooltip />
|
|
|
<el-table-column label="操作" width="80" align="center">
|
|
|
@@ -464,100 +353,95 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
|
|
|
- <pagination
|
|
|
- v-show="suggestTotal > 0"
|
|
|
- :total="suggestTotal"
|
|
|
- :page.sync="suggestQuery.pageNum"
|
|
|
- :limit.sync="suggestQuery.pageSize"
|
|
|
- @pagination="getSuggestList"
|
|
|
- />
|
|
|
+ <pagination v-show="suggestTotal > 0" :total="suggestTotal" :page.sync="suggestQuery.pageNum"
|
|
|
+ :limit.sync="suggestQuery.pageSize" @pagination="getSuggestList" />
|
|
|
</el-dialog>
|
|
|
|
|
|
- <!-- 常用药品选择对话框 -->
|
|
|
- <el-dialog
|
|
|
- title="选择常用药品"
|
|
|
- :visible.sync="commonPrescribeDialogVisible"
|
|
|
- width="800px"
|
|
|
- append-to-body
|
|
|
- @open="handleOpenCommonPrescribeDialog"
|
|
|
- >
|
|
|
+ <!-- 常用药品选择对话框 -->
|
|
|
+ <el-dialog title="选择常用药品" :visible.sync="commonPrescribeDialogVisible" width="800px" append-to-body
|
|
|
+ @open="handleOpenCommonPrescribeDialog">
|
|
|
|
|
|
- <!-- 搜索区域 -->
|
|
|
- <el-form :model="commonDrugQuery" :inline="true" size="small" label-width="80px">
|
|
|
- <el-form-item label="药品名称" prop="diagnose">
|
|
|
- <el-input
|
|
|
- v-model="commonDrugQuery.drugName"
|
|
|
- placeholder="请输入药品名称"
|
|
|
- clearable
|
|
|
- @keyup.enter.native="handleCommonPrescribeQuery"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item>
|
|
|
- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleCommonPrescribeQuery">搜索</el-button>
|
|
|
- <el-button icon="el-icon-refresh" size="mini" @click="resetCommonPrescribeQuery">重置</el-button>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
+ <!-- 搜索区域 -->
|
|
|
+ <el-form :model="commonDrugQuery" :inline="true" size="small" label-width="80px">
|
|
|
+ <el-form-item label="药品名称" prop="diagnose">
|
|
|
+ <el-input v-model="commonDrugQuery.drugName" placeholder="请输入药品名称" clearable
|
|
|
+ @keyup.enter.native="handleCommonPrescribeQuery" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary" icon="el-icon-search" size="mini" @click="handleCommonPrescribeQuery">搜索</el-button>
|
|
|
+ <el-button icon="el-icon-refresh" size="mini" @click="resetCommonPrescribeQuery">重置</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
|
|
|
- <!-- 表格 -->
|
|
|
- <el-table
|
|
|
- v-loading="commonPrescribeLoading"
|
|
|
- :data="commonDrugList"
|
|
|
- border
|
|
|
- style="width: 100%; margin-top: 10px;"
|
|
|
- max-height="400"
|
|
|
- >
|
|
|
- <!-- 药品名称 -->
|
|
|
- <el-table-column label="药品名称" align="center" prop="drugName" show-overflow-tooltip />
|
|
|
+ <!-- 表格 -->
|
|
|
+ <el-table v-loading="commonPrescribeLoading" :data="commonDrugList" border style="width: 100%; margin-top: 10px;"
|
|
|
+ max-height="400">
|
|
|
+ <!-- 药品名称 -->
|
|
|
+ <el-table-column label="药品名称" align="center" prop="drugName" show-overflow-tooltip />
|
|
|
|
|
|
- <!-- 规格 -->
|
|
|
- <el-table-column label="规格" align="center" prop="drugSpec" width="100" />
|
|
|
+ <!-- 规格 -->
|
|
|
+ <el-table-column label="规格" align="center" prop="drugSpec" width="100" />
|
|
|
|
|
|
- <!-- 用法 -->
|
|
|
- <el-table-column label="用法" align="center" prop="usageMethod" width="100" />
|
|
|
+ <!-- 用法 -->
|
|
|
+ <el-table-column label="用法" align="center" prop="usageMethod" width="100" />
|
|
|
|
|
|
- <!-- 频次 -->
|
|
|
- <el-table-column label="频次" align="center" prop="usageFrequencyUnit" width="100" />
|
|
|
+ <!-- 频次 -->
|
|
|
+ <el-table-column label="频次" align="center" prop="usageFrequencyUnit" width="100" />
|
|
|
|
|
|
- <!-- 每次用药数量 -->
|
|
|
- <el-table-column label="每次用量" align="center" prop="usagePerUseCount" width="100" />
|
|
|
+ <!-- 每次用药数量 -->
|
|
|
+ <el-table-column label="每次用量" align="center" prop="usagePerUseCount" width="100" />
|
|
|
|
|
|
- <!-- 操作 -->
|
|
|
- <el-table-column label="操作" align="center" width="100">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-check"
|
|
|
- @click="applyCommonPrescribe(scope.row)"
|
|
|
- >应用</el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
+ <!-- 操作 -->
|
|
|
+ <el-table-column label="操作" align="center" width="100">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-check"
|
|
|
+ @click="applyCommonPrescribe(scope.row)">应用</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
|
|
|
- <!-- 分页 -->
|
|
|
- <pagination
|
|
|
- v-show="commonPrescribeTotal > 0"
|
|
|
- :total="commonPrescribeTotal"
|
|
|
- :page.sync="commonDrugQuery.pageNum"
|
|
|
- :limit.sync="commonDrugQuery.pageSize"
|
|
|
- @pagination="getCommonPrescribeList"
|
|
|
- style="margin-top: 10px;"
|
|
|
- />
|
|
|
+ <!-- 分页 -->
|
|
|
+ <pagination v-show="commonPrescribeTotal > 0" :total="commonPrescribeTotal" :page.sync="commonDrugQuery.pageNum"
|
|
|
+ :limit.sync="commonDrugQuery.pageSize" @pagination="getCommonPrescribeList" style="margin-top: 10px;" />
|
|
|
|
|
|
- </el-dialog>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+
|
|
|
+ <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 {getCommonDrugList} from '@/api/commonlyDrug';
|
|
|
-import {getCommonDiagnoseList} from '@/api/commonlyDiagnose';
|
|
|
+import { getCommonDrugList } from '@/api/commonlyDrug';
|
|
|
+import { getCommonDiagnoseList } from '@/api/commonlyDiagnose';
|
|
|
import collectionDetail from '@/views/components/collection/collectionDetail.vue';
|
|
|
-import {listPrescribe,
|
|
|
+import {
|
|
|
+ listPrescribe,
|
|
|
getPrescribe,
|
|
|
addPrescribe,
|
|
|
updatePrescribe,
|
|
|
exportPrescribe,
|
|
|
exportMessageFeedback,
|
|
|
- confirmPrescribe
|
|
|
+ confirmPrescribe,
|
|
|
+ recordList
|
|
|
} from '@/api/his/prescribe'
|
|
|
import { listPrescribeDrug, addPrescribeDrug, updatePrescribeDrug, deletePrescribeDrug } from "@/api/his/prescribeDrug";
|
|
|
export default {
|
|
|
@@ -567,6 +451,12 @@ export default {
|
|
|
name: "Prescribe",
|
|
|
data() {
|
|
|
return {
|
|
|
+ //审核记录数据
|
|
|
+ recordLoading: false,
|
|
|
+ recordList: [],
|
|
|
+ recordDialogVisible: false,//审核记录弹窗控制
|
|
|
+
|
|
|
+
|
|
|
collectionDialogVisible: false, // 控制采集信息弹窗显示
|
|
|
suggestList: [], // 常用语建议列表
|
|
|
suggestTotal: 0, // 分页总数
|
|
|
@@ -635,7 +525,7 @@ export default {
|
|
|
patientName: [{ required: true, message: "患者姓名不能为空", trigger: "blur" }],
|
|
|
patientAge: [{ required: true, message: "患者年龄不能为空", trigger: "blur" }],
|
|
|
patientGender: [{ required: true, message: "患者性别不能为空", trigger: "change" }],
|
|
|
- diagnose: [{ required: true, message: "诊断不能为空", trigger: ["blur", "change"] }],
|
|
|
+ diagnose: [{ required: true, message: "诊断不能为空", trigger: ["blur", "change"] }],
|
|
|
doctorId: [{ required: true, message: "医生ID不能为空", trigger: "blur" }],
|
|
|
status: [{ required: true, message: "处方状态不能为空", trigger: "change" }]
|
|
|
},
|
|
|
@@ -668,7 +558,7 @@ export default {
|
|
|
}
|
|
|
};
|
|
|
},
|
|
|
- computed:{
|
|
|
+ computed: {
|
|
|
// 动态标题
|
|
|
suggestDialogTitle() {
|
|
|
if (this.suggestSource === 'diagnose') return '选择常用诊断内容';
|
|
|
@@ -688,6 +578,21 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ statusFormat(val) {
|
|
|
+ if (val === 0 || val === '0') return '待审核'
|
|
|
+ if (val === 1 || val === '1') return '审核通过'
|
|
|
+ if (val === 2 || val === '2') return '审核不通过'
|
|
|
+ return '-'
|
|
|
+ },
|
|
|
+ //审核记录
|
|
|
+ handleRecord(row) {
|
|
|
+ this.recordDialogVisible = true;
|
|
|
+ this.recordLoading = true;
|
|
|
+ recordList(row.prescribeId).then(res =>{
|
|
|
+ this.recordLoading = false;
|
|
|
+ this.recordList = res.data;
|
|
|
+ })
|
|
|
+ },
|
|
|
/**
|
|
|
* 打开常用药品对话框,并打印当前医生ID
|
|
|
*/
|
|
|
@@ -868,7 +773,7 @@ export default {
|
|
|
this.loading = true;
|
|
|
let userId = this.$store.state.user.userId;
|
|
|
let query = this.addDateRange(this.queryParams, this.dateRange, 'Create');
|
|
|
- query.doctorId = userId.toString().replaceAll("D-","").toString();
|
|
|
+ query.doctorId = userId.toString().replaceAll("D-", "").toString();
|
|
|
listPrescribe(query).then(response => {
|
|
|
this.prescribeList = response.rows;
|
|
|
this.total = response.total;
|
|
|
@@ -945,7 +850,7 @@ export default {
|
|
|
getPrescribe(prescribeId).then(response => {
|
|
|
this.form = response.data;
|
|
|
this.open = true;
|
|
|
- if(this.currentConfirm == 0) {
|
|
|
+ if (this.currentConfirm == 0) {
|
|
|
this.title = "修改处方";
|
|
|
} else {
|
|
|
this.title = "查看处方";
|
|
|
@@ -958,17 +863,17 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- confirmPrescribe(){
|
|
|
+ confirmPrescribe() {
|
|
|
//确认处方的同时保存处方
|
|
|
this.submitForm();
|
|
|
confirmPrescribe(this.form).then(response => {
|
|
|
- if(response.code === 200) {
|
|
|
+ if (response.code === 200) {
|
|
|
this.$message.success("确认成功!");
|
|
|
this.open = false;
|
|
|
} else {
|
|
|
this.$message.error(response.message);
|
|
|
}
|
|
|
- }).finally(()=>{
|
|
|
+ }).finally(() => {
|
|
|
this.getList();
|
|
|
})
|
|
|
|
|
|
@@ -1001,7 +906,7 @@ export default {
|
|
|
}).then(response => {
|
|
|
this.$download.excel(response, '处方数据');
|
|
|
this.exportLoading = false;
|
|
|
- }).catch(() => {});
|
|
|
+ }).catch(() => { });
|
|
|
},
|
|
|
/** 导出医疗信息反馈单 */
|
|
|
handleMessageFeedbackExport() {
|
|
|
@@ -1015,7 +920,7 @@ export default {
|
|
|
}).then(response => {
|
|
|
this.$download.excel(response, '医疗信息反馈单');
|
|
|
this.exportLoading = false;
|
|
|
- }).catch(() => {});
|
|
|
+ }).catch(() => { });
|
|
|
},
|
|
|
/** 对话框关闭事件 */
|
|
|
handleDialogClose() {
|
|
|
@@ -1157,43 +1062,54 @@ export default {
|
|
|
.drug-container {
|
|
|
padding: 10px;
|
|
|
}
|
|
|
+
|
|
|
.detail-container {
|
|
|
padding: 20px;
|
|
|
}
|
|
|
+
|
|
|
.detail-item {
|
|
|
margin-bottom: 10px;
|
|
|
display: flex;
|
|
|
}
|
|
|
+
|
|
|
.detail-item .label {
|
|
|
min-width: 100px;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
+
|
|
|
.id-card-info {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
}
|
|
|
+
|
|
|
.id-card-image {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
margin-bottom: 20px;
|
|
|
}
|
|
|
+
|
|
|
.id-card-detail {
|
|
|
margin-top: 20px;
|
|
|
}
|
|
|
+
|
|
|
/*------------这里开始是Tab3字体样式------------------*/
|
|
|
.info-item {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
min-height: 32px;
|
|
|
}
|
|
|
+
|
|
|
.info-item .label {
|
|
|
- font-family: SimHei, "Microsoft YaHei", sans-serif; /* 黑体优先 */
|
|
|
+ font-family: SimHei, "Microsoft YaHei", sans-serif;
|
|
|
+ /* 黑体优先 */
|
|
|
font-weight: bold;
|
|
|
color: #333;
|
|
|
}
|
|
|
+
|
|
|
.info-item .value {
|
|
|
color: #666;
|
|
|
margin-left: 6px;
|
|
|
}
|
|
|
+
|
|
|
/* -----------这里是Tab3字体样式结束-----------------*/
|
|
|
</style>
|