imeik-bizui 1.8.4 → 1.8.6

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.
@@ -94,7 +94,7 @@
94
94
  <!-- 授课名称 -->
95
95
  <template slot="className" slot-scope="{ row }">
96
96
  <div v-if="!isView">
97
- <ImInput v-model="row.className" :class="{ 'is-error': row.valid === false && checkHasCourse(row) }" placeholder="请输入" maxlength="100"></ImInput>
97
+ <ImInput v-model="row.courseName" :class="{ 'is-error': row.valid === false && checkHasCourse(row) }" placeholder="请输入" maxlength="100"></ImInput>
98
98
  </div>
99
99
  <div v-else>
100
100
  <ImDiffText v-if="showDiff" :show-diff="showDiff" :old-value="row.courseName" :no-absolute="true" :new-value="row._newData?.courseName" />
@@ -367,7 +367,7 @@ export default {
367
367
  } else if (!item.doctorServiceSceneCode) {
368
368
  res && showMessage && this.$message.warning('请检查服务场景')
369
369
  res = false
370
- } else if (this.checkHasCourse(item) && !item.className) {
370
+ } else if (this.checkHasCourse(item) && !item.courseName) {
371
371
  res && showMessage && this.$message.warning('请填写授课名称')
372
372
  res = false
373
373
  } else if (!item.costAmount) {
@@ -455,7 +455,6 @@ export default {
455
455
  handleChangeIdentity(val, row) {
456
456
  const sceneInfo = row.shenfenList_new.find((item) => item.value === val)
457
457
  this.$set(row, 'standardAmount', sceneInfo.standardAmount)
458
- console.log(row, '测试')
459
458
  },
460
459
  // 修改专家回调
461
460
  changedoctorName(row, type) {
@@ -481,6 +480,9 @@ export default {
481
480
  this.$set(row, 'doctorServiceSceneCode', '')
482
481
  this.$set(row, 'describe', '')
483
482
  this.$set(row, 'identity', '')
483
+ this.$set(row, 'courseName', '')
484
+ this.$set(row, 'standardAmount', '')
485
+ this.$set(row, 'costAmount', undefined)
484
486
  this.setDefaultRoleInfo(row)
485
487
  }
486
488
  },
@@ -496,7 +498,10 @@ export default {
496
498
  if (sceneInfo) {
497
499
  this.$set(row, 'doctorServiceSceneName', sceneInfo.label)
498
500
  this.$set(row, 'describe', sceneInfo.describe)
501
+ this.$set(row, 'identity', '')
499
502
  this.$set(row, 'courseName', '')
503
+ this.$set(row, 'standardAmount', '')
504
+ this.$set(row, 'costAmount', undefined)
500
505
  // 修改:在过滤后,对每个项处理label,取_之后的部分
501
506
  const shenfenList_new =
502
507
  row.shenfenList
@@ -508,7 +513,7 @@ export default {
508
513
  value: item.value?.split('_')[1] ?? item.value ?? ''
509
514
  })) ?? []
510
515
  this.$set(row, 'shenfenList_new', shenfenList_new)
511
- if (!row.doctorExpertType) {
516
+ if (shenfenList_new.length === 1 && row.shenfenList_new[0].value === '') {
512
517
  this.handleChangeIdentity('', row)
513
518
  }
514
519
  }
@@ -521,6 +526,10 @@ export default {
521
526
  this.$set(row, 'doctorLevelName', roleInfo.label)
522
527
  this.$set(row, 'doctorServiceSceneCode', '')
523
528
  this.$set(row, 'describe', '')
529
+ this.$set(row, 'identity', '')
530
+ this.$set(row, 'courseName', '')
531
+ this.$set(row, 'standardAmount', '')
532
+ this.$set(row, 'costAmount', undefined)
524
533
  }
525
534
  this.getSceneList(row)
526
535
  },