imeik-bizui 1.9.5 → 1.9.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.
@@ -7,7 +7,7 @@
7
7
  v-if="!isView"
8
8
  v-model="row.doctorNumber"
9
9
  :class="{ 'is-error': row.valid === false && !row.doctorNumber }"
10
- :attrs="{ ...doctorAttrs, disabled: row.acceptanceDoctorTimes }"
10
+ :attrs="{ ...doctorAttrs, disabled: !!row.acceptanceDoctorTimes }"
11
11
  :listeners="{ focus: onDoctorFocus }"
12
12
  @input="changedoctorName(row)"
13
13
  ></ImSelect>
@@ -51,7 +51,7 @@
51
51
  v-if="!isView"
52
52
  v-model="row.doctorLevel"
53
53
  :class="{ 'is-error': row.valid === false && !row.doctorLevel }"
54
- :attrs="{ options: row.roleList, disabled: row.acceptanceDoctorTimes }"
54
+ :attrs="{ options: row.roleList, disabled: !!row.acceptanceDoctorTimes }"
55
55
  @input="changeDoctorLevel(row)"
56
56
  ></ImSelect>
57
57
  <div v-else>
@@ -65,7 +65,7 @@
65
65
  <ImSelect
66
66
  v-model="row.doctorServiceSceneCode"
67
67
  :class="{ 'is-error': row.valid === false && !row.doctorLevel }"
68
- :attrs="{ options: row.scenarioList, loading: scenarioLoading, disabled: row.acceptanceDoctorTimes }"
68
+ :attrs="{ options: row.scenarioList, loading: scenarioLoading, disabled: !!row.acceptanceDoctorTimes }"
69
69
  @input="(val) => changeScenario(val, row)"
70
70
  ></ImSelect>
71
71
  <p v-if="row.describe" class="tips-text">{{ row.describe }}</p>
@@ -84,7 +84,7 @@
84
84
  v-else
85
85
  v-model="row.identity"
86
86
  :class="{ 'is-error': row.valid === false && !row.identity }"
87
- :attrs="{ options: row.shenfenList_new, disabled: row.acceptanceDoctorTimes }"
87
+ :attrs="{ options: row.shenfenList_new, disabled: !!row.acceptanceDoctorTimes }"
88
88
  @input="(val) => handleChangeIdentity(val, row)"
89
89
  ></ImSelect>
90
90
  </div>
@@ -98,8 +98,7 @@
98
98
  <div v-if="!isView && checkHasCourse(row)">
99
99
  <ImInput
100
100
  v-model="row.courseName"
101
- :attrs="{ disabled: row.acceptanceDoctorTimes }"
102
- :class="{ 'is-error': row.valid === false && checkHasCourse(row) }"
101
+ :attrs="{ disabled: !!row.acceptanceDoctorTimes }"
103
102
  placeholder="请输入"
104
103
  maxlength="100"
105
104
  ></ImInput>
@@ -147,7 +146,7 @@
147
146
  </template>
148
147
  <template slot="operation" slot-scope="{ row, $index }">
149
148
  <el-button type="text" @click="addExpert($index)">新增</el-button>
150
- <el-button :disabled="row.acceptanceDoctorTimes" class="delete-button" type="text" @click="deleteExpert($index)">移除</el-button>
149
+ <el-button :disabled="!!row.acceptanceDoctorTimes" class="delete-button" type="text" @click="deleteExpert($index)">移除</el-button>
151
150
  </template>
152
151
  <template slot="changeType" slot-scope="{ row }">
153
152
  <p>{{ formatChangeType(row._changeType) }}</p>
@@ -375,9 +374,6 @@ export default {
375
374
  } else if (!item.doctorServiceSceneCode) {
376
375
  res && showMessage && this.$message.warning('请检查服务场景')
377
376
  res = false
378
- } else if (this.checkHasCourse(item) && !item.courseName) {
379
- res && showMessage && this.$message.warning('请填写授课名称')
380
- res = false
381
377
  } else if (!item.costAmount) {
382
378
  res && showMessage && this.$message.warning('请检查费用金额')
383
379
  res = false