imeik-bizui 1.5.7 → 1.6.0
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/api/applycenter.js +14 -1
- package/dist/bizui/api/tagcenter.js +1 -14
- package/dist/bizui/src/FieldExpertSelect/index.vue +19 -38
- package/dist/imeik-bizui.common.js +140 -177
- 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 +140 -177
- package/dist/imeik-bizui.umd.js.gz +0 -0
- package/dist/imeik-bizui.umd.min.js +5 -5
- package/dist/imeik-bizui.umd.min.js.gz +0 -0
- package/package.json +1 -1
|
@@ -224,4 +224,17 @@ export function getExpertServiceFee(data) {
|
|
|
224
224
|
method: 'post',
|
|
225
225
|
data
|
|
226
226
|
})
|
|
227
|
-
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* 获取专家
|
|
231
|
+
* @param {*} data
|
|
232
|
+
* @returns
|
|
233
|
+
*/
|
|
234
|
+
export function getExpertsPageQuery(data) {
|
|
235
|
+
return request({
|
|
236
|
+
url: '/application-center-admin/data/exchange/getExpertInfoPage',
|
|
237
|
+
method: 'post',
|
|
238
|
+
data
|
|
239
|
+
})
|
|
240
|
+
}
|
|
@@ -11,17 +11,4 @@ export function queryTagList(params) {
|
|
|
11
11
|
method: 'get',
|
|
12
12
|
params
|
|
13
13
|
})
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* 获取专家
|
|
18
|
-
* @param {*} data
|
|
19
|
-
* @returns
|
|
20
|
-
*/
|
|
21
|
-
export function getExpertsPageQuery(data) {
|
|
22
|
-
return request({
|
|
23
|
-
url: '/tagcenter-admin/tagApi/realTimePageQuery',
|
|
24
|
-
method: 'post',
|
|
25
|
-
data
|
|
26
|
-
})
|
|
27
|
-
}
|
|
14
|
+
}
|
|
@@ -13,20 +13,20 @@
|
|
|
13
13
|
<template slot="organizations" slot-scope="{ row }">
|
|
14
14
|
<div class="expertOther">
|
|
15
15
|
<p v-if="!row.doctorNumber">-</p>
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
<div v-if="Array.isArray(row.doctorOrg)">
|
|
17
|
+
<ImOneLineDot v-for="(item, index) in row.doctorOrg" :key="index" :text="item">{{ item }}</ImOneLineDot>
|
|
18
|
+
</div>
|
|
19
19
|
</div>
|
|
20
20
|
</template>
|
|
21
21
|
<!-- 其他信息 -->
|
|
22
22
|
<template slot="otherInfo" slot-scope="{ row }">
|
|
23
23
|
<div class="expertOther">
|
|
24
24
|
<p v-if="!row.doctorNumber">-</p>
|
|
25
|
-
<ImOneLineDot
|
|
26
|
-
<ImOneLineDot
|
|
27
|
-
<ImOneLineDot
|
|
28
|
-
<ImOneLineDot
|
|
29
|
-
<ImOneLineDot
|
|
25
|
+
<ImOneLineDot :text="row.doctorNumber">专家编号:{{ row.doctorNumber }}</ImOneLineDot>
|
|
26
|
+
<ImOneLineDot :text="formatPhone(row.doctorPhone)">手机号:{{ formatPhone(row.doctorPhone) }}</ImOneLineDot>
|
|
27
|
+
<ImOneLineDot :text="row.doctorType">类型:{{ row.doctorType }}</ImOneLineDot>
|
|
28
|
+
<ImOneLineDot :text="row.doctorPosition">职业:{{ row.doctorPosition }}</ImOneLineDot>
|
|
29
|
+
<ImOneLineDot :text="row.doctorPost">职称:{{ row.doctorPost }}</ImOneLineDot>
|
|
30
30
|
</div>
|
|
31
31
|
</template>
|
|
32
32
|
<!-- 角色等级 -->
|
|
@@ -118,8 +118,7 @@
|
|
|
118
118
|
</template>
|
|
119
119
|
|
|
120
120
|
<script>
|
|
121
|
-
import { getExpertsPageQuery } from '../../api/
|
|
122
|
-
import { getExpertServiceFee } from '../../api/applycenter'
|
|
121
|
+
import { getExpertServiceFee, getExpertsPageQuery } from '../../api/applycenter'
|
|
123
122
|
import { mergeArrayData } from '../../utils/diff'
|
|
124
123
|
export default {
|
|
125
124
|
name: 'FieldExpertSelect',
|
|
@@ -349,21 +348,17 @@ export default {
|
|
|
349
348
|
// 获取专家列表
|
|
350
349
|
getExpertsList(val, data) {
|
|
351
350
|
const params = {
|
|
352
|
-
|
|
353
|
-
{
|
|
354
|
-
op: 'LIKE',
|
|
355
|
-
tagCode: 'realName',
|
|
356
|
-
type: 'LEAF_NODE',
|
|
357
|
-
value: val || ''
|
|
358
|
-
}
|
|
359
|
-
],
|
|
360
|
-
tagModel: 'USER',
|
|
351
|
+
realName: val || '',
|
|
361
352
|
page: 1,
|
|
362
353
|
limit: 10
|
|
363
354
|
}
|
|
364
355
|
getExpertsPageQuery(params).then((res) => {
|
|
365
356
|
if (res.code === 200) {
|
|
366
|
-
|
|
357
|
+
res.data.list.forEach((item) => {
|
|
358
|
+
item.label = item.doctorName
|
|
359
|
+
item.value = item.doctorNumber
|
|
360
|
+
})
|
|
361
|
+
this.doctorAttrs.options = res.data.list
|
|
367
362
|
data && this.changedoctorName(data, 'refresh')
|
|
368
363
|
} else {
|
|
369
364
|
this.$message.error(res.message)
|
|
@@ -413,13 +408,16 @@ export default {
|
|
|
413
408
|
this.$message.error('该专家已存在')
|
|
414
409
|
return
|
|
415
410
|
}
|
|
411
|
+
if (typeof doctorInfo.doctorOrg === 'string') {
|
|
412
|
+
doctorInfo.doctorOrg = doctorInfo.doctorOrg.split(',')
|
|
413
|
+
}
|
|
416
414
|
for (const key in doctorInfo) {
|
|
417
415
|
this.$set(row, key, doctorInfo[key])
|
|
418
416
|
}
|
|
419
417
|
if (!type) {
|
|
420
418
|
this.$set(row, 'doctorServiceSceneCode', '')
|
|
421
419
|
this.$set(row, 'describe', '')
|
|
422
|
-
row.roleList = doctorInfo.
|
|
420
|
+
row.roleList = doctorInfo.doctorRoleInfoList.map(item => ({ value: item.roleCode, label: item.roleName }))
|
|
423
421
|
this.setDefaultRoleInfo(row)
|
|
424
422
|
}
|
|
425
423
|
},
|
|
@@ -481,23 +479,6 @@ export default {
|
|
|
481
479
|
return ''
|
|
482
480
|
}
|
|
483
481
|
},
|
|
484
|
-
// 格式化专家列表
|
|
485
|
-
formatExpertsList(list = []) {
|
|
486
|
-
return list.map((item) => {
|
|
487
|
-
return {
|
|
488
|
-
doctorNumber: item.bizID,
|
|
489
|
-
doctorName: item.realName,
|
|
490
|
-
doctorPhone: item.phone,
|
|
491
|
-
doctorOrg: item.oneHospital,
|
|
492
|
-
doctorPosition: item.doctorPosition,
|
|
493
|
-
doctorPost: item.realJobTitleName,
|
|
494
|
-
doctorType: item['us-zjlx'],
|
|
495
|
-
roleList: item['us-zjjs-extend'] ? JSON.parse(item['us-zjjs-extend']) : [],
|
|
496
|
-
label: item.realName,
|
|
497
|
-
value: item.bizID
|
|
498
|
-
}
|
|
499
|
-
})
|
|
500
|
-
},
|
|
501
482
|
// 检查专家价格是否超出
|
|
502
483
|
checkStandardAmountsIsBeyond(data) {
|
|
503
484
|
return Number(data.costAmount) > Number(data.standardAmount)
|