提交 ffdf3b17 编写于 作者: wenxuan.liang's avatar wenxuan.liang

Merge branch 'dev-20210702' of...

Merge branch 'dev-20210702' of 192.168.110.53:com.pica.cloud.education.frontend/pica-admin-consultation into dev-20210702
......@@ -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.id"
:label="item.name"
:value="item.id"
></el-option>
</el-select>
</el-col>
</el-form-item>
......@@ -58,6 +72,8 @@
</template>
<script>
import { updateDiagnosis } from '../../utils/diagnosis';
export default {
props:[
'matchVisible'
......@@ -70,17 +86,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 +133,19 @@ export default {
},
cancel(){
this.$emit('update:matchVisible', false);
},
getAdminList(){
let url = `/diagnose/admin/diagnose/operator/query`
let params = {
"token":localStorage.getItem("storageToken")
};
this.loading = true;
this.GET(url, null).then(res => {
this.loading = false
if (res.code == "000000") {
this.adminList = res.data;
}
});
}
}
}
......
......@@ -13,11 +13,11 @@
size="mini"
style="width: 100%;">
<div style="margin-bottom: 20px;margin-top: -20px;text-align: center;"><span style="color: red;">温馨提示:订单一旦退款,订单关联的预约单将被同步取消,请谨慎操作退款</span></div>
<div style="margin-bottom: 20px;margin-top: -20px;text-align: center;"><span style="color: #ff0000;">温馨提示:订单一旦退款,订单关联的预约单将被同步取消,请谨慎操作退款</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>
......@@ -33,10 +33,19 @@
</template>
<script>
import { updateDiagnosis } from '../../utils/diagnosis';
export default {
props:[
'refundVisible'
],
props: {
refundVisible:{
type: Boolean,
default: false
},
diagnoseLogId: {
type: String,
default: ''
}
},
data() {
return {
show: false,
......@@ -45,11 +54,10 @@ export default {
cancleTxt: '',
_promise: null,
model:{
userName:"",
title:""
refundReason:""
},
addRules:{
userName: [
refundReason: [
{required: true, message: "请输入退款原因", trigger: 'blur'}
]
}
......@@ -78,10 +86,30 @@ export default {
await this._promise.reject && this._promise.reject()
this.reset()
},
async confirm() {
this.show = false
await this._promise.resolve && this._promise.resolve()
this.reset()
confirm() {
let req = {
id:this.diagnoseLogId,
bizType:2,
refundReason:this.model.refundReason
}
// this.loading = true;
// let url = `/diagnose/admin/diagnose/model/save`;
// this.POST(url, req).then((res) => {
// this.loading = false;
// if (res.code == "000000") {
// // this.tableData = res.data.list;
// // this.totalRows = res.data.allSize;
// }
// });
updateDiagnosis(req).then(function (res) {
if(res.code == "000000") {
// vm.formData = res.data;
}
}).catch(function (error) {
// vm.$message.error(error);
});
},
hide() {
this.show = false
......@@ -89,7 +117,7 @@ export default {
},
cancel(){
this.$emit('update:refundVisible', false);
}
},
}
}
</script>
......
......@@ -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="cancelRefund(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>
......@@ -128,8 +128,8 @@ export default {
this.$emit("goDetail", row);
},
//取消/退款
cancelBtn(row) {
this.$emit("cancelBtn", row);
cancelRefund(row) {
this.$emit("cancelRefund", row);
},
//设为稍后跟进
witeGo(row) {
......
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 = (params) => {
return fetch({
headers,
url: getBaseUrl(`/diagnose/admin/diagnose/model/save`),
method: 'post',
data: params,
description: '保存问诊相关信息',
})
};
......@@ -201,6 +201,7 @@
@witeDiagnose="witeDiagnose"
@changeRun="changeRun"
@goDetail="goDetail"
@cancelRefund="cancelRefund"
@witeGo="witeGo"
@waitMatchDot="waitMatchDot"
@sendMessage="sendMessage"
......@@ -219,6 +220,14 @@
></table-component>
</el-tab-pane>
</el-tabs>
<match-component :matchVisible.sync="matchVisible"></match-component>
<refund-component :refundVisible.sync="refundVisible" :diagnoseLogId="diagnoseLogId"></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 +242,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 +299,15 @@ export default {
totalRows: 0,
timeClickFlag: true,
tableHeight: 500,
diagnoseLogId:"",
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 +416,22 @@ export default {
//设为待问诊
witeDiagnose(row) {},
//更换运营
changeRun(row) {},
changeRun(row) {
this.matchVisible = true;
},
//查看详情
goDetail(row) {console.log(row)},
goDetail(row) {
this.$router.push({
path: "/diagnosis-editor",
query: { id: row.diagnoseLogId, editorType: false },
});
},
//取消/退款
cancelBtn(row) {},
cancelRefund(row) {
this.refundVisible = true;
this.diagnoseLogId = row.diagnoseLogId;
console.log(row);
},
//设为稍后跟进
witeGo(row) {},
//设为待匹配医生
......@@ -434,7 +479,7 @@ export default {
sessionStorage.removeItem("TIME_loseTime");
},
// 取消预约
cancelBtn(row) {},
// cancelBtn(row) {},
},
};
</script>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册