imeik-bizui 1.9.6 → 1.9.8

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.
@@ -1,6 +1,18 @@
1
1
  <template>
2
2
  <div class="page-view">
3
3
  <ImTable :table="tableConfig" style="margin-bottom: 20px">
4
+ <template slot="doctorNameHead">
5
+ <p><span v-if="!isView" class="start">*</span>专家名称</p>
6
+ </template>
7
+ <template slot="doctorLevelHead">
8
+ <p><span v-if="!isView" class="start">*</span>角色/等级</p>
9
+ </template>
10
+ <template slot="scenarioHead">
11
+ <p><span v-if="!isView" class="start">*</span>服务场景</p>
12
+ </template>
13
+ <template slot="costAmountHead">
14
+ <p><span v-if="!isView" class="start">*</span>费用金额(元)</p>
15
+ </template>
4
16
  <!-- 专家 -->
5
17
  <template slot="doctorName" slot-scope="{ row }">
6
18
  <ImSelect
@@ -64,7 +76,7 @@
64
76
  <div v-if="!isView">
65
77
  <ImSelect
66
78
  v-model="row.doctorServiceSceneCode"
67
- :class="{ 'is-error': row.valid === false && !row.doctorLevel }"
79
+ :class="{ 'is-error': row.valid === false && !row.doctorServiceSceneCode }"
68
80
  :attrs="{ options: row.scenarioList, loading: scenarioLoading, disabled: !!row.acceptanceDoctorTimes }"
69
81
  @input="(val) => changeScenario(val, row)"
70
82
  ></ImSelect>
@@ -96,12 +108,7 @@
96
108
  <!-- 授课名称 -->
97
109
  <template slot="className" slot-scope="{ row }">
98
110
  <div v-if="!isView && checkHasCourse(row)">
99
- <ImInput
100
- v-model="row.courseName"
101
- :attrs="{ disabled: !!row.acceptanceDoctorTimes }"
102
- placeholder="请输入"
103
- maxlength="100"
104
- ></ImInput>
111
+ <ImInput v-model="row.courseName" :attrs="{ disabled: !!row.acceptanceDoctorTimes }" placeholder="请输入" maxlength="100"></ImInput>
105
112
  </div>
106
113
  <div v-else>
107
114
  <ImDiffText v-if="showDiff" :show-diff="showDiff" :old-value="row.courseName" :no-absolute="true" :new-value="row._newData?.courseName" />
@@ -218,6 +225,7 @@ export default {
218
225
  prop: 'doctorName',
219
226
  type: 'slot',
220
227
  slot: 'doctorName',
228
+ headSlot: 'doctorNameHead',
221
229
  attrs: {
222
230
  'min-width': '120'
223
231
  }
@@ -245,6 +253,7 @@ export default {
245
253
  prop: 'doctorLevel',
246
254
  type: 'slot',
247
255
  slot: 'doctorLevel',
256
+ headSlot: 'doctorLevelHead',
248
257
  attrs: {
249
258
  'min-width': '150'
250
259
  }
@@ -254,6 +263,7 @@ export default {
254
263
  prop: 'scenario',
255
264
  type: 'slot',
256
265
  slot: 'scenario',
266
+ headSlot: 'scenarioHead',
257
267
  attrs: {
258
268
  'min-width': '150'
259
269
  }
@@ -281,6 +291,7 @@ export default {
281
291
  prop: 'costAmount',
282
292
  type: 'slot',
283
293
  slot: 'costAmount',
294
+ headSlot: 'costAmountHead',
284
295
  attrs: {
285
296
  'min-width': '160'
286
297
  }
@@ -377,6 +388,9 @@ export default {
377
388
  } else if (!item.costAmount) {
378
389
  res && showMessage && this.$message.warning('请检查费用金额')
379
390
  res = false
391
+ } else if (this.checkIdentity(item.shenfenList_new) && !item.identity) {
392
+ res && showMessage && this.$message.warning('请检查活动参与身份')
393
+ res = false
380
394
  } else if (this.checkStandardAmountsIsBeyond(item) && !item.remark) {
381
395
  res && showMessage && this.$message.warning('请填写备注')
382
396
  res = false
@@ -559,14 +573,6 @@ export default {
559
573
  },
560
574
  onUpdate() {
561
575
  const data = JSON.parse(JSON.stringify(this.tableConfig.data))
562
- data.forEach((item) => {
563
- if (item.roleList) {
564
- delete item.roleList
565
- }
566
- if (item.scenarioList) {
567
- delete item.scenarioList
568
- }
569
- })
570
576
  this.$emit('input', data)
571
577
  this.$emit('change', data)
572
578
  },
@@ -715,4 +721,8 @@ export default {
715
721
  font-weight: 500;
716
722
  cursor: pointer;
717
723
  }
724
+ .start {
725
+ color: #f56c6c;
726
+ margin-right: 4px;
727
+ }
718
728
  </style>