fix: 修改轮循数据

This commit is contained in:
zhangds 2024-04-10 21:38:35 +08:00
parent d72aacd9d2
commit b289b42c3d
5 changed files with 10 additions and 10 deletions

View File

@ -123,9 +123,9 @@
let self = this; let self = this;
//获取链接携带的参数 //获取链接携带的参数
let linkId = getQueryString('id'); let linkId = getQueryString('id');
// let linkId = "2460" // let linkId = "2492"
let keyCode = getQueryString('key'); let keyCode = getQueryString('key');
// let keyCode = "AAACD7eSqWZp4AbJ" // let keyCode = "AAACFNCWzV4KBcBX"
if (!linkId) {//地址栏无携带id if (!linkId) {//地址栏无携带id
let path = window.location.pathname; let path = window.location.pathname;
let parmas = path.split('/'); let parmas = path.split('/');

View File

@ -541,7 +541,7 @@
code_batch_id: this.code_batch_id code_batch_id: this.code_batch_id
}).then(res => { }).then(res => {
if (res.code === 200) { if (res.code === 200) {
let new_data = res.data; let new_data = res.data.product;
// send_status 1发放中2全部成功 3全部失败4部分失败 5未领取 // send_status 1发放中2全部成功 3全部失败4部分失败 5未领取
// status 1待领取2发放中3待使用4已使用5领取失败 // status 1待领取2发放中3待使用4已使用5领取失败

View File

@ -398,7 +398,7 @@
code_batch_id: this.code_batch_id code_batch_id: this.code_batch_id
}).then(res => { }).then(res => {
if (res.code === 200) { if (res.code === 200) {
let new_data = res.data; let new_data = res.data.product;
// send_status 1发放中2全部成功 3全部失败4部分失败 5未领取 // send_status 1发放中2全部成功 3全部失败4部分失败 5未领取
// status 1待领取2发放中3待使用4已使用5领取失败 // status 1待领取2发放中3待使用4已使用5领取失败

View File

@ -385,7 +385,7 @@
code_batch_id: this.code_batch_id code_batch_id: this.code_batch_id
}).then(res => { }).then(res => {
if (res.code === 200) { if (res.code === 200) {
let new_data = res.data; let new_data = res.data.product;
// send_status 1发放中2全部成功 3全部失败4部分失败 5未领取 // send_status 1发放中2全部成功 3全部失败4部分失败 5未领取
// status 1待领取2发放中3待使用4已使用5领取失败 // status 1待领取2发放中3待使用4已使用5领取失败
@ -399,17 +399,17 @@
if (el) { if (el) {
// 存储错误 // 存储错误
el.voucher.forEach(row => { el.order_voucher.forEach(row => {
if (row.receive_error !== "") { if (row.receive_error !== "") {
all_err.push(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 // 替换 order_voucher
old_product_all[i].voucher = el.voucher; old_product_all[i].voucher = el.order_voucher;
} }
} }

View File

@ -385,7 +385,7 @@
code_batch_id: this.code_batch_id code_batch_id: this.code_batch_id
}).then(res => { }).then(res => {
if (res.code === 200) { if (res.code === 200) {
let new_data = res.data; let new_data = res.data.product;
// send_status 1发放中2全部成功 3全部失败4部分失败 5未领取 // send_status 1发放中2全部成功 3全部失败4部分失败 5未领取
// status 1待领取2发放中3待使用4已使用5领取失败 // status 1待领取2发放中3待使用4已使用5领取失败