imeik-bizui 0.2.2 → 0.2.4

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.
Files changed (29) hide show
  1. package/dist/bizui/src/FieldAgreementUpload/index.vue +25 -0
  2. package/dist/bizui/src/FieldApplyTypeView/data.js +676 -0
  3. package/dist/bizui/src/FieldApplyTypeView/index.vue +139 -0
  4. package/dist/bizui/src/FieldBatchesDelivery/components/BatchDialog.vue +106 -0
  5. package/dist/bizui/src/FieldBatchesDelivery/components/MaterialList.vue +260 -0
  6. package/dist/bizui/src/FieldBatchesDelivery/components/OrderList.vue +59 -0
  7. package/dist/bizui/src/FieldBatchesDelivery/index.vue +62 -0
  8. package/dist/bizui/src/FieldCardHeader/index.vue +17 -10
  9. package/dist/bizui/src/FieldCompanySelect/index.vue +68 -0
  10. package/dist/bizui/src/FieldContentDescription/index.vue +58 -0
  11. package/dist/bizui/src/FieldCustomSelect/components/CustomSelect.vue +211 -0
  12. package/dist/bizui/src/FieldCustomSelect/components/CustomShow.vue +70 -0
  13. package/dist/bizui/src/FieldCustomSelect/index.vue +96 -0
  14. package/dist/bizui/src/FieldDatePicker/index.vue +184 -0
  15. package/dist/bizui/src/FieldInput/index.vue +4 -0
  16. package/dist/bizui/src/FieldMaterialSelect/components/AddressSelect.vue +201 -0
  17. package/dist/bizui/src/FieldMaterialSelect/components/ProductList.vue +421 -0
  18. package/dist/bizui/src/FieldMaterialSelect/components/SelectProductDialog.vue +239 -0
  19. package/dist/bizui/src/FieldMaterialSelect/index.vue +88 -0
  20. package/dist/bizui/src/FieldSeleceDoctor/index.vue +115 -0
  21. package/dist/imeik-bizui.common.js +4720 -145
  22. package/dist/imeik-bizui.common.js.gz +0 -0
  23. package/dist/imeik-bizui.css +2 -2
  24. package/dist/imeik-bizui.css.gz +0 -0
  25. package/dist/imeik-bizui.umd.js +4720 -145
  26. package/dist/imeik-bizui.umd.js.gz +0 -0
  27. package/dist/imeik-bizui.umd.min.js +12 -12
  28. package/dist/imeik-bizui.umd.min.js.gz +0 -0
  29. package/package.json +1 -1
