imeik-bizui 1.3.2 → 1.3.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.
@@ -95,7 +95,7 @@ export default {
95
95
  type: 'ImInput',
96
96
  prop: 'erpBillName',
97
97
  label: 'ERP出库类型',
98
- hidden: this.formProps.formBaseNo === 'B05', // 专家费类型的隐藏
98
+ hidden: false, // 专家费类型的隐藏
99
99
  attrs: {
100
100
  disabled: true,
101
101
  isView: this.isView
@@ -141,6 +141,12 @@ export default {
141
141
  deep: true
142
142
  }
143
143
  },
144
+ created() {
145
+ if (this.formProps?.formBaseNo && this.formProps.formBaseNo === 'B05') {
146
+ const erpIndex = this.formConfig.formItems.findIndex((item) => item.prop === 'erpBillName')
147
+ this.formConfig.formItems[erpIndex].hidden = true
148
+ }
149
+ },
144
150
  mounted() {
145
151
  this.handleBusEvent()
146
152
  this.getApplyList()
@@ -203,7 +209,7 @@ export default {
203
209
  handlingConfigurationPrope() {
204
210
  const index = this.getFormItemIndex('projectCode')
205
211
  if (!this.formConfig.props.applyType && this.attrs.applyTypeOptions?.default) {
206
- this.formConfig.props.applyType = this.attrs.applyTypeOptions.default
212
+ this.$set(this.formConfig.props, 'applyType', this.attrs.applyTypeOptions.default)
207
213
  }
208
214
  // 是否显示项目编号
209
215
  if (this.attrs.needProject) {
@@ -315,6 +321,7 @@ export default {
315
321
  // 校验提交的数据
316
322
  handleValidate() {
317
323
  this.$refs.ImForm?.validate((valid) => {
324
+ console.log(valid)
318
325
  this.formConfig.props.valid = valid
319
326
  this.setPropsData()
320
327
  })
@@ -35,7 +35,7 @@
35
35
  <el-col :span="12">
36
36
  <div style="margin-top: -32px;">
37
37
  <p class="cell-title">负责人所属部门</p>
38
- <p>{{ detpName }}</p>
38
+ <p>{{ detpName || '-' }}</p>
39
39
  </div>
40
40
  </el-col>
41
41
  </el-row>
@@ -9,6 +9,7 @@
9
9
  <!-- 职业机构 -->
10
10
  <template slot="organizations" slot-scope="{ row }">
11
11
  <div class="expertOther">
12
+ <p v-if="!row.doctorNumber">-</p>
12
13
  <p v-if="row.doctorOrg">第一执业:{{ row.doctorOrg }}</p>
13
14
  <!-- <p>其他执业:北京苏明成医疗美容有限公司</p> -->
14
15
  </div>
@@ -16,6 +17,7 @@
16
17
  <!-- 其他信息 -->
17
18
  <template slot="otherInfo" slot-scope="{ row }">
18
19
  <div class="expertOther">
20
+ <p v-if="!row.doctorNumber">-</p>
19
21
  <p v-if="row.doctorNumber">专家编号:{{ row.doctorNumber }}</p>
20
22
  <p v-if="row.doctorPhone">手机号:{{ formatPhone(row.doctorPhone) }}</p>
21
23
  <p v-if="row.doctorType">类型:{{ row.doctorType }}</p>
@@ -136,7 +138,7 @@ export default {
136
138
  type: 'slot',
137
139
  slot: 'doctorLevel',
138
140
  attrs: {
139
- 'min-width': '120'
141
+ 'min-width': '140'
140
142
  }
141
143
  },
142
144
  {
@@ -145,7 +147,7 @@ export default {
145
147
  type: 'slot',
146
148
  slot: 'scenario',
147
149
  attrs: {
148
- 'min-width': '120'
150
+ 'min-width': '130'
149
151
  }
150
152
  },
151
153
  {
@@ -154,7 +156,7 @@ export default {
154
156
  type: 'slot',
155
157
  slot: 'className',
156
158
  attrs: {
157
- 'min-width': '120'
159
+ 'min-width': '130'
158
160
  }
159
161
  },
160
162
  {
@@ -163,7 +165,7 @@ export default {
163
165
  type: 'slot',
164
166
  slot: 'price',
165
167
  attrs: {
166
- 'min-width': '120'
168
+ 'min-width': '150'
167
169
  }
168
170
  },
169
171
  {
@@ -266,7 +268,7 @@ export default {
266
268
  op: 'LIKE',
267
269
  tagCode: 'realName',
268
270
  type: 'LEAF_NODE',
269
- value: val
271
+ value: val || ''
270
272
  }
271
273
  ],
272
274
  tagModel: 'USER',
@@ -286,20 +288,18 @@ export default {
286
288
  setDefaultRoleInfo(data) {
287
289
  // 检查当前选择的专家角色是否在角色列表中
288
290
  if (data.doctorNumber && !this.isView) {
289
- const hasCurrentRole = data.roleList.find((item) => item.doctorNumber === data.doctorLevel)
291
+ const hasCurrentRole = data.roleList.find((item) => item.value === data.doctorLevel)
290
292
  if (hasCurrentRole) {
291
- data.doctorLevel = hasCurrentRole.value
293
+ this.$set(data, 'doctorLevel', hasCurrentRole.value)
292
294
  return
293
295
  } else {
294
- data.doctorLevel = ''
296
+ this.$set(data, 'doctorLevel', '')
295
297
  data.doctorServiceSceneName = ''
296
298
  }
297
299
  }
298
300
  // 如果当前选择的专家角色只有一个,则直接写入角色级别
299
301
  if (data.roleList.length === 1) {
300
- data.doctorLevel = data.roleList[0].value
301
- } else {
302
- data.doctorLevel = ''
302
+ this.$set(data, 'doctorLevel', data.roleList[0].value)
303
303
  }
304
304
  },
305
305
  getSceneList(data) {
@@ -328,11 +328,16 @@ export default {
328
328
  changedoctorName(row) {
329
329
  // 写入专家信息
330
330
  const doctorInfo = this.doctorAttrs.options.find((item) => item.value === row.doctorNumber)
331
- delete doctorInfo.doctorNumber
331
+ if (!doctorInfo) {
332
+ return
333
+ }
334
+ for (const key in row) {
335
+ this.$set(row, key, '')
336
+ }
332
337
  for (const key in doctorInfo) {
333
338
  this.$set(row, key, doctorInfo[key])
334
339
  }
335
- row.roleList = [{ label: '专家', value: '1000987' }]
340
+ row.roleList = doctorInfo.roleList
336
341
  this.getSceneList(row)
337
342
  this.setDefaultRoleInfo(row)
338
343
  },
@@ -390,6 +395,7 @@ export default {
390
395
  doctorPosition: item.doctorPosition,
391
396
  doctorPost: item.realJobTitleName,
392
397
  doctorType: item.doctorType,
398
+ roleList: item['us-zjjs-extend'] ? JSON.parse(item['us-zjjs-extend']) : [],
393
399
  label: item.realName,
394
400
  value: item.userNumber
395
401
  }