提交 5bf246e6 编写于 作者: lyf's avatar lyf

添加备注状态

...@@ -157,6 +157,9 @@ export default { ...@@ -157,6 +157,9 @@ export default {
this.getDoctorList(); this.getDoctorList();
}, },
watch:{ watch:{
diagnoseType:function (){
this.getDoctorList();
},
doctorId:function (){ doctorId:function (){
if(this.doctorId == 0 || this.doctorId == null){ if(this.doctorId == 0 || this.doctorId == null){
this.formData.receptionId = ""; this.formData.receptionId = "";
...@@ -194,6 +197,7 @@ export default { ...@@ -194,6 +197,7 @@ export default {
} }
} }
else { else {
this.formData.innerFlag = 1;// 内部
req = { req = {
id:this.diagnoseLogId, id:this.diagnoseLogId,
bizType:9, bizType:9,
...@@ -221,6 +225,7 @@ export default { ...@@ -221,6 +225,7 @@ export default {
}) })
}, },
cancel(){ cancel(){
this.doctorId = "";
this.formData.outsideDoctor = ''; this.formData.outsideDoctor = '';
this.$emit('update:diagnosisDoctorVisible', false); this.$emit('update:diagnosisDoctorVisible', false);
}, },
......
<template> <template>
<div> <div>
<el-dialog <el-dialog
:title="title" :title="bizType == 10 ? '重新匹配医生' : '重新联系助诊医生'"
:visible.sync="rematchingVisible" @close="cancel"> :visible.sync="rematchingVisible"
@close="cancel"
>
<!-- <el-row :gutter="30" class="row search" type="flex" style="margin-bottom:0;">--> <!-- <el-row :gutter="30" class="row search" type="flex" style="margin-bottom:0;">-->
<el-form ref="setForm" <el-form
:rules="addRules" ref="setForm"
:model="model" :rules="addRules"
label-width="250px" :model="model"
label-suffix=":" label-width="250px"
label-position="right" label-suffix=":"
size="mini" label-position="right"
style="width: 100%;"> size="mini"
style="width: 100%"
<el-form-item label="备注" class="required-label" prop="repatternRemark"> >
<el-form-item
label="备注"
class="required-label"
prop="repatternRemark"
>
<el-col :span="15"> <el-col :span="15">
<el-input type="textarea" v-model="model.repatternRemark" style="width: 135%;" size="small" minlength="2" maxlength="500" placeholder="请输入备注信息"></el-input> <el-input
type="textarea"
v-model="model.repatternRemark"
style="width: 135%"
size="small"
minlength="2"
maxlength="500"
placeholder="请输入备注信息"
></el-input>
</el-col> </el-col>
</el-form-item> </el-form-item>
</el-form> </el-form>
<!-- </el-row>--> <!-- </el-row>-->
<span slot="footer" class="dialog-footer" style="text-align: center;"> <span slot="footer" class="dialog-footer" style="text-align: center">
<el-button @click="cancel">取 消</el-button> <el-button @click="cancel">取 消</el-button>
<el-button type="primary" @click="confirm">确定</el-button> <el-button type="primary" @click="confirm">确定</el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import {updateDiagnosis} from "../../utils/diagnosis"; import { updateDiagnosis } from "../../utils/diagnosis";
let vm = null; let vm = null;
export default { export default {
props: { props: {
rematchingVisible: { rematchingVisible: {
type: Boolean, type: Boolean,
default: false default: false,
},
bizType: {
type: Number,
default: 10,
}, },
diagnoseLogId: { diagnoseLogId: {
type: Number, type: Number,
default: 0 default: 0,
}, },
bizType: { bizType: {
type: Number, type: Number,
default: 0 default: 0,
}, },
}, },
data() { data() {
return { return {
show: false, show: false,
title: '重新匹配医生', title: "重新匹配医生",
confirmTxt: '确定', confirmTxt: "确定",
cancleTxt: '', cancleTxt: "",
_promise: null, _promise: null,
model:{ model: {
repatternRemark:"" repatternRemark: "",
}, },
addRules:{ addRules: {
repatternRemark: [ repatternRemark: [
{required: true, message: "请输入备注信息", trigger: 'blur'} { required: true, message: "请输入备注信息", trigger: "blur" },
] ],
} },
} };
}, },
created() { created() {
vm = this; vm = this;
...@@ -72,33 +90,33 @@ export default { ...@@ -72,33 +90,33 @@ export default {
this.$refs.setForm.validate((valid) => { this.$refs.setForm.validate((valid) => {
if (valid) { if (valid) {
let req = { let req = {
id:this.diagnoseLogId, id: this.diagnoseLogId,
bizType:10, bizType: this.bizType,
repatternRemark:this.model.repatternRemark repatternRemark: this.model.repatternRemark,
} };
updateDiagnosis(req).then(function (res) { updateDiagnosis(req)
if(res.code == "000000") { .then(function (res) {
vm.cancel(); if (res.code == "000000") {
vm.$emit('search'); vm.cancel();
} else { vm.$emit("search");
} else {
vm.$message.error(res.message);
}
})
.catch(function (error) {
vm.$message.error(res.message); vm.$message.error(res.message);
} });
}).catch(function (error) {
vm.$message.error(res.message);
});
} }
}) });
}, },
cancel(){ cancel() {
this.model.repatternRemark = ""; this.model.repatternRemark = "";
this.$emit('update:rematchingVisible', false); this.$emit("update:rematchingVisible", false);
} },
} },
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
</style> </style>
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
v-loading="loading" v-loading="loading"
class="search-table" class="search-table"
:data="tData" :data="tData"
@sort-change='sortfunc'
:height="tableHeight" :height="tableHeight"
style="width: 100%" style="width: 100%"
border border
...@@ -15,6 +16,7 @@ ...@@ -15,6 +16,7 @@
:key="item.prop" :key="item.prop"
:prop="item.prop" :prop="item.prop"
:label="item.label" :label="item.label"
:sortable="item.prop=='appointBeginTime'||item.prop=='assistantBeginTime'?'custom':false"
:show-overflow-tooltip="item.showtooltip" :show-overflow-tooltip="item.showtooltip"
min-width="170" min-width="170"
align="center" align="center"
...@@ -142,7 +144,7 @@ ...@@ -142,7 +144,7 @@
size="small" size="small"
class="btn" class="btn"
v-if="showBtn(scope.row, 3, 25, 26)" v-if="showBtn(scope.row, 3, 25, 26)"
@click="reMatchDot(scope.row)" @click="reMatchDot(scope.row,10)"
>重新匹配医生</el-button >重新匹配医生</el-button
> >
<el-button <el-button
...@@ -150,7 +152,7 @@ ...@@ -150,7 +152,7 @@
size="small" size="small"
class="btn" class="btn"
v-if="showBtn(scope.row, 3, 25, 26)" v-if="showBtn(scope.row, 3, 25, 26)"
@click="reMatchDot(scope.row)" @click="reMatchDot(scope.row,16)"
>重新联系助诊医生</el-button >重新联系助诊医生</el-button
> >
<el-button <el-button
...@@ -237,6 +239,7 @@ export default { ...@@ -237,6 +239,7 @@ export default {
default: [], default: [],
}, },
}, },
data() { data() {
return { return {
tableColumn: TABLE_COLUMN, tableColumn: TABLE_COLUMN,
...@@ -244,6 +247,11 @@ export default { ...@@ -244,6 +247,11 @@ export default {
}, },
mounted() {}, mounted() {},
methods: { methods: {
sortfunc(data){
this.$emit("sortfunc", data);
},
showBtn(row, ...arr) { showBtn(row, ...arr) {
return arr.includes(row.status); return arr.includes(row.status);
// return true; // return true;
...@@ -302,9 +310,9 @@ export default { ...@@ -302,9 +310,9 @@ export default {
this.$emit("waitMatchTime", row); this.$emit("waitMatchTime", row);
}, },
//重新匹配医生 //重新匹配医生
reMatchDot(row) { reMatchDot(row,type) {
console.log(row)
this.$emit("reMatchDot", row); this.$emit("reMatchDot", row,type);
}, },
//修改时间 //修改时间
changeTime(row) { changeTime(row) {
......
...@@ -420,6 +420,11 @@ export const TABLE_COLUMN = [ ...@@ -420,6 +420,11 @@ export const TABLE_COLUMN = [
label: "状态", label: "状态",
showtooltip: false, showtooltip: false,
}, },
{
prop: "statusRemark",
label: "状态备注",
showtooltip: false,
},
{ {
prop: "toFollowReason", prop: "toFollowReason",
......
...@@ -225,6 +225,7 @@ ...@@ -225,6 +225,7 @@
:loading="loading" :loading="loading"
:tableHeight="tableHeight" :tableHeight="tableHeight"
:multipleSelection.sync="multipleSelection" :multipleSelection.sync="multipleSelection"
@sortfunc="sortfunc"
@witeDiagnose="witeDiagnose" @witeDiagnose="witeDiagnose"
@changeRun="changeRun" @changeRun="changeRun"
@goDetail="goDetail" @goDetail="goDetail"
...@@ -316,11 +317,13 @@ ...@@ -316,11 +317,13 @@
</template> </template>
<script> <script>
let vm = null; let vm = null;
import { updateDiagnosis } from "../../../utils/diagnosis"; import {updateDiagnosis} from "../../../utils/diagnosis";
const DOWN_URL = "/diagnose/admin/diagnose/export"; import { base64decode } from "../../../utils/utils.js";
const LIST_URL = "/diagnose/admin/diagnose/list"; const DOWN_URL= '/diagnose/admin/diagnose/export';
const LIST_URL= '/diagnose/admin/diagnose/list';
const COUNT_QUERY = "/diagnose/admin/diagnose/countQuery"; const COUNT_QUERY = "/diagnose/admin/diagnose/countQuery";
const DEP_URL = "/hospital/departments/0";
const DEP_URL= '/hospital/departments/0'
import TableComponent from "@/components/list/table-c"; import TableComponent from "@/components/list/table-c";
import { import {
TYPE_LIST, TYPE_LIST,
...@@ -374,6 +377,7 @@ export default { ...@@ -374,6 +377,7 @@ export default {
operateName: "", operateName: "",
assistantVal: "", assistantVal: "",
receptionVal: "", receptionVal: "",
sort:null,
triageDepartmentId: "", triageDepartmentId: "",
diagnoseType: "", //预约问诊类型:1、音频 2、视频 3、图文 diagnoseType: "", //预约问诊类型:1、音频 2、视频 3、图文
createdTimeBegin: "", createdTimeBegin: "",
...@@ -485,7 +489,17 @@ export default { ...@@ -485,7 +489,17 @@ export default {
}, },
init() { init() {
this.fromType = +(this.$route.query.fromType || 1); let fullPath = this.$route.fullPath;
let fromType = 1;
if(fullPath.indexOf("?") > -1){
let str = base64decode(fullPath.split("?")[1]);
if(str.indexOf("?")){
fromType = str.split("=")[1];
}
}
// this.fromType = +(this.$route.query.fromType || 1);
this.fromType = + fromType;
this.activeName = "99"; this.activeName = "99";
this.searchParam.status = ""; this.searchParam.status = "";
this.Raw_tabpaneList=[] this.Raw_tabpaneList=[]
...@@ -628,6 +642,29 @@ export default { ...@@ -628,6 +642,29 @@ export default {
this.resetPage(); this.resetPage();
this.search(); this.search();
}, },
sortfunc(data){
// ascending 升序
// descending 降序
if(data.prop=="appointBeginTime"&&data.order=="ascending"){
this.searchParam.sort=1
}
else if(data.prop=="appointBeginTime"&&data.order=="descending"){
this.searchParam.sort=2
}
else if(data.prop=="assistantBeginTime"&&data.order=="ascending"){
this.searchParam.sort=3
}
else if(data.prop=="assistantBeginTime"&&data.order=="descending"){
this.searchParam.sort=4
}
else{
this.searchParam.sort=null
}
this.search()
},
search() { search() {
this.loading = true; this.loading = true;
this.initTime(); this.initTime();
...@@ -672,6 +709,7 @@ export default { ...@@ -672,6 +709,7 @@ export default {
createdTimeEnd: "", createdTimeEnd: "",
operateTimeBegin: "", operateTimeBegin: "",
operateTimeEnd: "", operateTimeEnd: "",
sort:null,
appointBeginTime: "", appointBeginTime: "",
appointEndTime: "", appointEndTime: "",
doneTimeBegin: "", doneTimeBegin: "",
...@@ -829,11 +867,11 @@ export default { ...@@ -829,11 +867,11 @@ export default {
} }
}, },
//重新匹配医生 //重新匹配医生
reMatchDot(row) { reMatchDot(row,type) {
console.log(row) console.log(row,type)
this.rematchingVisible = true; this.rematchingVisible = true;
this.diagnoseLogId = row.diagnoseLogId; this.diagnoseLogId = row.diagnoseLogId;
this.bizType = 10; this.bizType = type;
}, },
//修改时间 //修改时间
changeTime(row) { changeTime(row) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册