fix: 修复-复制计划没有包码

This commit is contained in:
zhangds 2024-02-27 19:57:53 +08:00
parent 8a5d1b4d25
commit 347dd75d99
2 changed files with 11 additions and 2 deletions

View File

@ -662,6 +662,7 @@ export default class acclist extends React.Component {
}
edit(data) {
console.log("data =>", data)
let model = {
//数据模型不可少
batch_name: data.batch_name,
@ -671,11 +672,14 @@ export default class acclist extends React.Component {
allow_loss: parseInt(data.allow_loss),
merge_stock: data.merge_stock,
code_batch: data.code_batch,
draw_title: data.draw_title
draw_title: data.draw_title,
key_official_price: data.key_official_price,
key_cost_price: data.key_cost_price
}
// 是否是包码
let bm_obj_str = sessionStorage.getItem("bm_obj")
console.log("bm_obj_str =>", bm_obj_str)
if (bm_obj_str) {
let bm_obj = JSON.parse(bm_obj_str)
if (bm_obj.settlement_type > 0) {

View File

@ -743,7 +743,12 @@ export default class acclist extends React.Component {
]
}
]
// 如果是包码
let bm_obj = {
settlement_type: row.settlement_type,
settlement_type_text: row.settlement_type_text
}
sessionStorage.setItem("bm_obj", JSON.stringify(bm_obj))
sessionStorage.setItem("breakchangenav", JSON.stringify(editarr))
sessionStorage.setItem("plan_id_copy", row.id)
sessionStorage.setItem("plan_status", row.status)