n20-common-lib 2.4.5 → 2.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/README.md +1 -1
- package/nstc-g6/components/Calendar/index.js +5 -5
- package/nstc-g6/components/Calendar/src/basic/month-table.vue +12 -20
- package/nstc-g6/components/Calendar/src/basic/year-table.vue +18 -22
- package/nstc-g6/components/Calendar/src/main.vue +1 -5
- package/nstc-g6/components/DialogForm/index.js +5 -5
- package/nstc-g6/components/DialogForm/src/demo/index.vue +18 -27
- package/nstc-g6/components/DialogForm/src/main.vue +15 -21
- package/nstc-g6/components/Form/A_DEMO/component/originalForm.vue +35 -50
- package/nstc-g6/components/Form/A_DEMO/config/config_3.js +1115 -1110
- package/nstc-g6/components/Form/A_DEMO/index.vue +7 -29
- package/nstc-g6/components/Form/AutocompleteCustom/index.vue +3 -5
- package/nstc-g6/components/Form/BusinessSpecific/InputMultiple.vue +60 -62
- package/nstc-g6/components/Form/BusinessSpecific/InputWithUnit.vue +12 -35
- package/nstc-g6/components/Form/BusinessSpecific/SelectTreeDialog.vue +77 -77
- package/nstc-g6/components/Form/CascaderCustom/index.vue +4 -4
- package/nstc-g6/components/Form/CheckboxCustom/index.vue +5 -11
- package/nstc-g6/components/Form/Component.vue +56 -78
- package/nstc-g6/components/Form/ComponentSecond.vue +55 -77
- package/nstc-g6/components/Form/InputAndDialog/index.js +5 -5
- package/nstc-g6/components/Form/InputAndDialog/src/main.vue +130 -153
- package/nstc-g6/components/Form/InputCustom/demo/index.vue +4 -12
- package/nstc-g6/components/Form/InputCustom/index.vue +51 -54
- package/nstc-g6/components/Form/IntervalinputCustom/demo/index.vue +1 -3
- package/nstc-g6/components/Form/IntervalinputCustom/index.vue +19 -41
- package/nstc-g6/components/Form/Item.vue +15 -30
- package/nstc-g6/components/Form/ItemSecond.vue +7 -22
- package/nstc-g6/components/Form/List.vue +12 -28
- package/nstc-g6/components/Form/ListSecond.vue +11 -27
- package/nstc-g6/components/Form/RadioCustom/index.vue +5 -23
- package/nstc-g6/components/Form/SelectAccount/index.js +5 -5
- package/nstc-g6/components/Form/SelectAccount/src/demo/index.vue +34 -28
- package/nstc-g6/components/Form/SelectAccount/src/main.vue +112 -83
- package/nstc-g6/components/Form/SelectAndDialog/index.js +5 -5
- package/nstc-g6/components/Form/SelectAndDialog/src/main.vue +126 -149
- package/nstc-g6/components/Form/SelectCashFlow/index.js +5 -5
- package/nstc-g6/components/Form/SelectCashFlow/src/demo/index.vue +18 -19
- package/nstc-g6/components/Form/SelectCashFlow/src/main.vue +52 -41
- package/nstc-g6/components/Form/SelectCustom/demo/index.vue +14 -16
- package/nstc-g6/components/Form/SelectCustom/index.vue +129 -139
- package/nstc-g6/components/Form/SelectSubject/index.js +5 -5
- package/nstc-g6/components/Form/SelectSubject/src/demo/index.vue +42 -48
- package/nstc-g6/components/Form/SelectSubject/src/main.vue +83 -86
- package/nstc-g6/components/Form/SelectindialogCustom/demo/index.vue +34 -35
- package/nstc-g6/components/Form/SelectindialogCustom/index.vue +133 -148
- package/nstc-g6/components/Form/SelectindialogCustom/install.js +3 -3
- package/nstc-g6/components/Form/TableRadioCustom/demo/index.vue +1 -7
- package/nstc-g6/components/Form/TableRadioCustom/index.vue +17 -26
- package/nstc-g6/components/Form/TextCustom/index.vue +2 -2
- package/nstc-g6/components/Form/UploadCustom/demo/index.vue +1 -3
- package/nstc-g6/components/Form/UploadCustom/index.vue +143 -173
- package/nstc-g6/components/Form/configs.js +3 -14
- package/nstc-g6/components/Form/configsSecond.js +3 -16
- package/nstc-g6/components/Form/index.js +1 -1
- package/nstc-g6/components/Form/payeePersonSelect/index.js +5 -5
- package/nstc-g6/components/Form/payeePersonSelect/src/demo/index.vue +50 -44
- package/nstc-g6/components/Form/payeePersonSelect/src/main.vue +73 -82
- package/nstc-g6/components/FormGroup/index.js +5 -5
- package/nstc-g6/components/FormGroup/src/demo/config.js +18 -19
- package/nstc-g6/components/FormGroup/src/demo/index.vue +14 -22
- package/nstc-g6/components/FormGroup/src/main.vue +122 -141
- package/nstc-g6/components/FormGroup/src/validate.js +11 -13
- package/nstc-g6/components/InputTag/InputTag.vue +78 -111
- package/nstc-g6/components/NstcBackToTop/NstcBackToTop.vue +24 -24
- package/nstc-g6/components/NstcBranchLazyLoad/NstcBranchLazyLoad.vue +4 -13
- package/nstc-g6/components/NstcCharts/NstcCharts.vue +9 -18
- package/nstc-g6/components/NstcCharts/define.js +1 -6
- package/nstc-g6/components/NstcConfirm/NstcConfirm.vue +6 -21
- package/nstc-g6/components/NstcConfirm/index.js +21 -19
- package/nstc-g6/components/NstcDialog/NstcDialog.vue +34 -38
- package/nstc-g6/components/NstcDialogForm/NstcDialogForm.vue +17 -21
- package/nstc-g6/components/NstcDialogTable/NstcDialogTable.vue +4 -17
- package/nstc-g6/components/NstcDropdown/NstcDropdown.vue +2 -12
- package/nstc-g6/components/NstcDropdownTree/NstcDropdownTree.vue +3 -13
- package/nstc-g6/components/NstcElectronicFile/NstcElectronicFile.vue +18 -78
- package/nstc-g6/components/NstcExcelCustomImport/NstcExcelCustomImport.vue +121 -147
- package/nstc-g6/components/NstcExcelImport/NstcExcelImport.vue +9 -31
- package/nstc-g6/components/NstcExcelImportN/NstcExcelImportN.vue +10 -33
- package/nstc-g6/components/NstcExpandCollapse/NstcExpandCollapse.vue +12 -16
- package/nstc-g6/components/NstcFileUpload/NstcFileUpload.vue +19 -75
- package/nstc-g6/components/NstcForm/A_DEMO/component/originalForm.vue +35 -50
- package/nstc-g6/components/NstcForm/A_DEMO/config/config_3.js +1115 -1110
- package/nstc-g6/components/NstcForm/A_DEMO/index.vue +340 -354
- package/nstc-g6/components/NstcForm/AutocompleteCustom/index.vue +2 -2
- package/nstc-g6/components/NstcForm/BusinessSpecific/InputWithUnit.vue +11 -34
- package/nstc-g6/components/NstcForm/BusinessSpecific/SelectTreeDialog.vue +77 -77
- package/nstc-g6/components/NstcForm/CheckboxCustom/index.vue +5 -11
- package/nstc-g6/components/NstcForm/Component.vue +17 -62
- package/nstc-g6/components/NstcForm/ComponentSecond.vue +55 -77
- package/nstc-g6/components/NstcForm/InputAndDialog/NstcInputAndDialog.vue +6 -24
- package/nstc-g6/components/NstcForm/InputCustom/index.vue +2 -8
- package/nstc-g6/components/NstcForm/IntervalInputCustom/index.vue +4 -21
- package/nstc-g6/components/NstcForm/Item.vue +3 -15
- package/nstc-g6/components/NstcForm/ItemSecond.vue +7 -22
- package/nstc-g6/components/NstcForm/List.vue +12 -28
- package/nstc-g6/components/NstcForm/ListSecond.vue +11 -27
- package/nstc-g6/components/NstcForm/RadioCustom/index.vue +5 -23
- package/nstc-g6/components/NstcForm/SelectAccount/NstcSelectAccount.vue +4 -24
- package/nstc-g6/components/NstcForm/SelectAndDialog/NstcSelectAndDialog.vue +7 -30
- package/nstc-g6/components/NstcForm/SelectCashFlow/NstcSelectCashFlow.vue +50 -38
- package/nstc-g6/components/NstcForm/SelectCustom/index.vue +6 -16
- package/nstc-g6/components/NstcForm/SelectSubject/NstcSelectSubject.vue +72 -82
- package/nstc-g6/components/NstcForm/SelectindialogCustom/index.vue +6 -20
- package/nstc-g6/components/NstcForm/TableRadioCustom/index.vue +17 -26
- package/nstc-g6/components/NstcForm/TextCustom/index.vue +2 -2
- package/nstc-g6/components/NstcForm/UploadCustom/index.vue +13 -60
- package/nstc-g6/components/NstcForm/configs.js +3 -14
- package/nstc-g6/components/NstcForm/configsSecond.js +3 -16
- package/nstc-g6/components/NstcForm/index.js +1 -1
- package/nstc-g6/components/NstcForm/payeePersonSelect/NstcPayeePerson.vue +57 -73
- package/nstc-g6/components/NstcPagination/NstcPagination.vue +2 -12
- package/nstc-g6/components/NstcScreenFull/NstcScreenFull.vue +2 -3
- package/nstc-g6/components/NstcSelectTree/NstcSelectTree.vue +4 -15
- package/nstc-g6/components/NstcSelectTreeList/NstcSelectTreeList.vue +5 -20
- package/nstc-g6/components/NstcSticky/NstcSticky.vue +10 -4
- package/nstc-g6/components/NstcSvgIcon/NstcSvgIcon.vue +1 -7
- package/nstc-g6/components/NstcTab/NstcTab.vue +8 -20
- package/nstc-g6/components/NstcTabWithBadge/NstcTabWithBadge.vue +7 -7
- package/nstc-g6/components/NstcTable/ElTableColumnCustom/index.vue +88 -126
- package/nstc-g6/components/NstcTable/NstcTable.vue +4 -17
- package/nstc-g6/components/NstcTableSet/NstcTableSet.vue +27 -72
- package/nstc-g6/components/NstcThemePicker/NstcThemePicker.vue +13 -14
- package/nstc-g6/components/NstcUploadCustomExcel/NstcUploadCustomExcel.vue +3 -13
- package/nstc-g6/components/NstcUploadExcel/NstcUploadExcel.vue +21 -22
- package/nstc-g6/components/NstcWorkBench/NstcWorkBench.vue +4 -17
- package/nstc-g6/components/Search/NstcSearch.vue +12 -47
- package/nstc-g6/components/Search/src/demo/index copy.vue +28 -28
- package/nstc-g6/components/Search/src/demo/index.vue +36 -36
- package/nstc-g6/components/Search/src/main copy.vue +169 -204
- package/nstc-g6/components/approvelTwo/main.vue +2 -6
- package/nstc-g6/components/approvelTwo/progress.vue +7 -29
- package/nstc-g6/directives/VCopy/index.js +52 -54
- package/nstc-g6/directives/VNstcNumber/index.js +1 -1
- package/nstc-g6/directives/VNstcNumber/temp.js +357 -362
- package/nstc-g6/utils/mapper_aims.js +774 -775
- package/nstc-g6/utils/parseTime.js +38 -36
- package/nstc-g6/utils/validate/index.js +2 -2
- package/nstc-g6/utils/vendor/Export2Excel.js +110 -111
- package/nstc-g6/utils/vendor/Export2Zip.js +12 -7
- package/nstc-g6/utils/vue-bus.js +1 -1
- package/package.json +1 -1
- package/src/assets/iconFont/demo_index.html +1 -1
- package/src/assets/iconFont/iconfont.js +66 -1
- package/src/assets/iconFont2/demo_index.html +277 -286
- package/src/assets/iconFont2/iconfont.js +66 -1
- package/src/components/Button/button-group.vue +1 -1
- package/src/components/LoginTemporary/indexN.vue +12 -2
- package/src/components/TableOperateColumn/index.vue +1 -1
- package/src/plugins/Print/print-js/README.md +5 -5
- package/src/plugins/Print/print-js/package.json +2 -2
- package/src/plugins/Print/print-js/src/index.d.ts +36 -36
- package/src/plugins/Print/print-js/src/js/browser.js +3 -1
- package/src/plugins/Print/print-js/src/js/functions.js +16 -10
- package/src/plugins/Print/print-js/src/js/html.js +2 -2
- package/src/plugins/Print/print-js/src/js/image.js +1 -1
- package/src/plugins/Print/print-js/src/js/init.js +15 -7
- package/src/plugins/Print/print-js/src/js/json.js +14 -4
- package/src/plugins/Print/print-js/src/js/modal.js +16 -15
- package/src/plugins/Print/print-js/src/js/pdf.js +1 -1
- package/src/plugins/Print/print-js/src/js/print.js +6 -6
- package/src/plugins/Sign/NetSM3/InfosecNetSignCNGAgent.min.js +1825 -1592
- package/src/plugins/Sign/cfca/index.js +525 -520
- package/src/plugins/Sign/sign.js +128 -128
- package/style/index.css +1 -1
- package/style/index.css.map +1 -1
- package/theme/blue.css +1 -1
- package/theme/cctcRed.css +1 -1
- package/theme/green.css +1 -1
- package/theme/lightBlue.css +1 -1
- package/theme/orange.css +1 -1
- package/theme/purple.css +1 -1
- package/theme/red.css +1 -1
- package/theme/yellow.css +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import NstcCalendar from './src/main'
|
|
1
|
+
import NstcCalendar from './src/main'
|
|
2
2
|
|
|
3
3
|
/* istanbul ignore next */
|
|
4
|
-
NstcCalendar.install = function(Vue) {
|
|
5
|
-
|
|
6
|
-
}
|
|
4
|
+
NstcCalendar.install = function (Vue) {
|
|
5
|
+
Vue.component(NstcCalendar.name, NstcCalendar)
|
|
6
|
+
}
|
|
7
7
|
|
|
8
|
-
export default NstcCalendar
|
|
8
|
+
export default NstcCalendar
|
|
@@ -5,11 +5,7 @@
|
|
|
5
5
|
<el-col :span="4" align="center">
|
|
6
6
|
<i class="nstc-calendar-arrow el-icon-arrow-left" @click="lastYear" />
|
|
7
7
|
</el-col>
|
|
8
|
-
<el-col
|
|
9
|
-
:span="16"
|
|
10
|
-
align="center"
|
|
11
|
-
class="year-text"
|
|
12
|
-
>
|
|
8
|
+
<el-col :span="16" align="center" class="year-text">
|
|
13
9
|
{{ yearStr }}
|
|
14
10
|
</el-col>
|
|
15
11
|
<el-col :span="4" align="center">
|
|
@@ -19,11 +15,7 @@
|
|
|
19
15
|
</div>
|
|
20
16
|
<el-divider />
|
|
21
17
|
<div class="nstc-calendar-month-main">
|
|
22
|
-
<div
|
|
23
|
-
v-for="(item, index) in months"
|
|
24
|
-
:key="index"
|
|
25
|
-
@click="pick(index+1)"
|
|
26
|
-
>{{ item }}</div>
|
|
18
|
+
<div v-for="(item, index) in months" :key="index" @click="pick(index + 1)">{{ item }}</div>
|
|
27
19
|
</div>
|
|
28
20
|
</div>
|
|
29
21
|
</template>
|
|
@@ -82,17 +74,17 @@ export default {
|
|
|
82
74
|
</script>
|
|
83
75
|
|
|
84
76
|
<style scoped lang="scss">
|
|
85
|
-
@import
|
|
77
|
+
@import '~@/theme/theme1/styles/variables.scss';
|
|
86
78
|
.nstc-calendar-month {
|
|
87
|
-
.nstc-calendar-arrow{
|
|
79
|
+
.nstc-calendar-arrow {
|
|
88
80
|
font-size: 16px;
|
|
89
81
|
cursor: pointer;
|
|
90
|
-
&:hover{
|
|
82
|
+
&:hover {
|
|
91
83
|
color: $eBaseColor;
|
|
92
84
|
font-weight: bold;
|
|
93
85
|
}
|
|
94
86
|
}
|
|
95
|
-
&-head{
|
|
87
|
+
&-head {
|
|
96
88
|
padding: 10px 0;
|
|
97
89
|
.year-text {
|
|
98
90
|
&:hover {
|
|
@@ -102,26 +94,26 @@ export default {
|
|
|
102
94
|
}
|
|
103
95
|
}
|
|
104
96
|
}
|
|
105
|
-
.el-divider{
|
|
97
|
+
.el-divider {
|
|
106
98
|
margin: 0 0 10px 0;
|
|
107
99
|
}
|
|
108
|
-
&-main{
|
|
100
|
+
&-main {
|
|
109
101
|
display: flex;
|
|
110
102
|
flex-flow: wrap;
|
|
111
103
|
width: 98%;
|
|
112
104
|
margin-left: 1%;
|
|
113
|
-
>div{
|
|
105
|
+
> div {
|
|
114
106
|
width: 25%;
|
|
115
107
|
box-sizing: border-box;
|
|
116
108
|
display: flex;
|
|
117
109
|
align-items: center;
|
|
118
110
|
justify-content: center;
|
|
119
111
|
padding: 20px;
|
|
120
|
-
border: 1px solid rgba(0,0,0,0);
|
|
112
|
+
border: 1px solid rgba(0, 0, 0, 0);
|
|
121
113
|
cursor: pointer;
|
|
122
|
-
&:hover{
|
|
114
|
+
&:hover {
|
|
123
115
|
border: 1px solid $eBaseColor;
|
|
124
|
-
color: $eBaseColor
|
|
116
|
+
color: $eBaseColor;
|
|
125
117
|
}
|
|
126
118
|
}
|
|
127
119
|
}
|
|
@@ -5,11 +5,7 @@
|
|
|
5
5
|
<el-col :span="4" align="center">
|
|
6
6
|
<i class="nstc-calendar-arrow el-icon-arrow-left" @click="lastYear" />
|
|
7
7
|
</el-col>
|
|
8
|
-
<el-col
|
|
9
|
-
:span="16"
|
|
10
|
-
align="center"
|
|
11
|
-
class="year-text"
|
|
12
|
-
>
|
|
8
|
+
<el-col :span="16" align="center" class="year-text">
|
|
13
9
|
{{ yearStr }}
|
|
14
10
|
</el-col>
|
|
15
11
|
<el-col :span="4" align="center">
|
|
@@ -19,11 +15,7 @@
|
|
|
19
15
|
</div>
|
|
20
16
|
<el-divider />
|
|
21
17
|
<div class="nstc-calendar-month-main">
|
|
22
|
-
<div
|
|
23
|
-
v-for="(item,index) in yearArr"
|
|
24
|
-
:key="index"
|
|
25
|
-
@click="pick(item)"
|
|
26
|
-
>{{ item }}</div>
|
|
18
|
+
<div v-for="(item, index) in yearArr" :key="index" @click="pick(item)">{{ item }}</div>
|
|
27
19
|
</div>
|
|
28
20
|
</div>
|
|
29
21
|
</template>
|
|
@@ -62,11 +54,15 @@ export default {
|
|
|
62
54
|
this.yearArr.push(i)
|
|
63
55
|
}
|
|
64
56
|
} else {
|
|
65
|
-
this.yearArr = this.yearArr.map(i => {
|
|
57
|
+
this.yearArr = this.yearArr.map((i) => {
|
|
58
|
+
return i - 10
|
|
59
|
+
})
|
|
66
60
|
}
|
|
67
61
|
},
|
|
68
62
|
nextYear() {
|
|
69
|
-
this.yearArr = this.yearArr.map(i => {
|
|
63
|
+
this.yearArr = this.yearArr.map((i) => {
|
|
64
|
+
return i + 10
|
|
65
|
+
})
|
|
70
66
|
},
|
|
71
67
|
pick(year) {
|
|
72
68
|
this.$emit('pick', {
|
|
@@ -80,16 +76,16 @@ export default {
|
|
|
80
76
|
|
|
81
77
|
<style scoped lang="scss">
|
|
82
78
|
@import '~@/theme/theme1/styles/variables.scss';
|
|
83
|
-
.nstc-calendar-month{
|
|
84
|
-
.nstc-calendar-arrow{
|
|
79
|
+
.nstc-calendar-month {
|
|
80
|
+
.nstc-calendar-arrow {
|
|
85
81
|
font-size: 16px;
|
|
86
82
|
cursor: pointer;
|
|
87
|
-
&:hover{
|
|
83
|
+
&:hover {
|
|
88
84
|
color: $eBaseColor;
|
|
89
85
|
font-weight: bold;
|
|
90
86
|
}
|
|
91
87
|
}
|
|
92
|
-
&-head{
|
|
88
|
+
&-head {
|
|
93
89
|
padding: 10px 0;
|
|
94
90
|
.year-text {
|
|
95
91
|
&:hover {
|
|
@@ -99,26 +95,26 @@ export default {
|
|
|
99
95
|
}
|
|
100
96
|
}
|
|
101
97
|
}
|
|
102
|
-
.el-divider{
|
|
98
|
+
.el-divider {
|
|
103
99
|
margin: 0 0 10px 0;
|
|
104
100
|
}
|
|
105
|
-
&-main{
|
|
101
|
+
&-main {
|
|
106
102
|
display: flex;
|
|
107
103
|
flex-flow: wrap;
|
|
108
104
|
width: 98%;
|
|
109
105
|
margin-left: 1%;
|
|
110
|
-
>div{
|
|
106
|
+
> div {
|
|
111
107
|
width: 25%;
|
|
112
108
|
box-sizing: border-box;
|
|
113
109
|
display: flex;
|
|
114
110
|
align-items: center;
|
|
115
111
|
justify-content: center;
|
|
116
112
|
padding: 20px;
|
|
117
|
-
border: 1px solid rgba(0,0,0,0);
|
|
113
|
+
border: 1px solid rgba(0, 0, 0, 0);
|
|
118
114
|
cursor: pointer;
|
|
119
|
-
&:hover{
|
|
115
|
+
&:hover {
|
|
120
116
|
border: 1px solid $eBaseColor;
|
|
121
|
-
color: $eBaseColor
|
|
117
|
+
color: $eBaseColor;
|
|
122
118
|
}
|
|
123
119
|
}
|
|
124
120
|
}
|
|
@@ -219,10 +219,7 @@ export default {
|
|
|
219
219
|
})
|
|
220
220
|
}
|
|
221
221
|
// 将要显示的内容显示出来
|
|
222
|
-
this.showDates = this.lastDateCell.concat(
|
|
223
|
-
this.dateCell,
|
|
224
|
-
this.nextDateCell
|
|
225
|
-
)
|
|
222
|
+
this.showDates = this.lastDateCell.concat(this.dateCell, this.nextDateCell)
|
|
226
223
|
},
|
|
227
224
|
// 查看上月数据
|
|
228
225
|
lastMonth() {
|
|
@@ -439,4 +436,3 @@ $festival_KOR: #fec171;
|
|
|
439
436
|
}
|
|
440
437
|
}
|
|
441
438
|
</style>
|
|
442
|
-
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import DialogFormCustom from './src/main'
|
|
1
|
+
import DialogFormCustom from './src/main'
|
|
2
2
|
|
|
3
3
|
/* istanbul ignore next */
|
|
4
|
-
DialogFormCustom.install = function(Vue) {
|
|
5
|
-
|
|
6
|
-
}
|
|
4
|
+
DialogFormCustom.install = function (Vue) {
|
|
5
|
+
Vue.component(DialogFormCustom.name, DialogFormCustom)
|
|
6
|
+
}
|
|
7
7
|
|
|
8
|
-
export default DialogFormCustom
|
|
8
|
+
export default DialogFormCustom
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="">
|
|
3
|
-
<el-button @click="visible = true">
|
|
4
|
-
|
|
5
|
-
</el-button>
|
|
6
|
-
<DialogFormCustom
|
|
7
|
-
:visible="visible"
|
|
8
|
-
:form-config="formConfig"
|
|
9
|
-
:rules="rules"
|
|
10
|
-
@confirm="handleConfirm"
|
|
11
|
-
/>
|
|
3
|
+
<el-button @click="visible = true"> 点我 </el-button>
|
|
4
|
+
<DialogFormCustom :visible="visible" :form-config="formConfig" :rules="rules" @confirm="handleConfirm" />
|
|
12
5
|
</div>
|
|
13
6
|
</template>
|
|
14
7
|
|
|
@@ -23,25 +16,23 @@ export default {
|
|
|
23
16
|
data() {
|
|
24
17
|
return {
|
|
25
18
|
visible: false,
|
|
26
|
-
formConfig: [
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
rules: {
|
|
39
|
-
prop1: [
|
|
40
|
-
{ required: true, message: '姓名不能为空', trigger: 'blur' }
|
|
41
|
-
],
|
|
42
|
-
prop2: [
|
|
43
|
-
{ required: true, message: '日期不能为空', trigger: 'blur' }
|
|
19
|
+
formConfig: [
|
|
20
|
+
[
|
|
21
|
+
{
|
|
22
|
+
mold: 'input',
|
|
23
|
+
name: '姓名',
|
|
24
|
+
prop: 'prop1'
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
mold: 'datepicker',
|
|
28
|
+
name: '日期',
|
|
29
|
+
prop: 'prop2'
|
|
30
|
+
}
|
|
44
31
|
]
|
|
32
|
+
],
|
|
33
|
+
rules: {
|
|
34
|
+
prop1: [{ required: true, message: '姓名不能为空', trigger: 'blur' }],
|
|
35
|
+
prop2: [{ required: true, message: '日期不能为空', trigger: 'blur' }]
|
|
45
36
|
}
|
|
46
37
|
}
|
|
47
38
|
},
|
|
@@ -6,26 +6,21 @@
|
|
|
6
6
|
|
|
7
7
|
<template>
|
|
8
8
|
<div>
|
|
9
|
-
<DialogCustom
|
|
10
|
-
v-model="dialogVisible"
|
|
11
|
-
v-bind="$attrs"
|
|
12
|
-
@confirm="handleConfirm"
|
|
13
|
-
@cancel="handleCancel"
|
|
14
|
-
>
|
|
9
|
+
<DialogCustom v-model="dialogVisible" v-bind="$attrs" @confirm="handleConfirm" @cancel="handleCancel">
|
|
15
10
|
<slot name="before" />
|
|
16
11
|
<NstcForm
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
12
|
+
ref="dialogForm"
|
|
13
|
+
v-model="formModel"
|
|
14
|
+
:reset.sync="reset"
|
|
15
|
+
:mount-and-query="false"
|
|
16
|
+
:config="formConfig"
|
|
17
|
+
:rules="rules"
|
|
18
|
+
:pureable="pureable"
|
|
19
|
+
:label-position="labelPosition"
|
|
20
|
+
:label-width="labelWidth"
|
|
21
|
+
:show-message="showMessage"
|
|
22
|
+
:validate-on-rule-change="validateOnRuleChange"
|
|
23
|
+
:mode="mode"
|
|
29
24
|
/>
|
|
30
25
|
<slot name="after" />
|
|
31
26
|
</DialogCustom>
|
|
@@ -103,7 +98,7 @@ export default {
|
|
|
103
98
|
|
|
104
99
|
mode: {
|
|
105
100
|
default: 'horizontal',
|
|
106
|
-
validator: function(val) {
|
|
101
|
+
validator: function (val) {
|
|
107
102
|
return ['horizontal', 'vertical'].includes(val)
|
|
108
103
|
}
|
|
109
104
|
}
|
|
@@ -161,7 +156,7 @@ export default {
|
|
|
161
156
|
try {
|
|
162
157
|
const model = JSON.parse(JSON.stringify(this.formModel))
|
|
163
158
|
|
|
164
|
-
this.$listeners.cancel && await this.$listeners.cancel(model) // $listeners.confirm 须返回Promise
|
|
159
|
+
this.$listeners.cancel && (await this.$listeners.cancel(model)) // $listeners.confirm 须返回Promise
|
|
165
160
|
|
|
166
161
|
this.handleReset()
|
|
167
162
|
|
|
@@ -186,4 +181,3 @@ export default {
|
|
|
186
181
|
}
|
|
187
182
|
}
|
|
188
183
|
</script>
|
|
189
|
-
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<el-form
|
|
4
|
-
ref="registerForm"
|
|
5
|
-
:model="registerForm"
|
|
6
|
-
class="nstc-original-element-form"
|
|
7
|
-
>
|
|
3
|
+
<el-form ref="registerForm" :model="registerForm" class="nstc-original-element-form">
|
|
8
4
|
<a id="account_1" />
|
|
9
5
|
<nstc-expand-collapse v-model="isCollapseArr[0]">
|
|
10
6
|
<template v-slot:title>
|
|
@@ -13,11 +9,7 @@
|
|
|
13
9
|
<el-row>
|
|
14
10
|
<el-col :span="12">
|
|
15
11
|
<el-form-item label="开户日期" prop="openAccountDate">
|
|
16
|
-
<el-date-picker
|
|
17
|
-
v-model="registerForm.openAccountDate"
|
|
18
|
-
type="date"
|
|
19
|
-
placeholder="请选择"
|
|
20
|
-
/>
|
|
12
|
+
<el-date-picker v-model="registerForm.openAccountDate" type="date" placeholder="请选择" />
|
|
21
13
|
</el-form-item>
|
|
22
14
|
</el-col>
|
|
23
15
|
<el-col :span="12">
|
|
@@ -31,10 +23,10 @@
|
|
|
31
23
|
<el-form-item label="币种" prop="currencyNo">
|
|
32
24
|
<el-select v-model="registerForm.currencyNo" filterable>
|
|
33
25
|
<el-option
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
26
|
+
v-for="(item, index) in currencyDropDown"
|
|
27
|
+
:key="index"
|
|
28
|
+
:label="item.label"
|
|
29
|
+
:value="item.value"
|
|
38
30
|
/>
|
|
39
31
|
</el-select>
|
|
40
32
|
</el-form-item>
|
|
@@ -112,10 +104,10 @@
|
|
|
112
104
|
<el-form-item label="银行账户性质" prop="ctId">
|
|
113
105
|
<el-select v-model="registerForm.ctId" filterable>
|
|
114
106
|
<el-option
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
107
|
+
v-for="(item, index) in AccountTypeToBP"
|
|
108
|
+
:key="index"
|
|
109
|
+
:label="item.label"
|
|
110
|
+
:value="item.value"
|
|
119
111
|
/>
|
|
120
112
|
</el-select>
|
|
121
113
|
</el-form-item>
|
|
@@ -124,10 +116,10 @@
|
|
|
124
116
|
<el-form-item label="现金管理类型" prop="cashManageType">
|
|
125
117
|
<el-select v-model="registerForm.cashManageType" filterable>
|
|
126
118
|
<el-option
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
119
|
+
v-for="(item, index) in AccountNatureToBP"
|
|
120
|
+
:key="index"
|
|
121
|
+
:label="item.label"
|
|
122
|
+
:value="item.value"
|
|
131
123
|
/>
|
|
132
124
|
</el-select>
|
|
133
125
|
</el-form-item>
|
|
@@ -141,11 +133,7 @@
|
|
|
141
133
|
</el-col>
|
|
142
134
|
<el-col :span="12">
|
|
143
135
|
<el-form-item label="账户有效期" prop="validDate">
|
|
144
|
-
<el-date-picker
|
|
145
|
-
v-model="registerForm.validDate"
|
|
146
|
-
type="daterange"
|
|
147
|
-
placeholder="请选择"
|
|
148
|
-
/>
|
|
136
|
+
<el-date-picker v-model="registerForm.validDate" type="daterange" placeholder="请选择" />
|
|
149
137
|
</el-form-item>
|
|
150
138
|
</el-col>
|
|
151
139
|
</el-row>
|
|
@@ -173,10 +161,10 @@
|
|
|
173
161
|
<el-form-item label="账户性质">
|
|
174
162
|
<el-select v-model="registerForm.accountType" filterable>
|
|
175
163
|
<el-option
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
164
|
+
v-for="(item, index) in accountTypeDb"
|
|
165
|
+
:key="index"
|
|
166
|
+
:label="item.label"
|
|
167
|
+
:value="item.value"
|
|
180
168
|
/>
|
|
181
169
|
</el-select>
|
|
182
170
|
</el-form-item>
|
|
@@ -185,10 +173,10 @@
|
|
|
185
173
|
<el-form-item label="账户类别">
|
|
186
174
|
<el-select v-model="registerForm.natureId" filterable>
|
|
187
175
|
<el-option
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
176
|
+
v-for="(item, index) in accountNatureDb"
|
|
177
|
+
:key="index"
|
|
178
|
+
:label="item.label"
|
|
179
|
+
:value="item.value"
|
|
192
180
|
/>
|
|
193
181
|
</el-select>
|
|
194
182
|
</el-form-item>
|
|
@@ -199,10 +187,10 @@
|
|
|
199
187
|
<el-form-item label="区域">
|
|
200
188
|
<el-select v-model="registerForm.areaId" filterable>
|
|
201
189
|
<el-option
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
190
|
+
v-for="(item, index) in accountAreaDb"
|
|
191
|
+
:key="index"
|
|
192
|
+
:label="item.label"
|
|
193
|
+
:value="item.value"
|
|
206
194
|
/>
|
|
207
195
|
</el-select>
|
|
208
196
|
</el-form-item>
|
|
@@ -221,23 +209,22 @@
|
|
|
221
209
|
<el-form-item label="账户用途">
|
|
222
210
|
<el-select v-model="registerForm.usageId" filterable>
|
|
223
211
|
<el-option
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
212
|
+
v-for="(item, index) in accountUsageDb"
|
|
213
|
+
:key="index"
|
|
214
|
+
:label="item.label"
|
|
215
|
+
:value="item.value"
|
|
228
216
|
/>
|
|
229
217
|
</el-select>
|
|
230
218
|
</el-form-item>
|
|
231
219
|
</el-col>
|
|
232
220
|
</el-row>
|
|
233
221
|
</nstc-expand-collapse>
|
|
234
|
-
|
|
235
222
|
</el-form>
|
|
236
223
|
|
|
237
224
|
<!-- 表单提交 -->
|
|
238
225
|
<div class="account-submit-box">
|
|
239
|
-
<el-button type="primary" class="
|
|
240
|
-
<el-button class="
|
|
226
|
+
<el-button type="primary" class="nstc-g6-common-btn-1 nstc-g6-common-btn-size-b">提交</el-button>
|
|
227
|
+
<el-button class="nstc-g6-common-btn-1 nstc-g6-common-btn-size-b">保存</el-button>
|
|
241
228
|
</div>
|
|
242
229
|
</div>
|
|
243
230
|
</template>
|
|
@@ -245,7 +232,7 @@
|
|
|
245
232
|
<script>
|
|
246
233
|
import NstcExpandCollapse from '^/ExpandCollapse/src/main'
|
|
247
234
|
export default {
|
|
248
|
-
name:
|
|
235
|
+
name: 'originalForm',
|
|
249
236
|
components: {
|
|
250
237
|
NstcExpandCollapse
|
|
251
238
|
},
|
|
@@ -276,6 +263,4 @@ export default {
|
|
|
276
263
|
}
|
|
277
264
|
</script>
|
|
278
265
|
|
|
279
|
-
<style>
|
|
280
|
-
|
|
281
|
-
</style>
|
|
266
|
+
<style></style>
|