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
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
// const FormTooltips = () => ('../FormCreate/component/FormTooltips')
|
|
19
19
|
// const nstcselecttreeCustom = () => import('../SelectTree/src/main')
|
|
20
20
|
|
|
21
|
-
|
|
22
21
|
import DatepickerCustom from './DatepickerCustom'
|
|
23
22
|
import InputCustom from './InputCustom'
|
|
24
23
|
import IntervalinputCustom from './IntervalinputCustom'
|
|
@@ -34,8 +33,6 @@ import nstcselecttreeCustom from '^/SelectTree/src/main'
|
|
|
34
33
|
import nstcselecttreeListCustom from '^/SelectTreeList/src/main'
|
|
35
34
|
import nstcfileuploadCustom from '^/FileUpload/src/main'
|
|
36
35
|
|
|
37
|
-
|
|
38
|
-
|
|
39
36
|
// 定义支持的类型
|
|
40
37
|
export const SUPPORT_TYPE = [
|
|
41
38
|
'datepicker',
|
|
@@ -73,7 +70,6 @@ export const components = {
|
|
|
73
70
|
nstcfileuploadCustom
|
|
74
71
|
}
|
|
75
72
|
|
|
76
|
-
|
|
77
73
|
// 支持的类型对应的默认值
|
|
78
74
|
export function getDefaultValue({ mold, multiple, type, default: def }) {
|
|
79
75
|
let _def
|
|
@@ -83,7 +79,7 @@ export function getDefaultValue({ mold, multiple, type, default: def }) {
|
|
|
83
79
|
case 'selectindialog':
|
|
84
80
|
case 'nstcBankBanchTree':
|
|
85
81
|
_def = {
|
|
86
|
-
value: isEmpty(def) ? multiple ? [] : null : def
|
|
82
|
+
value: isEmpty(def) ? (multiple ? [] : null) : def
|
|
87
83
|
}
|
|
88
84
|
break
|
|
89
85
|
|
|
@@ -99,13 +95,7 @@ export function getDefaultValue({ mold, multiple, type, default: def }) {
|
|
|
99
95
|
|
|
100
96
|
case 'upload':
|
|
101
97
|
_def = {
|
|
102
|
-
value: isEmpty(def)
|
|
103
|
-
? multiple
|
|
104
|
-
? []
|
|
105
|
-
: null
|
|
106
|
-
: multiple
|
|
107
|
-
? [...def]
|
|
108
|
-
: def
|
|
98
|
+
value: isEmpty(def) ? (multiple ? [] : null) : multiple ? [...def] : def
|
|
109
99
|
}
|
|
110
100
|
break
|
|
111
101
|
|
|
@@ -128,9 +118,7 @@ export function getDefaultValue({ mold, multiple, type, default: def }) {
|
|
|
128
118
|
case 'datewmqy':
|
|
129
119
|
case 'datepicker':
|
|
130
120
|
_def = {
|
|
131
|
-
value: type && type.includes('range')
|
|
132
|
-
? isEmpty(def) ? [] : [...def]
|
|
133
|
-
: isEmpty(def) ? null : def
|
|
121
|
+
value: type && type.includes('range') ? (isEmpty(def) ? [] : [...def]) : isEmpty(def) ? null : def
|
|
134
122
|
}
|
|
135
123
|
break
|
|
136
124
|
|
|
@@ -158,4 +146,3 @@ export function getDefaultValue({ mold, multiple, type, default: def }) {
|
|
|
158
146
|
export function isEmpty(def) {
|
|
159
147
|
return def === null || def === undefined
|
|
160
148
|
}
|
|
161
|
-
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* @Description: 科目输入弹窗
|
|
7
7
|
* @FilePath: \nstc_g6_common\packages\Form\NstcSelectSubject\index.js
|
|
8
8
|
*/
|
|
9
|
-
import NstcPayeePerson from
|
|
9
|
+
import NstcPayeePerson from './src/main.vue'
|
|
10
10
|
|
|
11
|
-
NstcPayeePerson.install = function(Vue) {
|
|
12
|
-
Vue.component(NstcPayeePerson.name, NstcPayeePerson)
|
|
13
|
-
}
|
|
11
|
+
NstcPayeePerson.install = function (Vue) {
|
|
12
|
+
Vue.component(NstcPayeePerson.name, NstcPayeePerson)
|
|
13
|
+
}
|
|
14
14
|
|
|
15
|
-
export default NstcPayeePerson
|
|
15
|
+
export default NstcPayeePerson
|
|
@@ -7,7 +7,16 @@
|
|
|
7
7
|
* @FilePath: \payee\src\components\SelectInputMerchant.vue
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
|
-
<NstcInputAndDialog
|
|
10
|
+
<NstcInputAndDialog
|
|
11
|
+
v-model="_value"
|
|
12
|
+
ref="select"
|
|
13
|
+
@input="chnageInput"
|
|
14
|
+
v-bind="bindProps"
|
|
15
|
+
:table-form="formSearch"
|
|
16
|
+
:format-params="formatParams"
|
|
17
|
+
:format-data="formatData"
|
|
18
|
+
@show-dialog="onShowDialog"
|
|
19
|
+
>
|
|
11
20
|
<div class="form-wrap">
|
|
12
21
|
<el-form inline :model="formSearch">
|
|
13
22
|
<el-form-item label="所属单位">
|
|
@@ -17,8 +26,8 @@
|
|
|
17
26
|
<el-input v-model="formSearch.relCorpFullName" placeholder="请输入" maxlength="64" clearable />
|
|
18
27
|
</el-form-item>
|
|
19
28
|
<el-form-item>
|
|
20
|
-
<el-button type="primary" @click="searchClick">{{$t(`common.query`)}}</el-button>
|
|
21
|
-
<el-button class="nstc-g6-common-btn-3" @click="queryReset">{{$t(`common.reset`)}}</el-button>
|
|
29
|
+
<el-button type="primary" @click="searchClick">{{ $t(`common.query`) }}</el-button>
|
|
30
|
+
<el-button class="nstc-g6-common-btn-3" @click="queryReset">{{ $t(`common.reset`) }}</el-button>
|
|
22
31
|
</el-form-item>
|
|
23
32
|
</el-form>
|
|
24
33
|
</div>
|
|
@@ -39,42 +48,40 @@ export default {
|
|
|
39
48
|
},
|
|
40
49
|
unitName: {
|
|
41
50
|
type: String,
|
|
42
|
-
default:
|
|
51
|
+
default: ''
|
|
43
52
|
}
|
|
44
53
|
},
|
|
45
54
|
|
|
46
55
|
data() {
|
|
47
56
|
return {
|
|
48
57
|
formSearch: {
|
|
49
|
-
unitCode:
|
|
50
|
-
relCorpFullName:
|
|
58
|
+
unitCode: '',
|
|
59
|
+
relCorpFullName: ''
|
|
51
60
|
},
|
|
52
61
|
bindProps: {},
|
|
53
62
|
unitProps: {},
|
|
54
63
|
chMapper: {}
|
|
55
|
-
}
|
|
64
|
+
}
|
|
56
65
|
},
|
|
57
66
|
|
|
58
67
|
computed: {
|
|
59
68
|
_value: {
|
|
60
|
-
set(val) {
|
|
61
|
-
|
|
62
|
-
},
|
|
69
|
+
set(val) {},
|
|
63
70
|
get() {
|
|
64
|
-
return this.value
|
|
71
|
+
return this.value
|
|
65
72
|
}
|
|
66
73
|
}
|
|
67
74
|
},
|
|
68
75
|
|
|
69
76
|
watch: {
|
|
70
77
|
unitName() {
|
|
71
|
-
this.setUnitProps()
|
|
78
|
+
this.setUnitProps()
|
|
72
79
|
}
|
|
73
80
|
},
|
|
74
81
|
|
|
75
82
|
created() {
|
|
76
|
-
this.setBindProps()
|
|
77
|
-
this.setUnitProps()
|
|
83
|
+
this.setBindProps()
|
|
84
|
+
this.setUnitProps()
|
|
78
85
|
},
|
|
79
86
|
|
|
80
87
|
methods: {
|
|
@@ -83,73 +90,73 @@ export default {
|
|
|
83
90
|
},
|
|
84
91
|
setBindProps() {
|
|
85
92
|
let chMapper = {
|
|
86
|
-
title:
|
|
87
|
-
noselectmsg:
|
|
88
|
-
}
|
|
93
|
+
title: '选择客商',
|
|
94
|
+
noselectmsg: '请选择客商'
|
|
95
|
+
}
|
|
89
96
|
let props = {
|
|
90
97
|
columns: [
|
|
91
|
-
{ prop:
|
|
92
|
-
{ prop:
|
|
93
|
-
{ prop:
|
|
98
|
+
{ prop: 'relCorpNo', label: '客商编号' },
|
|
99
|
+
{ prop: 'relCorpFullName', label: '客商中文名称' },
|
|
100
|
+
{ prop: 'boundary', label: '境内外' }
|
|
94
101
|
],
|
|
95
|
-
url:
|
|
102
|
+
url: '/api/nstc-mdm/1.0/supplierRelation',
|
|
96
103
|
params: { supplierType: 0, useStatus: 0 },
|
|
97
|
-
rowKey:
|
|
98
|
-
valueKey:
|
|
99
|
-
labelKey:
|
|
104
|
+
rowKey: 'relCorpNo',
|
|
105
|
+
valueKey: 'relCorpNo',
|
|
106
|
+
labelKey: 'relCorpFullName',
|
|
100
107
|
allowCreate: true,
|
|
101
108
|
chMapper: chMapper,
|
|
102
109
|
lazyLoad: true,
|
|
103
110
|
width: '1800px'
|
|
104
|
-
}
|
|
105
|
-
this.chMapper = chMapper
|
|
106
|
-
this.bindProps = props
|
|
111
|
+
}
|
|
112
|
+
this.chMapper = chMapper
|
|
113
|
+
this.bindProps = props
|
|
107
114
|
},
|
|
108
115
|
|
|
109
116
|
setUnitProps() {
|
|
110
117
|
let props = {
|
|
111
|
-
url:
|
|
112
|
-
nodeKey:
|
|
118
|
+
url: '/bems/1.0/unit',
|
|
119
|
+
nodeKey: 'unitNo',
|
|
113
120
|
label: this.unitName,
|
|
114
|
-
queryKey:
|
|
121
|
+
queryKey: 'unitName',
|
|
115
122
|
disabled: true,
|
|
116
123
|
clearable: true,
|
|
117
|
-
class:
|
|
124
|
+
class: 'unit-tree',
|
|
118
125
|
params: { resultType: 1 },
|
|
119
|
-
defaultProps: { children:
|
|
120
|
-
}
|
|
121
|
-
this.unitProps = props
|
|
126
|
+
defaultProps: { children: 'children', label: 'unitName' }
|
|
127
|
+
}
|
|
128
|
+
this.unitProps = props
|
|
122
129
|
},
|
|
123
130
|
|
|
124
131
|
formatData(d) {
|
|
125
132
|
return {
|
|
126
133
|
data: d.list,
|
|
127
134
|
total: d.total
|
|
128
|
-
}
|
|
135
|
+
}
|
|
129
136
|
},
|
|
130
137
|
formatParams(d) {
|
|
131
138
|
return {
|
|
132
139
|
...d,
|
|
133
|
-
unitCode: ''
|
|
140
|
+
unitCode: ''
|
|
134
141
|
}
|
|
135
142
|
},
|
|
136
143
|
|
|
137
144
|
unitChange() {},
|
|
138
145
|
|
|
139
146
|
onShowDialog() {
|
|
140
|
-
this.queryReset()
|
|
147
|
+
this.queryReset()
|
|
141
148
|
},
|
|
142
149
|
|
|
143
150
|
searchClick() {
|
|
144
|
-
this.$refs.select.queryTableData()
|
|
151
|
+
this.$refs.select.queryTableData()
|
|
145
152
|
},
|
|
146
153
|
|
|
147
154
|
queryReset() {
|
|
148
155
|
this.formSearch = {
|
|
149
156
|
unitCode: 997,
|
|
150
|
-
relCorpFullName:
|
|
151
|
-
}
|
|
152
|
-
if(!this.formatParams.unitCode) {
|
|
157
|
+
relCorpFullName: ''
|
|
158
|
+
}
|
|
159
|
+
if (!this.formatParams.unitCode) {
|
|
153
160
|
this.$message({
|
|
154
161
|
type: 'warning',
|
|
155
162
|
message: this.$t(`请先选择收款单位`)
|
|
@@ -157,8 +164,7 @@ export default {
|
|
|
157
164
|
}
|
|
158
165
|
}
|
|
159
166
|
}
|
|
160
|
-
}
|
|
167
|
+
}
|
|
161
168
|
</script>
|
|
162
169
|
|
|
163
|
-
<style>
|
|
164
|
-
</style>
|
|
170
|
+
<style></style>
|
|
@@ -7,54 +7,48 @@
|
|
|
7
7
|
* @FilePath: NstcSelectSubject.vue
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
|
-
<SelectAndDialog
|
|
10
|
+
<SelectAndDialog
|
|
11
|
+
v-if="bindProps"
|
|
12
|
+
v-model="_value"
|
|
13
|
+
ref="select"
|
|
14
|
+
v-bind="bindProps"
|
|
15
|
+
:table-form="formSearch"
|
|
16
|
+
:format-data="formatData"
|
|
17
|
+
:format-params="formatParams"
|
|
18
|
+
@show-dialog="onShowDialog"
|
|
19
|
+
>
|
|
11
20
|
<div class="form-wrap">
|
|
12
21
|
<el-form inline :model="formSearch">
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<el-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<el-input
|
|
35
|
-
:placeholder="'请输入'"
|
|
36
|
-
v-model="formSearch.relCorpFullName"
|
|
37
|
-
maxlength="60"
|
|
38
|
-
clearable
|
|
39
|
-
>
|
|
40
|
-
</el-input>
|
|
41
|
-
</el-form-item>
|
|
42
|
-
<el-form-item>
|
|
43
|
-
<el-button type="primary" class="nstc-g6-common-btn-1" @click="searchClick">{{$t(`common_w_0034`)}}</el-button>
|
|
44
|
-
<el-button style="margin-left:8px;" class="nstc-g6-common-btn-3" @click="queryReset">{{
|
|
45
|
-
$t(`common_w_0037`)
|
|
46
|
-
}}</el-button>
|
|
47
|
-
</el-form-item>
|
|
48
|
-
</el-form>
|
|
22
|
+
<el-form-item :label="'所属单位'">
|
|
23
|
+
<el-input :placeholder="'请输入'" v-model="formSearch.unitName" maxlength="60" disabled clearable> </el-input>
|
|
24
|
+
</el-form-item>
|
|
25
|
+
<el-form-item :label="'客商类型'">
|
|
26
|
+
<el-select v-model="formSearch.supplierType" disabled placeholder="请选择" clearable>
|
|
27
|
+
<el-option v-for="item in supplierTypeList" :key="item.value" :label="item.label" :value="item.value">
|
|
28
|
+
</el-option>
|
|
29
|
+
</el-select>
|
|
30
|
+
</el-form-item>
|
|
31
|
+
<el-form-item :label="'客商名称'">
|
|
32
|
+
<el-input :placeholder="'请输入'" v-model="formSearch.relCorpFullName" maxlength="60" clearable> </el-input>
|
|
33
|
+
</el-form-item>
|
|
34
|
+
<el-form-item>
|
|
35
|
+
<el-button type="primary" class="nstc-g6-common-btn-1" @click="searchClick">{{
|
|
36
|
+
$t(`common_w_0034`)
|
|
37
|
+
}}</el-button>
|
|
38
|
+
<el-button style="margin-left: 8px" class="nstc-g6-common-btn-3" @click="queryReset">{{
|
|
39
|
+
$t(`common_w_0037`)
|
|
40
|
+
}}</el-button>
|
|
41
|
+
</el-form-item>
|
|
42
|
+
</el-form>
|
|
49
43
|
</div>
|
|
50
44
|
</SelectAndDialog>
|
|
51
45
|
</template>
|
|
52
46
|
|
|
53
47
|
<script>
|
|
54
|
-
import request from
|
|
55
|
-
import SelectAndDialog from
|
|
48
|
+
import request from '@/utils/request'
|
|
49
|
+
import SelectAndDialog from '^/Form/SelectAndDialog/src/main.vue'
|
|
56
50
|
export default {
|
|
57
|
-
name:
|
|
51
|
+
name: 'NstcPayeePerson',
|
|
58
52
|
components: { SelectAndDialog },
|
|
59
53
|
props: {
|
|
60
54
|
value: [String, Object],
|
|
@@ -72,30 +66,30 @@ export default {
|
|
|
72
66
|
},
|
|
73
67
|
formatData: {
|
|
74
68
|
type: Function,
|
|
75
|
-
default: (d) => d
|
|
69
|
+
default: (d) => d
|
|
76
70
|
},
|
|
77
71
|
formatParams: {
|
|
78
72
|
type: Function,
|
|
79
|
-
default: (d) => d
|
|
73
|
+
default: (d) => d
|
|
80
74
|
},
|
|
81
75
|
chMapper: {
|
|
82
76
|
type: Object,
|
|
83
77
|
default: () => ({
|
|
84
|
-
title:
|
|
85
|
-
plcInput:
|
|
86
|
-
plcSelect:
|
|
87
|
-
noselectmsg:
|
|
88
|
-
})
|
|
89
|
-
}
|
|
78
|
+
title: '选择付款人',
|
|
79
|
+
plcInput: '请输入',
|
|
80
|
+
plcSelect: '请选择',
|
|
81
|
+
noselectmsg: '请选择付款人'
|
|
82
|
+
})
|
|
83
|
+
}
|
|
90
84
|
},
|
|
91
85
|
data() {
|
|
92
86
|
return {
|
|
93
|
-
showText:
|
|
87
|
+
showText: '',
|
|
94
88
|
formSearch: {
|
|
95
|
-
unitCode:
|
|
96
|
-
unitName:
|
|
89
|
+
unitCode: '',
|
|
90
|
+
unitName: '',
|
|
97
91
|
supplierType: 0,
|
|
98
|
-
relCorpFullName:
|
|
92
|
+
relCorpFullName: ''
|
|
99
93
|
},
|
|
100
94
|
supplierTypeList: [
|
|
101
95
|
{
|
|
@@ -111,68 +105,65 @@ export default {
|
|
|
111
105
|
columns: [],
|
|
112
106
|
options: [],
|
|
113
107
|
inputHovering: false,
|
|
114
|
-
remoteQuery:
|
|
115
|
-
bindProps: {}
|
|
116
|
-
|
|
117
|
-
};
|
|
118
|
-
},
|
|
119
|
-
wacth: {
|
|
108
|
+
remoteQuery: '',
|
|
109
|
+
bindProps: {}
|
|
110
|
+
}
|
|
120
111
|
},
|
|
112
|
+
wacth: {},
|
|
121
113
|
computed: {
|
|
122
114
|
_value: {
|
|
123
115
|
set(val) {
|
|
124
|
-
this.$emit(
|
|
116
|
+
this.$emit('input', val)
|
|
125
117
|
},
|
|
126
118
|
get() {
|
|
127
|
-
return this.value
|
|
128
|
-
}
|
|
129
|
-
}
|
|
119
|
+
return this.value
|
|
120
|
+
}
|
|
121
|
+
}
|
|
130
122
|
},
|
|
131
123
|
created() {
|
|
132
124
|
// 选择弹窗的参数传递
|
|
133
125
|
console.log('this.formSearch', this.dialogParams)
|
|
134
126
|
this.formSearch.unitCode = this.dialogParams.unitCode
|
|
135
|
-
|
|
136
|
-
this.bindProps = {...this.queryConf, chMapper: this.chMapper}
|
|
137
|
-
|
|
127
|
+
this.formSearch.unitName = this.dialogParams.unitName
|
|
128
|
+
this.bindProps = { ...this.queryConf, chMapper: this.chMapper }
|
|
129
|
+
|
|
138
130
|
console.log('this.payeePerson====', this.bindProps)
|
|
139
131
|
},
|
|
140
132
|
mounted() {},
|
|
141
133
|
methods: {
|
|
142
134
|
formatData(res) {
|
|
143
135
|
let data = [],
|
|
144
|
-
total = 0
|
|
136
|
+
total = 0
|
|
145
137
|
if (res && !res.total && Array.isArray(res)) {
|
|
146
|
-
data = res
|
|
147
|
-
total = res.length
|
|
138
|
+
data = res
|
|
139
|
+
total = res.length
|
|
148
140
|
} else if (res && res.total && res.list) {
|
|
149
|
-
data = res.list || []
|
|
150
|
-
total = res.total
|
|
141
|
+
data = res.list || []
|
|
142
|
+
total = res.total
|
|
151
143
|
}
|
|
152
|
-
return { data, total }
|
|
144
|
+
return { data, total }
|
|
153
145
|
},
|
|
154
146
|
|
|
155
|
-
|
|
156
147
|
onShowDialog() {
|
|
157
|
-
this.queryReset()
|
|
148
|
+
this.queryReset()
|
|
158
149
|
},
|
|
159
150
|
|
|
160
151
|
searchClick() {
|
|
161
|
-
this.$refs.select.queryTableData()
|
|
152
|
+
this.$refs.select.queryTableData()
|
|
162
153
|
},
|
|
163
154
|
|
|
164
155
|
queryReset() {
|
|
165
156
|
this.formSearch = {
|
|
166
|
-
unitCode:
|
|
167
|
-
unitName:
|
|
157
|
+
unitCode: '',
|
|
158
|
+
unitName: '',
|
|
168
159
|
supplierType: 0,
|
|
169
|
-
relCorpFullName:
|
|
170
|
-
}
|
|
160
|
+
relCorpFullName: ''
|
|
161
|
+
}
|
|
171
162
|
this.formSearch.unitCode = this.dialogParams.unitCode
|
|
172
163
|
this.formSearch.unitName = this.dialogParams.unitName
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
176
167
|
</script>
|
|
177
168
|
|
|
178
169
|
<style>
|
|
@@ -182,4 +173,4 @@ export default {
|
|
|
182
173
|
right: 5px;
|
|
183
174
|
top: -1px;
|
|
184
175
|
}
|
|
185
|
-
</style>
|
|
176
|
+
</style>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import NstcFormGroup from './src/main'
|
|
1
|
+
import NstcFormGroup from './src/main'
|
|
2
2
|
|
|
3
3
|
/* istanbul ignore next */
|
|
4
|
-
NstcFormGroup.install = function(Vue) {
|
|
5
|
-
|
|
6
|
-
}
|
|
4
|
+
NstcFormGroup.install = function (Vue) {
|
|
5
|
+
Vue.component(NstcFormGroup.name, NstcFormGroup)
|
|
6
|
+
}
|
|
7
7
|
|
|
8
|
-
export default NstcFormGroup
|
|
8
|
+
export default NstcFormGroup
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
const config = [
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
2
|
+
{
|
|
3
|
+
title: '基本信息11',
|
|
4
|
+
formConfig: [
|
|
5
|
+
{
|
|
6
|
+
mold: 'inputwithunit',
|
|
7
|
+
name: '期限',
|
|
8
|
+
prop: 'termDay',
|
|
9
|
+
isSingle: true,
|
|
10
|
+
default: ['', 3],
|
|
11
|
+
options: [
|
|
12
|
+
{ label: '年', value: 3 },
|
|
13
|
+
{ label: '月', value: 2 },
|
|
14
|
+
{ label: '日', value: 1 }
|
|
15
|
+
],
|
|
16
|
+
isRequired: true
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
21
20
|
]
|
|
22
21
|
|
|
23
22
|
export default config
|
|
@@ -1,25 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FormGroup
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
ref="formGroupCustom"
|
|
4
|
+
:config="config"
|
|
5
|
+
:anchor-point="true"
|
|
6
|
+
:is-fix="true"
|
|
7
|
+
:custom-submit="true"
|
|
8
|
+
:add-anchor-point="addAnchorPoint"
|
|
9
|
+
:show-mode="showMode"
|
|
10
|
+
@change="handleChange"
|
|
11
|
+
@query="handleQuery"
|
|
12
|
+
@reset="handleReset"
|
|
13
|
+
class="nstc-wrap-input-hover"
|
|
14
14
|
>
|
|
15
15
|
<template v-slot:after>
|
|
16
16
|
<a :id="`#nstc-form-group-${addAnchorPoint[0].anchorPoint}`"></a>
|
|
17
17
|
<NstcExpandCollapse title="附件信息">
|
|
18
|
-
<NstcFileUpload
|
|
19
|
-
v-model="attachFileList"
|
|
20
|
-
url="/api/nstc-gdt/1.0/file"
|
|
21
|
-
style="margin: 0 14px"
|
|
22
|
-
/>
|
|
18
|
+
<NstcFileUpload v-model="attachFileList" url="/api/nstc-gdt/1.0/file" style="margin: 0 14px" />
|
|
23
19
|
</NstcExpandCollapse>
|
|
24
20
|
</template>
|
|
25
21
|
|
|
@@ -50,9 +46,7 @@ export default {
|
|
|
50
46
|
return {
|
|
51
47
|
config: JSON.parse(JSON.stringify(Config)),
|
|
52
48
|
attachFileList: [],
|
|
53
|
-
addAnchorPoint: [
|
|
54
|
-
{ title: '附件信息', anchorPoint: new Date().getTime() }
|
|
55
|
-
],
|
|
49
|
+
addAnchorPoint: [{ title: '附件信息', anchorPoint: new Date().getTime() }],
|
|
56
50
|
model: {},
|
|
57
51
|
showMode: ''
|
|
58
52
|
}
|
|
@@ -80,6 +74,4 @@ export default {
|
|
|
80
74
|
}
|
|
81
75
|
</script>
|
|
82
76
|
|
|
83
|
-
<style scoped>
|
|
84
|
-
|
|
85
|
-
</style>
|
|
77
|
+
<style scoped></style>
|