|
@@ -2761,9 +2761,17 @@ Page({
|
|
|
tab4Change2: function (e) {
|
|
|
let Info = 'regularsInfos[' + this.data.activeIndex + '].visitModeExt'
|
|
|
let Info1 = 'regularsInfo[' + this.data.activeIndex + '].visitModeExt'
|
|
|
+ let visitMode1 = 'regularsInfo[' + this.data.activeIndex + '].visitMode'
|
|
|
+ let arrs = [];
|
|
|
+ this.data.regularsInfos[this.data.activeIndex].visitMode.forEach(item => {
|
|
|
+ if (item.checked) {
|
|
|
+ arrs.push(item.name)
|
|
|
+ }
|
|
|
+ })
|
|
|
this.setData({
|
|
|
[Info]: e.detail.value,
|
|
|
- [Info1]: e.detail.value
|
|
|
+ [Info1]: e.detail.value,
|
|
|
+ [visitMode1]: JSON.stringify(arrs),
|
|
|
})
|
|
|
this.SubmitOldmanInfo({
|
|
|
id: this.data.nameArr[this.data.activeIndex]._id,
|
|
@@ -2786,9 +2794,17 @@ Page({
|
|
|
})
|
|
|
let visitCount = 'regularsInfos[' + this.data.activeIndex + '].visitCount'
|
|
|
let visitCount1 = 'regularsInfo[' + this.data.activeIndex + '].visitCount'
|
|
|
+ let visitMode1 = 'regularsInfo[' + this.data.activeIndex + '].visitMode'
|
|
|
+ let arrs = [];
|
|
|
+ this.data.regularsInfos[this.data.activeIndex].visitMode.forEach(item => {
|
|
|
+ if (item.checked) {
|
|
|
+ arrs.push(item.name)
|
|
|
+ }
|
|
|
+ })
|
|
|
this.setData({
|
|
|
[visitCount]: data,
|
|
|
- [visitCount1]: e.detail.value
|
|
|
+ [visitCount1]: e.detail.value,
|
|
|
+ [visitMode1]: JSON.stringify(arrs),
|
|
|
})
|
|
|
this.SubmitOldmanInfo({
|
|
|
id: this.data.nameArr[this.data.activeIndex]._id,
|
|
@@ -2799,9 +2815,17 @@ Page({
|
|
|
tab4change4: function (e) {
|
|
|
let Info = 'regularsInfos[' + this.data.activeIndex + '].visitCountExt'
|
|
|
let Info1 = 'regularsInfo[' + this.data.activeIndex + '].visitCountExt'
|
|
|
+ let visitMode1 = 'regularsInfo[' + this.data.activeIndex + '].visitMode'
|
|
|
+ let arrs = [];
|
|
|
+ this.data.regularsInfos[this.data.activeIndex].visitMode.forEach(item => {
|
|
|
+ if (item.checked) {
|
|
|
+ arrs.push(item.name)
|
|
|
+ }
|
|
|
+ })
|
|
|
this.setData({
|
|
|
[Info]: e.detail.value,
|
|
|
- [Info1]: e.detail.value
|
|
|
+ [Info1]: e.detail.value,
|
|
|
+ [visitMode1]: JSON.stringify(arrs),
|
|
|
})
|
|
|
this.SubmitOldmanInfo({
|
|
|
id: this.data.nameArr[this.data.activeIndex]._id,
|