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

问诊优化

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