| xqd
@@ -190,33 +190,38 @@
|
|
|
console.log(this.saveDay)
|
|
|
if (this.saveDay != 0) {
|
|
|
if (this.hospitalID != 0) {
|
|
|
- if (this.saveDayType.mon == this.hospitalID) {
|
|
|
- SaveLists.push(1)
|
|
|
- } else if (this.saveDayType.mon == 0) {
|
|
|
- SaveLists.push(0)
|
|
|
- }
|
|
|
- if (this.saveDayType.aft == this.hospitalID) {
|
|
|
- SaveLists.push(2)
|
|
|
- } else if (this.saveDayType.aft == 0) {
|
|
|
- SaveLists.push(0)
|
|
|
- }
|
|
|
- if (this.saveDayType.nig == this.hospitalID) {
|
|
|
- SaveLists.push(3)
|
|
|
- } else if (this.saveDayType.nig == 0) {
|
|
|
- SaveLists.push(0)
|
|
|
- }
|
|
|
- if (SaveLists.length != 0) {
|
|
|
- let s = SaveLists.join(",");
|
|
|
+ // if (this.saveDayType.mon == this.hospitalID) {
|
|
|
+ // SaveLists.push(1)
|
|
|
+ // } else if (this.saveDayType.mon == 0) {
|
|
|
+ // SaveLists.push(0)
|
|
|
+ // }
|
|
|
+ // if (this.saveDayType.aft == this.hospitalID) {
|
|
|
+ // SaveLists.push(2)
|
|
|
+ // } else if (this.saveDayType.aft == 0) {
|
|
|
+ // SaveLists.push(0)
|
|
|
+ // }
|
|
|
+ // if (this.saveDayType.nig == this.hospitalID) {
|
|
|
+ // SaveLists.push(3)
|
|
|
+ // } else if (this.saveDayType.nig == 0) {
|
|
|
+ // SaveLists.push(0)
|
|
|
+ // }
|
|
|
+
|
|
|
+ // if (SaveLists.length != 0) {
|
|
|
+ if(this.saveDayType.length!=0){
|
|
|
+
|
|
|
+ // let s = SaveLists.join(",");
|
|
|
+ let s = this.saveDayType;
|
|
|
+ if(typeof s=='object'){
|
|
|
+ s = JSON.stringify(s);
|
|
|
+ }
|
|
|
let tj = {
|
|
|
'schedule_date': SaveDate.date,
|
|
|
'week': SaveDate.week,
|
|
|
'type': s,
|
|
|
'organization_id': this.hospitalID,
|
|
|
- }
|
|
|
- console.log("提交时间的数组",tj);
|
|
|
- // if(typeof tj=='object'){
|
|
|
- // tj = JSON.stringify(tj);
|
|
|
- // }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
let res = await this.$request.post("doctor/saveDay", tj);
|
|
|
if (res.status == 0) {
|
|
|
uni.showToast({
|