Browse Source

创建群发跳转

dev
kola-web 2 weeks ago
parent
commit
83b94df347
  1. 24
      src/doctor/pages/d_createTask/index.ts

24
src/doctor/pages/d_createTask/index.ts

@ -232,18 +232,18 @@ Page({ @@ -232,18 +232,18 @@ Page({
wx.navigateBack()
},
async handleNext() {
const anyValueKeys = ['SelectAll', 'ConfirmedIgg4', 'MedicationType', 'BindStartDate', 'BindEndDate']
const empty = anyValueKeys.every((item) =>
Array.isArray(this.data[item]) ? licia.isEmpty(this.data[item]) : !this.data[item],
)
const hasSelectAll = this.data.SelectAll === 1
if (empty && !hasSelectAll) {
wx.showToast({
icon: 'none',
title: '请至少选择一个筛选条件',
})
return
}
// const anyValueKeys = ['SelectAll', 'ConfirmedIgg4', 'MedicationType', 'BindStartDate', 'BindEndDate']
// const empty = anyValueKeys.every((item) =>
// Array.isArray(this.data[item]) ? licia.isEmpty(this.data[item]) : !this.data[item],
// )
// const hasSelectAll = this.data.SelectAll === 1
// if (empty && !hasSelectAll) {
// wx.showToast({
// icon: 'none',
// title: '请至少选择一个筛选条件',
// })
// return
// }
await this.getTaskNum()

Loading…
Cancel
Save