n20-common-lib 2.4.5 → 2.4.7
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/Layout/HeaderWrap/indexN.vue +1 -1
- package/src/components/Layout/indexN.vue +1 -2
- 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
|
@@ -2,36 +2,28 @@
|
|
|
2
2
|
<div class="form-base-wrapper">
|
|
3
3
|
<template v-for="(item, idx) in config">
|
|
4
4
|
<template v-if="Array.isArray(item)">
|
|
5
|
-
<div
|
|
6
|
-
:key="'inlineItem' + idx"
|
|
7
|
-
class="form-group"
|
|
8
|
-
>
|
|
5
|
+
<div :key="'inlineItem' + idx" class="form-group">
|
|
9
6
|
<template v-for="(iItem, index) in item">
|
|
10
7
|
<BaseItem
|
|
11
8
|
v-if="iItem.renderable !== false"
|
|
12
|
-
|
|
13
|
-
:key="iItem.mold + '-' + (iItem.prop ? iItem.prop : (idx + '-' + index))"
|
|
14
|
-
|
|
9
|
+
:key="iItem.mold + '-' + (iItem.prop ? iItem.prop : idx + '-' + index)"
|
|
15
10
|
v-model="value"
|
|
16
|
-
|
|
17
11
|
:class="[
|
|
18
12
|
'form-item',
|
|
19
13
|
`form-item-${iItem.mold}`,
|
|
20
14
|
{
|
|
21
|
-
'form-item-link':
|
|
15
|
+
'form-item-link':
|
|
16
|
+
iItem.link &&
|
|
17
|
+
((Array.isArray(iItem.link) && iItem.link.some((link) => link.mold)) || iItem.link.mold)
|
|
22
18
|
},
|
|
23
19
|
`form-item-${iItem.mold}-${iItem.prop ? iItem.prop : idx + '-' + index}`
|
|
24
20
|
]"
|
|
25
|
-
|
|
26
21
|
:popper-class="popperClass"
|
|
27
|
-
|
|
28
22
|
:item="iItem"
|
|
29
23
|
:resets.sync="resets"
|
|
30
24
|
:disableds="disableds"
|
|
31
|
-
|
|
32
25
|
:loading="loading"
|
|
33
|
-
|
|
34
|
-
@after-leave="val => $emit('after-leave', val)"
|
|
26
|
+
@after-leave="(val) => $emit('after-leave', val)"
|
|
35
27
|
@query-click="$emit('query-click')"
|
|
36
28
|
@add-click="$emit('add-click')"
|
|
37
29
|
@other-click="$emit('other-click')"
|
|
@@ -44,31 +36,24 @@
|
|
|
44
36
|
<template v-else>
|
|
45
37
|
<BaseItem
|
|
46
38
|
v-if="item.renderable !== false"
|
|
47
|
-
|
|
48
39
|
:key="item.mold + '-' + (item.prop ? item.prop : idx)"
|
|
49
|
-
|
|
50
40
|
v-model="value"
|
|
51
|
-
|
|
52
41
|
:class="[
|
|
53
42
|
'form-item',
|
|
54
43
|
`form-item-${item.mold}`,
|
|
55
44
|
{
|
|
56
|
-
'form-item-link':
|
|
45
|
+
'form-item-link':
|
|
46
|
+
item.link && ((Array.isArray(item.link) && item.link.some((link) => link.mold)) || item.link.mold)
|
|
57
47
|
},
|
|
58
48
|
`form-item-${item.mold}-${item.prop ? item.prop : idx}`
|
|
59
49
|
]"
|
|
60
|
-
|
|
61
50
|
:popper-class="popperClass"
|
|
62
|
-
|
|
63
51
|
:item="item"
|
|
64
52
|
:resets.sync="resets"
|
|
65
53
|
:disableds="disableds"
|
|
66
|
-
|
|
67
54
|
:loading="loading"
|
|
68
|
-
|
|
69
55
|
:from="from"
|
|
70
|
-
|
|
71
|
-
@after-leave="val => $emit('after-leave', val)"
|
|
56
|
+
@after-leave="(val) => $emit('after-leave', val)"
|
|
72
57
|
@query-click="$emit('query-click')"
|
|
73
58
|
@add-click="$emit('add-click')"
|
|
74
59
|
@other-click="$emit('other-click')"
|
|
@@ -80,7 +65,6 @@
|
|
|
80
65
|
</template>
|
|
81
66
|
|
|
82
67
|
<script>
|
|
83
|
-
|
|
84
68
|
import BaseItem from './ItemSecond'
|
|
85
69
|
|
|
86
70
|
export default {
|
|
@@ -95,11 +79,11 @@ export default {
|
|
|
95
79
|
props: {
|
|
96
80
|
from: {
|
|
97
81
|
type: String,
|
|
98
|
-
default: null
|
|
82
|
+
default: null
|
|
99
83
|
},
|
|
100
84
|
config: {
|
|
101
85
|
type: Array,
|
|
102
|
-
default: () =>
|
|
86
|
+
default: () => []
|
|
103
87
|
},
|
|
104
88
|
|
|
105
89
|
loading: {
|
|
@@ -1,26 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-radio-group
|
|
3
|
-
v-model="_value"
|
|
4
|
-
v-bind="$attrs"
|
|
5
|
-
:style="{width:parseFloat(width) + 'px'}"
|
|
6
|
-
v-on="$listeners"
|
|
7
|
-
>
|
|
2
|
+
<el-radio-group v-model="_value" v-bind="$attrs" :style="{ width: parseFloat(width) + 'px' }" v-on="$listeners">
|
|
8
3
|
<template v-for="item in options">
|
|
9
|
-
<el-radio-button
|
|
10
|
-
v-if="type === 'button'"
|
|
11
|
-
:key="item.value"
|
|
12
|
-
:label="item.value"
|
|
13
|
-
:disabled="item.disabled"
|
|
14
|
-
>
|
|
4
|
+
<el-radio-button v-if="type === 'button'" :key="item.value" :label="item.value" :disabled="item.disabled">
|
|
15
5
|
{{ item.label }}
|
|
16
6
|
</el-radio-button>
|
|
17
|
-
<el-radio
|
|
18
|
-
v-else
|
|
19
|
-
:key="item.value"
|
|
20
|
-
:label="item.value"
|
|
21
|
-
:disabled="item.disabled"
|
|
22
|
-
:border="type === 'border'"
|
|
23
|
-
>
|
|
7
|
+
<el-radio v-else :key="item.value" :label="item.value" :disabled="item.disabled" :border="type === 'border'">
|
|
24
8
|
{{ item.label }}
|
|
25
9
|
</el-radio>
|
|
26
10
|
</template>
|
|
@@ -39,7 +23,7 @@ export default {
|
|
|
39
23
|
|
|
40
24
|
type: {
|
|
41
25
|
default: 'normal',
|
|
42
|
-
validator: function(val) {
|
|
26
|
+
validator: function (val) {
|
|
43
27
|
return ['normal', 'border', 'button'].includes(val)
|
|
44
28
|
}
|
|
45
29
|
},
|
|
@@ -68,6 +52,4 @@ export default {
|
|
|
68
52
|
}
|
|
69
53
|
</script>
|
|
70
54
|
|
|
71
|
-
<style scoped>
|
|
72
|
-
|
|
73
|
-
</style>
|
|
55
|
+
<style scoped></style>
|
|
@@ -42,40 +42,20 @@
|
|
|
42
42
|
</el-col>
|
|
43
43
|
<el-col :span="8">
|
|
44
44
|
<el-form-item :label="chMapper.accountLabel">
|
|
45
|
-
<el-input
|
|
46
|
-
v-model="formSearch.accountNo"
|
|
47
|
-
:placeholder="chMapper.plcInput"
|
|
48
|
-
maxlength="64"
|
|
49
|
-
clearable
|
|
50
|
-
/>
|
|
45
|
+
<el-input v-model="formSearch.accountNo" :placeholder="chMapper.plcInput" maxlength="64" clearable />
|
|
51
46
|
</el-form-item>
|
|
52
47
|
</el-col>
|
|
53
48
|
</el-row>
|
|
54
49
|
<el-row>
|
|
55
50
|
<el-col :span="20">
|
|
56
51
|
<el-form-item :label="chMapper.accountNameLabel">
|
|
57
|
-
<el-input
|
|
58
|
-
v-model="formSearch.accountName"
|
|
59
|
-
:placeholder="chMapper.plcInput"
|
|
60
|
-
maxlength="64"
|
|
61
|
-
clearable
|
|
62
|
-
/>
|
|
52
|
+
<el-input v-model="formSearch.accountName" :placeholder="chMapper.plcInput" maxlength="64" clearable />
|
|
63
53
|
</el-form-item>
|
|
64
54
|
</el-col>
|
|
65
55
|
<el-col :span="4">
|
|
66
56
|
<div class="search-btn">
|
|
67
|
-
<el-button
|
|
68
|
-
|
|
69
|
-
class="nstc-g6-common-btn-1"
|
|
70
|
-
@click="searchClick"
|
|
71
|
-
>查询</el-button
|
|
72
|
-
>
|
|
73
|
-
<el-button
|
|
74
|
-
class="nstc-g6-common-btn-3"
|
|
75
|
-
style="margin-left: 8px"
|
|
76
|
-
@click="queryReset"
|
|
77
|
-
>重置</el-button
|
|
78
|
-
>
|
|
57
|
+
<el-button type="primary" class="nstc-g6-common-btn-1" @click="searchClick">查询</el-button>
|
|
58
|
+
<el-button class="nstc-g6-common-btn-3" style="margin-left: 8px" @click="queryReset">重置</el-button>
|
|
79
59
|
</div>
|
|
80
60
|
</el-col>
|
|
81
61
|
</el-row>
|
|
@@ -8,11 +8,7 @@
|
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<div class="dialog-select">
|
|
11
|
-
<div
|
|
12
|
-
style="position: relative"
|
|
13
|
-
@mouseenter="hovering = true"
|
|
14
|
-
@mouseleave="hovering = false"
|
|
15
|
-
>
|
|
11
|
+
<div style="position: relative" @mouseenter="hovering = true" @mouseleave="hovering = false">
|
|
16
12
|
<el-select
|
|
17
13
|
v-model="selectValue"
|
|
18
14
|
v-nstc-lazy-load="lazyLoadAction"
|
|
@@ -28,19 +24,9 @@
|
|
|
28
24
|
@focus="selectFocus"
|
|
29
25
|
v-on="$listeners"
|
|
30
26
|
>
|
|
31
|
-
<el-option
|
|
32
|
-
v-for="item in options"
|
|
33
|
-
:key="item[valueKey]"
|
|
34
|
-
:label="item[labelKey]"
|
|
35
|
-
:value="item[valueKey]"
|
|
36
|
-
/>
|
|
27
|
+
<el-option v-for="item in options" :key="item[valueKey]" :label="item[labelKey]" :value="item[valueKey]" />
|
|
37
28
|
</el-select>
|
|
38
|
-
<i
|
|
39
|
-
v-if="!showClose"
|
|
40
|
-
class="search-btn el-input__icon el-icon-search"
|
|
41
|
-
@click="onSearchIconClick"
|
|
42
|
-
>
|
|
43
|
-
</i>
|
|
29
|
+
<i v-if="!showClose" class="search-btn el-input__icon el-icon-search" @click="onSearchIconClick"> </i>
|
|
44
30
|
<i
|
|
45
31
|
v-if="showClose"
|
|
46
32
|
class="search-btn el-select__caret el-input__icon el-icon-circle-close"
|
|
@@ -48,12 +34,7 @@
|
|
|
48
34
|
></i>
|
|
49
35
|
</div>
|
|
50
36
|
|
|
51
|
-
<DialogTable
|
|
52
|
-
ref="dialog"
|
|
53
|
-
v-model="showDialog"
|
|
54
|
-
v-bind="dialogProps"
|
|
55
|
-
@comfirm="onComfirm"
|
|
56
|
-
>
|
|
37
|
+
<DialogTable ref="dialog" v-model="showDialog" v-bind="dialogProps" @comfirm="onComfirm">
|
|
57
38
|
<template slot="form">
|
|
58
39
|
<slot></slot>
|
|
59
40
|
</template>
|
|
@@ -70,12 +51,9 @@ export default {
|
|
|
70
51
|
directives: {
|
|
71
52
|
'nstc-lazy-load': {
|
|
72
53
|
bind(el, binding) {
|
|
73
|
-
const SELECTWRAP_DOM = el.querySelector(
|
|
74
|
-
'.el-select-dropdown .el-select-dropdown__wrap'
|
|
75
|
-
)
|
|
54
|
+
const SELECTWRAP_DOM = el.querySelector('.el-select-dropdown .el-select-dropdown__wrap')
|
|
76
55
|
SELECTWRAP_DOM.addEventListener('scroll', function () {
|
|
77
|
-
const condition =
|
|
78
|
-
this.scrollHeight - this.scrollTop - 2 <= this.clientHeight
|
|
56
|
+
const condition = this.scrollHeight - this.scrollTop - 2 <= this.clientHeight
|
|
79
57
|
console.log('condition', condition)
|
|
80
58
|
if (condition) {
|
|
81
59
|
binding.value()
|
|
@@ -167,8 +145,7 @@ export default {
|
|
|
167
145
|
},
|
|
168
146
|
computed: {
|
|
169
147
|
showClose() {
|
|
170
|
-
let hasValue =
|
|
171
|
-
this.value !== undefined && this.value !== null && this.value !== ''
|
|
148
|
+
let hasValue = this.value !== undefined && this.value !== null && this.value !== ''
|
|
172
149
|
return this.hovering && hasValue
|
|
173
150
|
},
|
|
174
151
|
selectValue: {
|
|
@@ -7,11 +7,23 @@
|
|
|
7
7
|
* @FilePath: NstcSelectCashFlow.vue
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
|
-
<SelectAndDialog
|
|
10
|
+
<SelectAndDialog
|
|
11
|
+
v-model="_value"
|
|
12
|
+
ref="select"
|
|
13
|
+
v-bind="bindProps"
|
|
14
|
+
:table-form="formSearch"
|
|
15
|
+
:format-data="formatData"
|
|
16
|
+
@show-dialog="onShowDialog"
|
|
17
|
+
>
|
|
11
18
|
<div class="form-wrap">
|
|
12
19
|
<el-form inline :model="formSearch">
|
|
13
20
|
<el-form-item :label="chMapper.flowNoLabel">
|
|
14
|
-
<el-input
|
|
21
|
+
<el-input
|
|
22
|
+
:placeholder="chMapper.plcInput"
|
|
23
|
+
v-model="formSearch.flowNoLike"
|
|
24
|
+
maxlength="60"
|
|
25
|
+
clearable
|
|
26
|
+
></el-input>
|
|
15
27
|
</el-form-item>
|
|
16
28
|
<el-form-item :label="chMapper.flowNameLabel">
|
|
17
29
|
<el-input :placeholder="chMapper.plcInput" v-model="formSearch.flowName" maxlength="60" clearable></el-input>
|
|
@@ -26,9 +38,9 @@
|
|
|
26
38
|
</template>
|
|
27
39
|
|
|
28
40
|
<script>
|
|
29
|
-
import SelectAndDialog from
|
|
41
|
+
import SelectAndDialog from '../SelectAndDialog/NstcSelectAndDialog.vue'
|
|
30
42
|
export default {
|
|
31
|
-
name:
|
|
43
|
+
name: 'NstcSelectCashFlow',
|
|
32
44
|
components: { SelectAndDialog },
|
|
33
45
|
props: {
|
|
34
46
|
value: String,
|
|
@@ -39,85 +51,85 @@ export default {
|
|
|
39
51
|
chMapper: {
|
|
40
52
|
type: Object,
|
|
41
53
|
default: () => ({
|
|
42
|
-
title:
|
|
43
|
-
plcInput:
|
|
44
|
-
plcSelect:
|
|
45
|
-
noselectmsg:
|
|
46
|
-
flowNoLabel:
|
|
47
|
-
flowNameLabel:
|
|
54
|
+
title: '选择现金流',
|
|
55
|
+
plcInput: '请输入',
|
|
56
|
+
plcSelect: '请选择',
|
|
57
|
+
noselectmsg: '请选择现金流',
|
|
58
|
+
flowNoLabel: '现金流编号',
|
|
59
|
+
flowNameLabel: '现金流名称'
|
|
48
60
|
})
|
|
49
61
|
}
|
|
50
62
|
},
|
|
51
63
|
data() {
|
|
52
64
|
return {
|
|
53
65
|
formSearch: {
|
|
54
|
-
flowNoLike:
|
|
55
|
-
flowName:
|
|
66
|
+
flowNoLike: '',
|
|
67
|
+
flowName: ''
|
|
56
68
|
},
|
|
57
69
|
bindProps: {}
|
|
58
|
-
}
|
|
70
|
+
}
|
|
59
71
|
},
|
|
60
72
|
computed: {
|
|
61
73
|
_value: {
|
|
62
74
|
set(val) {
|
|
63
|
-
this.$emit(
|
|
75
|
+
this.$emit('input', val)
|
|
64
76
|
},
|
|
65
77
|
get() {
|
|
66
|
-
return this.value
|
|
78
|
+
return this.value
|
|
67
79
|
}
|
|
68
80
|
}
|
|
69
81
|
},
|
|
70
82
|
created() {
|
|
71
|
-
let url =
|
|
83
|
+
let url = '/api/nstc-mdm/1.0/cashflow'
|
|
72
84
|
let props = {
|
|
73
85
|
columns: [
|
|
74
|
-
{ prop:
|
|
75
|
-
{ prop:
|
|
86
|
+
{ prop: 'flowNo', label: this.chMapper.flowNoLabel },
|
|
87
|
+
{ prop: 'flowName', label: this.chMapper.flowNameLabel }
|
|
76
88
|
],
|
|
77
89
|
url: this.queryConf.url || url,
|
|
78
90
|
params: this.queryConf.defaultParam || { resultType: 0, lastNode: 1 },
|
|
79
|
-
rowKey:
|
|
80
|
-
valueKey:
|
|
81
|
-
labelKey:
|
|
91
|
+
rowKey: 'flowNo',
|
|
92
|
+
valueKey: 'flowNo',
|
|
93
|
+
labelKey: 'flowName',
|
|
82
94
|
chMapper: this.chMapper
|
|
83
|
-
}
|
|
84
|
-
this.bindProps = props
|
|
95
|
+
}
|
|
96
|
+
this.bindProps = props
|
|
85
97
|
},
|
|
86
98
|
mounted() {},
|
|
87
99
|
methods: {
|
|
88
100
|
formatData(res) {
|
|
89
101
|
let data = [],
|
|
90
|
-
total = 0
|
|
102
|
+
total = 0
|
|
91
103
|
if (res && !res.total && Array.isArray(res)) {
|
|
92
|
-
data = res
|
|
93
|
-
total = res.length
|
|
104
|
+
data = res
|
|
105
|
+
total = res.length
|
|
94
106
|
} else if (res && res.total && res.list) {
|
|
95
|
-
data = res.list || []
|
|
96
|
-
total = res.total
|
|
107
|
+
data = res.list || []
|
|
108
|
+
total = res.total
|
|
97
109
|
}
|
|
98
110
|
data = data.map((item) => {
|
|
99
111
|
return {
|
|
100
112
|
flowNo: item.flowNo,
|
|
101
113
|
flowName: item.flowName
|
|
102
|
-
}
|
|
103
|
-
})
|
|
104
|
-
return { data, total }
|
|
114
|
+
}
|
|
115
|
+
})
|
|
116
|
+
return { data, total }
|
|
105
117
|
},
|
|
106
118
|
|
|
107
119
|
onShowDialog() {
|
|
108
|
-
this.queryReset()
|
|
120
|
+
this.queryReset()
|
|
109
121
|
},
|
|
110
122
|
|
|
111
123
|
searchClick() {
|
|
112
|
-
this.$refs.select.queryTableData()
|
|
124
|
+
this.$refs.select.queryTableData()
|
|
113
125
|
},
|
|
114
126
|
|
|
115
127
|
queryReset() {
|
|
116
128
|
this.formSearch = {
|
|
117
|
-
flowNoLike:
|
|
118
|
-
flowName:
|
|
119
|
-
}
|
|
129
|
+
flowNoLike: '',
|
|
130
|
+
flowName: ''
|
|
131
|
+
}
|
|
120
132
|
}
|
|
121
133
|
}
|
|
122
|
-
}
|
|
123
|
-
</script>
|
|
134
|
+
}
|
|
135
|
+
</script>
|
|
@@ -34,9 +34,7 @@
|
|
|
34
34
|
<el-option v-else :key="JSON.stringify(item.value)" v-bind="item">
|
|
35
35
|
<div v-if="useCustomTemplate === 1">
|
|
36
36
|
<span style="float: left; margin-right: 6px">{{ item.value }}</span>
|
|
37
|
-
<span style="float: right; color: #8492a6; font-size: 13px">{{
|
|
38
|
-
item.label
|
|
39
|
-
}}</span>
|
|
37
|
+
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.label }}</span>
|
|
40
38
|
</div>
|
|
41
39
|
</el-option>
|
|
42
40
|
</template>
|
|
@@ -56,12 +54,9 @@ export default {
|
|
|
56
54
|
directives: {
|
|
57
55
|
'nstc-lazy-load': {
|
|
58
56
|
bind(el, binding) {
|
|
59
|
-
const SELECTWRAP_DOM = el.querySelector(
|
|
60
|
-
'.el-select-dropdown .el-select-dropdown__wrap'
|
|
61
|
-
)
|
|
57
|
+
const SELECTWRAP_DOM = el.querySelector('.el-select-dropdown .el-select-dropdown__wrap')
|
|
62
58
|
SELECTWRAP_DOM.addEventListener('scroll', function () {
|
|
63
|
-
const condition =
|
|
64
|
-
this.scrollHeight - this.scrollTop <= this.clientHeight
|
|
59
|
+
const condition = this.scrollHeight - this.scrollTop <= this.clientHeight
|
|
65
60
|
console.log('condition', condition)
|
|
66
61
|
if (condition) {
|
|
67
62
|
binding.value()
|
|
@@ -386,8 +381,7 @@ export default {
|
|
|
386
381
|
remoteOptions = remoteOptions[Object.keys(remoteOptions)[0]]
|
|
387
382
|
}
|
|
388
383
|
// 返回数据格式化
|
|
389
|
-
this.queryDataFormatter &&
|
|
390
|
-
(remoteOptions = await this.queryDataFormatter(remoteOptions))
|
|
384
|
+
this.queryDataFormatter && (remoteOptions = await this.queryDataFormatter(remoteOptions))
|
|
391
385
|
console.log(remoteOptions, 'remoteOptions', this.remoteOptions)
|
|
392
386
|
!remoteOptions.length && (this.remoteOptions = []) //未查出数据,需要把下拉值置空
|
|
393
387
|
console.log(this.remoteOptions)
|
|
@@ -396,9 +390,7 @@ export default {
|
|
|
396
390
|
const label = item[this.labelKey ? this.labelKey : 'label']
|
|
397
391
|
const value = item[this.valueKey ? this.valueKey : 'value']
|
|
398
392
|
return {
|
|
399
|
-
value: this.optionValueIsObject
|
|
400
|
-
? { ...item, label, value }
|
|
401
|
-
: value,
|
|
393
|
+
value: this.optionValueIsObject ? { ...item, label, value } : value,
|
|
402
394
|
label
|
|
403
395
|
}
|
|
404
396
|
})
|
|
@@ -408,9 +400,7 @@ export default {
|
|
|
408
400
|
const label = item[this.labelKey ? this.labelKey : 'label']
|
|
409
401
|
const value = item[this.valueKey ? this.valueKey : 'value']
|
|
410
402
|
return {
|
|
411
|
-
value: this.optionValueIsObject
|
|
412
|
-
? { ...item, label, value }
|
|
413
|
-
: value,
|
|
403
|
+
value: this.optionValueIsObject ? { ...item, label, value } : value,
|
|
414
404
|
label
|
|
415
405
|
}
|
|
416
406
|
})
|