|
|
@@ -93,6 +93,7 @@
|
|
|
<el-input-number
|
|
|
v-model="operateTime.minVal"
|
|
|
:min="0"
|
|
|
+ :controls="false"
|
|
|
size="small"
|
|
|
placeholder="最小值"
|
|
|
style="width: 100px"
|
|
|
@@ -105,6 +106,7 @@
|
|
|
<el-input-number
|
|
|
v-model="operateTime.maxVal"
|
|
|
:min="0"
|
|
|
+ :controls="false"
|
|
|
size="small"
|
|
|
placeholder="最大值"
|
|
|
style="width: 100px; margin-left: 8px"
|
|
|
@@ -115,6 +117,17 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
|
|
|
+ <el-form-item label="医生组别" prop="groupCode">
|
|
|
+ <el-select v-model="queryParams.groupCode" placeholder="请选择医生组别" clearable size="small">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in groupCodeOptions"
|
|
|
+ :key="dict.dictValue"
|
|
|
+ :label="dict.dictLabel"
|
|
|
+ :value="dict.dictValue"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </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>
|
|
|
@@ -161,7 +174,11 @@
|
|
|
<dict-tag :options="prescribeType" :value="scope.row.prescribeType"/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
-
|
|
|
+ <el-table-column label="医生组别" align="center" prop="groupCode">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <dict-tag :options="groupCodeOptions" :value="scope.row.groupCode"/>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="患者年龄" align="center" prop="patientAge" />
|
|
|
<el-table-column label="患者姓名" align="center" prop="patientName" />
|
|
|
<el-table-column label="诊断" align="center" prop="diagnose" />
|
|
|
@@ -253,6 +270,8 @@ export default {
|
|
|
components: { prescribeDetails },
|
|
|
data() {
|
|
|
return {
|
|
|
+ // 医生组别字典
|
|
|
+ groupCodeOptions: [],
|
|
|
//审核记录数据
|
|
|
recordLoading: false,
|
|
|
recordList: [],
|
|
|
@@ -295,6 +314,7 @@ export default {
|
|
|
open: false,
|
|
|
// 查询参数
|
|
|
queryParams: {
|
|
|
+ groupCode: null,
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
prescribeType: null,
|
|
|
@@ -347,6 +367,9 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
+ this.getDicts("doctor_group").then(response => {
|
|
|
+ this.groupCodeOptions = response.data;
|
|
|
+ });
|
|
|
this.getAllCompany();
|
|
|
this.getDicts("sys_prescribe_status").then(response => {
|
|
|
this.prescribeStatusOptions = response.data;
|
|
|
@@ -502,8 +525,14 @@ export default {
|
|
|
this.$message.warning('开方耗时:最大值不能小于最小值!');
|
|
|
return; // 阻止查询
|
|
|
}
|
|
|
- this.queryParams.minOperateSeconds = toSeconds(this.operateTime.minVal, this.operateTime.minUnit);
|
|
|
- this.queryParams.maxOperateSeconds = toSeconds(this.operateTime.maxVal, this.operateTime.maxUnit);
|
|
|
+ if (minSec === 0 && maxSec === 0) {
|
|
|
+ delete this.queryParams.minOperateSeconds;
|
|
|
+ delete this.queryParams.maxOperateSeconds;
|
|
|
+ } else {
|
|
|
+ // 否则正常赋值(可能是 null,也可能是有效数字)
|
|
|
+ this.queryParams.minOperateSeconds = minSec;
|
|
|
+ this.queryParams.maxOperateSeconds = maxSec;
|
|
|
+ }
|
|
|
|
|
|
this.getList();
|
|
|
},
|