imeik-bizui 2.6.8 → 2.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,6 +19,7 @@ const PRODUCT_LING = {
19
19
  erpCode: 'lingSu100',
20
20
  productName: '臻爱 灵塑100',
21
21
  productShortName: '灵塑100',
22
+ needRcoiProcess: true,
22
23
  applyAfterSaleOrderAmount: 82000,
23
24
  applyAfterNoSaleOrderAmount: 2000,
24
25
  applyAfterFeeAmount: 1200,
@@ -32,6 +33,7 @@ const PRODUCT_SU = {
32
33
  erpCode: 'suFei200',
33
34
  productName: '臻爱 塑菲200',
34
35
  productShortName: '塑菲200',
36
+ needRcoiProcess: true,
35
37
  applyAfterSaleOrderAmount: 115000,
36
38
  applyAfterNoSaleOrderAmount: 3000,
37
39
  applyAfterFeeAmount: 1500,
@@ -157,13 +159,13 @@ function buildExpenseRows() {
157
159
  for (let i = 1; i <= 9; i++) {
158
160
  rows.push({
159
161
  bizOrderCode: `FY2026${String(200 + i).padStart(4, '0')}`,
160
- costTypeName: types[(i - 1) % types.length],
162
+ costType: types[(i - 1) % types.length],
161
163
  costAmount: 800 + i * 350
162
164
  })
163
165
  }
164
166
  rows.push({
165
167
  bizOrderCode: '本次申请',
166
- costTypeName: '会议费用',
168
+ costType: '会议费用',
167
169
  costAmount: 10000,
168
170
  current: true
169
171
  })
@@ -32,6 +32,13 @@ function buildQtyText(genuine, free) {
32
32
  return `${g + f}(${g}+${f})`
33
33
  }
34
34
 
35
+ /** 概览仅展示 needRcoiProcess 为 true 的产品 */
36
+ function listOverviewProducts(list) {
37
+ return (list || [])
38
+ .filter((row) => row && row.needRcoiProcess === true)
39
+ .map(mapOverviewProduct)
40
+ }
41
+
35
42
  /** getProductPrice.productBasePriceList → 卡片 / 明细汇总行 */
36
43
  function mapOverviewProduct(row = {}) {
37
44
  const beforePrice = row.applyBeforePrice
@@ -66,7 +73,7 @@ function mapOverviewProduct(row = {}) {
66
73
  * getProductPrice data → FloorPriceBoard
67
74
  */
68
75
  export function normalizeOverview(data = {}, options = {}) {
69
- const products = (data.productBasePriceList || []).map(mapOverviewProduct)
76
+ const products = listOverviewProducts(data.productBasePriceList)
70
77
  const status = resolvePanelState(data.controlMethod, products)
71
78
  const hitCount = products.filter((p) => p.hit).length
72
79
  const result = buildResultCopy(status, {
@@ -178,7 +185,7 @@ function buildSections(data = {}) {
178
185
  theme: 'danger',
179
186
  columns: [
180
187
  { prop: 'bizOrderCode', label: '单号', minWidth: 120 },
181
- { prop: 'costTypeName', label: '类型', minWidth: 88 },
188
+ { prop: 'costType', label: '类型', minWidth: 88 },
182
189
  { prop: 'costAmount', label: '金额', type: 'number', digits: 0, align: 'right', width: 96 }
183
190
  ],
184
191
  rows: expenseRows,
@@ -203,7 +210,7 @@ export function normalizeDetail(data = {}, options = {}) {
203
210
  const summaryRows =
204
211
  Array.isArray(overviewProducts) && overviewProducts.length
205
212
  ? overviewProducts
206
- : (data.productBasePriceList || []).map(mapOverviewProduct)
213
+ : listOverviewProducts(data.productBasePriceList)
207
214
 
208
215
  return {
209
216
  title: customerName ? `底价明细 · ${customerName}` : '底价明细',