@@ -0,0 +1,25 @@
1
+ <template>
2
+ <div class="page-view">
3
+ <el-button type="text" class="file-button">下载协议模版</el-button>
4
+ <ImFieldFileUpload v-model="myValue" :attrs="attrs"></ImFieldFileUpload>
5
+ </div>
6
+ </template>
7
+
8
+ <script>
9
+ export default {
10
+ name: '',
11
+ data() {
12
+ return {
13
+ myValue: [],
14
+ attrs: {}
15
+ }
16
+ },
17
+ mounted() {},
18
+ methods: {}
19
+ }
20
+ </script>
21
+ <style lang="scss" scoped>
22
+ .file-button {
23
+ margin-bottom: 10px;
24
+ }
25
+ </style>
@@ -0,0 +1,676 @@
1
+ /**
2
+ * 正式用起来,需要在不同类型的表单页面传进来不同的数据
3
+ * 不同申请类型对应的value值不同。
4
+ * 1: 小样产品临床应用
5
+ * 2: 产品临床应用方案研究
6
+ * 3: 临床科研合作研究
7
+ * 4: 上市后大样本临床研究
8
+ */
9
+ const typeItems = {
10
+ 1: [
11
+ {
12
+ type: 'FieldEmpty',
13
+ span: 18,
14
+ label: '',
15
+ attrs: {
16
+ style: {
17
+ height: '66px'
18
+ }
19
+ }
20
+ },
21
+ {
22
+ type: 'ImInput',
23
+ prop: 'yusuankemu',
24
+ label: '预算科目',
25
+ attrs: {
26
+ disabled: true
27
+ }
28
+ },
29
+ {
30
+ type: 'ImInput',
31
+ prop: 'chukuleixing',
32
+ label: 'ERP出库类型',
33
+ attrs: {
34
+ disabled: true
35
+ }
36
+ },
37
+ {
38
+ type: 'ImInput',
39
+ prop: 'yanjiubianhao',
40
+ label: '上市后临床研究项目编号',
41
+ attrs: {
42
+ disabled: true
43
+ }
44
+ },
45
+ {
46
+ type: 'FieldEmpty',
47
+ span: 6,
48
+ label: '',
49
+ attrs: {
50
+ style: {
51
+ height: '66px'
52
+ }
53
+ }
54
+ },
55
+ {
56
+ type: 'ImSlot',
57
+ prop: 'doctor',
58
+ span: 24,
59
+ label: '医生姓名和职务',
60
+ rules: [{ required: true, message: '请选择医生' }],
61
+ slots: {
62
+ slot: 'selectDoctor'
63
+ }
64
+ },
65
+ {
66
+ type: 'FieldDateSelect',
67
+ prop: 'zhusheshijian',
68
+ label: '计划产品注射日期',
69
+ rules: [{ required: true, message: '请选择计划产品注射日期' }],
70
+ attrs: {
71
+ placeholder: '选择日期',
72
+ style: {
73
+ width: '100%'
74
+ }
75
+ }
76
+ },
77
+ {
78
+ type: 'FieldEmpty',
79
+ span: 18,
80
+ label: '',
81
+ attrs: {
82
+ style: {
83
+ height: '66px'
84
+ }
85
+ }
86
+ },
87
+ {
88
+ type: 'ImInput',
89
+ prop: 'motexinxi',
90
+ label: '模特信息及注射部位',
91
+ rules: [{ required: true, message: '请输入模特信息及注射部位' }],
92
+ attrs: {
93
+ style: {
94
+ width: '100%'
95
+ },
96
+ placeholder: '需包含模特数量,来源(院内/院外),角色'
97
+ }
98
+ },
99
+ {
100
+ type: 'FieldEmpty',
101
+ span: 18,
102
+ label: '',
103
+ attrs: {
104
+ style: {
105
+ height: '66px'
106
+ }
107
+ }
108
+ },
109
+ {
110
+ type: 'FieldDatePicker',
111
+ prop: 'kaishishijian',
112
+ span: 12,
113
+ attrs: {
114
+ labelArray: ['承诺目标开始时间', '承诺目标结束时间']
115
+ }
116
+ },
117
+ {
118
+ type: 'FieldEmpty',
119
+ span: 12,
120
+ label: '',
121
+ attrs: {
122
+ style: {
123
+ height: '66px'
124
+ }
125
+ }
126
+ },
127
+ {
128
+ type: 'ImInput',
129
+ prop: 'goals',
130
+ label: '承诺目标',
131
+ rules: [{ required: true, message: '请输入承诺目标' }],
132
+ attrs: {
133
+ type: 'textarea',
134
+ rows: 4,
135
+ placeholder: '注明:在上述时间断内可完成多少提货'
136
+ }
137
+ }
138
+ ],
139
+ 2: [
140
+ {
141
+ type: 'FieldEmpty',
142
+ span: 18,
143
+ label: '',
144
+ attrs: {
145
+ style: {
146
+ height: '66px'
147
+ }
148
+ }
149
+ },
150
+ {
151
+ type: 'ImInput',
152
+ prop: 'yusuankemu',
153
+ label: '预算科目',
154
+ attrs: {
155
+ disabled: true
156
+ }
157
+ },
158
+ {
159
+ type: 'ImInput',
160
+ prop: 'chukuleixing',
161
+ label: 'ERP出库类型',
162
+ attrs: {
163
+ disabled: true
164
+ }
165
+ },
166
+ {
167
+ type: 'ImInput',
168
+ prop: 'yanjiubianhao',
169
+ label: '上市后临床研究项目编号',
170
+ attrs: {
171
+ disabled: true
172
+ }
173
+ },
174
+ {
175
+ type: 'FieldEmpty',
176
+ span: 6,
177
+ label: '',
178
+ attrs: {
179
+ style: {
180
+ height: '66px'
181
+ }
182
+ }
183
+ },
184
+ {
185
+ type: 'ImInput',
186
+ prop: 'xaungmumingcheng',
187
+ rules: [{ required: true, message: '请输入项目名称' }],
188
+ label: '项目名称',
189
+ attrs: {
190
+ placeholder: '即方案名称:例如濡白天使软型号产品验证方'
191
+ }
192
+ },
193
+ {
194
+ type: 'FieldEmpty',
195
+ span: 18,
196
+ label: '',
197
+ attrs: {
198
+ style: {
199
+ height: '66px'
200
+ }
201
+ }
202
+ },
203
+ {
204
+ type: 'ImRadio',
205
+ prop: 'yanjiu',
206
+ label: '研究方案是否通过公司领导层审核',
207
+ rules: [{ required: true, message: '请选择研究方案是否通过公司领导层审核' }],
208
+ attrs: {
209
+ style: {
210
+ width: '100%'
211
+ },
212
+ options: [
213
+ {
214
+ label: '是',
215
+ value: '是'
216
+ },
217
+ {
218
+ label: '否',
219
+ value: '否'
220
+ },
221
+ {
222
+ label: '不适用',
223
+ value: '不适用'
224
+ }
225
+ ]
226
+ }
227
+ },
228
+ {
229
+ type: 'ImRadio',
230
+ prop: 'qianshu',
231
+ label: '是否签署合作协议或技术服务合同',
232
+ rules: [{ required: true, message: '请选择是否签署合作协议或技术服务合同' }],
233
+ attrs: {
234
+ style: {
235
+ width: '100%'
236
+ },
237
+ options: [
238
+ {
239
+ label: '是',
240
+ value: '是'
241
+ },
242
+ {
243
+ label: '否',
244
+ value: '否'
245
+ },
246
+ {
247
+ label: '不适用',
248
+ value: '不适用'
249
+ }
250
+ ]
251
+ }
252
+ },
253
+ {
254
+ type: 'ImRadio',
255
+ prop: 'jigou',
256
+ label: '是否需要机构伦理委员会审批及审批结果',
257
+ rules: [{ required: true, message: '请选择是否需要机构伦理委员会审批及审批结果' }],
258
+ attrs: {
259
+ style: {
260
+ width: '100%'
261
+ },
262
+ options: [
263
+ {
264
+ label: '是',
265
+ value: '是'
266
+ },
267
+ {
268
+ label: '否',
269
+ value: '否'
270
+ },
271
+ {
272
+ label: '不适用',
273
+ value: '不适用'
274
+ }
275
+ ]
276
+ }
277
+ },
278
+ {
279
+ type: 'FieldEmpty',
280
+ span: 6,
281
+ label: '',
282
+ attrs: {
283
+ style: {
284
+ height: '66px'
285
+ }
286
+ }
287
+ },
288
+ {
289
+ type: 'ImInput',
290
+ prop: 'zhouqi',
291
+ label: '研究周期与预期成果',
292
+ rules: [{ required: true, message: '请输入研究周期与预期成果' }],
293
+ attrs: {
294
+ style: {
295
+ width: '100%'
296
+ },
297
+ type: 'textarea',
298
+ rows: 4,
299
+ placeholder: '举例:收集受试者灯**例,术前术后照片等'
300
+ }
301
+ }
302
+ ],
303
+ 3: [
304
+ {
305
+ type: 'FieldEmpty',
306
+ span: 18,
307
+ label: '',
308
+ attrs: {
309
+ style: {
310
+ height: '66px'
311
+ }
312
+ }
313
+ },
314
+ {
315
+ type: 'ImInput',
316
+ prop: 'yusuankemu',
317
+ label: '预算科目',
318
+ attrs: {
319
+ disabled: true
320
+ }
321
+ },
322
+ {
323
+ type: 'ImInput',
324
+ prop: 'chukuleixing',
325
+ label: 'ERP出库类型',
326
+ attrs: {
327
+ disabled: true
328
+ }
329
+ },
330
+ {
331
+ type: 'ImInput',
332
+ prop: 'yanjiubianhao',
333
+ label: '上市后临床研究项目编号',
334
+ attrs: {
335
+ disabled: true
336
+ }
337
+ },
338
+ {
339
+ type: 'FieldEmpty',
340
+ span: 6,
341
+ label: '',
342
+ attrs: {
343
+ style: {
344
+ height: '66px'
345
+ }
346
+ }
347
+ },
348
+ {
349
+ type: 'ImInput',
350
+ prop: 'xaungmumingcheng',
351
+ rules: [{ required: true, message: '请输入项目名称' }],
352
+ label: '项目名称',
353
+ attrs: {
354
+ placeholder: '即方案名称:例如濡白天使软型号产品验证方案【本方案必须石总审批后的】'
355
+ }
356
+ },
357
+ {
358
+ type: 'FieldEmpty',
359
+ span: 18,
360
+ label: '',
361
+ attrs: {
362
+ style: {
363
+ height: '66px'
364
+ }
365
+ }
366
+ },
367
+ {
368
+ type: 'ImRadio',
369
+ prop: 'yanjiu',
370
+ label: '研究方案是否通过公司领导层审核',
371
+ rules: [{ required: true, message: '请选择研究方案是否通过公司领导层审核' }],
372
+ attrs: {
373
+ style: {
374
+ width: '100%'
375
+ },
376
+ options: [
377
+ {
378
+ label: '是',
379
+ value: '是'
380
+ },
381
+ {
382
+ label: '否',
383
+ value: '否'
384
+ },
385
+ {
386
+ label: '不适用',
387
+ value: '不适用'
388
+ }
389
+ ]
390
+ }
391
+ },
392
+ {
393
+ type: 'ImRadio',
394
+ prop: 'qianshu',
395
+ label: '是否签署合作协议或技术服务合同',
396
+ rules: [{ required: true, message: '请选择是否签署合作协议或技术服务合同' }],
397
+ attrs: {
398
+ style: {
399
+ width: '100%'
400
+ },
401
+ options: [
402
+ {
403
+ label: '是',
404
+ value: '是'
405
+ },
406
+ {
407
+ label: '否',
408
+ value: '否'
409
+ },
410
+ {
411
+ label: '不适用',
412
+ value: '不适用'
413
+ }
414
+ ]
415
+ }
416
+ },
417
+ {
418
+ type: 'ImRadio',
419
+ prop: 'jigou',
420
+ label: '是否需要机构伦理委员会审批及审批结果',
421
+ rules: [{ required: true, message: '请选择是否需要机构伦理委员会审批及审批结果' }],
422
+ attrs: {
423
+ style: {
424
+ width: '100%'
425
+ },
426
+ options: [
427
+ {
428
+ label: '是',
429
+ value: '是'
430
+ },
431
+ {
432
+ label: '否',
433
+ value: '否'
434
+ },
435
+ {
436
+ label: '不适用',
437
+ value: '不适用'
438
+ }
439
+ ]
440
+ }
441
+ },
442
+ {
443
+ type: 'FieldEmpty',
444
+ span: 6,
445
+ label: '',
446
+ attrs: {
447
+ style: {
448
+ height: '66px'
449
+ }
450
+ }
451
+ },
452
+ {
453
+ type: 'ImInput',
454
+ prop: 'zhouqi',
455
+ label: '研究周期与预期成果',
456
+ rules: [{ required: true, message: '请输入研究周期与预期成果' }],
457
+ attrs: {
458
+ style: {
459
+ width: '100%'
460
+ },
461
+ type: 'textarea',
462
+ rows: 4,
463
+ placeholder: '举例:收集受试者灯**例,术前术后照片等'
464
+ }
465
+ }
466
+ ],
467
+ 4: [
468
+ {
469
+ type: 'FieldEmpty',
470
+ span: 18,
471
+ label: '',
472
+ attrs: {
473
+ style: {
474
+ height: '66px'
475
+ }
476
+ }
477
+ },
478
+ {
479
+ type: 'ImInput',
480
+ prop: 'yusuankemu',
481
+ label: '预算科目',
482
+ attrs: {
483
+ disabled: true
484
+ }
485
+ },
486
+ {
487
+ type: 'ImInput',
488
+ prop: 'chukuleixing',
489
+ label: 'ERP出库类型',
490
+ attrs: {
491
+ disabled: true
492
+ }
493
+ },
494
+ {
495
+ type: 'ImInput',
496
+ prop: 'yanjiubianhao',
497
+ label: '上市后临床研究项目编号',
498
+ attrs: {
499
+ disabled: true
500
+ }
501
+ },
502
+ {
503
+ type: 'FieldEmpty',
504
+ span: 6,
505
+ label: '',
506
+ attrs: {
507
+ style: {
508
+ height: '66px'
509
+ }
510
+ }
511
+ },
512
+ {
513
+ type: 'ImInput',
514
+ prop: 'xaungmumingcheng',
515
+ rules: [{ required: true, message: '请输入项目名称' }],
516
+ label: '项目名称',
517
+ attrs: {
518
+ placeholder: '即方案名称:例如濡白天使软型号产品验证方案【本方案必须石总审批后的】'
519
+ }
520
+ },
521
+ {
522
+ type: 'FieldEmpty',
523
+ span: 18,
524
+ label: '',
525
+ attrs: {
526
+ style: {
527
+ height: '66px'
528
+ }
529
+ }
530
+ },
531
+ {
532
+ type: 'ImRadio',
533
+ prop: 'yanjiu',
534
+ label: '研究方案是否通过公司领导层审核',
535
+ rules: [{ required: true, message: '请选择研究方案是否通过公司领导层审核' }],
536
+ attrs: {
537
+ style: {
538
+ width: '100%'
539
+ },
540
+ options: [
541
+ {
542
+ label: '是',
543
+ value: '是'
544
+ },
545
+ {
546
+ label: '否',
547
+ value: '否'
548
+ },
549
+ {
550
+ label: '不适用',
551
+ value: '不适用'
552
+ }
553
+ ]
554
+ }
555
+ },
556
+ {
557
+ type: 'ImRadio',
558
+ prop: 'qianshu',
559
+ label: '是否签署合作协议或技术服务合同',
560
+ rules: [{ required: true, message: '请选择是否签署合作协议或技术服务合同' }],
561
+ attrs: {
562
+ style: {
563
+ width: '100%'
564
+ },
565
+ options: [
566
+ {
567
+ label: '是',
568
+ value: '是'
569
+ },
570
+ {
571
+ label: '否',
572
+ value: '否'
573
+ },
574
+ {
575
+ label: '不适用',
576
+ value: '不适用'
577
+ }
578
+ ]
579
+ }
580
+ },
581
+ {
582
+ type: 'ImRadio',
583
+ prop: 'jigou',
584
+ label: '是否需要机构伦理委员会审批及审批结果',
585
+ rules: [{ required: true, message: '请选择是否需要机构伦理委员会审批及审批结果' }],
586
+ attrs: {
587
+ style: {
588
+ width: '100%'
589
+ },
590
+ options: [
591
+ {
592
+ label: '是',
593
+ value: '是'
594
+ },
595
+ {
596
+ label: '否',
597
+ value: '否'
598
+ },
599
+ {
600
+ label: '不适用',
601
+ value: '不适用'
602
+ }
603
+ ]
604
+ }
605
+ },
606
+ {
607
+ type: 'FieldEmpty',
608
+ span: 6,
609
+ label: '',
610
+ attrs: {
611
+ style: {
612
+ height: '66px'
613
+ }
614
+ }
615
+ },
616
+ {
617
+ type: 'ImInput',
618
+ prop: 'fuzeren',
619
+ label: '爱美客研究负责人',
620
+ attrs: {
621
+ style: {
622
+ width: '100%'
623
+ }
624
+ }
625
+ },
626
+ {
627
+ type: 'FieldEmpty',
628
+ span: 18,
629
+ label: '',
630
+ attrs: {
631
+ style: {
632
+ height: '66px'
633
+ }
634
+ }
635
+ },
636
+ {
637
+ type: 'ImInput',
638
+ prop: 'zhouqi',
639
+ label: '研究周期与预期成果',
640
+ rules: [{ required: true, message: '请输入研究周期与预期成果' }],
641
+ attrs: {
642
+ style: {
643
+ width: '100%'
644
+ },
645
+ type: 'textarea',
646
+ rows: 4,
647
+ placeholder: '举例:收集受试者灯**例,术前术后照片等'
648
+ }
649
+ }
650
+ ]
651
+ }
652
+ export const getTypeItems = (type, isView = true) => {
653
+ if (!typeItems[type]) {
654
+ console.warn(`申请类型不能为空: ${type}`)
655
+ return []
656
+ }
657
+
658
+ try {
659
+ return typeItems[type].map((item) => {
660
+ const newItem = { ...item }
661
+ newItem.attrs = {
662
+ ...newItem.attrs,
663
+ isView
664
+ }
665
+
666
+ if (item.rules && isView) {
667
+ item.rules.forEach((rule) => (rule.required ? (rule.required = false) : null))
668
+ }
669
+
670
+ return newItem
671
+ })
672
+ } catch (e) {
673
+ console.error('获取申请类型子项错误:', e)
674
+ return []
675
+ }
676
+ }