imeik-bizui 2.1.2 → 2.1.4

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.
@@ -469,6 +469,8 @@ export default {
469
469
  this.$set(data, 'scenarioList', list)
470
470
  this.$set(data, 'costFeeList', JSON.parse(res.data).costFeeList)
471
471
  this.$set(data, 'shenfenList', shenfenList)
472
+ } else {
473
+ this.$message.error(res.message)
472
474
  }
473
475
  })
474
476
  }
@@ -533,20 +535,28 @@ export default {
533
535
  this.$set(row, 'standardAmount', '')
534
536
  this.$set(row, 'costAmount', undefined)
535
537
  // 修改:在过滤后,对每个项处理label,取_之后的部分
536
- const shenfenList_new =
537
- row.shenfenList
538
- ?.filter((item) => item.label?.split('_')[0].includes(sceneInfo.label) ?? false)
539
- ?.map((item) => ({
540
- ...item,
541
- // 修改:截取_后的文字,没有下划线时返回原label
542
- label: item.label?.split('_')[1] ?? item.label ?? '',
543
- value: item.value?.split('_')[1] ?? item.value ?? ''
544
- })) ?? []
545
- this.$set(row, 'shenfenList_new', shenfenList_new)
546
- 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 === '') {
547
557
  this.handleChangeIdentity('', row)
548
558
  }
549
- if (shenfenList_new.length === 1) {
559
+ if (identityList.length === 1) {
550
560
  this.$set(row, 'identity', row.shenfenList_new[0].value)
551
561
  this.handleChangeIdentity(row.shenfenList_new[0].value, row)
552
562
  }