meixioacomponent 0.4.2 → 0.4.6
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/lib/meixioacomponent.common.js +16241 -19856
- package/lib/meixioacomponent.umd.js +16353 -19968
- package/lib/meixioacomponent.umd.min.js +33 -34
- package/lib/style/element/index.css +1182 -1153
- package/lib/style/theme/light.less +5 -4
- package/package.json +2 -2
- package/packages/components/base/baseCropper/index.vue +2 -1
- package/packages/components/base/baseDialog/index.vue +13 -7
- package/packages/components/base/baseDrawer/index.vue +5 -2
- package/packages/components/base/baseIcon/index.vue +1 -2
- package/packages/components/base/baseList/index.js +6 -0
- package/packages/components/base/baseList/index.vue +48 -0
- package/packages/components/base/baseList/scrollbar/index.js +8 -0
- package/packages/components/base/baseList/scrollbar/src/bar.js +92 -0
- package/packages/components/base/baseList/scrollbar/src/main.js +150 -0
- package/packages/components/base/baseList/scrollbar/src/util.js +34 -0
- package/packages/components/base/baseNumberInput/index.js +6 -0
- package/packages/components/base/baseNumberInput/index.vue +191 -0
- package/packages/components/base/basePlainTable/basePlainTable.vue +78 -12
- package/packages/components/base/basePopoverButton/index.vue +1 -1
- package/packages/components/base/baseSection/baseSection.vue +24 -11
- package/packages/components/base/baseSingleImgUpload/index.js +6 -0
- package/packages/components/base/baseSingleImgUpload/index.vue +147 -0
- package/packages/components/base/baseStoreSelect/index.js +6 -0
- package/packages/components/base/baseStoreSelect/index.vue +159 -0
- package/packages/components/base/baseToggle/toggle.vue +22 -3
- package/packages/components/base/baseTreeSelect/index.vue +7 -1
- package/packages/components/base/baseUpload/baseUpload.vue +23 -0
- package/packages/components/base/baseUpload/baseUploadItem.vue +2 -3
- package/packages/components/base/baseUpload/mixins.js +12 -2
- package/packages/components/base/baseUploadTemplate/index.vue +19 -3
- package/packages/components/base/upload/upload.vue +36 -13
- package/packages/components/base/upload/uploadItem.vue +40 -17
- package/packages/components/dynamicmount/index.js +30 -29
- package/packages/components/index.js +19 -2
- package/packages/components/proForm/dialogForm/baseDialogForm.vue +29 -19
- package/packages/components/proForm/proForm/proFormItem/index.js +6 -0
- package/packages/components/proForm/proForm/{pro_form_item.vue → proFormItem/pro_form_item.vue} +161 -99
- package/packages/components/proForm/proForm/pro_form.vue +70 -16
- package/packages/components/proForm/proFormWrap/pro_form_wrap.vue +70 -28
- package/packages/components/proPageTable/oa_pro_colum_config.vue +24 -28
- package/packages/components/proPageTable/oa_pro_footer.vue +12 -10
- package/packages/components/proPageTable/oa_pro_screen.vue +1 -0
- package/packages/components/proPageTable/oa_pro_screen_item.vue +6 -6
- package/packages/components/proPageTable/oa_pro_table.vue +44 -20
- package/packages/components/style/element/index.css +1182 -1153
- package/packages/components/style/theme/light.less +5 -4
- package/packages/config/selectStore/SelectStore.js +26 -17
- package/packages/config/uploadRequest.js +1 -0
- package/packages/utils/upload.js +22 -21
- package/packages/utils/utils.js +110 -111
- package/src/App.vue +9 -14
- package/src/component/test.vue +333 -233
- package/src/component/testSelectStore.js +25 -13
- package/src/config/CompanyInfoConfig.js +4 -2
- package/packages/components/base/brieflyItem.vue +0 -198
package/src/component/test.vue
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
:isCache="true"
|
|
7
7
|
:isDestroy="true"
|
|
8
8
|
:appendToBody="true"
|
|
9
|
-
:contentHeight="`
|
|
9
|
+
:contentHeight="`500px`"
|
|
10
10
|
@destroy="destroy"
|
|
11
11
|
>
|
|
12
12
|
<div class="dialog-content" slot="dialog-content">
|
|
@@ -151,7 +151,7 @@ export default {
|
|
|
151
151
|
<style lang="less" scoped>
|
|
152
152
|
.verify-email-wrap {
|
|
153
153
|
width: 100%;
|
|
154
|
-
height:
|
|
154
|
+
height: 10000px;
|
|
155
155
|
|
|
156
156
|
.des-text {
|
|
157
157
|
display: inline-block;
|
|
@@ -405,17 +405,22 @@ export default {
|
|
|
405
405
|
/* 高级筛选的配置 */
|
|
406
406
|
proScreenConfig: [
|
|
407
407
|
{
|
|
408
|
-
key: '
|
|
408
|
+
key: 'postCode',
|
|
409
409
|
value: '',
|
|
410
410
|
type: 'time',
|
|
411
411
|
},
|
|
412
412
|
{
|
|
413
|
-
key: '
|
|
413
|
+
key: 'postName',
|
|
414
414
|
value: '',
|
|
415
415
|
type: 'input',
|
|
416
416
|
},
|
|
417
417
|
{
|
|
418
|
-
key: '
|
|
418
|
+
key: 'postSort',
|
|
419
|
+
value: '',
|
|
420
|
+
type: 'input',
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
key: 'state',
|
|
419
424
|
value: '',
|
|
420
425
|
type: 'select',
|
|
421
426
|
selectList: [
|
|
@@ -474,6 +479,7 @@ export default {
|
|
|
474
479
|
lock: false,
|
|
475
480
|
width: 10,
|
|
476
481
|
template: false,
|
|
482
|
+
type:'time'
|
|
477
483
|
},
|
|
478
484
|
{
|
|
479
485
|
label: '创建时间',
|
|
@@ -551,305 +557,384 @@ export default {
|
|
|
551
557
|
:labelWidth="`150px`"
|
|
552
558
|
:rulesList="rulesList"
|
|
553
559
|
v-model="formArray"
|
|
554
|
-
:disables="disables"
|
|
555
560
|
:modallAppendToBody="false"
|
|
556
561
|
:footerHandleConfig="footerHandleConfig"
|
|
557
|
-
|
|
562
|
+
>
|
|
563
|
+
``
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
</base-dialog-form>
|
|
558
567
|
</template>
|
|
559
568
|
|
|
560
569
|
<script>
|
|
570
|
+
import { get } from 'http'
|
|
571
|
+
|
|
561
572
|
export default {
|
|
562
573
|
data() {
|
|
563
574
|
return {
|
|
564
|
-
|
|
565
|
-
|
|
575
|
+
rulesList: {},
|
|
576
|
+
footerHandleConfig: [],
|
|
577
|
+
basicsMessageData: {},
|
|
578
|
+
configurationData: {},
|
|
579
|
+
configCententData: {},
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
|
|
583
|
+
created() {
|
|
584
|
+
//
|
|
585
|
+
|
|
586
|
+
this.basicsMessageData = {
|
|
587
|
+
key: 'basicsMessage',
|
|
588
|
+
formTitle: '基础信息',
|
|
589
|
+
formList: [
|
|
566
590
|
{
|
|
567
|
-
key:
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
disabled: false,
|
|
616
|
-
label: "预计成交日期",
|
|
617
|
-
},
|
|
618
|
-
{
|
|
619
|
-
value: "",
|
|
620
|
-
key: "test5",
|
|
621
|
-
type: "time",
|
|
622
|
-
disabled: false,
|
|
623
|
-
label: "下次联系时间",
|
|
624
|
-
},
|
|
625
|
-
{
|
|
626
|
-
value: [2],
|
|
627
|
-
key: "test6",
|
|
628
|
-
type: "select",
|
|
629
|
-
disabled: false,
|
|
630
|
-
label: "商机状态组",
|
|
631
|
-
multipleLimit: 2,
|
|
632
|
-
useStore: "testSelectStore",
|
|
633
|
-
},
|
|
634
|
-
{
|
|
635
|
-
value: 2,
|
|
636
|
-
key: "test7",
|
|
637
|
-
type: "select",
|
|
638
|
-
disabled: false,
|
|
639
|
-
label: "商机阶段",
|
|
640
|
-
useStore: "testSelectStore",
|
|
641
|
-
},
|
|
642
|
-
{
|
|
643
|
-
value: "",
|
|
644
|
-
key: "test8",
|
|
645
|
-
type: "textarea",
|
|
646
|
-
disabled: false,
|
|
647
|
-
label: "备注",
|
|
648
|
-
},
|
|
591
|
+
key: 'type',
|
|
592
|
+
type: 'numberUnit',
|
|
593
|
+
label: '通知类型',
|
|
594
|
+
value: '',
|
|
595
|
+
linkKey: 'businessType',
|
|
596
|
+
useStore: 'testSelectStore',
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
key: 'businessType',
|
|
600
|
+
type: 'template',
|
|
601
|
+
value: 1,
|
|
602
|
+
hide: true,
|
|
603
|
+
label: '系统通知类型',
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
key: 'title',
|
|
607
|
+
type: 'input',
|
|
608
|
+
value: null,
|
|
609
|
+
label: '公告标题',
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
key: 'sendTime',
|
|
613
|
+
type: 'daterange',
|
|
614
|
+
value: [1663424003, 1663424003],
|
|
615
|
+
label: '发送时间',
|
|
616
|
+
},
|
|
617
|
+
|
|
618
|
+
{
|
|
619
|
+
key: 'popupEndTime',
|
|
620
|
+
type: 'datetime',
|
|
621
|
+
value: 1663424003,
|
|
622
|
+
label: '弹窗失效时间',
|
|
623
|
+
},
|
|
624
|
+
],
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
this.configurationData = {
|
|
628
|
+
key: 'configuration',
|
|
629
|
+
formTitle: '公告配置',
|
|
630
|
+
formList: [
|
|
631
|
+
{
|
|
632
|
+
key: 'isTop',
|
|
633
|
+
type: 'radio',
|
|
634
|
+
label: '是否置顶公告',
|
|
635
|
+
value: 0,
|
|
636
|
+
list: [
|
|
637
|
+
{ label: '否', value: 0 },
|
|
638
|
+
{ label: '是', value: 1 },
|
|
649
639
|
],
|
|
650
640
|
},
|
|
651
641
|
{
|
|
652
|
-
key:
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
disabled: true,
|
|
660
|
-
label: "商机名称",
|
|
661
|
-
},
|
|
662
|
-
{
|
|
663
|
-
key: "test2",
|
|
664
|
-
type: "input",
|
|
665
|
-
disabled: false,
|
|
666
|
-
label: "客户名称",
|
|
667
|
-
value: "河南郑州建设股份有限公司 ",
|
|
668
|
-
click: (formItem) => {
|
|
669
|
-
console.log(formItem);
|
|
670
|
-
},
|
|
671
|
-
},
|
|
672
|
-
{
|
|
673
|
-
key: "test3",
|
|
674
|
-
type: "input",
|
|
675
|
-
disabled: false,
|
|
676
|
-
value: 17490,
|
|
677
|
-
color: "warn",
|
|
678
|
-
label: "商机金额",
|
|
679
|
-
},
|
|
680
|
-
{
|
|
681
|
-
value: "",
|
|
682
|
-
key: "test4",
|
|
683
|
-
type: "time",
|
|
684
|
-
disabled: false,
|
|
685
|
-
label: "预计成交日期",
|
|
686
|
-
},
|
|
687
|
-
{
|
|
688
|
-
value: "",
|
|
689
|
-
key: "test5",
|
|
690
|
-
type: "time",
|
|
691
|
-
disabled: false,
|
|
692
|
-
label: "下次联系时间",
|
|
693
|
-
},
|
|
694
|
-
{
|
|
695
|
-
value: [2],
|
|
696
|
-
key: "test6",
|
|
697
|
-
type: "select",
|
|
698
|
-
disabled: false,
|
|
699
|
-
label: "商机状态组",
|
|
700
|
-
multipleLimit: 2,
|
|
701
|
-
useStore: "testSelectStore",
|
|
702
|
-
},
|
|
703
|
-
{
|
|
704
|
-
value: 2,
|
|
705
|
-
key: "test7",
|
|
706
|
-
type: "select",
|
|
707
|
-
disabled: false,
|
|
708
|
-
label: "商机阶段",
|
|
709
|
-
useStore: "testSelectStore",
|
|
710
|
-
},
|
|
711
|
-
{
|
|
712
|
-
value: "",
|
|
713
|
-
key: "test8",
|
|
714
|
-
type: "textarea",
|
|
715
|
-
disabled: false,
|
|
716
|
-
label: "备注",
|
|
717
|
-
},
|
|
642
|
+
key: 'isPopup',
|
|
643
|
+
type: 'radio',
|
|
644
|
+
value: 1,
|
|
645
|
+
label: '是否弹窗展示',
|
|
646
|
+
list: [
|
|
647
|
+
{ label: '否', value: 0 },
|
|
648
|
+
{ label: '是', value: 1 },
|
|
718
649
|
],
|
|
719
650
|
},
|
|
720
651
|
{
|
|
721
|
-
key:
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
{
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
652
|
+
key: 'sendType',
|
|
653
|
+
type: 'radio',
|
|
654
|
+
value: 1,
|
|
655
|
+
label: '是否定时发送',
|
|
656
|
+
list: [
|
|
657
|
+
{ label: '否', value: 0 },
|
|
658
|
+
{ label: '是', value: 1 },
|
|
659
|
+
],
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
key: 'messageType',
|
|
663
|
+
type: 'radio',
|
|
664
|
+
value: 1,
|
|
665
|
+
label: '通知范围',
|
|
666
|
+
list: [
|
|
667
|
+
{ label: '全部通知', value: 0 },
|
|
668
|
+
{ label: '部分通知', value: 1 },
|
|
731
669
|
],
|
|
732
670
|
},
|
|
733
671
|
],
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
// this.disables = {
|
|
675
|
+
// sendType: {
|
|
676
|
+
// effects: [
|
|
677
|
+
// {
|
|
678
|
+
// key: 'sendTime',
|
|
679
|
+
// type: 'hide',
|
|
680
|
+
// fn: (val) => {
|
|
681
|
+
// console.log(val)
|
|
682
|
+
// },
|
|
683
|
+
// },
|
|
684
|
+
// ],
|
|
685
|
+
// },
|
|
686
|
+
// messageType: {
|
|
687
|
+
// effects: [
|
|
688
|
+
// {
|
|
689
|
+
// key: 'sendScoped',
|
|
690
|
+
// type: 'hide',
|
|
691
|
+
// fn: (val) => {
|
|
692
|
+
// console.log(val)
|
|
693
|
+
// },
|
|
694
|
+
// },
|
|
695
|
+
// ],
|
|
696
|
+
// },
|
|
697
|
+
// type: {
|
|
698
|
+
// effects: [
|
|
699
|
+
// {
|
|
700
|
+
// key: 'isPopup',
|
|
701
|
+
// type: 'hide',
|
|
702
|
+
// fn: (val) => {
|
|
703
|
+
// console.log(val)
|
|
704
|
+
// },
|
|
705
|
+
// },
|
|
706
|
+
// {
|
|
707
|
+
// key: 'isTop',
|
|
708
|
+
// type: 'hide',
|
|
709
|
+
// fn: (val) => {
|
|
710
|
+
// console.log(val)
|
|
711
|
+
// },
|
|
712
|
+
// },
|
|
713
|
+
// {
|
|
714
|
+
// key: 'businessType',
|
|
715
|
+
// type: 'hide',
|
|
716
|
+
// fn: (val) => {
|
|
717
|
+
// console.log(val)
|
|
718
|
+
// },
|
|
719
|
+
// },
|
|
720
|
+
// {
|
|
721
|
+
// key: 'popupEndTime',
|
|
722
|
+
// type: 'hide',
|
|
723
|
+
// fn: (val) => {
|
|
724
|
+
// return val == 0
|
|
725
|
+
// },
|
|
726
|
+
// },
|
|
727
|
+
// ],
|
|
728
|
+
// },
|
|
729
|
+
// isPopup: {
|
|
730
|
+
// effects: [
|
|
731
|
+
// {
|
|
732
|
+
// key: 'popupEndTime',
|
|
733
|
+
// type: 'hide',
|
|
734
|
+
// fn: (val) => {
|
|
735
|
+
// return val == 0
|
|
736
|
+
// },
|
|
737
|
+
// },
|
|
738
|
+
// ],
|
|
739
|
+
// },
|
|
740
|
+
// }
|
|
739
741
|
|
|
740
|
-
created() {
|
|
741
|
-
//
|
|
742
|
-
this.disables = {
|
|
743
|
-
test9: {
|
|
744
|
-
effects: [
|
|
745
|
-
{
|
|
746
|
-
key: "test1",
|
|
747
|
-
type: "hide",
|
|
748
|
-
fn: this.hideMenuTypeOfButton,
|
|
749
|
-
},
|
|
750
|
-
],
|
|
751
|
-
},
|
|
752
|
-
};
|
|
753
742
|
this.footerHandleConfig = [
|
|
754
743
|
{
|
|
755
|
-
text:
|
|
756
|
-
type:
|
|
744
|
+
text: '取消',
|
|
745
|
+
type: 'info',
|
|
757
746
|
plain: true,
|
|
758
747
|
click: () => {
|
|
759
748
|
// this.dialogProscreenConfirm(false);
|
|
760
|
-
this.$destroy()
|
|
749
|
+
this.$destroy()
|
|
761
750
|
},
|
|
762
751
|
},
|
|
763
752
|
{
|
|
764
|
-
text:
|
|
765
|
-
type:
|
|
753
|
+
text: '确定',
|
|
754
|
+
type: 'primary',
|
|
766
755
|
plain: false,
|
|
767
756
|
click: async () => {
|
|
768
757
|
// this.dialogProscreenConfirm(true);
|
|
769
|
-
let result = await this.$refs.dialogFormVue.checkValidate()
|
|
758
|
+
let result = await this.$refs.dialogFormVue.checkValidate()
|
|
770
759
|
if (result) {
|
|
771
|
-
console.log(this.$refs.dialogFormVue.getFormValue())
|
|
760
|
+
console.log(this.$refs.dialogFormVue.getFormValue())
|
|
772
761
|
}
|
|
773
762
|
},
|
|
774
763
|
},
|
|
775
|
-
]
|
|
764
|
+
]
|
|
776
765
|
|
|
777
766
|
this.rulesList = {
|
|
778
767
|
test1: {
|
|
779
|
-
test1: [{ required: true, message:
|
|
780
|
-
test2: [{ required: true, message:
|
|
781
|
-
test3: [{ required: true, message:
|
|
782
|
-
test4: [{ required: true, message:
|
|
783
|
-
test5: [{ required: true, message:
|
|
784
|
-
test9: [{ required: true, message:
|
|
768
|
+
test1: [{ required: true, message: '请输入活动名称', trigger: 'blur' }],
|
|
769
|
+
test2: [{ required: true, message: '请输入活动名称', trigger: 'blur' }],
|
|
770
|
+
test3: [{ required: true, message: '请输入活动名称', trigger: 'blur' }],
|
|
771
|
+
test4: [{ required: true, message: '请输入活动名称', trigger: 'blur' }],
|
|
772
|
+
test5: [{ required: true, message: '请输入活动名称', trigger: 'blur' }],
|
|
773
|
+
test9: [{ required: true, message: '请输入活动名称', trigger: 'blur' }],
|
|
785
774
|
},
|
|
786
|
-
}
|
|
775
|
+
}
|
|
787
776
|
},
|
|
788
777
|
mounted() {
|
|
789
|
-
this.$refs.dialogFormVue.showDialog()
|
|
778
|
+
this.$refs.dialogFormVue.showDialog()
|
|
779
|
+
},
|
|
780
|
+
computed: {
|
|
781
|
+
formArray() {
|
|
782
|
+
return [this.configurationData, this.basicsMessageData]
|
|
783
|
+
},
|
|
784
|
+
formValue() {
|
|
785
|
+
const refs = this.$refs.dialogFormVue
|
|
786
|
+
if (refs) {
|
|
787
|
+
return refs.getFormValue()
|
|
788
|
+
}
|
|
789
|
+
},
|
|
790
|
+
|
|
791
|
+
params() {
|
|
792
|
+
if (this.basicsMessageData.formList) {
|
|
793
|
+
return this.formArray[1].formList[1].value
|
|
794
|
+
}
|
|
795
|
+
return 'sda'
|
|
796
|
+
},
|
|
790
797
|
},
|
|
791
798
|
components: {},
|
|
792
799
|
props: { index: {} },
|
|
793
800
|
methods: {
|
|
794
|
-
|
|
795
|
-
|
|
801
|
+
test() {
|
|
802
|
+
console.log(this.formValue)
|
|
796
803
|
},
|
|
797
804
|
},
|
|
798
|
-
|
|
805
|
+
watch: {
|
|
806
|
+
params(newVal, oldVal) {
|
|
807
|
+
this.formArray[1].formList[0].params = newVal
|
|
808
|
+
},
|
|
809
|
+
},
|
|
810
|
+
}
|
|
799
811
|
</script>
|
|
800
812
|
|
|
801
813
|
<style></style> -->
|
|
802
814
|
|
|
803
815
|
<!-- <template>
|
|
804
|
-
<
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
816
|
+
<div>
|
|
817
|
+
<base-form-wrap
|
|
818
|
+
:rowNumber="2"
|
|
819
|
+
:form="true"
|
|
820
|
+
:disabled="false"
|
|
821
|
+
:labelWidth="`155px`"
|
|
822
|
+
ref="businessBaseForm"
|
|
823
|
+
:formTitle="`dsada`"
|
|
824
|
+
:formList="formList"
|
|
825
|
+
:rules="rules"
|
|
826
|
+
:disables="disables"
|
|
827
|
+
>
|
|
828
|
+
<template v-slot:formslot-goodsExpirationDate="data">
|
|
829
|
+
<el-button type="primary"></el-button>
|
|
830
|
+
</template>
|
|
831
|
+
</base-form-wrap>
|
|
832
|
+
</div>
|
|
812
833
|
</template>
|
|
813
834
|
|
|
814
835
|
<script>
|
|
836
|
+
import baseUpload from '../../packages/components/base/baseUpload/baseUpload.vue'
|
|
815
837
|
export default {
|
|
838
|
+
components: { baseUpload },
|
|
816
839
|
data() {
|
|
817
840
|
return {
|
|
818
|
-
|
|
841
|
+
fileList: [
|
|
819
842
|
{
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
type: 'input',
|
|
823
|
-
label: '法人名称',
|
|
843
|
+
url: 'https://t7.baidu.com/it/u=4162611394,4275913936&fm=193&f=GIF',
|
|
844
|
+
file: null,
|
|
824
845
|
},
|
|
825
846
|
{
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
label: '法人身份证',
|
|
847
|
+
url:
|
|
848
|
+
'https://img.alicdn.com/imgextra/i4/O1CN01aG16y424E11XsURUd_!!6000000007358-2-tps-206-240.png',
|
|
849
|
+
file: null,
|
|
830
850
|
},
|
|
851
|
+
],
|
|
852
|
+
formList: [
|
|
831
853
|
{
|
|
832
|
-
value: 1,
|
|
833
|
-
key: '
|
|
834
|
-
type: '
|
|
854
|
+
value: '1',
|
|
855
|
+
key: 'inds',
|
|
856
|
+
type: 'radio',
|
|
857
|
+
label: '营业执照号',
|
|
858
|
+
list: [
|
|
859
|
+
{ label: 'aa', value: '1' },
|
|
860
|
+
{ label: 'bb', value: '2' },
|
|
861
|
+
],
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
value: '',
|
|
865
|
+
key: 'indsg',
|
|
866
|
+
unit: 't',
|
|
867
|
+
type: 'number2',
|
|
835
868
|
label: '营业执照号',
|
|
836
|
-
useStore: 'testSelectStore',
|
|
837
869
|
},
|
|
870
|
+
|
|
838
871
|
{
|
|
839
|
-
value: '
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
label: '
|
|
872
|
+
value: '',
|
|
873
|
+
type: 'number',
|
|
874
|
+
unit: '天',
|
|
875
|
+
label: '产品保质期',
|
|
876
|
+
disabled: false,
|
|
877
|
+
key: 'goodsExpirationDate',
|
|
843
878
|
},
|
|
844
879
|
],
|
|
880
|
+
|
|
881
|
+
rules: {
|
|
882
|
+
inds: [
|
|
883
|
+
{
|
|
884
|
+
required: true,
|
|
885
|
+
message: '请上传组合产品主图',
|
|
886
|
+
},
|
|
887
|
+
],
|
|
888
|
+
indsg: [
|
|
889
|
+
{
|
|
890
|
+
required: true,
|
|
891
|
+
message: '请上传组合产品主图',
|
|
892
|
+
},
|
|
893
|
+
],
|
|
894
|
+
goodsExpirationDate: [
|
|
895
|
+
{
|
|
896
|
+
required: true,
|
|
897
|
+
message: '请上传组合产品主图',
|
|
898
|
+
},
|
|
899
|
+
],
|
|
900
|
+
},
|
|
901
|
+
compositionMainImgInfo: {
|
|
902
|
+
key: 'compositionMainImgInfo',
|
|
903
|
+
formTitle: '产品图片',
|
|
904
|
+
formType: 'upload',
|
|
905
|
+
max: 9,
|
|
906
|
+
formList: [
|
|
907
|
+
{
|
|
908
|
+
value: [
|
|
909
|
+
{
|
|
910
|
+
file: null,
|
|
911
|
+
url:
|
|
912
|
+
'https://img.zcool.cn/community/01cxbj1llpj8wnm5risrzb3038.gif',
|
|
913
|
+
},
|
|
914
|
+
|
|
915
|
+
{
|
|
916
|
+
file: null,
|
|
917
|
+
url:
|
|
918
|
+
'https://test-technology.oss-cn-hangzhou.aliyuncs.com/Web/system/20220902/image/39ee2e4bdbec881d430db37ee6eef6c6.jpg?x-oss-process=image/resize,h_300,w_500',
|
|
919
|
+
},
|
|
920
|
+
],
|
|
921
|
+
key: 'test1',
|
|
922
|
+
},
|
|
923
|
+
],
|
|
924
|
+
},
|
|
925
|
+
|
|
845
926
|
disables: {
|
|
846
|
-
|
|
927
|
+
inds: {
|
|
847
928
|
effects: [
|
|
848
929
|
{
|
|
849
|
-
key: '
|
|
850
|
-
type: '
|
|
930
|
+
key: 'goodsExpirationDate',
|
|
931
|
+
type: 'template',
|
|
851
932
|
fn: (val) => {
|
|
852
|
-
|
|
933
|
+
console.log(val)
|
|
934
|
+
if (val == 1) {
|
|
935
|
+
return 'number'
|
|
936
|
+
}
|
|
937
|
+
return 'template'
|
|
853
938
|
},
|
|
854
939
|
},
|
|
855
940
|
],
|
|
@@ -857,6 +942,21 @@ export default {
|
|
|
857
942
|
},
|
|
858
943
|
}
|
|
859
944
|
},
|
|
945
|
+
mounted() {
|
|
946
|
+
// this.$refs.baseUploadItem.clickFile()
|
|
947
|
+
this.$refs.businessBaseForm.checkValidate()
|
|
948
|
+
|
|
949
|
+
setTimeout(() => {
|
|
950
|
+
this.formList[2].value=312312
|
|
951
|
+
}, 3000);
|
|
952
|
+
},
|
|
953
|
+
methods: {
|
|
954
|
+
onDragEnd(value) {
|
|
955
|
+
console.log(value)
|
|
956
|
+
|
|
957
|
+
// this.$refs
|
|
958
|
+
},
|
|
959
|
+
},
|
|
860
960
|
}
|
|
861
961
|
</script>
|
|
862
962
|
|