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

Loading…
Cancel
Save