fix: 修改轮循数据
This commit is contained in:
parent
d72aacd9d2
commit
b289b42c3d
|
@ -123,9 +123,9 @@
|
|||
let self = this;
|
||||
//获取链接携带的参数
|
||||
let linkId = getQueryString('id');
|
||||
// let linkId = "2460"
|
||||
// let linkId = "2492"
|
||||
let keyCode = getQueryString('key');
|
||||
// let keyCode = "AAACD7eSqWZp4AbJ"
|
||||
// let keyCode = "AAACFNCWzV4KBcBX"
|
||||
if (!linkId) {//地址栏无携带id
|
||||
let path = window.location.pathname;
|
||||
let parmas = path.split('/');
|
||||
|
|
|
@ -541,7 +541,7 @@
|
|||
code_batch_id: this.code_batch_id
|
||||
}).then(res => {
|
||||
if (res.code === 200) {
|
||||
let new_data = res.data;
|
||||
let new_data = res.data.product;
|
||||
|
||||
// send_status 1发放中,2全部成功 ,3全部失败,4部分失败 ,5未领取
|
||||
// status 1待领取,2发放中,3待使用,4已使用,5领取失败
|
||||
|
|
|
@ -398,7 +398,7 @@
|
|||
code_batch_id: this.code_batch_id
|
||||
}).then(res => {
|
||||
if (res.code === 200) {
|
||||
let new_data = res.data;
|
||||
let new_data = res.data.product;
|
||||
|
||||
// send_status 1发放中,2全部成功 ,3全部失败,4部分失败 ,5未领取
|
||||
// status 1待领取,2发放中,3待使用,4已使用,5领取失败
|
||||
|
|
|
@ -385,7 +385,7 @@
|
|||
code_batch_id: this.code_batch_id
|
||||
}).then(res => {
|
||||
if (res.code === 200) {
|
||||
let new_data = res.data;
|
||||
let new_data = res.data.product;
|
||||
|
||||
// send_status 1发放中,2全部成功 ,3全部失败,4部分失败 ,5未领取
|
||||
// status 1待领取,2发放中,3待使用,4已使用,5领取失败
|
||||
|
@ -399,17 +399,17 @@
|
|||
if (el) {
|
||||
|
||||
// 存储错误
|
||||
el.voucher.forEach(row => {
|
||||
el.order_voucher.forEach(row => {
|
||||
if (row.receive_error !== "") {
|
||||
all_err.push(row.receive_error);
|
||||
}
|
||||
})
|
||||
|
||||
// 合并所有数组 用于判断最终状态
|
||||
new_voucher_all = new_voucher_all.concat(el.voucher);
|
||||
new_voucher_all = new_voucher_all.concat(el.order_voucher);
|
||||
|
||||
// 替换 voucher
|
||||
old_product_all[i].voucher = el.voucher;
|
||||
// 替换 order_voucher
|
||||
old_product_all[i].voucher = el.order_voucher;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -385,7 +385,7 @@
|
|||
code_batch_id: this.code_batch_id
|
||||
}).then(res => {
|
||||
if (res.code === 200) {
|
||||
let new_data = res.data;
|
||||
let new_data = res.data.product;
|
||||
|
||||
// send_status 1发放中,2全部成功 ,3全部失败,4部分失败 ,5未领取
|
||||
// status 1待领取,2发放中,3待使用,4已使用,5领取失败
|
||||
|
|
Loading…
Reference in New Issue