imeik-bizui 2.1.3 → 2.1.5

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.
@@ -535,20 +535,28 @@ export default {
535
535
  this.$set(row, 'standardAmount', '')
536
536
  this.$set(row, 'costAmount', undefined)
537
537
  // 修改:在过滤后,对每个项处理label,取_之后的部分
538
- const shenfenList_new =
539
- row.shenfenList
540
- ?.filter((item) => item.label?.split('_')[0].includes(sceneInfo.label) ?? false)
541
- ?.map((item) => ({
542
- ...item,
543
- // 修改:截取_后的文字,没有下划线时返回原label
544
- label: item.label?.split('_')[1] ?? item.label ?? '',
545
- value: item.value?.split('_')[1] ?? item.value ?? ''
546
- })) ?? []
547
- this.$set(row, 'shenfenList_new', shenfenList_new)
548
- if (shenfenList_new.length === 1 && row.shenfenList_new[0].value === '') {
538
+ const identityList = []
539
+ const scenarioList = row.scenarioList || []
540
+ const shenfenList = row.shenfenList
541
+ console.log(shenfenList, 'shenfenList')
542
+ scenarioList.forEach((scenarioItem) => {
543
+ if (scenarioItem.value === row.doctorServiceSceneCode) {
544
+ const identityStr = scenarioItem.identity || ''
545
+ identityStr.split(',').forEach((identity) => {
546
+ console.log(scenarioItem.label, 'scenarioItem.label')
547
+ identityList.push({
548
+ label: identity,
549
+ value: identity,
550
+ standardAmount: shenfenList.find((item) => item.value === `${scenarioItem.label}_${identity}`)?.standardAmount || 0
551
+ })
552
+ })
553
+ }
554
+ })
555
+ this.$set(row, 'shenfenList_new', identityList)
556
+ if (identityList.length === 1 && row.shenfenList_new[0].value === '') {
549
557
  this.handleChangeIdentity('', row)
550
558
  }
551
- if (shenfenList_new.length === 1) {
559
+ if (identityList.length === 1) {
552
560
  this.$set(row, 'identity', row.shenfenList_new[0].value)
553
561
  this.handleChangeIdentity(row.shenfenList_new[0].value, row)
554
562
  }
@@ -178,6 +178,8 @@ export default {
178
178
  getList() {
179
179
  this.loading = true
180
180
  const data = {
181
+ page: this.currentPage,
182
+ limit: this.pageSize,
181
183
  accountUid: this.formProps.applicationApplyCustomer?.accountUid,
182
184
  customerUniqueCode: this.formProps.applicationApplyCustomer?.customerUniqueCode,
183
185
  applyType: this.formProps.applyTypeInfo?.applyType,
@@ -190,8 +192,8 @@ export default {
190
192
  getMaterialList(data)
191
193
  .then((res) => {
192
194
  if (res.code === 200) {
193
- this.tableConfig.data = res.data
194
- this.total = res.data.total
195
+ this.tableConfig.data = res.data.list
196
+ this.total = res.data.totalCount
195
197
  this.loading = false
196
198
  } else {
197
199
  this.loading = false
@@ -258,6 +260,7 @@ export default {
258
260
  this.getList()
259
261
  },
260
262
  search() {
263
+ this.currentPage = 1
261
264
  this.getList()
262
265
  }
263
266
  }