imeik-bizui 0.2.7 → 0.2.9
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 -0
- package/dist/bizui/src/FieldApplyTypeView/data.js +37 -37
- package/dist/bizui/src/FieldApplyTypeView/index.vue +35 -8
- package/dist/bizui/src/FieldMaterialSelect/components/ProductList.vue +16 -5
- package/dist/bizui/src/FieldMaterialSelect/index.vue +2 -10
- package/dist/imeik-bizui.common.js +252 -201
- 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 +252 -201
- 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
|
@@ -134,3 +134,17 @@ export function getEmployeeAddress(data) {
|
|
|
134
134
|
params: data
|
|
135
135
|
})
|
|
136
136
|
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* 获取预算科目
|
|
140
|
+
* @param {*} data
|
|
141
|
+
* @returns
|
|
142
|
+
*/
|
|
143
|
+
export function getEcsErpCode(data) {
|
|
144
|
+
return request({
|
|
145
|
+
url: '/application-center-admin/common/getEcsErpCode',
|
|
146
|
+
method: 'get',
|
|
147
|
+
params: data
|
|
148
|
+
})
|
|
149
|
+
}
|
|
150
|
+
|
|
@@ -10,7 +10,7 @@ const typeItems = {
|
|
|
10
10
|
'1897633650850717699': [
|
|
11
11
|
{
|
|
12
12
|
type: 'FieldEmpty',
|
|
13
|
-
span:
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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:
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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:
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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:
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
638
|
+
prop: 'studyCycleResult',
|
|
639
639
|
label: '研究周期与预期成果',
|
|
640
640
|
rules: [{ required: true, message: '请输入研究周期与预期成果' }],
|
|
641
641
|
attrs: {
|
|
@@ -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: {
|
|
@@ -92,6 +102,11 @@ export default {
|
|
|
92
102
|
}
|
|
93
103
|
},
|
|
94
104
|
mounted() {
|
|
105
|
+
if (this.$bizui.bus) {
|
|
106
|
+
this.$bizui.bus.$on('applySubmit', (val) => {
|
|
107
|
+
this.handleValidate()
|
|
108
|
+
})
|
|
109
|
+
}
|
|
95
110
|
this.getApplyList()
|
|
96
111
|
},
|
|
97
112
|
methods: {
|
|
@@ -99,7 +114,6 @@ export default {
|
|
|
99
114
|
getTagManageList({ tagModel: 'APPLY', tagName: '申请出库类型' }).then((res) => {
|
|
100
115
|
if (res.code === 200) {
|
|
101
116
|
Axios.get(res.data[0].tagValueUrl).then((valData) => {
|
|
102
|
-
console.log('请求', valData)
|
|
103
117
|
if (valData.data.code === 200) {
|
|
104
118
|
this.handleOptions(valData.data.data)
|
|
105
119
|
}
|
|
@@ -109,6 +123,12 @@ export default {
|
|
|
109
123
|
}
|
|
110
124
|
})
|
|
111
125
|
},
|
|
126
|
+
handleValidate() {
|
|
127
|
+
this.$refs.ImForm.validate((valid) => {
|
|
128
|
+
this.formConfig.props.valid = valid
|
|
129
|
+
this.setPropsData()
|
|
130
|
+
})
|
|
131
|
+
},
|
|
112
132
|
handleOptions(data) {
|
|
113
133
|
const allData =
|
|
114
134
|
data?.flatMap((item) => {
|
|
@@ -147,16 +167,23 @@ export default {
|
|
|
147
167
|
this.$emit('change', this.formConfig.props)
|
|
148
168
|
},
|
|
149
169
|
setTypeDataOnChange() {
|
|
150
|
-
getProjectNo().then(res => {
|
|
170
|
+
getProjectNo().then((res) => {
|
|
171
|
+
if (res.code === 200) {
|
|
172
|
+
this.formConfig.props.projectCode = res.data.projectNo
|
|
173
|
+
} else {
|
|
174
|
+
this.$message.error(res.msg)
|
|
175
|
+
}
|
|
176
|
+
})
|
|
177
|
+
getEcsErpCode({ applyType: this.formConfig.props.applyType, belongCompany: this.belongCompany }).then((res) => {
|
|
151
178
|
if (res.code === 200) {
|
|
152
|
-
this.formConfig.props.
|
|
179
|
+
this.formConfig.props.budgetSubjectCode = res.data.budgetSubjectCode
|
|
180
|
+
this.formConfig.props.budgetSubjectName = res.data.budgetSubjectName
|
|
181
|
+
this.formConfig.props.erpBillName = res.data.erpBillName
|
|
182
|
+
this.formConfig.props.erpBillCode = res.data.erpBillCode
|
|
153
183
|
} else {
|
|
154
184
|
this.$message.error(res.msg)
|
|
155
185
|
}
|
|
156
186
|
})
|
|
157
|
-
// this.formConfig.props.yusuankemu = '预算科目'
|
|
158
|
-
// this.formConfig.props.chukuleixing = '预算科目2'
|
|
159
|
-
// this.formConfig.props.yanjiubianhao = '预算科目3'
|
|
160
187
|
}
|
|
161
188
|
}
|
|
162
189
|
}
|
|
@@ -40,7 +40,14 @@
|
|
|
40
40
|
</template>
|
|
41
41
|
<template slot="materialSchemeInfo" slot-scope="{ row }">
|
|
42
42
|
<el-select v-if="!isView" v-model="row.materialAssociatedMotherScheme" placeholder="请选择" @change="(val) => handleChangeScheme(val, row)">
|
|
43
|
-
<el-option
|
|
43
|
+
<el-option
|
|
44
|
+
v-for="item in row.motherSchemeList || []"
|
|
45
|
+
:key="item.materialAssociatedMotherSchemeCode"
|
|
46
|
+
style="width: 100%"
|
|
47
|
+
:label="item.materialAssociatedMotherSchemeName"
|
|
48
|
+
:value="item.materialAssociatedMotherSchemeCode"
|
|
49
|
+
>
|
|
50
|
+
</el-option>
|
|
44
51
|
</el-select>
|
|
45
52
|
<div v-else>{{ row.materialAssociatedMotherSchemeName || '-' }}</div>
|
|
46
53
|
<div v-if="row.materialAssociatedMotherScheme">
|
|
@@ -275,8 +282,12 @@ export default {
|
|
|
275
282
|
methods: {
|
|
276
283
|
getMaterialOtherData() {
|
|
277
284
|
this.tableConfig.data.forEach((item, index) => {
|
|
278
|
-
|
|
279
|
-
|
|
285
|
+
if (!item.hasAddress) {
|
|
286
|
+
this.handleGetMaterialReceivingAddressList(item, index)
|
|
287
|
+
}
|
|
288
|
+
if (this.tableItemArr.includes('materialSchemeInfo') && !item.motherSchemeList) {
|
|
289
|
+
this.handleGetMotherSchemeList(item, index)
|
|
290
|
+
}
|
|
280
291
|
})
|
|
281
292
|
},
|
|
282
293
|
// 获取地址列表
|
|
@@ -303,6 +314,7 @@ export default {
|
|
|
303
314
|
this.tableConfig.data[index].materialReceivingContact = materialReceivingContact
|
|
304
315
|
this.tableConfig.data[index].materialReceivingContactNumber = materialReceivingContactNumber
|
|
305
316
|
this.tableConfig.data[index].materialReceivingProvince = materialReceivingProvince
|
|
317
|
+
this.tableConfig.data[index].hasAddress = true
|
|
306
318
|
}
|
|
307
319
|
})
|
|
308
320
|
},
|
|
@@ -357,14 +369,13 @@ export default {
|
|
|
357
369
|
handleConfirmAddress(data) {
|
|
358
370
|
try {
|
|
359
371
|
this.$set(this.tableConfig.data, this.currentItem.index, data)
|
|
360
|
-
console.log(this.tableConfig.data, 'this.tableConfig.data')
|
|
361
372
|
} catch (error) {
|
|
362
373
|
console.log(error)
|
|
363
374
|
}
|
|
364
375
|
},
|
|
365
376
|
// 选择木方案后把对应的数据写到产品上
|
|
366
377
|
handleChangeScheme(val, row) {
|
|
367
|
-
row.motherSchemeList.forEach(item => {
|
|
378
|
+
row.motherSchemeList.forEach((item) => {
|
|
368
379
|
if (item.materialAssociatedMotherSchemeCode === val) {
|
|
369
380
|
row.materialSchemeRemainingQuantity = item.materialSchemeRemainingQuantity
|
|
370
381
|
row.materialSchemeTotalQuantity = item.materialSchemeTotalQuantity
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
<div class="title-line"></div>
|
|
6
6
|
<p class="title">产品信息</p>
|
|
7
7
|
</div>
|
|
8
|
-
<el-button
|
|
8
|
+
<el-button type="primary" class="add-button" @click="showProductListSelect">
|
|
9
9
|
<i class="el-icon-plus"></i>
|
|
10
10
|
添加
|
|
11
11
|
</el-button>
|
|
12
12
|
</div>
|
|
13
13
|
<ProductList :table-data="tableData" :table-item-arr="tableItemArr" @removeItem="onRemoveItem"></ProductList>
|
|
14
|
-
<SelectProductDialog
|
|
14
|
+
<SelectProductDialog ref="selectProductDialog" @addProduct="addProduct"></SelectProductDialog>
|
|
15
15
|
</div>
|
|
16
16
|
</template>
|
|
17
17
|
|
|
@@ -61,14 +61,6 @@ export default {
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
watch: {
|
|
64
|
-
'formProps.applicationApplyCustomer.accountCode': {
|
|
65
|
-
handler(val) {
|
|
66
|
-
this.showAddButton = val
|
|
67
|
-
},
|
|
68
|
-
deep: true,
|
|
69
|
-
immediate: true
|
|
70
|
-
|
|
71
|
-
}
|
|
72
64
|
},
|
|
73
65
|
created() {
|
|
74
66
|
this.handleTableData()
|