imeik-bizui 2.6.7 → 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.
@@ -1077,11 +1077,13 @@ export default {
1077
1077
  .fpd-section__footer {
1078
1078
  padding: 9px 12px;
1079
1079
  font-size: 12px;
1080
+ justify-content: flex-start;
1081
+ gap: 6px 10px;
1080
1082
  }
1081
1083
 
1082
1084
  .fpd-section__footer-values {
1083
1085
  font-size: 13px;
1084
- justify-content: flex-end;
1086
+ justify-content: flex-start;
1085
1087
  }
1086
1088
 
1087
1089
  .fpd-skeleton__formulas {
@@ -1092,6 +1094,7 @@ export default {
1092
1094
 
1093
1095
  .fpd-formulas {
1094
1096
  flex-direction: column;
1097
+ align-items: stretch;
1095
1098
  gap: 6px;
1096
1099
  padding: 8px 10px 8px 12px;
1097
1100
  margin-top: 0;
@@ -1105,12 +1108,15 @@ export default {
1105
1108
  .fpd-formulas__list {
1106
1109
  display: grid;
1107
1110
  grid-template-columns: 1fr;
1111
+ width: 100%;
1112
+ justify-items: start;
1108
1113
  gap: 4px;
1109
1114
  }
1110
1115
 
1111
1116
  .fpd-formulas__item {
1112
1117
  font-size: 11px;
1113
1118
  line-height: 17px;
1119
+ justify-content: flex-start;
1114
1120
 
1115
1121
  &:not(:last-child)::after {
1116
1122
  display: none;
@@ -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, {
@@ -141,7 +148,7 @@ function buildSections(data = {}) {
141
148
  ],
142
149
  rows: saleRows,
143
150
  footer: {
144
- label: '合计',
151
+ label: '合计(含本次)',
145
152
  theme: 'purple',
146
153
  values: [`金额 ${formatNumber(sumBy(saleRows, 'amount'))}`]
147
154
  }
@@ -161,7 +168,7 @@ function buildSections(data = {}) {
161
168
  ],
162
169
  rows: nonSaleRows,
163
170
  footer: {
164
- label: '合计',
171
+ label: '合计(含本次)',
165
172
  theme: 'danger',
166
173
  values: [
167
174
  `数量 ${formatNumber(sumBy(nonSaleRows, 'qty'))}`,
@@ -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}` : '底价明细',