提交 888ed373 编写于 作者: vino's avatar vino

更换运营

上级 c39cea48
......@@ -13,41 +13,15 @@
size="mini"
style="width: 100%;">
<!-- <el-form-item label="助诊医生" class="required-label" prop="userName">-->
<!-- <el-col :span="15">-->
<!-- <el-select v-model="model.userName"-->
<!-- filterable-->
<!-- remote-->
<!-- placeholder="请输入专家姓名或医院名称,多个关键字用空格隔开,至少输入两个字符"-->
<!-- clearable-->
<!-- style="width: 130%;"-->
<!-- :remote-method="remoteMethod"-->
<!-- :disabled="isEdit"-->
<!-- @change="nameChange"-->
<!-- @visible-change="noSelectHand">-->
<!-- <el-option-->
<!-- v-for="item in nameList"-->
<!-- :key="item.id"-->
<!-- :label="item.name"-->
<!-- :value="item.id">-->
<!-- <span>{{item.value}}</span>-->
<!-- </el-option>-->
<!-- </el-select>-->
<!-- </el-col>-->
<!-- </el-form-item>-->
<!-- <el-col :span="15" style="margin-left: 105px;">-->
<!-- 实际收入(接诊后实际到账金额): ¥{{tempPrice | rounding}}-->
<!-- </el-col>-->
<el-form-item label="运营名称" class="required-label" prop="operatorName">
<el-col :span="15">
<el-select
v-model="model.operatorName"
v-model="model.operatorId"
placeholder="请选择运营名称"
filterable
clearable
@change="changeOperator"
style="width:110%;height: 32px;line-height: 32px;"
>
<el-option
......@@ -73,11 +47,18 @@
<script>
import { updateDiagnosis } from '../../utils/diagnosis';
let vm = null;
export default {
props:[
'matchVisible'
],
props: {
matchVisible:{
type: Boolean,
default: false
},
diagnoseLogId: {
type: Number,
default: 0
}
},
data() {
return {
show: false,
......@@ -98,39 +79,30 @@ export default {
}
},
created() {
vm = this;
this.getAdminList();
},
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()
confirm() {
let req = {
id:this.diagnoseLogId,
bizType:1,
operatorId:this.model.operatorId,
operatorName:this.model.operatorName
}
updateDiagnosis(req).then(function (res) {
if(res.code == "000000") {
vm.cancel();
vm.$emit('search');
}
else {
vm.$message.error(res.message);
}
}).catch(function (error) {
vm.$message.error(error);
});
},
cancel(){
this.$emit('update:matchVisible', false);
},
......@@ -146,7 +118,17 @@ export default {
this.adminList = res.data;
}
});
},
changeOperator(data){
for (let i=0;i < this.adminList.length; i++){
if(data == this.adminList[i].id){
this.model.operatorName = this.adminList[i].name;
break;
}
}
}
}
}
</script>
......
......@@ -42,8 +42,8 @@ export default {
default: false
},
diagnoseLogId: {
type: String,
default: ''
type: Number,
default: 0
}
},
data() {
......@@ -65,27 +65,6 @@ export default {
},
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()
},
confirm() {
let req = {
id:this.diagnoseLogId,
......@@ -111,10 +90,6 @@ export default {
// vm.$message.error(error);
});
},
hide() {
this.show = false
this.reset()
},
cancel(){
this.$emit('update:refundVisible', false);
},
......
......@@ -220,7 +220,7 @@
></table-component>
</el-tab-pane>
</el-tabs>
<match-component :matchVisible.sync="matchVisible"></match-component>
<match-component @search="search" :matchVisible.sync="matchVisible" :diagnoseLogId="diagnoseLogId"></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>
......@@ -299,7 +299,7 @@ export default {
totalRows: 0,
timeClickFlag: true,
tableHeight: 500,
diagnoseLogId:"",
diagnoseLogId: 0,
matchVisible:false,
refundVisible:false,
followupVisible:false,
......@@ -418,6 +418,7 @@ export default {
//更换运营
changeRun(row) {
this.matchVisible = true;
this.diagnoseLogId = row.diagnoseLogId;
},
//查看详情
goDetail(row) {
......@@ -430,7 +431,6 @@ export default {
cancelRefund(row) {
this.refundVisible = true;
this.diagnoseLogId = row.diagnoseLogId;
console.log(row);
},
//设为稍后跟进
witeGo(row) {},
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册