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
|
@@ -31,14 +31,13 @@
|
|
|
31
31
|
@query="handleQuery"
|
|
32
32
|
/>
|
|
33
33
|
<el-divider content-position="left">保留小数点后六位 赋值 有isMoney</el-divider>
|
|
34
|
-
|
|
34
|
+
<el-input
|
|
35
35
|
v-model="item_number"
|
|
36
36
|
v-nstc-number="{ min: -1, precision: 6, isMoney: true }"
|
|
37
37
|
type="number"
|
|
38
38
|
:disabled="isDisabled"
|
|
39
39
|
placeholder="输入金额"
|
|
40
40
|
clearable
|
|
41
|
-
|
|
42
41
|
/>
|
|
43
42
|
<!-- <el-divider content-position="left">没有关闭</el-divider>
|
|
44
43
|
<el-input
|
|
@@ -49,37 +48,31 @@
|
|
|
49
48
|
placeholder="输入金额"
|
|
50
49
|
/> -->
|
|
51
50
|
<el-divider content-position="left">不赋值 保留小数点后六位 没有isMoney</el-divider>
|
|
52
|
-
|
|
51
|
+
<el-input
|
|
53
52
|
v-model="item_number_2"
|
|
54
|
-
v-nstc-number="{ min: -1, precision: 6}"
|
|
53
|
+
v-nstc-number="{ min: -1, precision: 6 }"
|
|
55
54
|
type="number"
|
|
56
55
|
:disabled="isDisabled"
|
|
57
56
|
placeholder="输入金额"
|
|
58
57
|
clearable
|
|
59
|
-
|
|
60
58
|
/>
|
|
61
59
|
<el-divider content-position="left">赋值 保留小数点后两位 没有isMoney</el-divider>
|
|
62
60
|
<el-input
|
|
63
61
|
v-model="item_number_1"
|
|
64
|
-
v-nstc-number="{ min: -1, precision: 2}"
|
|
62
|
+
v-nstc-number="{ min: -1, precision: 2 }"
|
|
65
63
|
type="number"
|
|
66
64
|
:disabled="isDisabled"
|
|
67
65
|
placeholder="输入金额"
|
|
68
66
|
clearable
|
|
69
|
-
|
|
70
67
|
/>
|
|
71
68
|
<!-- {{ varietyAmount1 }} -->
|
|
72
|
-
<div style="padding-top: 20px
|
|
73
|
-
<el-button type="primary" @click="textDisable" class="nstc-g6-common-btn-1 nstc-g6-common-btn-size-b"
|
|
69
|
+
<div style="padding-top: 20px">
|
|
70
|
+
<el-button type="primary" @click="textDisable" class="nstc-g6-common-btn-1 nstc-g6-common-btn-size-b"
|
|
71
|
+
>disabled状态切换</el-button
|
|
72
|
+
>
|
|
74
73
|
</div>
|
|
75
74
|
<el-divider content-position="left">登记类表单</el-divider>
|
|
76
|
-
<el-form
|
|
77
|
-
:model="ruleForm"
|
|
78
|
-
:rules="rules"
|
|
79
|
-
ref="ruleForm"
|
|
80
|
-
label-width="100px"
|
|
81
|
-
class="demo-ruleForm"
|
|
82
|
-
>
|
|
75
|
+
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
|
|
83
76
|
<el-form-item label="活动名称" prop="name">
|
|
84
77
|
<el-input
|
|
85
78
|
v-model="ruleForm.name"
|
|
@@ -135,374 +128,374 @@
|
|
|
135
128
|
</template>
|
|
136
129
|
|
|
137
130
|
<script>
|
|
138
|
-
import NstcCustom from
|
|
139
|
-
import NstcExpandCollapse from
|
|
140
|
-
import request from
|
|
141
|
-
import { SUPPORT_TYPE } from
|
|
142
|
-
import NstcFormGroup from
|
|
143
|
-
import OriginalForm from
|
|
131
|
+
import NstcCustom from '../index'
|
|
132
|
+
import NstcExpandCollapse from '../../ExpandCollapse'
|
|
133
|
+
import request from '@/utils/request'
|
|
134
|
+
import { SUPPORT_TYPE } from '../configs'
|
|
135
|
+
import NstcFormGroup from '^/FormGroup/src/main'
|
|
136
|
+
import OriginalForm from '^/Form/A_DEMO/component/originalForm'
|
|
144
137
|
|
|
145
138
|
const types = SUPPORT_TYPE.map((item, index) => ({
|
|
146
|
-
label: index + 1 +
|
|
147
|
-
value: index + 1 +
|
|
148
|
-
}))
|
|
149
|
-
const types1 = SUPPORT_TYPE.map((item) => ({ label: item + 1, value: item }))
|
|
150
|
-
const types2 = SUPPORT_TYPE.map((item) => ({ label: item + 2, value: item }))
|
|
151
|
-
let id = 0
|
|
139
|
+
label: index + 1 + '',
|
|
140
|
+
value: index + 1 + ''
|
|
141
|
+
}))
|
|
142
|
+
const types1 = SUPPORT_TYPE.map((item) => ({ label: item + 1, value: item }))
|
|
143
|
+
const types2 = SUPPORT_TYPE.map((item) => ({ label: item + 2, value: item }))
|
|
144
|
+
let id = 0
|
|
152
145
|
|
|
153
146
|
// 配置示例
|
|
154
147
|
const config_1 = [
|
|
155
148
|
[
|
|
156
149
|
{
|
|
157
|
-
mold:
|
|
158
|
-
name:
|
|
150
|
+
mold: 'input',
|
|
151
|
+
name: '项目名称',
|
|
159
152
|
width: 200,
|
|
160
|
-
prop:
|
|
161
|
-
placeholder:
|
|
153
|
+
prop: 'searchContent',
|
|
154
|
+
placeholder: '请输入项目名称'
|
|
162
155
|
},
|
|
163
156
|
{
|
|
164
|
-
mold:
|
|
165
|
-
name:
|
|
166
|
-
prop:
|
|
167
|
-
placeholder:
|
|
168
|
-
unit:
|
|
169
|
-
}
|
|
157
|
+
mold: 'input',
|
|
158
|
+
name: '金额',
|
|
159
|
+
prop: 'money',
|
|
160
|
+
placeholder: '请输入金额',
|
|
161
|
+
unit: '元'
|
|
162
|
+
}
|
|
170
163
|
],
|
|
171
164
|
[
|
|
172
165
|
{
|
|
173
|
-
mold:
|
|
174
|
-
name:
|
|
166
|
+
mold: 'input',
|
|
167
|
+
name: '项目名称',
|
|
175
168
|
width: 200,
|
|
176
|
-
prop:
|
|
177
|
-
placeholder:
|
|
169
|
+
prop: 'searchContent1',
|
|
170
|
+
placeholder: '请输入项目名称'
|
|
178
171
|
},
|
|
179
172
|
{
|
|
180
|
-
mold:
|
|
181
|
-
name:
|
|
182
|
-
prop:
|
|
183
|
-
placeholder:
|
|
184
|
-
numberRule: { min: 0, precision: 6 }
|
|
185
|
-
}
|
|
173
|
+
mold: 'input',
|
|
174
|
+
name: '金额',
|
|
175
|
+
prop: 'money1',
|
|
176
|
+
placeholder: '请输入金额',
|
|
177
|
+
numberRule: { min: 0, precision: 6 }
|
|
178
|
+
}
|
|
186
179
|
],
|
|
187
180
|
[
|
|
188
181
|
{
|
|
189
|
-
mold:
|
|
190
|
-
}
|
|
191
|
-
]
|
|
192
|
-
]
|
|
182
|
+
mold: 'querybutton'
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
]
|
|
193
186
|
const config_2 = [
|
|
194
187
|
{
|
|
195
|
-
title:
|
|
188
|
+
title: '开证成本',
|
|
196
189
|
formConfig: [
|
|
197
190
|
[
|
|
198
191
|
{
|
|
199
|
-
mold:
|
|
200
|
-
name:
|
|
201
|
-
prop:
|
|
202
|
-
class: [
|
|
203
|
-
unit:
|
|
192
|
+
mold: 'input',
|
|
193
|
+
name: '开证费率',
|
|
194
|
+
prop: 'openRate',
|
|
195
|
+
class: ['nstc-rate-num'],
|
|
196
|
+
unit: '%',
|
|
204
197
|
numberRule: { max: 100, min: 0, precision: 6 },
|
|
205
|
-
isRequired: true
|
|
198
|
+
isRequired: true
|
|
206
199
|
},
|
|
207
200
|
{
|
|
208
|
-
mold:
|
|
209
|
-
name:
|
|
210
|
-
prop:
|
|
211
|
-
numberRule: { min: -9999999, precision: 2, isMoney: true }
|
|
212
|
-
}
|
|
201
|
+
mold: 'input',
|
|
202
|
+
name: '可以输入负数',
|
|
203
|
+
prop: 'issueFee',
|
|
204
|
+
numberRule: { min: -9999999, precision: 2, isMoney: true }
|
|
205
|
+
}
|
|
213
206
|
],
|
|
214
207
|
[
|
|
215
208
|
{
|
|
216
|
-
mold:
|
|
217
|
-
name:
|
|
218
|
-
prop:
|
|
209
|
+
mold: 'input',
|
|
210
|
+
name: '综合成本',
|
|
211
|
+
prop: 'synCost'
|
|
219
212
|
},
|
|
220
213
|
{
|
|
221
|
-
mold:
|
|
222
|
-
name:
|
|
223
|
-
title:
|
|
224
|
-
prop:
|
|
225
|
-
placeholder:
|
|
226
|
-
labelKey:
|
|
227
|
-
valueKey:
|
|
214
|
+
mold: 'selectindialog',
|
|
215
|
+
name: '金融机构',
|
|
216
|
+
title: '金融机构',
|
|
217
|
+
prop: 'openRate',
|
|
218
|
+
placeholder: '请选择',
|
|
219
|
+
labelKey: 'relCorpFullName',
|
|
220
|
+
valueKey: 'relCorpId',
|
|
228
221
|
formLabelWidth: 96,
|
|
229
222
|
formConfig: [
|
|
230
223
|
{
|
|
231
|
-
mold:
|
|
232
|
-
name:
|
|
233
|
-
prop:
|
|
234
|
-
width:
|
|
224
|
+
mold: 'input',
|
|
225
|
+
name: '单位名称',
|
|
226
|
+
prop: 'relCorpFullName',
|
|
227
|
+
width: '180px'
|
|
235
228
|
},
|
|
236
229
|
{
|
|
237
|
-
mold:
|
|
238
|
-
name:
|
|
239
|
-
prop:
|
|
240
|
-
width:
|
|
241
|
-
}
|
|
230
|
+
mold: 'input',
|
|
231
|
+
name: '组织编号',
|
|
232
|
+
prop: 'relCorpNo',
|
|
233
|
+
width: '180px'
|
|
234
|
+
}
|
|
242
235
|
],
|
|
243
236
|
columns: [
|
|
244
237
|
{
|
|
245
|
-
label:
|
|
246
|
-
prop:
|
|
238
|
+
label: '组织编号',
|
|
239
|
+
prop: 'relCorpNo'
|
|
247
240
|
},
|
|
248
241
|
{
|
|
249
|
-
label:
|
|
250
|
-
prop:
|
|
242
|
+
label: '单位中文名称',
|
|
243
|
+
prop: 'relCorpFullName'
|
|
251
244
|
},
|
|
252
245
|
{
|
|
253
|
-
label:
|
|
254
|
-
prop:
|
|
246
|
+
label: '单位简称',
|
|
247
|
+
prop: 'relCorpName'
|
|
255
248
|
},
|
|
256
249
|
{
|
|
257
|
-
label:
|
|
258
|
-
prop:
|
|
259
|
-
}
|
|
260
|
-
]
|
|
261
|
-
}
|
|
250
|
+
label: '单位类型',
|
|
251
|
+
prop: 'relCorpType'
|
|
252
|
+
}
|
|
253
|
+
]
|
|
254
|
+
}
|
|
262
255
|
],
|
|
263
256
|
[
|
|
264
257
|
{
|
|
265
|
-
mold:
|
|
266
|
-
name:
|
|
267
|
-
prop:
|
|
268
|
-
class: [
|
|
269
|
-
unit:
|
|
258
|
+
mold: 'input',
|
|
259
|
+
name: '开证费率',
|
|
260
|
+
prop: 'openRate',
|
|
261
|
+
class: ['nstc-rate-num'],
|
|
262
|
+
unit: '%',
|
|
270
263
|
numberRule: { max: 100, min: 0, precision: 6 },
|
|
271
|
-
isRequired: true
|
|
264
|
+
isRequired: true
|
|
272
265
|
},
|
|
273
266
|
{
|
|
274
|
-
mold:
|
|
275
|
-
name:
|
|
276
|
-
prop:
|
|
267
|
+
mold: 'select',
|
|
268
|
+
name: '金融机构',
|
|
269
|
+
prop: 'e',
|
|
277
270
|
isRequired: true,
|
|
278
271
|
remote: true,
|
|
279
272
|
filterable: true,
|
|
280
|
-
httpMethod:
|
|
281
|
-
valueKey:
|
|
282
|
-
labelKey:
|
|
283
|
-
query:
|
|
273
|
+
httpMethod: 'get',
|
|
274
|
+
valueKey: 'cnapsNo',
|
|
275
|
+
labelKey: 'branchBankName',
|
|
276
|
+
query: 'branchBankName',
|
|
284
277
|
lazyLoad: true,
|
|
285
|
-
url:
|
|
286
|
-
pageMode:
|
|
287
|
-
pageCurrentKey:
|
|
288
|
-
pageSizeKey:
|
|
289
|
-
}
|
|
278
|
+
url: '/api/nstc-mdm/1.0/branchBank',
|
|
279
|
+
pageMode: 'special',
|
|
280
|
+
pageCurrentKey: 'page.current',
|
|
281
|
+
pageSizeKey: 'page.size'
|
|
282
|
+
}
|
|
290
283
|
],
|
|
291
284
|
[
|
|
292
285
|
{
|
|
293
|
-
mold:
|
|
294
|
-
name:
|
|
295
|
-
prop:
|
|
296
|
-
class: [
|
|
297
|
-
unit:
|
|
286
|
+
mold: 'input',
|
|
287
|
+
name: '开证费率',
|
|
288
|
+
prop: 'openRate',
|
|
289
|
+
class: ['nstc-rate-num'],
|
|
290
|
+
unit: '%',
|
|
298
291
|
numberRule: { max: 100, min: 0, precision: 6 },
|
|
299
|
-
isRequired: true
|
|
292
|
+
isRequired: true
|
|
300
293
|
},
|
|
301
294
|
{
|
|
302
|
-
mold:
|
|
303
|
-
name:
|
|
304
|
-
prop:
|
|
295
|
+
mold: 'select',
|
|
296
|
+
name: '测试分类',
|
|
297
|
+
prop: 'f_1',
|
|
305
298
|
options: [
|
|
306
|
-
{ label:
|
|
307
|
-
{ label:
|
|
308
|
-
]
|
|
309
|
-
}
|
|
299
|
+
{ label: '111', value: '1212' },
|
|
300
|
+
{ label: '222', value: '1212111' }
|
|
301
|
+
]
|
|
302
|
+
}
|
|
310
303
|
],
|
|
311
304
|
[
|
|
312
305
|
{
|
|
313
|
-
mold:
|
|
314
|
-
name:
|
|
315
|
-
prop:
|
|
316
|
-
isRequired: true
|
|
306
|
+
mold: 'datepicker',
|
|
307
|
+
name: '开始日',
|
|
308
|
+
prop: 'k_2',
|
|
309
|
+
isRequired: true
|
|
317
310
|
},
|
|
318
311
|
{
|
|
319
|
-
mold:
|
|
320
|
-
name:
|
|
321
|
-
prop:
|
|
312
|
+
mold: 'select',
|
|
313
|
+
name: '测试分类11',
|
|
314
|
+
prop: 'cs_1',
|
|
322
315
|
options: [
|
|
323
|
-
{ label:
|
|
324
|
-
{ label:
|
|
325
|
-
]
|
|
326
|
-
}
|
|
316
|
+
{ label: '111', value: 1 },
|
|
317
|
+
{ label: '222', value: 2 }
|
|
318
|
+
]
|
|
319
|
+
}
|
|
327
320
|
],
|
|
328
321
|
[
|
|
329
322
|
{
|
|
330
|
-
mold:
|
|
331
|
-
name:
|
|
332
|
-
prop:
|
|
323
|
+
mold: 'inputwithunit',
|
|
324
|
+
name: '期限',
|
|
325
|
+
prop: 'k_3',
|
|
333
326
|
default: [null, 3],
|
|
334
327
|
options: [
|
|
335
|
-
{ label:
|
|
336
|
-
{ label:
|
|
337
|
-
{ label:
|
|
328
|
+
{ label: '年', value: 3 },
|
|
329
|
+
{ label: '月', value: 2 },
|
|
330
|
+
{ label: '天', value: 1 }
|
|
338
331
|
],
|
|
339
|
-
isRequired: true
|
|
332
|
+
isRequired: true
|
|
340
333
|
},
|
|
341
334
|
{
|
|
342
|
-
mold:
|
|
343
|
-
name:
|
|
344
|
-
prop:
|
|
335
|
+
mold: 'select',
|
|
336
|
+
name: '测试分类22',
|
|
337
|
+
prop: 'cs_2',
|
|
345
338
|
disabled: true,
|
|
346
339
|
isRequired: false,
|
|
347
340
|
options: [
|
|
348
|
-
{ label:
|
|
349
|
-
{ label:
|
|
350
|
-
]
|
|
351
|
-
}
|
|
341
|
+
{ label: '333', value: 3 },
|
|
342
|
+
{ label: '444', value: 4 }
|
|
343
|
+
]
|
|
344
|
+
}
|
|
352
345
|
],
|
|
353
346
|
[
|
|
354
347
|
{
|
|
355
|
-
mold:
|
|
356
|
-
name:
|
|
357
|
-
prop:
|
|
348
|
+
mold: 'inputwithunit',
|
|
349
|
+
name: '期限',
|
|
350
|
+
prop: 'k_3',
|
|
358
351
|
default: [null, 3],
|
|
359
352
|
options: [
|
|
360
|
-
{ label:
|
|
361
|
-
{ label:
|
|
362
|
-
{ label:
|
|
353
|
+
{ label: '年', value: 3 },
|
|
354
|
+
{ label: '月', value: 2 },
|
|
355
|
+
{ label: '天', value: 1 }
|
|
363
356
|
],
|
|
364
|
-
isRequired: true
|
|
357
|
+
isRequired: true
|
|
365
358
|
},
|
|
366
359
|
{
|
|
367
|
-
mold:
|
|
368
|
-
name:
|
|
369
|
-
prop:
|
|
370
|
-
url:
|
|
371
|
-
nodeKey:
|
|
372
|
-
queryKey:
|
|
373
|
-
defaultProps: { children:
|
|
374
|
-
params: { resultType: 1 }
|
|
375
|
-
}
|
|
360
|
+
mold: 'nstcselecttree',
|
|
361
|
+
name: '单位下拉树',
|
|
362
|
+
prop: 'y_3',
|
|
363
|
+
url: '/api/nstc-mdm/1.0/unit',
|
|
364
|
+
nodeKey: 'unitNo',
|
|
365
|
+
queryKey: 'unitName',
|
|
366
|
+
defaultProps: { children: 'children', label: 'unitName' },
|
|
367
|
+
params: { resultType: 1 }
|
|
368
|
+
}
|
|
376
369
|
],
|
|
377
370
|
[
|
|
378
371
|
{
|
|
379
|
-
mold:
|
|
380
|
-
type:
|
|
381
|
-
class:
|
|
382
|
-
name:
|
|
383
|
-
prop:
|
|
384
|
-
maxLength:
|
|
385
|
-
}
|
|
386
|
-
]
|
|
387
|
-
]
|
|
372
|
+
mold: 'input',
|
|
373
|
+
type: 'textarea',
|
|
374
|
+
class: 'nstc-form-only-one',
|
|
375
|
+
name: '独占一行',
|
|
376
|
+
prop: 'memo',
|
|
377
|
+
maxLength: '128'
|
|
378
|
+
}
|
|
379
|
+
]
|
|
380
|
+
]
|
|
388
381
|
},
|
|
389
382
|
{
|
|
390
|
-
title:
|
|
383
|
+
title: '附件信息',
|
|
391
384
|
formConfig: [
|
|
392
385
|
[
|
|
393
386
|
{
|
|
394
|
-
mold:
|
|
395
|
-
prop:
|
|
396
|
-
}
|
|
397
|
-
]
|
|
398
|
-
]
|
|
399
|
-
}
|
|
400
|
-
]
|
|
387
|
+
mold: 'nstcfileupload',
|
|
388
|
+
prop: 'attchFileList'
|
|
389
|
+
}
|
|
390
|
+
]
|
|
391
|
+
]
|
|
392
|
+
}
|
|
393
|
+
]
|
|
401
394
|
const config_3 = [
|
|
402
395
|
{
|
|
403
|
-
mold:
|
|
404
|
-
name:
|
|
396
|
+
mold: 'input',
|
|
397
|
+
name: '项目名称',
|
|
405
398
|
width: 200,
|
|
406
|
-
prop:
|
|
407
|
-
placeholder:
|
|
399
|
+
prop: 'searchContent',
|
|
400
|
+
placeholder: '请输入项目名称'
|
|
408
401
|
},
|
|
409
402
|
{
|
|
410
|
-
mold:
|
|
411
|
-
name:
|
|
412
|
-
prop:
|
|
413
|
-
placeholder:
|
|
414
|
-
unit:
|
|
403
|
+
mold: 'input',
|
|
404
|
+
name: '金额',
|
|
405
|
+
prop: 'money',
|
|
406
|
+
placeholder: '请输入金额',
|
|
407
|
+
unit: '元'
|
|
415
408
|
},
|
|
416
409
|
{
|
|
417
|
-
mold:
|
|
418
|
-
name:
|
|
410
|
+
mold: 'datepicker',
|
|
411
|
+
name: '选择时间',
|
|
419
412
|
width: 180,
|
|
420
|
-
prop:
|
|
421
|
-
placeholder:
|
|
413
|
+
prop: 'date',
|
|
414
|
+
placeholder: '请选择时间'
|
|
422
415
|
},
|
|
423
416
|
{
|
|
424
|
-
mold:
|
|
425
|
-
name:
|
|
417
|
+
mold: 'cascader',
|
|
418
|
+
name: '级联选择器',
|
|
426
419
|
width: 220,
|
|
427
|
-
prop:
|
|
428
|
-
placeholder:
|
|
420
|
+
prop: 'cascader',
|
|
421
|
+
placeholder: '请选择哦',
|
|
429
422
|
props: {
|
|
430
423
|
checkStrictly: true,
|
|
431
424
|
multiple: true,
|
|
432
425
|
lazy: true,
|
|
433
426
|
lazyLoad(node, resolve) {
|
|
434
|
-
const { level } = node
|
|
427
|
+
const { level } = node
|
|
435
428
|
setTimeout(() => {
|
|
436
429
|
const nodes = Array.from({ length: level + 1 }).map((item) => ({
|
|
437
430
|
value: item.id || ++id,
|
|
438
431
|
label: `选项${id}`,
|
|
439
|
-
leaf: level >= 2
|
|
440
|
-
}))
|
|
432
|
+
leaf: level >= 2
|
|
433
|
+
}))
|
|
441
434
|
// 通过调用resolve将子节点数据返回,通知组件数据加载完成
|
|
442
|
-
resolve(nodes)
|
|
443
|
-
}, 1000)
|
|
444
|
-
}
|
|
445
|
-
}
|
|
435
|
+
resolve(nodes)
|
|
436
|
+
}, 1000)
|
|
437
|
+
}
|
|
438
|
+
}
|
|
446
439
|
},
|
|
447
440
|
{
|
|
448
|
-
mold:
|
|
449
|
-
name:
|
|
441
|
+
mold: 'radio',
|
|
442
|
+
name: '选择城市',
|
|
450
443
|
width: 300,
|
|
451
|
-
prop:
|
|
444
|
+
prop: 'city',
|
|
452
445
|
// type: 'button',
|
|
453
446
|
options: [
|
|
454
447
|
{
|
|
455
|
-
label:
|
|
456
|
-
value:
|
|
448
|
+
label: '上海',
|
|
449
|
+
value: '上海'
|
|
457
450
|
},
|
|
458
451
|
{
|
|
459
|
-
label:
|
|
460
|
-
value:
|
|
461
|
-
disabled: true
|
|
452
|
+
label: '北京',
|
|
453
|
+
value: '北京',
|
|
454
|
+
disabled: true
|
|
462
455
|
},
|
|
463
456
|
{
|
|
464
|
-
label:
|
|
465
|
-
value:
|
|
457
|
+
label: '广州',
|
|
458
|
+
value: '广州'
|
|
466
459
|
},
|
|
467
460
|
{
|
|
468
|
-
label:
|
|
469
|
-
value:
|
|
470
|
-
}
|
|
471
|
-
]
|
|
461
|
+
label: '深圳',
|
|
462
|
+
value: '深圳'
|
|
463
|
+
}
|
|
464
|
+
]
|
|
472
465
|
},
|
|
473
466
|
{
|
|
474
|
-
mold:
|
|
475
|
-
name:
|
|
467
|
+
mold: 'checkbox',
|
|
468
|
+
name: '多选框',
|
|
476
469
|
width: 300,
|
|
477
|
-
prop:
|
|
470
|
+
prop: 'checkbox',
|
|
478
471
|
// type: 'button',
|
|
479
472
|
options: [
|
|
480
473
|
{
|
|
481
|
-
label:
|
|
482
|
-
value:
|
|
474
|
+
label: '复选框 A',
|
|
475
|
+
value: '复选框 A'
|
|
483
476
|
},
|
|
484
477
|
{
|
|
485
|
-
label:
|
|
486
|
-
value:
|
|
487
|
-
disabled: true
|
|
478
|
+
label: '复选框 B',
|
|
479
|
+
value: '复选框 B',
|
|
480
|
+
disabled: true
|
|
488
481
|
},
|
|
489
482
|
{
|
|
490
|
-
label:
|
|
491
|
-
value:
|
|
492
|
-
}
|
|
493
|
-
]
|
|
483
|
+
label: '复选框 C',
|
|
484
|
+
value: '复选框 C'
|
|
485
|
+
}
|
|
486
|
+
]
|
|
494
487
|
},
|
|
495
488
|
{
|
|
496
|
-
mold:
|
|
497
|
-
name:
|
|
489
|
+
mold: 'upload',
|
|
490
|
+
name: '上传附件',
|
|
498
491
|
width: 180,
|
|
499
|
-
prop:
|
|
492
|
+
prop: 'file'
|
|
500
493
|
},
|
|
501
494
|
// 联动1 组件位于同一行// 1 对 多
|
|
502
495
|
{
|
|
503
|
-
mold:
|
|
504
|
-
name:
|
|
505
|
-
prop:
|
|
496
|
+
mold: 'select',
|
|
497
|
+
name: '类别',
|
|
498
|
+
prop: 'mode',
|
|
506
499
|
width: 90,
|
|
507
500
|
multiple: false,
|
|
508
501
|
clearable: false,
|
|
@@ -512,130 +505,130 @@ const config_3 = [
|
|
|
512
505
|
// 联动关键字
|
|
513
506
|
link: [
|
|
514
507
|
{
|
|
515
|
-
mold:
|
|
516
|
-
prop:
|
|
517
|
-
name:
|
|
508
|
+
mold: 'select', // 指定mold 将渲染至同一块区域
|
|
509
|
+
prop: 'districts',
|
|
510
|
+
name: '行政区',
|
|
518
511
|
width: 160,
|
|
519
512
|
clearable: false,
|
|
520
513
|
handler: function (val) {
|
|
521
514
|
// 在 handlers 根据逻辑 返回default 和 options 可避免不必要的渲染
|
|
522
515
|
return +val === 1
|
|
523
516
|
? {
|
|
524
|
-
default:
|
|
525
|
-
options: types1
|
|
517
|
+
default: 'input',
|
|
518
|
+
options: types1
|
|
526
519
|
}
|
|
527
520
|
: {
|
|
528
|
-
default:
|
|
529
|
-
options: types2
|
|
530
|
-
}
|
|
531
|
-
}
|
|
521
|
+
default: 'select',
|
|
522
|
+
options: types2
|
|
523
|
+
}
|
|
524
|
+
}
|
|
532
525
|
},
|
|
533
526
|
{
|
|
534
|
-
mold:
|
|
535
|
-
prop:
|
|
527
|
+
mold: 'select',
|
|
528
|
+
prop: 'plateIds',
|
|
536
529
|
width: 160,
|
|
537
530
|
clearable: false,
|
|
538
531
|
handler: function (val) {
|
|
539
532
|
return +val === 2
|
|
540
533
|
? {
|
|
541
|
-
default:
|
|
542
|
-
options: types2
|
|
534
|
+
default: 'input',
|
|
535
|
+
options: types2
|
|
543
536
|
}
|
|
544
537
|
: {
|
|
545
|
-
default:
|
|
546
|
-
options: types1
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
]
|
|
538
|
+
default: 'select',
|
|
539
|
+
options: types1
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
]
|
|
551
544
|
},
|
|
552
545
|
// 联动2 组件位于不同行 显示隐藏
|
|
553
546
|
{
|
|
554
|
-
mold:
|
|
555
|
-
prop:
|
|
547
|
+
mold: 'select',
|
|
548
|
+
prop: 'wuyeTypes',
|
|
556
549
|
// width: 180,
|
|
557
|
-
name:
|
|
550
|
+
name: '物业类型',
|
|
558
551
|
multiple: false,
|
|
559
552
|
clearable: false,
|
|
560
553
|
default: null,
|
|
561
554
|
options: types,
|
|
562
555
|
link: [
|
|
563
556
|
{
|
|
564
|
-
prop:
|
|
557
|
+
prop: 'houseTypeIds',
|
|
565
558
|
handler: async function (val) {
|
|
566
559
|
return +val === 1
|
|
567
560
|
? {
|
|
568
561
|
renderable: true,
|
|
569
|
-
default:
|
|
570
|
-
options: types1
|
|
562
|
+
default: 'input',
|
|
563
|
+
options: types1
|
|
571
564
|
}
|
|
572
565
|
: {
|
|
573
566
|
renderable: false,
|
|
574
|
-
default:
|
|
575
|
-
options: []
|
|
576
|
-
}
|
|
577
|
-
}
|
|
567
|
+
default: '',
|
|
568
|
+
options: []
|
|
569
|
+
}
|
|
570
|
+
}
|
|
578
571
|
},
|
|
579
572
|
{
|
|
580
|
-
prop:
|
|
573
|
+
prop: 'buildingFormGroups',
|
|
581
574
|
handler: async function (val) {
|
|
582
575
|
return +val === 2
|
|
583
576
|
? {
|
|
584
577
|
renderable: true,
|
|
585
|
-
default: [
|
|
586
|
-
options: types2
|
|
578
|
+
default: ['input', 'select'],
|
|
579
|
+
options: types2
|
|
587
580
|
}
|
|
588
581
|
: {
|
|
589
582
|
renderable: false,
|
|
590
|
-
default: [
|
|
591
|
-
options: []
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
]
|
|
583
|
+
default: ['input', 'select'],
|
|
584
|
+
options: []
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
]
|
|
596
589
|
},
|
|
597
590
|
{
|
|
598
|
-
mold:
|
|
599
|
-
prop:
|
|
600
|
-
name:
|
|
591
|
+
mold: 'select',
|
|
592
|
+
prop: 'houseTypeIds',
|
|
593
|
+
name: '套型',
|
|
601
594
|
clearable: false,
|
|
602
|
-
default:
|
|
603
|
-
options: types1
|
|
595
|
+
default: 'input',
|
|
596
|
+
options: types1
|
|
604
597
|
},
|
|
605
598
|
{
|
|
606
|
-
mold:
|
|
607
|
-
prop:
|
|
608
|
-
name:
|
|
599
|
+
mold: 'select',
|
|
600
|
+
prop: 'buildingFormGroups',
|
|
601
|
+
name: '建筑形态',
|
|
609
602
|
clearable: false,
|
|
610
603
|
multiple: true,
|
|
611
|
-
default: [
|
|
612
|
-
options: types2
|
|
604
|
+
default: ['input', 'select'],
|
|
605
|
+
options: types2
|
|
613
606
|
},
|
|
614
607
|
{
|
|
615
|
-
name:
|
|
616
|
-
mold:
|
|
617
|
-
}
|
|
618
|
-
]
|
|
608
|
+
name: '查询',
|
|
609
|
+
mold: 'querybutton'
|
|
610
|
+
}
|
|
611
|
+
]
|
|
619
612
|
|
|
620
613
|
export default {
|
|
621
|
-
name:
|
|
614
|
+
name: 'FormCustomDemo',
|
|
622
615
|
|
|
623
616
|
components: {
|
|
624
617
|
NstcCustom,
|
|
625
618
|
NstcFormGroup,
|
|
626
619
|
OriginalForm,
|
|
627
|
-
NstcExpandCollapse
|
|
620
|
+
NstcExpandCollapse
|
|
628
621
|
},
|
|
629
622
|
|
|
630
623
|
data() {
|
|
631
624
|
return {
|
|
632
625
|
ruleForm: {},
|
|
633
626
|
rules: {
|
|
634
|
-
name: [{ required: true, message:
|
|
635
|
-
name1: [{ required: true, message:
|
|
627
|
+
name: [{ required: true, message: '请输入活动名称', trigger: 'blur' }],
|
|
628
|
+
name1: [{ required: true, message: '请输入活动名称', trigger: 'blur' }]
|
|
636
629
|
},
|
|
637
|
-
varietyAmount:
|
|
638
|
-
varietyAmount1:
|
|
630
|
+
varietyAmount: '',
|
|
631
|
+
varietyAmount1: '',
|
|
639
632
|
config_1,
|
|
640
633
|
config_2,
|
|
641
634
|
config_3,
|
|
@@ -649,64 +642,64 @@ export default {
|
|
|
649
642
|
unwatchs: [],
|
|
650
643
|
model: [],
|
|
651
644
|
//====
|
|
652
|
-
isDisabled:false,
|
|
645
|
+
isDisabled: false,
|
|
653
646
|
item_number: '12457.8700',
|
|
654
647
|
item_number_1: '7984556.54',
|
|
655
648
|
item_number_2: '',
|
|
656
|
-
item_
|
|
649
|
+
item_: '12132132.54',
|
|
657
650
|
tableData: [
|
|
658
651
|
{
|
|
659
|
-
date:
|
|
660
|
-
name:
|
|
661
|
-
address:
|
|
652
|
+
date: '2016-05-02',
|
|
653
|
+
name: '王小虎',
|
|
654
|
+
address: '1235646654'
|
|
662
655
|
},
|
|
663
656
|
{
|
|
664
|
-
date:
|
|
665
|
-
name:
|
|
666
|
-
address:
|
|
657
|
+
date: '2016-05-04',
|
|
658
|
+
name: '王小虎',
|
|
659
|
+
address: '798455654'
|
|
667
660
|
},
|
|
668
661
|
{
|
|
669
|
-
date:
|
|
670
|
-
name:
|
|
671
|
-
address:
|
|
662
|
+
date: '2016-05-01',
|
|
663
|
+
name: '王小虎',
|
|
664
|
+
address: '7566256.3'
|
|
672
665
|
},
|
|
673
666
|
{
|
|
674
|
-
date:
|
|
675
|
-
name:
|
|
676
|
-
address:
|
|
677
|
-
}
|
|
678
|
-
]
|
|
679
|
-
}
|
|
667
|
+
date: '2016-05-03',
|
|
668
|
+
name: '王小虎',
|
|
669
|
+
address: '775555666.33'
|
|
670
|
+
}
|
|
671
|
+
]
|
|
672
|
+
}
|
|
680
673
|
},
|
|
681
674
|
|
|
682
675
|
created() {
|
|
683
676
|
// const that = this
|
|
684
677
|
this.$nextTick(() => {
|
|
685
|
-
const that = this
|
|
678
|
+
const that = this
|
|
686
679
|
this.unwatchs.push(
|
|
687
680
|
this.$watch(
|
|
688
681
|
function () {
|
|
689
|
-
return this.model.length ? this.model[0][`cs_1`] : null
|
|
682
|
+
return this.model.length ? this.model[0][`cs_1`] : null
|
|
690
683
|
},
|
|
691
684
|
{
|
|
692
685
|
immediate: true,
|
|
693
686
|
handler(val) {
|
|
694
|
-
that.config_2[0].formConfig[5][1].disabled = val !== 2
|
|
695
|
-
that.config_2[0].formConfig[5][1].isRequired = val === 2
|
|
687
|
+
that.config_2[0].formConfig[5][1].disabled = val !== 2
|
|
688
|
+
that.config_2[0].formConfig[5][1].isRequired = val === 2
|
|
696
689
|
// that.formKey = new Date().getTime()
|
|
697
|
-
}
|
|
690
|
+
}
|
|
698
691
|
}
|
|
699
692
|
)
|
|
700
|
-
)
|
|
701
|
-
})
|
|
693
|
+
)
|
|
694
|
+
})
|
|
702
695
|
},
|
|
703
696
|
mounted() {
|
|
704
697
|
this.varietyAmount1 = this.tableData[0].address
|
|
705
698
|
},
|
|
706
699
|
watch: {
|
|
707
700
|
queryCondition: function (newVal) {
|
|
708
|
-
console.log(newVal)
|
|
709
|
-
}
|
|
701
|
+
console.log(newVal)
|
|
702
|
+
}
|
|
710
703
|
},
|
|
711
704
|
|
|
712
705
|
methods: {
|
|
@@ -717,16 +710,16 @@ export default {
|
|
|
717
710
|
// if (!val) {
|
|
718
711
|
// this.ruleForm.name1 = 1;
|
|
719
712
|
// }
|
|
720
|
-
console.log(this.ruleForm.name1,
|
|
713
|
+
console.log(this.ruleForm.name1, 'ruleForm.name1')
|
|
721
714
|
},
|
|
722
715
|
handleReset() {},
|
|
723
716
|
handleChange(val) {
|
|
724
|
-
this.model = val
|
|
725
|
-
console.log(val)
|
|
717
|
+
this.model = val
|
|
718
|
+
console.log(val)
|
|
726
719
|
},
|
|
727
720
|
|
|
728
721
|
async handleQuery(model) {
|
|
729
|
-
console.log(
|
|
722
|
+
console.log('model', model)
|
|
730
723
|
try {
|
|
731
724
|
// do something;
|
|
732
725
|
// eg:
|
|
@@ -734,48 +727,42 @@ export default {
|
|
|
734
727
|
// 验证
|
|
735
728
|
// await this.validate()
|
|
736
729
|
// 请求
|
|
737
|
-
await request.post(
|
|
730
|
+
await request.post('/api/xxx', { ...model })
|
|
738
731
|
|
|
739
732
|
// 必须保留
|
|
740
|
-
return Promise.resolve
|
|
733
|
+
return Promise.resolve
|
|
741
734
|
} catch (err) {
|
|
742
|
-
console.error(err)
|
|
735
|
+
console.error(err)
|
|
743
736
|
// deal error
|
|
744
737
|
|
|
745
738
|
// 必须保留
|
|
746
|
-
return Promise.reject
|
|
739
|
+
return Promise.reject
|
|
747
740
|
}
|
|
748
741
|
},
|
|
749
742
|
getRule(config) {
|
|
750
|
-
let rules
|
|
743
|
+
let rules
|
|
751
744
|
rules = config
|
|
752
745
|
.reduce((prev, next) => [...prev, ...next.formConfig], [])
|
|
753
|
-
.reduce(
|
|
754
|
-
(prev, next) => [...prev, ...(Array.isArray(next) ? next : [next])],
|
|
755
|
-
[]
|
|
756
|
-
)
|
|
746
|
+
.reduce((prev, next) => [...prev, ...(Array.isArray(next) ? next : [next])], [])
|
|
757
747
|
.reduce((prev, next) => {
|
|
758
748
|
if (next.link) {
|
|
759
|
-
const links = next.link.filter((item) => !!item.mold)
|
|
749
|
+
const links = next.link.filter((item) => !!item.mold)
|
|
760
750
|
|
|
761
|
-
return [...prev, next, ...links]
|
|
751
|
+
return [...prev, next, ...links]
|
|
762
752
|
}
|
|
763
753
|
|
|
764
|
-
return [...prev, next]
|
|
754
|
+
return [...prev, next]
|
|
765
755
|
}, [])
|
|
766
756
|
.filter((item) => item.isRequired)
|
|
767
757
|
.reduce((res, curr) => {
|
|
768
|
-
const isInput =
|
|
769
|
-
curr.mold === "input" ||
|
|
770
|
-
curr.prop === "dueDate" ||
|
|
771
|
-
"lastShipmentDate";
|
|
758
|
+
const isInput = curr.mold === 'input' || curr.prop === 'dueDate' || 'lastShipmentDate'
|
|
772
759
|
|
|
773
760
|
return {
|
|
774
761
|
...res,
|
|
775
762
|
[curr.prop]: {
|
|
776
763
|
required: true,
|
|
777
|
-
message: `请${isInput ?
|
|
778
|
-
trigger: isInput ?
|
|
764
|
+
message: `请${isInput ? '输入' : '选择'}${curr.name}`,
|
|
765
|
+
trigger: isInput ? 'blur' : 'change'
|
|
779
766
|
// whitespace: isInput || undefined,
|
|
780
767
|
// ...isInput
|
|
781
768
|
// ? {
|
|
@@ -784,13 +771,12 @@ export default {
|
|
|
784
771
|
// }
|
|
785
772
|
// }
|
|
786
773
|
// : {}
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
}, {})
|
|
790
|
-
return rules
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
}
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
}, {})
|
|
777
|
+
return rules
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
}
|
|
794
781
|
</script>
|
|
795
|
-
<style lang="less" scoped>
|
|
796
|
-
</style>
|
|
782
|
+
<style lang="less" scoped></style>
|