imeik-bizui 2.1.3 → 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.
@@ -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
  }