提交 4324b2c6 编写于 作者: vino's avatar vino

问诊优化

上级 eca39963
......@@ -52,9 +52,9 @@
>
<el-option
v-for="item in adminList"
:key="item.value"
:label="item.label"
:value="item.value"
:key="item.id"
:label="item.name"
:value="item.id"
></el-option>
</el-select>
</el-col>
......@@ -72,6 +72,8 @@
</template>
<script>
import { updateDiagnosis } from '../../utils/diagnosis';
export default {
props:[
'matchVisible'
......@@ -133,15 +135,15 @@ export default {
this.$emit('update:matchVisible', false);
},
getAdminList(){
let url = `/api/PICAUserServiceImpl/queryAdmin.validate`
let url = `/diagnose/admin/diagnose/operator/query`
let params = {
"token":localStorage.getItem("storageToken")
};
this.loading = true;
this.OLD_POST(url, params).then(res => {
this.GET(url, null).then(res => {
this.loading = false
if (res.code == "000000") {
this.adminList = res.data.adminList;
this.adminList = res.data;
}
});
}
......
......@@ -13,7 +13,7 @@
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="refundReason">
<el-col :span="15">
......@@ -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,
......@@ -77,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: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
......@@ -88,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="cancelBtn(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) {
......
......@@ -4,13 +4,15 @@ let headers = {
'Content-Type': 'application/json;charset=UTF-8',
token: localStorage.getItem('storageToken'),
};
/*查询运费配置信息*/
export const updateDiagnosis = () => {
/*保存问诊相关信息*/
export const updateDiagnosis = (params) => {
return fetch({
headers,
url: getBaseUrl(`/trade/coupon/express/fee/admin`),
method: 'get',
description: '查询运费配置信息',
});
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"
......@@ -220,7 +221,7 @@
</el-tab-pane>
</el-tabs>
<match-component :matchVisible.sync="matchVisible"></match-component>
<refund-component :refundVisible.sync="refundVisible"></refund-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>
......@@ -298,6 +299,7 @@ export default {
totalRows: 0,
timeClickFlag: true,
tableHeight: 500,
diagnoseLogId:"",
matchVisible:false,
refundVisible:false,
followupVisible:false,
......@@ -425,8 +427,10 @@ export default {
});
},
//取消/退款
cancelBtn(row) {
cancelRefund(row) {
this.refundVisible = true;
this.diagnoseLogId = row.id;
console.log(row);
},
//设为稍后跟进
witeGo(row) {},
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册