diff --git a/src/pages/plan/add/step2.js b/src/pages/plan/add/step2.js index e5d4a671..2ffe2dda 100644 --- a/src/pages/plan/add/step2.js +++ b/src/pages/plan/add/step2.js @@ -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) { diff --git a/src/pages/plan/list/list.js b/src/pages/plan/list/list.js index 343a4e1a..200b178d 100644 --- a/src/pages/plan/list/list.js +++ b/src/pages/plan/list/list.js @@ -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)