imeik-bizui 0.2.7 → 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.
@@ -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
@@ -134,3 +147,16 @@ export function getEmployeeAddress(data) {
134
147
  params: data
135
148
  })
136
149
  }
150
+
151
+ /**
152
+ * 获取预算科目
153
+ * @param {*} data
154
+ * @returns
155
+ */
156
+ export function getEcsErpCode(data) {
157
+ return request({
158
+ url: '/application-center-admin/common/getEcsErpCode',
159
+ method: 'post',
160
+ data
161
+ })
162
+ }
@@ -10,7 +10,7 @@ const typeItems = {
10
10
  '1897633650850717699': [
11
11
  {
12
12
  type: 'FieldEmpty',
13
- span: 18,
13
+ span: 12,
14
14
  label: '',
15
15
  attrs: {
16
16
  style: {
@@ -20,7 +20,7 @@ const typeItems = {
20
20
  },
21
21
  {
22
22
  type: 'ImInput',
23
- prop: 'yusuankemu',
23
+ prop: 'budgetSubjecName',
24
24
  label: '预算科目',
25
25
  attrs: {
26
26
  disabled: true
@@ -28,7 +28,7 @@ const typeItems = {
28
28
  },
29
29
  {
30
30
  type: 'ImInput',
31
- prop: 'chukuleixing',
31
+ prop: 'erpBillType',
32
32
  label: 'ERP出库类型',
33
33
  attrs: {
34
34
  disabled: true
@@ -36,7 +36,7 @@ const typeItems = {
36
36
  },
37
37
  {
38
38
  type: 'ImInput',
39
- prop: 'yanjiubianhao',
39
+ prop: 'projectName',
40
40
  label: '上市后临床研究项目编号',
41
41
  attrs: {
42
42
  disabled: true
@@ -54,7 +54,7 @@ const typeItems = {
54
54
  },
55
55
  {
56
56
  type: 'ImSlot',
57
- prop: 'doctor',
57
+ prop: 'applicationApplyDoctor',
58
58
  span: 24,
59
59
  label: '医生姓名和职务',
60
60
  rules: [{ required: true, message: '请选择医生' }],
@@ -64,7 +64,7 @@ const typeItems = {
64
64
  },
65
65
  {
66
66
  type: 'FieldDateSelect',
67
- prop: 'zhusheshijian',
67
+ prop: 'planInjectDate',
68
68
  label: '计划产品注射日期',
69
69
  rules: [{ required: true, message: '请选择计划产品注射日期' }],
70
70
  attrs: {
@@ -108,7 +108,7 @@ const typeItems = {
108
108
  },
109
109
  {
110
110
  type: 'FieldDatePicker',
111
- prop: 'kaishishijian',
111
+ prop: 'promiseTargetDate',
112
112
  span: 12,
113
113
  attrs: {
114
114
  labelArray: ['承诺目标开始时间', '承诺目标结束时间']
@@ -126,7 +126,7 @@ const typeItems = {
126
126
  },
127
127
  {
128
128
  type: 'ImInput',
129
- prop: 'goals',
129
+ prop: 'promiseTarget',
130
130
  label: '承诺目标',
131
131
  rules: [{ required: true, message: '请输入承诺目标' }],
132
132
  attrs: {
@@ -139,7 +139,7 @@ const typeItems = {
139
139
  '1896397579093626883': [
140
140
  {
141
141
  type: 'FieldEmpty',
142
- span: 18,
142
+ span: 12,
143
143
  label: '',
144
144
  attrs: {
145
145
  style: {
@@ -149,7 +149,7 @@ const typeItems = {
149
149
  },
150
150
  {
151
151
  type: 'ImInput',
152
- prop: 'yusuankemu',
152
+ prop: 'budgetSubjecName',
153
153
  label: '预算科目',
154
154
  attrs: {
155
155
  disabled: true
@@ -157,7 +157,7 @@ const typeItems = {
157
157
  },
158
158
  {
159
159
  type: 'ImInput',
160
- prop: 'chukuleixing',
160
+ prop: 'erpBillCode',
161
161
  label: 'ERP出库类型',
162
162
  attrs: {
163
163
  disabled: true
@@ -165,7 +165,7 @@ const typeItems = {
165
165
  },
166
166
  {
167
167
  type: 'ImInput',
168
- prop: 'yanjiubianhao',
168
+ prop: 'projectCode',
169
169
  label: '上市后临床研究项目编号',
170
170
  attrs: {
171
171
  disabled: true
@@ -183,7 +183,7 @@ const typeItems = {
183
183
  },
184
184
  {
185
185
  type: 'ImInput',
186
- prop: 'xaungmumingcheng',
186
+ prop: 'projectName',
187
187
  rules: [{ required: true, message: '请输入项目名称' }],
188
188
  label: '项目名称',
189
189
  attrs: {
@@ -202,7 +202,7 @@ const typeItems = {
202
202
  },
203
203
  {
204
204
  type: 'ImRadio',
205
- prop: 'yanjiu',
205
+ prop: 'studySchemeAuditFlag',
206
206
  label: '研究方案是否通过公司领导层审核',
207
207
  rules: [{ required: true, message: '请选择研究方案是否通过公司领导层审核' }],
208
208
  attrs: {
@@ -227,7 +227,7 @@ const typeItems = {
227
227
  },
228
228
  {
229
229
  type: 'ImRadio',
230
- prop: 'qianshu',
230
+ prop: 'cooperationContractFlag',
231
231
  label: '是否签署合作协议或技术服务合同',
232
232
  rules: [{ required: true, message: '请选择是否签署合作协议或技术服务合同' }],
233
233
  attrs: {
@@ -252,7 +252,7 @@ const typeItems = {
252
252
  },
253
253
  {
254
254
  type: 'ImRadio',
255
- prop: 'jigou',
255
+ prop: 'ethicsCommitteeApprovalFlag',
256
256
  label: '是否需要机构伦理委员会审批及审批结果',
257
257
  rules: [{ required: true, message: '请选择是否需要机构伦理委员会审批及审批结果' }],
258
258
  attrs: {
@@ -287,7 +287,7 @@ const typeItems = {
287
287
  },
288
288
  {
289
289
  type: 'ImInput',
290
- prop: 'zhouqi',
290
+ prop: 'studyCycleResult',
291
291
  label: '研究周期与预期成果',
292
292
  rules: [{ required: true, message: '请输入研究周期与预期成果' }],
293
293
  attrs: {
@@ -303,7 +303,7 @@ const typeItems = {
303
303
  '1896397579114598403': [
304
304
  {
305
305
  type: 'FieldEmpty',
306
- span: 18,
306
+ span: 12,
307
307
  label: '',
308
308
  attrs: {
309
309
  style: {
@@ -313,7 +313,7 @@ const typeItems = {
313
313
  },
314
314
  {
315
315
  type: 'ImInput',
316
- prop: 'yusuankemu',
316
+ prop: 'budgetSubjecName',
317
317
  label: '预算科目',
318
318
  attrs: {
319
319
  disabled: true
@@ -321,7 +321,7 @@ const typeItems = {
321
321
  },
322
322
  {
323
323
  type: 'ImInput',
324
- prop: 'chukuleixing',
324
+ prop: 'erpBillCode',
325
325
  label: 'ERP出库类型',
326
326
  attrs: {
327
327
  disabled: true
@@ -329,7 +329,7 @@ const typeItems = {
329
329
  },
330
330
  {
331
331
  type: 'ImInput',
332
- prop: 'yanjiubianhao',
332
+ prop: 'projectCode',
333
333
  label: '上市后临床研究项目编号',
334
334
  attrs: {
335
335
  disabled: true
@@ -347,11 +347,11 @@ const typeItems = {
347
347
  },
348
348
  {
349
349
  type: 'ImInput',
350
- prop: 'xaungmumingcheng',
350
+ prop: 'projectName',
351
351
  rules: [{ required: true, message: '请输入项目名称' }],
352
352
  label: '项目名称',
353
353
  attrs: {
354
- placeholder: '即方案名称:例如濡白天使软型号产品验证方案【本方案必须石总审批后的】'
354
+ placeholder: '即方案名称:例如濡白天使软型号产品验证方'
355
355
  }
356
356
  },
357
357
  {
@@ -366,7 +366,7 @@ const typeItems = {
366
366
  },
367
367
  {
368
368
  type: 'ImRadio',
369
- prop: 'yanjiu',
369
+ prop: 'studySchemeAuditFlag',
370
370
  label: '研究方案是否通过公司领导层审核',
371
371
  rules: [{ required: true, message: '请选择研究方案是否通过公司领导层审核' }],
372
372
  attrs: {
@@ -391,7 +391,7 @@ const typeItems = {
391
391
  },
392
392
  {
393
393
  type: 'ImRadio',
394
- prop: 'qianshu',
394
+ prop: 'cooperationContractFlag',
395
395
  label: '是否签署合作协议或技术服务合同',
396
396
  rules: [{ required: true, message: '请选择是否签署合作协议或技术服务合同' }],
397
397
  attrs: {
@@ -416,7 +416,7 @@ const typeItems = {
416
416
  },
417
417
  {
418
418
  type: 'ImRadio',
419
- prop: 'jigou',
419
+ prop: 'ethicsCommitteeApprovalFlag',
420
420
  label: '是否需要机构伦理委员会审批及审批结果',
421
421
  rules: [{ required: true, message: '请选择是否需要机构伦理委员会审批及审批结果' }],
422
422
  attrs: {
@@ -451,7 +451,7 @@ const typeItems = {
451
451
  },
452
452
  {
453
453
  type: 'ImInput',
454
- prop: 'zhouqi',
454
+ prop: 'studyCycleResult',
455
455
  label: '研究周期与预期成果',
456
456
  rules: [{ required: true, message: '请输入研究周期与预期成果' }],
457
457
  attrs: {
@@ -467,7 +467,7 @@ const typeItems = {
467
467
  '1896397579127181314': [
468
468
  {
469
469
  type: 'FieldEmpty',
470
- span: 18,
470
+ span: 12,
471
471
  label: '',
472
472
  attrs: {
473
473
  style: {
@@ -477,7 +477,7 @@ const typeItems = {
477
477
  },
478
478
  {
479
479
  type: 'ImInput',
480
- prop: 'yusuankemu',
480
+ prop: 'budgetSubjectName',
481
481
  label: '预算科目',
482
482
  attrs: {
483
483
  disabled: true
@@ -485,7 +485,7 @@ const typeItems = {
485
485
  },
486
486
  {
487
487
  type: 'ImInput',
488
- prop: 'chukuleixing',
488
+ prop: 'erpBillName',
489
489
  label: 'ERP出库类型',
490
490
  attrs: {
491
491
  disabled: true
@@ -493,7 +493,7 @@ const typeItems = {
493
493
  },
494
494
  {
495
495
  type: 'ImInput',
496
- prop: 'yanjiubianhao',
496
+ prop: 'projectCode',
497
497
  label: '上市后临床研究项目编号',
498
498
  attrs: {
499
499
  disabled: true
@@ -511,7 +511,7 @@ const typeItems = {
511
511
  },
512
512
  {
513
513
  type: 'ImInput',
514
- prop: 'xaungmumingcheng',
514
+ prop: 'projectName',
515
515
  rules: [{ required: true, message: '请输入项目名称' }],
516
516
  label: '项目名称',
517
517
  attrs: {
@@ -530,7 +530,7 @@ const typeItems = {
530
530
  },
531
531
  {
532
532
  type: 'ImRadio',
533
- prop: 'yanjiu',
533
+ prop: 'studySchemeAuditFlag',
534
534
  label: '研究方案是否通过公司领导层审核',
535
535
  rules: [{ required: true, message: '请选择研究方案是否通过公司领导层审核' }],
536
536
  attrs: {
@@ -555,7 +555,7 @@ const typeItems = {
555
555
  },
556
556
  {
557
557
  type: 'ImRadio',
558
- prop: 'qianshu',
558
+ prop: 'cooperationContractFlag',
559
559
  label: '是否签署合作协议或技术服务合同',
560
560
  rules: [{ required: true, message: '请选择是否签署合作协议或技术服务合同' }],
561
561
  attrs: {
@@ -580,7 +580,7 @@ const typeItems = {
580
580
  },
581
581
  {
582
582
  type: 'ImRadio',
583
- prop: 'jigou',
583
+ prop: 'ethicsCommitteeApprovalFlag',
584
584
  label: '是否需要机构伦理委员会审批及审批结果',
585
585
  rules: [{ required: true, message: '请选择是否需要机构伦理委员会审批及审批结果' }],
586
586
  attrs: {
@@ -615,7 +615,7 @@ const typeItems = {
615
615
  },
616
616
  {
617
617
  type: 'ImInput',
618
- prop: 'fuzeren',
618
+ prop: 'studyChargeUserCode',
619
619
  label: '爱美客研究负责人',
620
620
  attrs: {
621
621
  style: {
@@ -635,7 +635,7 @@ const typeItems = {
635
635
  },
636
636
  {
637
637
  type: 'ImInput',
638
- prop: 'zhouqi',
638
+ prop: 'studyCycleResult',
639
639
  label: '研究周期与预期成果',
640
640
  rules: [{ required: true, message: '请输入研究周期与预期成果' }],
641
641
  attrs: {
@@ -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.doctor" :attrs="doctorAttrs"></FieldSeleceDoctor>
4
+ <FieldSeleceDoctor slot="selectDoctor" v-model="formConfig.props.applicationApplyDoctor" :attrs="doctorAttrs"></FieldSeleceDoctor>
5
5
  </ImForm>
6
6
  </div>
7
7
  </template>
@@ -9,13 +9,18 @@
9
9
  <script>
10
10
  import { getTypeItems } from './data'
11
11
  import FieldSeleceDoctor from '../FieldSeleceDoctor/index.vue'
12
- import { getTagManageList, getProjectNo } from '../../api/applycenter'
12
+ import { getTagManageList, getProjectNo, getEcsErpCode } from '../../api/applycenter'
13
13
  import Axios from 'axios'
14
14
  export default {
15
15
  name: 'applyTypeView',
16
16
  components: {
17
17
  FieldSeleceDoctor
18
18
  },
19
+ inject: {
20
+ formProps: {
21
+ default: () => {}
22
+ }
23
+ },
19
24
  props: {
20
25
  value: {
21
26
  type: Object,
@@ -40,13 +45,17 @@ export default {
40
45
  labelPosition: 'top'
41
46
  },
42
47
  props: {
43
- applyType: undefined
48
+ applyType: undefined,
49
+ valid: undefined
44
50
  },
45
51
  formItems: []
46
52
  }
47
53
  }
48
54
  },
49
55
  computed: {
56
+ belongCompany() {
57
+ return this.formProps.applicationApplyCustomer?.invoiceCompanyCode || ''
58
+ },
50
59
  doctorAttrs() {
51
60
  return { isView: this.isView }
52
61
  },
@@ -55,6 +64,7 @@ export default {
55
64
  {
56
65
  type: 'ImSelect',
57
66
  prop: 'applyType',
67
+ span: 12,
58
68
  label: '申请类型',
59
69
  rules: [{ required: !this.isView, message: '请选择申请类型' }],
60
70
  attrs: {
@@ -84,14 +94,26 @@ export default {
84
94
  },
85
95
  immediate: true
86
96
  },
97
+ 'formConfig.props.promiseTargetDate': {
98
+ handler(val) {
99
+ this.formatData(val)
100
+ },
101
+ deep: true
102
+ },
87
103
  'formConfig.props': {
88
104
  handler(val) {
105
+ this.formatData(val)
89
106
  this.setPropsData()
90
107
  },
91
108
  deep: true
92
109
  }
93
110
  },
94
111
  mounted() {
112
+ if (this.$bizui.bus) {
113
+ this.$bizui.bus.$on('applySubmit', (val) => {
114
+ this.handleValidate()
115
+ })
116
+ }
95
117
  this.getApplyList()
96
118
  },
97
119
  methods: {
@@ -99,7 +121,6 @@ export default {
99
121
  getTagManageList({ tagModel: 'APPLY', tagName: '申请出库类型' }).then((res) => {
100
122
  if (res.code === 200) {
101
123
  Axios.get(res.data[0].tagValueUrl).then((valData) => {
102
- console.log('请求', valData)
103
124
  if (valData.data.code === 200) {
104
125
  this.handleOptions(valData.data.data)
105
126
  }
@@ -109,6 +130,12 @@ export default {
109
130
  }
110
131
  })
111
132
  },
133
+ handleValidate() {
134
+ this.$refs.ImForm.validate((valid) => {
135
+ this.formConfig.props.valid = valid
136
+ this.setPropsData()
137
+ })
138
+ },
112
139
  handleOptions(data) {
113
140
  const allData =
114
141
  data?.flatMap((item) => {
@@ -138,7 +165,10 @@ export default {
138
165
  },
139
166
  onApplyTypechange() {
140
167
  // 清楚数据
141
- this.formConfig.props = { applyType: this.formConfig.props.applyType }
168
+ this.formConfig.props = {
169
+ applyType: this.formConfig.props.applyType,
170
+ applyTypeName: this.getTypeName()
171
+ }
142
172
  this.setTypeDataOnChange()
143
173
  },
144
174
  // 与大表单同步数据,更新数据
@@ -147,16 +177,39 @@ export default {
147
177
  this.$emit('change', this.formConfig.props)
148
178
  },
149
179
  setTypeDataOnChange() {
150
- getProjectNo().then(res => {
180
+ getProjectNo().then((res) => {
181
+ if (res.code === 200) {
182
+ this.formConfig.props.projectCode = res.data.projectNo
183
+ } else {
184
+ this.$message.error(res.msg)
185
+ }
186
+ })
187
+ getEcsErpCode({ applyType: this.formConfig.props.applyType, belongCompany: this.belongCompany }).then((res) => {
151
188
  if (res.code === 200) {
152
- this.formConfig.props.yanjiubianhao = res.data.projectNo
189
+ this.formConfig.props.budgetSubjectCode = res.data.budgetSubjectCode
190
+ this.formConfig.props.budgetSubjectName = res.data.budgetSubjectName
191
+ this.formConfig.props.erpBillName = res.data.erpBillName
192
+ this.formConfig.props.erpBillCode = res.data.erpBillCode
153
193
  } else {
154
194
  this.$message.error(res.msg)
155
195
  }
156
196
  })
157
- // this.formConfig.props.yusuankemu = '预算科目'
158
- // this.formConfig.props.chukuleixing = '预算科目2'
159
- // this.formConfig.props.yanjiubianhao = '预算科目3'
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
+ }
160
213
  }
161
214
  }
162
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" class="ml-2">特殊</el-tag>
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 class="addr-inline">
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 { departmentSelector } from '../../api/permission.js'
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
- departmentCode() {
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: 'departmentName',
66
- value: 'departmentCode',
67
- children: 'childDepartments',
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.departmentCode
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.departmentCode === target) {
169
+ if (item.dicValue === target) {
170
170
  // 将查找到的目标数据加入结果数组中
171
171
  // 可根据需求unshift(item.id)或unshift(item)
172
- result.unshift(item.departmentName)
172
+ result.unshift(item.dicName)
173
173
  return true
174
174
  }
175
- if (item.childDepartments && item.childDepartments.length > 0) {
175
+ if (item.subRegin && item.subRegin.length > 0) {
176
176
  // 根据查找到的结果往上找父级节点
177
- const isFind = this.findParent(item.childDepartments, target, result)
177
+ const isFind = this.findParent(item.subRegin, target, result)
178
178
  if (isFind) {
179
- result.unshift(item.departmentName)
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].departmentCode === val) {
200
- label = arr[i].departmentName
199
+ if (arr[i].dicValue === val) {
200
+ label = arr[i].dicName
201
201
  return label
202
- } else if (arr[i].childDepartments && arr[i].childDepartments.length) {
203
- label = this.getLabel(arr[i].childDepartments, val)
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].departmentCode === val) {
213
+ if (arr[i].dicValue === val) {
214
214
  label = arr[i].orgCode
215
215
  return label
216
- } else if (arr[i].childDepartments && arr[i].childDepartments.length) {
217
- label = this.getOrgCode(arr[i].childDepartments, val)
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
- params.codeList = this.codeList
237
- } else {
238
- if (this.title) {
239
- params.departmentName = this.title
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
- departmentSelector(params).then((res) => {
243
+ // this.params = params
244
+ const params = { tagModel: 'APPLY', tagName: '申请用户部门' }
245
+ getTagManageList(params).then((res) => {
245
246
  if (res.code === 200) {
246
- this.options = this.formatData(res.data) || []
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.childDepartments && item.childDepartments.length === 0) {
272
- delete item.childDepartments
276
+ if (item.subRegin && item.subRegin.length === 0) {
277
+ delete item.subRegin
273
278
  }
274
- if (item.childDepartments && item.childDepartments.length > 0) {
275
- item.childDepartments = this.formatData(item.childDepartments)
279
+ if (item.subRegin && item.subRegin.length > 0) {
280
+ item.subRegin = this.formatData(item.subRegin)
276
281
  }
277
282
  }
278
283
  return data