提交 80ea64fe 编写于 作者: vino's avatar vino

问诊优化

上级 21eb2890
......@@ -13,9 +13,9 @@
size="mini"
style="width: 100%;">
<el-form-item label="备注" class="required-label" prop="userName">
<el-form-item label="备注" class="required-label">
<el-col :span="15">
<el-input type="textarea" v-model="model.userName" style="width: 90%;" size="small" minlength="2" maxlength="500" placeholder="请输入备注"></el-input>
<el-input type="textarea" v-model="model.coordinatedRemark" style="width: 90%;" size="small" minlength="2" maxlength="500" placeholder="请输入备注"></el-input>
</el-col>
</el-form-item>
......@@ -42,14 +42,13 @@ export default {
cancleTxt: '',
_promise: null,
model:{
userName:"",
title:""
coordinatedRemark:""
},
commissionTypeList:[],
addRules:{
userName: [
{required: true, message: "请输入稍后跟进原因", trigger: 'blur'}
]
// coordinatedRemark: [
// {required: true, message: "(选填)请输入备注信息", trigger: 'blur'}
// ]
}
}
},
......
<template>
<div>
<el-dialog
:title="title"
:visible.sync="appointmentTimeVisible">
<!-- <el-row :gutter="30" class="row search" type="flex" style="margin-bottom:0;">-->
<el-form ref="setForm"
:rules="addRules"
:model="model"
label-width="250px"
label-suffix=":"
label-position="right"
size="mini"
style="width: 100%;">
<el-form-item label="助诊意向时间">
<el-date-picker
v-model="rangeTime"
type="daterange"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
:picker-options="pickerOptions1">
</el-date-picker>
</el-form-item>
<el-form-item label="备注" class="required-label">
<el-col :span="15">
<el-input type="textarea" v-model="model.assistantRemark" style="width: 90%;" size="small" minlength="2" maxlength="500" placeholder="请输入备注"></el-input>
</el-col>
</el-form-item>
</el-form>
<!-- </el-row>-->
<span slot="footer" class="dialog-footer" style="text-align: center;">
<el-button @click="cancel">取 消</el-button>
<el-button type="primary" @click="confirm">确定</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
export default {
props:[
'appointmentTimeVisible'
],
data() {
return {
show: false,
title: '设置预约时间(问诊时间)',
confirmTxt: '确定',
cancleTxt: '',
_promise: null,
model:{
assistantRemark:""
},
rangeTime:'',
addRules:{
userName: [
{required: true, message: "请输入稍后跟进原因", trigger: 'blur'}
]
},
pickerOptions1: {
disabledDate: time => {
return (
time.getTime() > new Date().getTime()
); //减去一天的时间代表可以选择同一天;
}
},
}
},
created() {},
methods: {
reset() {
this.title = ''
this.confirmTxt = '确定'
this.cancleTxt = ''
this._promise = null
},
init(obj={}) {
Object.assign(this,obj)
this.show = true
return new Promise((resolve,reject) => {
this._promise = {
resolve,
reject
};
})
},
async cancle() {
this.show = false
await this._promise.reject && this._promise.reject()
this.reset()
},
async confirm() {
this.show = false
await this._promise.resolve && this._promise.resolve()
this.reset()
},
hide() {
this.show = false
this.reset()
},
cancel(){
this.$emit('update:appointmentTimeVisible', false);
}
}
}
</script>
<style lang="scss" scoped>
</style>
......@@ -13,9 +13,9 @@
size="mini"
style="width: 100%;">
<el-form-item label="稍后跟进原因" class="required-label" prop="userName">
<el-form-item label="稍后跟进原因" class="required-label" prop="toFollowReason">
<el-col :span="15">
<el-input type="textarea" v-model="model.userName" style="width: 130%;" size="small" minlength="2" maxlength="500" placeholder="请输入原因"></el-input>
<el-input type="textarea" v-model="model.toFollowReason" style="width: 130%;" size="small" minlength="2" maxlength="500" placeholder="请输入原因"></el-input>
</el-col>
</el-form-item>
......@@ -43,11 +43,10 @@ export default {
cancleTxt: '',
_promise: null,
model:{
userName:"",
title:""
toFollowReason:""
},
addRules:{
userName: [
toFollowReason: [
{required: true, message: "请输入稍后跟进原因", trigger: 'blur'}
]
}
......
......@@ -40,9 +40,23 @@
<!-- 实际收入(接诊后实际到账金额): ¥{{tempPrice | rounding}}-->
<!-- </el-col>-->
<el-form-item label="运营名称" class="required-label" prop="userName">
<el-form-item label="运营名称" class="required-label" prop="operatorName">
<el-col :span="15">
<el-input v-model="model.userName" style="width: 130%;" size="small" ></el-input>
<el-select
v-model="model.operatorName"
placeholder="请选择运营名称"
filterable
clearable
style="width:110%;height: 32px;line-height: 32px;"
>
<el-option
v-for="item in adminList"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</el-col>
</el-form-item>
......@@ -70,17 +84,20 @@ export default {
cancleTxt: '',
_promise: null,
model:{
userName:"",
title:""
operatorName:"",
operatorId:""
},
adminList:'',
addRules:{
userName: [
operatorName: [
{required: true, message: "请输入运营名称", trigger: 'blur'}
]
}
}
},
created() {},
created() {
this.getAdminList();
},
methods: {
reset() {
this.title = ''
......@@ -114,6 +131,19 @@ export default {
},
cancel(){
this.$emit('update:matchVisible', false);
},
getAdminList(){
let url = `/api/PICAUserServiceImpl/queryAdmin.validate`
let params = {
"token":localStorage.getItem("storageToken")
};
this.loading = true;
this.OLD_POST(url, params).then(res => {
this.loading = false
if (res.code == "000000") {
this.adminList = res.data.adminList;
}
});
}
}
}
......
......@@ -15,9 +15,9 @@
<div style="margin-bottom: 20px;margin-top: -20px;text-align: center;"><span style="color: red;">温馨提示:订单一旦退款,订单关联的预约单将被同步取消,请谨慎操作退款</span></div>
<el-form-item label="退款原因" class="required-label" prop="userName">
<el-form-item label="退款原因" class="required-label" prop="refundReason">
<el-col :span="15">
<el-input type="textarea" v-model="model.userName" style="width: 130%;" size="small" placeholder="请输入原因"></el-input>
<el-input type="textarea" v-model="model.refundReason" style="width: 130%;" size="small" placeholder="请输入原因"></el-input>
</el-col>
</el-form-item>
......@@ -45,11 +45,10 @@ export default {
cancleTxt: '',
_promise: null,
model:{
userName:"",
title:""
refundReason:""
},
addRules:{
userName: [
refundReason: [
{required: true, message: "请输入退款原因", trigger: 'blur'}
]
}
......
......@@ -33,7 +33,7 @@
<el-button type="primary" size="small" class="btn" v-if="showBtn(scope.row,25)" @click="witeDiagnose(scope.row)">设为待问诊</el-button>
<el-button type="primary" size="small" class="btn" v-if="showBtn(scope.row,21,22,23,24,25,26,3)" @click="changeRun(scope.row)">更换运营</el-button>
<el-button type="primary" size="small" class="btn" @click="goDetail(scope.row)">查看详情</el-button>
<el-button type="primary" size="small" class="btn" v-if="showBtn(scope.row,2,21,22,23,24,25,26,3,4)" @click="goDetail(scope.row)">取消/退款</el-button>
<el-button type="primary" size="small" class="btn" v-if="showBtn(scope.row,2,21,22,23,24,25,26,3,4)" @click="cancelBtn(scope.row)">取消/退款</el-button>
<el-button type="primary" size="small" class="btn" v-if="showBtn(scope.row,21)" @click="witeGo(scope.row)">设为稍后跟进</el-button>
<el-button type="primary" size="small" class="btn" v-if="showBtn(scope.row,21,22)" @click="waitMatchDot(scope.row)">设为待匹配医生</el-button>
<el-button type="primary" size="small" class="btn" v-if="showBtn(scope.row,3,4,5,6,21,22,23,24,25,26)" @click="sendMessage(scope.row)">发送消息</el-button>
......
import fetch from '../fetch';
import { getBaseUrl } from '@/utils/index'
let headers = {
'Content-Type': 'application/json;charset=UTF-8',
token: localStorage.getItem('storageToken'),
};
/*查询运费配置信息*/
export const updateDiagnosis = () => {
return fetch({
headers,
url: getBaseUrl(`/trade/coupon/express/fee/admin`),
method: 'get',
description: '查询运费配置信息',
});
};
......@@ -219,6 +219,14 @@
></table-component>
</el-tab-pane>
</el-tabs>
<match-component :matchVisible.sync="matchVisible"></match-component>
<refund-component :refundVisible.sync="refundVisible"></refund-component>
<followup-component :followupVisible.sync="followupVisible"></followup-component>
<matching-doctor :doctorVisible.sync="doctorVisible"></matching-doctor>
<diagnosis-component :diagnosisVisible.sync="diagnosisVisible"></diagnosis-component>
<coordinating-doctor :coordinatingVisible.sync="coordinatingVisible"></coordinating-doctor>
<diagnosis-doctor :diagnosisDoctorVisible.sync="diagnosisDoctorVisible"></diagnosis-doctor>
<appointment-time :appointmentTimeVisible.sync="appointmentTimeVisible"></appointment-time>
</div>
</div>
</template>
......@@ -233,9 +241,25 @@ import {
RECEPTION_TAB_LIST,
RUN_TAB_LIST
} from "@/utils/constants";
import MatchComponent from '@/components/common/match'
import RefundComponent from '@/components/common/refund'
import FollowupComponent from "../../../components/common/followup";
import MatchingDoctor from "../../../components/common/matching-doctor"
import DiagnosisComponent from "../../../components/common/diagnosis"
import CoordinatingDoctor from "../../../components/common/coordinating-doctor"
import DiagnosisDoctor from "../../../components/common/diagnosis-doctor"
import AppointmentTime from "../../../components/common/appointment-time"
export default {
components: {
TableComponent,
FollowupComponent,
MatchComponent,
RefundComponent,
MatchingDoctor,
DiagnosisComponent,
CoordinatingDoctor,
DiagnosisDoctor,
AppointmentTime
},
data() {
return {
......@@ -274,6 +298,14 @@ export default {
totalRows: 0,
timeClickFlag: true,
tableHeight: 500,
matchVisible:false,
refundVisible:false,
followupVisible:false,
doctorVisible:false,
diagnosisVisible:false,
coordinatingVisible:false,
diagnosisDoctorVisible:false,
appointmentTimeVisible:false,
pickerOptions1: {
disabledDate: (time) => {
return time.getTime() > new Date().getTime(); //减去一天的时间代表可以选择同一天;
......@@ -382,11 +414,20 @@ export default {
//设为待问诊
witeDiagnose(row) {},
//更换运营
changeRun(row) {},
changeRun(row) {
this.matchVisible = true;
},
//查看详情
goDetail(row) {},
goDetail(row) {
this.$router.push({
path: "/diagnosis-editor",
query: { id: row.diagnoseLogId, editorType: false },
});
},
//取消/退款
cancelBtn(row) {},
cancelBtn(row) {
this.refundVisible = true;
},
//设为稍后跟进
witeGo(row) {},
//设为待匹配医生
......@@ -434,7 +475,7 @@ export default {
sessionStorage.removeItem("TIME_loseTime");
},
// 取消预约
cancelBtn(row) {},
// cancelBtn(row) {},
},
};
</script>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册