|
@@ -1322,10 +1322,11 @@
|
|
forms.is_phone.pmEndTime = phone_pm != '' ? phone_pm[1] : '';
|
|
forms.is_phone.pmEndTime = phone_pm != '' ? phone_pm[1] : '';
|
|
forms.is_phone.nightStartTime = phone_ni != '' ? phone_ni[0] : '';
|
|
forms.is_phone.nightStartTime = phone_ni != '' ? phone_ni[0] : '';
|
|
forms.is_phone.nightEndTime = phone_ni != '' ? phone_ni[1] : '';
|
|
forms.is_phone.nightEndTime = phone_ni != '' ? phone_ni[1] : '';
|
|
- console.log("保存电话设置",forms.is_phone)
|
|
|
|
- console.log("保存电话设置",forms)
|
|
|
|
- let sp = await this.$request.post('doctor/getSettingPhone', {
|
|
|
|
- data: forms.is_phone,
|
|
|
|
|
|
+ if(typeof forms == 'object'){
|
|
|
|
+ forms = JSON.stringify(forms)
|
|
|
|
+ }
|
|
|
|
+ let sp = await this.$request.post('doctor/saveSettingPhone', {
|
|
|
|
+ data: forms,
|
|
});
|
|
});
|
|
if (sp.status == 0) {
|
|
if (sp.status == 0) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
@@ -1351,11 +1352,21 @@
|
|
forms.is_chat.pmEndTime = chat_pm != '' ? chat_pm[1] : '';
|
|
forms.is_chat.pmEndTime = chat_pm != '' ? chat_pm[1] : '';
|
|
forms.is_chat.nightStartTime = chat_ni != '' ? chat_ni[0] : '';
|
|
forms.is_chat.nightStartTime = chat_ni != '' ? chat_ni[0] : '';
|
|
forms.is_chat.nightEndTime = chat_ni != '' ? chat_ni[1] : '';
|
|
forms.is_chat.nightEndTime = chat_ni != '' ? chat_ni[1] : '';
|
|
- let sc = await this.$request.post('doctor/getSettingChat', {
|
|
|
|
- data: forms.is_chat,
|
|
|
|
- 'type': 2
|
|
|
|
|
|
+ if(typeof forms == 'object'){
|
|
|
|
+ forms = JSON.stringify(forms)
|
|
|
|
+ }
|
|
|
|
+ let sc = await this.$request.post('doctor/saveSettingChat', {
|
|
|
|
+ data: forms
|
|
});
|
|
});
|
|
console.log("保存电话设置",sc)
|
|
console.log("保存电话设置",sc)
|
|
|
|
+ if (sc.status == 0) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 1500,
|
|
|
|
+ title: '操作成功',
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
/**
|
|
/**
|
|
* 保存门诊设置
|
|
* 保存门诊设置
|
|
@@ -1382,11 +1393,23 @@
|
|
"org_id": forms.is_appoint.hospitalList[i].id,
|
|
"org_id": forms.is_appoint.hospitalList[i].id,
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- let sm = await this.$request.post('doctor/getSettingChat', {
|
|
|
|
- data: forms.is_appoint,
|
|
|
|
- 'type': 2
|
|
|
|
|
|
+ console.log("保存门诊shez",newMenList)
|
|
|
|
+ let a = ({'is_appoint':newMenList})
|
|
|
|
+ if(typeof a == 'object'){
|
|
|
|
+ a = JSON.stringify(a)
|
|
|
|
+ }
|
|
|
|
+ let sm = await this.$request.post('doctor/saveSettingSchedule', {
|
|
|
|
+ data: a
|
|
});
|
|
});
|
|
- console.log("保存电话设置",sm)
|
|
|
|
|
|
+ console.log("门诊保存返回数据",sm)
|
|
|
|
+ if (sm.status == 0) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 1500,
|
|
|
|
+ title: '操作成功',
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
/**
|
|
/**
|
|
* 电话数据获取
|
|
* 电话数据获取
|