imeik-bizui 0.2.9 → 0.3.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 +15 -3
- package/dist/bizui/src/FieldApplyTypeView/index.vue +28 -2
- package/dist/bizui/src/FieldCustomSelect/components/CustomShow.vue +2 -2
- package/dist/bizui/src/FieldDatePicker/index.vue +2 -0
- package/dist/bizui/src/FieldDepartmentSelect/index.vue +38 -33
- package/dist/bizui/src/FieldMaterialSelect/components/ProductList.vue +1 -0
- package/dist/bizui/src/FieldSeleceDoctor/index.vue +1 -1
- package/dist/bizui/utils/requestTemplate.js +1 -1
- package/dist/imeik-bizui.common.js +296 -259
- 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 +296 -259
- package/dist/imeik-bizui.umd.js.gz +0 -0
- package/dist/imeik-bizui.umd.min.js +14 -14
- package/dist/imeik-bizui.umd.min.js.gz +0 -0
- package/package.json +1 -1
|
@@ -31,6 +31,19 @@ export function getTagManageList(data) {
|
|
|
31
31
|
})
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* 获取标签管理列表
|
|
36
|
+
* @param {*} data
|
|
37
|
+
* @returns
|
|
38
|
+
*/
|
|
39
|
+
export function getTagModelUrl(url) {
|
|
40
|
+
return request({
|
|
41
|
+
url: url,
|
|
42
|
+
method: 'get',
|
|
43
|
+
isTag: true
|
|
44
|
+
})
|
|
45
|
+
}
|
|
46
|
+
|
|
34
47
|
/**
|
|
35
48
|
* 获取客户分页选择列表
|
|
36
49
|
* @param {*} data
|
|
@@ -143,8 +156,7 @@ export function getEmployeeAddress(data) {
|
|
|
143
156
|
export function getEcsErpCode(data) {
|
|
144
157
|
return request({
|
|
145
158
|
url: '/application-center-admin/common/getEcsErpCode',
|
|
146
|
-
method: '
|
|
147
|
-
|
|
159
|
+
method: 'post',
|
|
160
|
+
data
|
|
148
161
|
})
|
|
149
162
|
}
|
|
150
|
-
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="page-view">
|
|
3
3
|
<ImForm ref="ImForm" :form="formConfig">
|
|
4
|
-
<FieldSeleceDoctor slot="selectDoctor" v-model="formConfig.props.
|
|
4
|
+
<FieldSeleceDoctor slot="selectDoctor" v-model="formConfig.props.applicationApplyDoctor" :attrs="doctorAttrs"></FieldSeleceDoctor>
|
|
5
5
|
</ImForm>
|
|
6
6
|
</div>
|
|
7
7
|
</template>
|
|
@@ -94,8 +94,15 @@ export default {
|
|
|
94
94
|
},
|
|
95
95
|
immediate: true
|
|
96
96
|
},
|
|
97
|
+
'formConfig.props.promiseTargetDate': {
|
|
98
|
+
handler(val) {
|
|
99
|
+
this.formatData(val)
|
|
100
|
+
},
|
|
101
|
+
deep: true
|
|
102
|
+
},
|
|
97
103
|
'formConfig.props': {
|
|
98
104
|
handler(val) {
|
|
105
|
+
this.formatData(val)
|
|
99
106
|
this.setPropsData()
|
|
100
107
|
},
|
|
101
108
|
deep: true
|
|
@@ -158,7 +165,10 @@ export default {
|
|
|
158
165
|
},
|
|
159
166
|
onApplyTypechange() {
|
|
160
167
|
// 清楚数据
|
|
161
|
-
this.formConfig.props = {
|
|
168
|
+
this.formConfig.props = {
|
|
169
|
+
applyType: this.formConfig.props.applyType,
|
|
170
|
+
applyTypeName: this.getTypeName()
|
|
171
|
+
}
|
|
162
172
|
this.setTypeDataOnChange()
|
|
163
173
|
},
|
|
164
174
|
// 与大表单同步数据,更新数据
|
|
@@ -184,6 +194,22 @@ export default {
|
|
|
184
194
|
this.$message.error(res.msg)
|
|
185
195
|
}
|
|
186
196
|
})
|
|
197
|
+
},
|
|
198
|
+
formatData() {
|
|
199
|
+
const date = this.formConfig.props.promiseTargetDate
|
|
200
|
+
if (date && date[0]) {
|
|
201
|
+
this.formConfig.props.promiseTargetStartDate = date[0]
|
|
202
|
+
}
|
|
203
|
+
if (date && date[1]) {
|
|
204
|
+
this.formConfig.props.promiseTargetEndDate = date[1]
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
getTypeName() {
|
|
208
|
+
try {
|
|
209
|
+
return this.formConfig.formItems[0].attrs.options.find((item) => item.value === this.formConfig.props.applyType).label
|
|
210
|
+
} catch (error) {
|
|
211
|
+
return ''
|
|
212
|
+
}
|
|
187
213
|
}
|
|
188
214
|
}
|
|
189
215
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class="item-view">
|
|
3
3
|
<div>
|
|
4
4
|
<el-tag>股份</el-tag>
|
|
5
|
-
<el-tag effect="plain"
|
|
5
|
+
<el-tag effect="plain" style="margin-left: 12px;">特殊</el-tag>
|
|
6
6
|
</div>
|
|
7
7
|
<div class="name">
|
|
8
8
|
<span class="mr-2">{{ customData.customerName }}</span>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<div class="addr">开票单位:{{ customData.invoiceCompanyName }}</div>
|
|
11
11
|
<div class="addr">
|
|
12
12
|
<span v-if="checkIsShow('type')">客户类型:{{ formatData(customData.customerType, 'customType') }}</span>
|
|
13
|
-
<span
|
|
13
|
+
<span style="margin-right: 32px;">
|
|
14
14
|
客户星级:<span v-if="checkIsShow('start')">{{ formatData(customData.customerStar, 'start') }}</span>
|
|
15
15
|
<span v-if="checkIsShow('level')">{{ formatData(customData.customerLevel, 'level') }}</span>
|
|
16
16
|
</span>
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
placeholder="选择日期"
|
|
22
22
|
type="date"
|
|
23
23
|
:picker-options="beginPickerOptionsHandle"
|
|
24
|
+
value-format="yyyy-MM-dd"
|
|
24
25
|
v-bind="attrs"
|
|
25
26
|
unlink-panels
|
|
26
27
|
v-on="listeners"
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
placeholder="选择日期"
|
|
36
37
|
type="date"
|
|
37
38
|
:picker-options="endPickerOptionsHandle"
|
|
39
|
+
value-format="yyyy-MM-dd"
|
|
38
40
|
v-bind="attrs"
|
|
39
41
|
unlink-panels
|
|
40
42
|
v-on="listeners"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
</template>
|
|
23
23
|
|
|
24
24
|
<script>
|
|
25
|
-
import {
|
|
25
|
+
import { getTagManageList, getTagModelUrl } from '../../api/applycenter.js'
|
|
26
26
|
export default {
|
|
27
27
|
name: 'FieldDepartmentSelect',
|
|
28
28
|
props: {
|
|
@@ -54,7 +54,7 @@ export default {
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
computed: {
|
|
57
|
-
|
|
57
|
+
dicValue() {
|
|
58
58
|
return this.$bizui.departmentCode
|
|
59
59
|
},
|
|
60
60
|
isView() {
|
|
@@ -62,9 +62,9 @@ export default {
|
|
|
62
62
|
},
|
|
63
63
|
props() {
|
|
64
64
|
return {
|
|
65
|
-
label: '
|
|
66
|
-
value: '
|
|
67
|
-
children: '
|
|
65
|
+
label: 'dicName',
|
|
66
|
+
value: 'dicValue',
|
|
67
|
+
children: 'subRegin',
|
|
68
68
|
expandTrigger: 'click',
|
|
69
69
|
checkStrictly: this.attrs.checkStrictly || false,
|
|
70
70
|
emitPath: false,
|
|
@@ -136,7 +136,7 @@ export default {
|
|
|
136
136
|
handler(newVal, oldVal) {
|
|
137
137
|
if (newVal) {
|
|
138
138
|
if ((newVal !== oldVal && newVal === '2' && !this.value)) {
|
|
139
|
-
this.myValue = this.
|
|
139
|
+
this.myValue = this.dicValue
|
|
140
140
|
} else {
|
|
141
141
|
this.myValue = undefined
|
|
142
142
|
}
|
|
@@ -166,17 +166,17 @@ export default {
|
|
|
166
166
|
methods: {
|
|
167
167
|
findParent(data, target, result) {
|
|
168
168
|
for (const item of data) {
|
|
169
|
-
if (item.
|
|
169
|
+
if (item.dicValue === target) {
|
|
170
170
|
// 将查找到的目标数据加入结果数组中
|
|
171
171
|
// 可根据需求unshift(item.id)或unshift(item)
|
|
172
|
-
result.unshift(item.
|
|
172
|
+
result.unshift(item.dicName)
|
|
173
173
|
return true
|
|
174
174
|
}
|
|
175
|
-
if (item.
|
|
175
|
+
if (item.subRegin && item.subRegin.length > 0) {
|
|
176
176
|
// 根据查找到的结果往上找父级节点
|
|
177
|
-
const isFind = this.findParent(item.
|
|
177
|
+
const isFind = this.findParent(item.subRegin, target, result)
|
|
178
178
|
if (isFind) {
|
|
179
|
-
result.unshift(item.
|
|
179
|
+
result.unshift(item.dicName)
|
|
180
180
|
return true
|
|
181
181
|
}
|
|
182
182
|
}
|
|
@@ -196,11 +196,11 @@ export default {
|
|
|
196
196
|
getLabel(arr, val) {
|
|
197
197
|
let label
|
|
198
198
|
for (let i = 0; i < arr.length; i++) {
|
|
199
|
-
if (arr[i].
|
|
200
|
-
label = arr[i].
|
|
199
|
+
if (arr[i].dicValue === val) {
|
|
200
|
+
label = arr[i].dicName
|
|
201
201
|
return label
|
|
202
|
-
} else if (arr[i].
|
|
203
|
-
label = this.getLabel(arr[i].
|
|
202
|
+
} else if (arr[i].subRegin && arr[i].subRegin.length) {
|
|
203
|
+
label = this.getLabel(arr[i].subRegin, val)
|
|
204
204
|
if (label) {
|
|
205
205
|
return label
|
|
206
206
|
}
|
|
@@ -210,11 +210,11 @@ export default {
|
|
|
210
210
|
getOrgCode(arr, val) {
|
|
211
211
|
let label
|
|
212
212
|
for (let i = 0; i < arr.length; i++) {
|
|
213
|
-
if (arr[i].
|
|
213
|
+
if (arr[i].dicValue === val) {
|
|
214
214
|
label = arr[i].orgCode
|
|
215
215
|
return label
|
|
216
|
-
} else if (arr[i].
|
|
217
|
-
label = this.getOrgCode(arr[i].
|
|
216
|
+
} else if (arr[i].subRegin && arr[i].subRegin.length) {
|
|
217
|
+
label = this.getOrgCode(arr[i].subRegin, val)
|
|
218
218
|
if (label) {
|
|
219
219
|
return label
|
|
220
220
|
}
|
|
@@ -231,19 +231,24 @@ export default {
|
|
|
231
231
|
},
|
|
232
232
|
|
|
233
233
|
getOptions(callback) {
|
|
234
|
-
const params = {}
|
|
235
|
-
if (this.codeList.length) {
|
|
236
|
-
|
|
237
|
-
} else {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
}
|
|
234
|
+
// const params = {}
|
|
235
|
+
// if (this.codeList.length) {
|
|
236
|
+
// params.codeList = this.codeList
|
|
237
|
+
// } else {
|
|
238
|
+
// if (this.title) {
|
|
239
|
+
// params.dicName = this.title
|
|
240
|
+
// }
|
|
241
|
+
// }
|
|
242
242
|
|
|
243
|
-
this.params = params
|
|
244
|
-
|
|
243
|
+
// this.params = params
|
|
244
|
+
const params = { tagModel: 'APPLY', tagName: '申请用户部门' }
|
|
245
|
+
getTagManageList(params).then((res) => {
|
|
245
246
|
if (res.code === 200) {
|
|
246
|
-
|
|
247
|
+
getTagModelUrl(res.data[0].tagValueUrl).then((valData) => {
|
|
248
|
+
if (valData.code === 200) {
|
|
249
|
+
this.options = valData?.data || []
|
|
250
|
+
}
|
|
251
|
+
})
|
|
247
252
|
this.$nextTick(() => {
|
|
248
253
|
callback && callback()
|
|
249
254
|
})
|
|
@@ -268,11 +273,11 @@ export default {
|
|
|
268
273
|
formatData(data) {
|
|
269
274
|
for (let i = 0; i < data.length; i++) {
|
|
270
275
|
const item = data[i]
|
|
271
|
-
if (item.
|
|
272
|
-
delete item.
|
|
276
|
+
if (item.subRegin && item.subRegin.length === 0) {
|
|
277
|
+
delete item.subRegin
|
|
273
278
|
}
|
|
274
|
-
if (item.
|
|
275
|
-
item.
|
|
279
|
+
if (item.subRegin && item.subRegin.length > 0) {
|
|
280
|
+
item.subRegin = this.formatData(item.subRegin)
|
|
276
281
|
}
|
|
277
282
|
}
|
|
278
283
|
return data
|
|
@@ -379,6 +379,7 @@ export default {
|
|
|
379
379
|
if (item.materialAssociatedMotherSchemeCode === val) {
|
|
380
380
|
row.materialSchemeRemainingQuantity = item.materialSchemeRemainingQuantity
|
|
381
381
|
row.materialSchemeTotalQuantity = item.materialSchemeTotalQuantity
|
|
382
|
+
row.materialAssociatedMotherSchemeName = item.materialAssociatedMotherSchemeName
|
|
382
383
|
}
|
|
383
384
|
})
|
|
384
385
|
},
|
|
@@ -12,7 +12,7 @@ export function getService(baseUrlMap) {
|
|
|
12
12
|
(config) => {
|
|
13
13
|
// 需要在请求的时候再获取环境变量,因为js加载立即执行会导致$bizui中没有值
|
|
14
14
|
const $bizui = Vue.prototype.$bizui
|
|
15
|
-
config.baseURL = baseUrlMap[$bizui.env]
|
|
15
|
+
config.baseURL = config.isTag ? '' : baseUrlMap[$bizui.env]
|
|
16
16
|
// 将获取token的方法传入,防止初始化的时候token为空
|
|
17
17
|
if ($bizui.userTokenFunc && typeof $bizui.userTokenFunc === 'function') {
|
|
18
18
|
$bizui.userToken = $bizui.userTokenFunc()
|