fix: 修复领取成功结算

This commit is contained in:
zhangds 2024-03-05 19:08:26 +08:00
parent 3b30645f0e
commit 9eed246d01
1 changed files with 14 additions and 5 deletions

View File

@ -116,11 +116,6 @@
}, },
mounted() { mounted() {
// 领取成功结算 5
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 5) {
settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
}
document.title = localStorage.getItem('title'); document.title = localStorage.getItem('title');
this.code_batch_id = JSON.parse(sessionStorage.getItem('goodsInfo')).entity.code_batch_id; this.code_batch_id = JSON.parse(sessionStorage.getItem('goodsInfo')).entity.code_batch_id;
this.getProductDetail(); this.getProductDetail();
@ -150,6 +145,20 @@
}).then(res => { }).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.goods = res.data; this.goods = res.data;
// 代码暂时这样
if (res.data.group_info.channel == 1 && res.data.group_info.receive_mode == 1) {
} else if (res.data.group_info.channel == 2) {
} else {
// 领取成功结算 5
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 5) {
settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
}
}
} }
}).catch(); }).catch();
}, },