imeik-bizui 2.0.2 → 2.0.4

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.
@@ -19,7 +19,7 @@
19
19
  v-if="!isView"
20
20
  v-model="row.doctorNumber"
21
21
  :class="{ 'is-error': row.valid === false && !row.doctorNumber }"
22
- :attrs="{ ...doctorAttrs, disabled: !!row.acceptanceDoctorTimes }"
22
+ :attrs="{ ...doctorAttrs, disabled: !!row.acceptanceDoctorTimes, loading: doctorLoading }"
23
23
  :listeners="{ focus: onDoctorFocus }"
24
24
  @input="changedoctorName(row)"
25
25
  ></ImSelect>
@@ -47,13 +47,18 @@
47
47
  <!-- 其他信息 -->
48
48
  <template slot="otherInfo" slot-scope="{ row }">
49
49
  <div class="expertOther">
50
+ <div>
51
+ <div v-if="Array.isArray(row.doctorOrg)">
52
+ <ImOneLineDot v-for="(item, index) in row.doctorOrg" :key="index" :text="item">{{ item }}</ImOneLineDot>
53
+ </div>
54
+ </div>
50
55
  <p v-if="!row.doctorNumber">-</p>
51
56
  <div v-else>
52
57
  <ImOneLineDot :text="row.doctorNumber">专家编号:{{ row.doctorNumber }}</ImOneLineDot>
53
58
  <ImOneLineDot :text="formatPhone(row.doctorPhone)">手机号:{{ formatPhone(row.doctorPhone) }}</ImOneLineDot>
54
- <ImOneLineDot :text="row.doctorType">类型:{{ row.doctorType }}</ImOneLineDot>
55
- <ImOneLineDot :text="row.doctorPost">职称:{{ row.doctorPost }}</ImOneLineDot>
56
- <ImOneLineDot v-if="row.doctorExpertType" :text="row.doctorExpertType">医生类专家类别:{{ row.doctorExpertType }}</ImOneLineDot>
59
+ <ImOneLineDot :text="row.doctorType">类型:{{ row.doctorType || '-' }}</ImOneLineDot>
60
+ <ImOneLineDot :text="row.doctorPost">职称:{{ row.doctorPost || '-' }}</ImOneLineDot>
61
+ <ImOneLineDot v-if="row.doctorExpertType" :text="row.doctorExpertType">医生类专家类别:{{ row.doctorExpertType || '-' }}</ImOneLineDot>
57
62
  </div>
58
63
  </div>
59
64
  </template>
@@ -198,7 +203,8 @@ export default {
198
203
  remote: true,
199
204
  'remote-method': this.getExpertsList
200
205
  },
201
- scenarioLoading: false
206
+ scenarioLoading: false,
207
+ doctorLoading: false
202
208
  }
203
209
  },
204
210
  computed: {
@@ -230,15 +236,6 @@ export default {
230
236
  'min-width': '120'
231
237
  }
232
238
  },
233
- {
234
- label: '执业机构',
235
- prop: 'organizations',
236
- type: 'slot',
237
- slot: 'organizations',
238
- attrs: {
239
- 'min-width': '140'
240
- }
241
- },
242
239
  {
243
240
  label: '其他信息',
244
241
  prop: 'otherInfo',
@@ -414,18 +411,24 @@ export default {
414
411
  page: 1,
415
412
  limit: 10
416
413
  }
417
- getExpertsPageQuery(params).then((res) => {
418
- if (res.code === 200) {
419
- res.data.list.forEach((item) => {
420
- item.label = item.doctorName
421
- item.value = item.doctorNumber
422
- })
423
- this.doctorAttrs.options = res.data.list
424
- data && this.changedoctorName(data, 'refresh')
425
- } else {
426
- this.$message.error(res.message)
427
- }
428
- })
414
+ this.doctorLoading = true
415
+ getExpertsPageQuery(params)
416
+ .then((res) => {
417
+ this.doctorLoading = false
418
+ if (res.code === 200) {
419
+ res.data.list.forEach((item) => {
420
+ item.label = item.doctorName
421
+ item.value = item.doctorNumber
422
+ })
423
+ this.doctorAttrs.options = res.data.list
424
+ data && this.changedoctorName(data, 'refresh')
425
+ } else {
426
+ this.$message.error(res.message)
427
+ }
428
+ })
429
+ .finally(() => {
430
+ this.doctorLoading = false
431
+ })
429
432
  },
430
433
  // 设置默认值
431
434
  setDefaultRoleInfo(data) {
@@ -497,6 +500,7 @@ export default {
497
500
  row.roleList = doctorInfo.doctorRoleInfoList.map((item) => ({ value: item.roleCode, label: item.roleName }))
498
501
  if (!type) {
499
502
  this.$set(row, 'doctorServiceSceneCode', '')
503
+ this.$set(row, 'doctorLevel', '')
500
504
  this.$set(row, 'describe', '')
501
505
  this.$set(row, 'identity', '')
502
506
  this.$set(row, 'courseName', '')
@@ -620,7 +624,7 @@ export default {
620
624
  sums[index] = '合计'
621
625
  return
622
626
  }
623
- if (index === 7) {
627
+ if (index === 6) {
624
628
  const values = data.map((item) => {
625
629
  if (item._newData) {
626
630
  return item?._newData[column.property]