imeik-bizui 2.1.0 → 2.1.1

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.
@@ -477,7 +477,7 @@ export default {
477
477
  handleChangeIdentity(val, row) {
478
478
  const sceneInfo = row.shenfenList_new.find((item) => item.value === val)
479
479
  this.$set(row, 'standardAmount', sceneInfo.standardAmount)
480
- this.costFeeList.forEach(item => {
480
+ this.costFeeList.forEach((item) => {
481
481
  if (item.sceneAndIdentity === row.doctorServiceSceneName + '_' + row.identity) {
482
482
  this.$set(row, 'costFee', item.costFee)
483
483
  }
@@ -585,6 +585,15 @@ export default {
585
585
  this.tableConfig.data.splice(index, 1)
586
586
  },
587
587
  onUpdate() {
588
+ this.tableConfig.data.forEach((item) => {
589
+ if (Number(item.costFee) > 0) {
590
+ item.maxCostFee = Number(item.costFee || 0)
591
+ item.miniEcsBudget = Number(item.costAmount || 0) > Number(item.costFee || 0) ? Number(item.costFee || 0) : Number(item.costAmount || 0)
592
+ } else {
593
+ item.miniEcsBudget = Number(item.costAmount || 0)
594
+ item.maxCostFee = Number(item.costAmount || 0)
595
+ }
596
+ })
588
597
  const data = JSON.parse(JSON.stringify(this.tableConfig.data))
589
598
  this.$emit('input', data)
590
599
  this.$emit('change', data)