imeik-bizui 2.1.0 → 2.1.2

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.
@@ -204,8 +204,7 @@ export default {
204
204
  'remote-method': this.getExpertsList
205
205
  },
206
206
  scenarioLoading: false,
207
- doctorLoading: false,
208
- costFeeList: []
207
+ doctorLoading: false
209
208
  }
210
209
  },
211
210
  computed: {
@@ -467,8 +466,8 @@ export default {
467
466
  value: item.sceneAndIdentity,
468
467
  standardAmount: item.standardAmount
469
468
  }))
470
- this.costFeeList = JSON.parse(res.data).costFeeList
471
469
  this.$set(data, 'scenarioList', list)
470
+ this.$set(data, 'costFeeList', JSON.parse(res.data).costFeeList)
472
471
  this.$set(data, 'shenfenList', shenfenList)
473
472
  }
474
473
  })
@@ -477,7 +476,7 @@ export default {
477
476
  handleChangeIdentity(val, row) {
478
477
  const sceneInfo = row.shenfenList_new.find((item) => item.value === val)
479
478
  this.$set(row, 'standardAmount', sceneInfo.standardAmount)
480
- this.costFeeList.forEach(item => {
479
+ row.costFeeList.forEach((item) => {
481
480
  if (item.sceneAndIdentity === row.doctorServiceSceneName + '_' + row.identity) {
482
481
  this.$set(row, 'costFee', item.costFee)
483
482
  }
@@ -585,6 +584,15 @@ export default {
585
584
  this.tableConfig.data.splice(index, 1)
586
585
  },
587
586
  onUpdate() {
587
+ this.tableConfig.data.forEach((item) => {
588
+ if (Number(item.costFee) > 0) {
589
+ item.maxCostFee = Number(item.costFee || 0)
590
+ item.miniEcsBudget = Number(item.costAmount || 0) > Number(item.costFee || 0) ? Number(item.costFee || 0) : Number(item.costAmount || 0)
591
+ } else {
592
+ item.miniEcsBudget = Number(item.costAmount || 0)
593
+ item.maxCostFee = Number(item.costAmount || 0)
594
+ }
595
+ })
588
596
  const data = JSON.parse(JSON.stringify(this.tableConfig.data))
589
597
  this.$emit('input', data)
590
598
  this.$emit('change', data)