|
@@ -93,7 +93,6 @@
|
|
}
|
|
}
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
- console.log(res.data)
|
|
|
|
this.datalist = res.data.data
|
|
this.datalist = res.data.data
|
|
this.Arry.length = this.datalist.length
|
|
this.Arry.length = this.datalist.length
|
|
// 每个新建数组长度为空,全选为false
|
|
// 每个新建数组长度为空,全选为false
|
|
@@ -103,7 +102,6 @@
|
|
}
|
|
}
|
|
this.inStore()
|
|
this.inStore()
|
|
} else {
|
|
} else {
|
|
- console.log(res)
|
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: res.data.msg,
|
|
title: res.data.msg,
|
|
icon: "none",
|
|
icon: "none",
|
|
@@ -112,7 +110,6 @@
|
|
}
|
|
}
|
|
|
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
- console.log(err + "")
|
|
|
|
})
|
|
})
|
|
.finally(() => {
|
|
.finally(() => {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -133,10 +130,7 @@
|
|
// 选中某个复选框时,由checkbox时触发
|
|
// 选中某个复选框时,由checkbox时触发
|
|
// ,bollean,index
|
|
// ,bollean,index
|
|
checkboxChange(e, index, dataArr) {
|
|
checkboxChange(e, index, dataArr) {
|
|
- console.log(index)
|
|
|
|
- console.log(e)
|
|
|
|
let newArr = []
|
|
let newArr = []
|
|
- console.log(this.Arry)
|
|
|
|
e.detail.value.forEach((item) => {
|
|
e.detail.value.forEach((item) => {
|
|
var obj = {
|
|
var obj = {
|
|
"storeId": this.$store.state.storeInfo.storeId,
|
|
"storeId": this.$store.state.storeInfo.storeId,
|
|
@@ -145,11 +139,9 @@
|
|
"kunnr": JSON.parse(item).kunnr,
|
|
"kunnr": JSON.parse(item).kunnr,
|
|
'userId': this.$store.state.storeInfo.userId
|
|
'userId': this.$store.state.storeInfo.userId
|
|
}
|
|
}
|
|
- console.log(obj)
|
|
|
|
newArr.push(obj)
|
|
newArr.push(obj)
|
|
})
|
|
})
|
|
this.Arry[index] = newArr
|
|
this.Arry[index] = newArr
|
|
- console.log(newArr)
|
|
|
|
// 判断他是否全选
|
|
// 判断他是否全选
|
|
if (this.Arry[index].length == dataArr.filter((item) => {
|
|
if (this.Arry[index].length == dataArr.filter((item) => {
|
|
return item.usableMoney != 0
|
|
return item.usableMoney != 0
|
|
@@ -162,8 +154,6 @@
|
|
|
|
|
|
// 核销返利
|
|
// 核销返利
|
|
button(index) {
|
|
button(index) {
|
|
- console.log(index)
|
|
|
|
- console.log(this.Arry[index])
|
|
|
|
request({
|
|
request({
|
|
url: '/myapp/storeCancel',
|
|
url: '/myapp/storeCancel',
|
|
method: 'post',
|
|
method: 'post',
|
|
@@ -200,7 +190,6 @@
|
|
checkboxGroupChange(e) {},
|
|
checkboxGroupChange(e) {},
|
|
// 全选
|
|
// 全选
|
|
checkedAll(index, e) {
|
|
checkedAll(index, e) {
|
|
- console.log(index, e)
|
|
|
|
let newArr = []
|
|
let newArr = []
|
|
// 根据奖励金额是否为0判断全选取消全选
|
|
// 根据奖励金额是否为0判断全选取消全选
|
|
if (this.Arry[index].length == e.storegentBrandList.filter((item) => {
|
|
if (this.Arry[index].length == e.storegentBrandList.filter((item) => {
|
|
@@ -225,7 +214,6 @@
|
|
this.Arry[index] = newArr
|
|
this.Arry[index] = newArr
|
|
}
|
|
}
|
|
|
|
|
|
- console.log(this.Arry, this.checkboxList)
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|