imeik-bizui 2.1.5 → 2.1.7

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.
@@ -125,7 +125,7 @@ export default {
125
125
  const list = []
126
126
  const vals = [].concat(this.myValue) // 单选的时候也转成数组
127
127
  vals.map(i => {
128
- list.push(getLabelByValue(this.options, i, { labelKey: 'name', valueKey: 'objectCode' }))
128
+ list.push(getLabelByValue(this.options, i, { labelKey: 'name', valueKey: this.prop.value }))
129
129
  return i
130
130
  })
131
131
  return list.join(',')
@@ -178,7 +178,11 @@ export default {
178
178
  ...this.extra
179
179
  }
180
180
  if (!this.selectName && this.value) {
181
- params.objectCodeList = Array.isArray(this.value) ? this.value : [this.value]
181
+ if (this.prop.value === 'objectCode') {
182
+ params.objectCodeList = Array.isArray(this.value) ? this.value : [this.value]
183
+ } else if (this.prop.value === 'employeeNo') {
184
+ params.employeeNos = Array.isArray(this.value) ? this.value : [this.value]
185
+ }
182
186
  params.selectStatus = !this.value || !this.value.length ? '0' : '1'
183
187
  }
184
188
  this.loading = true
@@ -15,6 +15,7 @@
15
15
  </template>
16
16
  <!-- 专家 -->
17
17
  <template slot="doctorName" slot-scope="{ row }">
18
+ <p v-if="!isView" style="font-size: 12px; color: red; line-height: 18px;margin-bottom: 8px;">标记“暂不可用”的专家是因为缺少计算专家费必要字段,请前往用户中心维护专家信息</p>
18
19
  <ImSelect
19
20
  v-if="!isView"
20
21
  v-model="row.doctorNumber"
@@ -417,8 +418,10 @@ export default {
417
418
  this.doctorLoading = false
418
419
  if (res.code === 200) {
419
420
  res.data.list.forEach((item) => {
420
- item.label = item.doctorName
421
+ const disabled = !item.doctorRoleInfoList?.length || !item.doctorType
422
+ item.label = item.doctorName + (disabled ? '(暂不可用)' : '')
421
423
  item.value = item.doctorNumber
424
+ item.disabled = disabled
422
425
  })
423
426
  this.doctorAttrs.options = res.data.list
424
427
  data && this.changedoctorName(data, 'refresh')