imeik-bizui 1.8.1 → 1.8.3
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.
- package/dist/bizui/src/FieldExpertSelect/index.vue +31 -25
- package/dist/imeik-bizui.common.js +95 -91
- package/dist/imeik-bizui.common.js.gz +0 -0
- package/dist/imeik-bizui.css +1 -1
- package/dist/imeik-bizui.css.gz +0 -0
- package/dist/imeik-bizui.umd.js +95 -91
- package/dist/imeik-bizui.umd.js.gz +0 -0
- package/dist/imeik-bizui.umd.min.js +3 -3
- package/dist/imeik-bizui.umd.min.js.gz +0 -0
- package/package.json +1 -1
|
@@ -3,7 +3,14 @@
|
|
|
3
3
|
<ImTable :table="tableConfig" style="margin-bottom: 20px">
|
|
4
4
|
<!-- 专家 -->
|
|
5
5
|
<template slot="doctorName" slot-scope="{ row }">
|
|
6
|
-
<ImSelect
|
|
6
|
+
<ImSelect
|
|
7
|
+
v-if="!isView"
|
|
8
|
+
v-model="row.doctorNumber"
|
|
9
|
+
:class="{ 'is-error': row.valid === false && !row.doctorNumber }"
|
|
10
|
+
:attrs="doctorAttrs"
|
|
11
|
+
:listeners="{ focus: onDoctorFocus }"
|
|
12
|
+
@input="changedoctorName(row)"
|
|
13
|
+
></ImSelect>
|
|
7
14
|
<div v-else>
|
|
8
15
|
<!-- <div v-if="showDiff">
|
|
9
16
|
<p class="text-button" @click="viewdoctorDetailItem(row)">{{ row.doctorName }}</p>
|
|
@@ -80,14 +87,14 @@
|
|
|
80
87
|
></ImSelect>
|
|
81
88
|
</div>
|
|
82
89
|
<div v-else>
|
|
83
|
-
<ImDiffText v-if="showDiff" :show-diff="showDiff" />
|
|
90
|
+
<ImDiffText v-if="showDiff" :show-diff="showDiff" :old-value="row.identity" :no-absolute="true" :new-value="row._newData?.identity" />
|
|
91
|
+
<p v-else>{{ row.identity }}</p>
|
|
84
92
|
</div>
|
|
85
93
|
</template>
|
|
86
94
|
<!-- 授课名称 -->
|
|
87
95
|
<template slot="className" slot-scope="{ row }">
|
|
88
96
|
<div v-if="!isView">
|
|
89
|
-
<ImInput
|
|
90
|
-
|
|
97
|
+
<ImInput v-model="row.className" :class="{ 'is-error': row.valid === false && checkHasCourse(row) }" placeholder="请输入" maxlength="100"></ImInput>
|
|
91
98
|
</div>
|
|
92
99
|
<div v-else>
|
|
93
100
|
<ImDiffText v-if="showDiff" :show-diff="showDiff" :old-value="row.courseName" :no-absolute="true" :new-value="row._newData?.courseName" />
|
|
@@ -363,7 +370,7 @@ export default {
|
|
|
363
370
|
} else if (this.checkHasCourse(item) && !item.className) {
|
|
364
371
|
res && showMessage && this.$message.warning('请填写授课名称')
|
|
365
372
|
res = false
|
|
366
|
-
}else if (!item.costAmount) {
|
|
373
|
+
} else if (!item.costAmount) {
|
|
367
374
|
res && showMessage && this.$message.warning('请检查费用金额')
|
|
368
375
|
res = false
|
|
369
376
|
} else if (this.checkStandardAmountsIsBeyond(item) && !item.remark) {
|
|
@@ -425,18 +432,18 @@ export default {
|
|
|
425
432
|
},
|
|
426
433
|
// 获取场景列表
|
|
427
434
|
getSceneList(data) {
|
|
428
|
-
console.log('getSceneList',data.doctorExpertType)
|
|
435
|
+
console.log('getSceneList', data.doctorExpertType)
|
|
429
436
|
if (data.doctorLevel) {
|
|
430
437
|
this.scenarioLoading = true
|
|
431
|
-
getExpertServiceFee({ expertRoleCode: data.doctorLevel,doctorExpertType: data.doctorExpertType }).then((res) => {
|
|
438
|
+
getExpertServiceFee({ expertRoleCode: data.doctorLevel, doctorExpertType: data.doctorExpertType }).then((res) => {
|
|
432
439
|
this.scenarioLoading = false
|
|
433
440
|
if (res.code === 200) {
|
|
434
441
|
const list = JSON.parse(res.data).sceneList
|
|
435
442
|
|
|
436
|
-
const shenfenList = JSON.parse(res.data).standardAmountList.map(item => ({
|
|
443
|
+
const shenfenList = JSON.parse(res.data).standardAmountList.map((item) => ({
|
|
437
444
|
label: item.sceneAndIdentity,
|
|
438
445
|
value: item.sceneAndIdentity,
|
|
439
|
-
standardAmount:item.standardAmount
|
|
446
|
+
standardAmount: item.standardAmount
|
|
440
447
|
}))
|
|
441
448
|
|
|
442
449
|
this.$set(data, 'scenarioList', list)
|
|
@@ -445,9 +452,9 @@ export default {
|
|
|
445
452
|
})
|
|
446
453
|
}
|
|
447
454
|
},
|
|
448
|
-
handleChangeIdentity(val,row){
|
|
455
|
+
handleChangeIdentity(val, row) {
|
|
449
456
|
const sceneInfo = row.shenfenList_new.find((item) => item.value === val)
|
|
450
|
-
|
|
457
|
+
this.$set(row, 'standardAmount', sceneInfo.standardAmount)
|
|
451
458
|
},
|
|
452
459
|
// 修改专家回调
|
|
453
460
|
changedoctorName(row, type) {
|
|
@@ -489,14 +496,15 @@ export default {
|
|
|
489
496
|
this.$set(row, 'describe', sceneInfo.describe)
|
|
490
497
|
this.$set(row, 'courseName', '')
|
|
491
498
|
// 修改:在过滤后,对每个项处理label,取_之后的部分
|
|
492
|
-
const shenfenList_new =
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
499
|
+
const shenfenList_new =
|
|
500
|
+
row.shenfenList
|
|
501
|
+
?.filter((item) => item.label?.split('_')[0].includes(sceneInfo.label) ?? false)
|
|
502
|
+
?.map((item) => ({
|
|
503
|
+
...item,
|
|
504
|
+
// 修改:截取_后的文字,没有下划线时返回原label
|
|
505
|
+
label: item.label?.split('_')[1] ?? item.label ?? '',
|
|
506
|
+
value: item.value?.split('_')[1] ?? item.value ?? ''
|
|
507
|
+
})) ?? []
|
|
500
508
|
this.$set(row, 'shenfenList_new', shenfenList_new)
|
|
501
509
|
}
|
|
502
510
|
this.checkStandardAmountsIsBeyond(row)
|
|
@@ -508,7 +516,6 @@ export default {
|
|
|
508
516
|
this.$set(row, 'doctorLevelName', roleInfo.label)
|
|
509
517
|
this.$set(row, 'doctorServiceSceneCode', '')
|
|
510
518
|
this.$set(row, 'describe', '')
|
|
511
|
-
|
|
512
519
|
}
|
|
513
520
|
this.getSceneList(row)
|
|
514
521
|
},
|
|
@@ -556,13 +563,12 @@ export default {
|
|
|
556
563
|
// 优化后方法:检查场景是否有活动身份
|
|
557
564
|
checkHasCourse(data) {
|
|
558
565
|
if (!data.identity || !Array.isArray(data.shenfenList_new)) {
|
|
559
|
-
return false
|
|
566
|
+
return false
|
|
560
567
|
}
|
|
561
568
|
// 使用some替代find,直接返回布尔值
|
|
562
|
-
return data.shenfenList_new.some(
|
|
563
|
-
item.value === data.identity &&
|
|
564
|
-
|
|
565
|
-
);
|
|
569
|
+
return data.shenfenList_new.some(
|
|
570
|
+
(item) => item.value === data.identity && item.label?.includes('授课') // 安全访问label属性
|
|
571
|
+
)
|
|
566
572
|
},
|
|
567
573
|
formatChangeType(val) {
|
|
568
574
|
switch (val) {
|