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.
Files changed (175) hide show
  1. package/README.md +1 -1
  2. package/nstc-g6/components/Calendar/index.js +5 -5
  3. package/nstc-g6/components/Calendar/src/basic/month-table.vue +12 -20
  4. package/nstc-g6/components/Calendar/src/basic/year-table.vue +18 -22
  5. package/nstc-g6/components/Calendar/src/main.vue +1 -5
  6. package/nstc-g6/components/DialogForm/index.js +5 -5
  7. package/nstc-g6/components/DialogForm/src/demo/index.vue +18 -27
  8. package/nstc-g6/components/DialogForm/src/main.vue +15 -21
  9. package/nstc-g6/components/Form/A_DEMO/component/originalForm.vue +35 -50
  10. package/nstc-g6/components/Form/A_DEMO/config/config_3.js +1115 -1110
  11. package/nstc-g6/components/Form/A_DEMO/index.vue +7 -29
  12. package/nstc-g6/components/Form/AutocompleteCustom/index.vue +3 -5
  13. package/nstc-g6/components/Form/BusinessSpecific/InputMultiple.vue +60 -62
  14. package/nstc-g6/components/Form/BusinessSpecific/InputWithUnit.vue +12 -35
  15. package/nstc-g6/components/Form/BusinessSpecific/SelectTreeDialog.vue +77 -77
  16. package/nstc-g6/components/Form/CascaderCustom/index.vue +4 -4
  17. package/nstc-g6/components/Form/CheckboxCustom/index.vue +5 -11
  18. package/nstc-g6/components/Form/Component.vue +56 -78
  19. package/nstc-g6/components/Form/ComponentSecond.vue +55 -77
  20. package/nstc-g6/components/Form/InputAndDialog/index.js +5 -5
  21. package/nstc-g6/components/Form/InputAndDialog/src/main.vue +130 -153
  22. package/nstc-g6/components/Form/InputCustom/demo/index.vue +4 -12
  23. package/nstc-g6/components/Form/InputCustom/index.vue +51 -54
  24. package/nstc-g6/components/Form/IntervalinputCustom/demo/index.vue +1 -3
  25. package/nstc-g6/components/Form/IntervalinputCustom/index.vue +19 -41
  26. package/nstc-g6/components/Form/Item.vue +15 -30
  27. package/nstc-g6/components/Form/ItemSecond.vue +7 -22
  28. package/nstc-g6/components/Form/List.vue +12 -28
  29. package/nstc-g6/components/Form/ListSecond.vue +11 -27
  30. package/nstc-g6/components/Form/RadioCustom/index.vue +5 -23
  31. package/nstc-g6/components/Form/SelectAccount/index.js +5 -5
  32. package/nstc-g6/components/Form/SelectAccount/src/demo/index.vue +34 -28
  33. package/nstc-g6/components/Form/SelectAccount/src/main.vue +112 -83
  34. package/nstc-g6/components/Form/SelectAndDialog/index.js +5 -5
  35. package/nstc-g6/components/Form/SelectAndDialog/src/main.vue +126 -149
  36. package/nstc-g6/components/Form/SelectCashFlow/index.js +5 -5
  37. package/nstc-g6/components/Form/SelectCashFlow/src/demo/index.vue +18 -19
  38. package/nstc-g6/components/Form/SelectCashFlow/src/main.vue +52 -41
  39. package/nstc-g6/components/Form/SelectCustom/demo/index.vue +14 -16
  40. package/nstc-g6/components/Form/SelectCustom/index.vue +129 -139
  41. package/nstc-g6/components/Form/SelectSubject/index.js +5 -5
  42. package/nstc-g6/components/Form/SelectSubject/src/demo/index.vue +42 -48
  43. package/nstc-g6/components/Form/SelectSubject/src/main.vue +83 -86
  44. package/nstc-g6/components/Form/SelectindialogCustom/demo/index.vue +34 -35
  45. package/nstc-g6/components/Form/SelectindialogCustom/index.vue +133 -148
  46. package/nstc-g6/components/Form/SelectindialogCustom/install.js +3 -3
  47. package/nstc-g6/components/Form/TableRadioCustom/demo/index.vue +1 -7
  48. package/nstc-g6/components/Form/TableRadioCustom/index.vue +17 -26
  49. package/nstc-g6/components/Form/TextCustom/index.vue +2 -2
  50. package/nstc-g6/components/Form/UploadCustom/demo/index.vue +1 -3
  51. package/nstc-g6/components/Form/UploadCustom/index.vue +143 -173
  52. package/nstc-g6/components/Form/configs.js +3 -14
  53. package/nstc-g6/components/Form/configsSecond.js +3 -16
  54. package/nstc-g6/components/Form/index.js +1 -1
  55. package/nstc-g6/components/Form/payeePersonSelect/index.js +5 -5
  56. package/nstc-g6/components/Form/payeePersonSelect/src/demo/index.vue +50 -44
  57. package/nstc-g6/components/Form/payeePersonSelect/src/main.vue +73 -82
  58. package/nstc-g6/components/FormGroup/index.js +5 -5
  59. package/nstc-g6/components/FormGroup/src/demo/config.js +18 -19
  60. package/nstc-g6/components/FormGroup/src/demo/index.vue +14 -22
  61. package/nstc-g6/components/FormGroup/src/main.vue +122 -141
  62. package/nstc-g6/components/FormGroup/src/validate.js +11 -13
  63. package/nstc-g6/components/InputTag/InputTag.vue +78 -111
  64. package/nstc-g6/components/NstcBackToTop/NstcBackToTop.vue +24 -24
  65. package/nstc-g6/components/NstcBranchLazyLoad/NstcBranchLazyLoad.vue +4 -13
  66. package/nstc-g6/components/NstcCharts/NstcCharts.vue +9 -18
  67. package/nstc-g6/components/NstcCharts/define.js +1 -6
  68. package/nstc-g6/components/NstcConfirm/NstcConfirm.vue +6 -21
  69. package/nstc-g6/components/NstcConfirm/index.js +21 -19
  70. package/nstc-g6/components/NstcDialog/NstcDialog.vue +34 -38
  71. package/nstc-g6/components/NstcDialogForm/NstcDialogForm.vue +17 -21
  72. package/nstc-g6/components/NstcDialogTable/NstcDialogTable.vue +4 -17
  73. package/nstc-g6/components/NstcDropdown/NstcDropdown.vue +2 -12
  74. package/nstc-g6/components/NstcDropdownTree/NstcDropdownTree.vue +3 -13
  75. package/nstc-g6/components/NstcElectronicFile/NstcElectronicFile.vue +18 -78
  76. package/nstc-g6/components/NstcExcelCustomImport/NstcExcelCustomImport.vue +121 -147
  77. package/nstc-g6/components/NstcExcelImport/NstcExcelImport.vue +9 -31
  78. package/nstc-g6/components/NstcExcelImportN/NstcExcelImportN.vue +10 -33
  79. package/nstc-g6/components/NstcExpandCollapse/NstcExpandCollapse.vue +12 -16
  80. package/nstc-g6/components/NstcFileUpload/NstcFileUpload.vue +19 -75
  81. package/nstc-g6/components/NstcForm/A_DEMO/component/originalForm.vue +35 -50
  82. package/nstc-g6/components/NstcForm/A_DEMO/config/config_3.js +1115 -1110
  83. package/nstc-g6/components/NstcForm/A_DEMO/index.vue +340 -354
  84. package/nstc-g6/components/NstcForm/AutocompleteCustom/index.vue +2 -2
  85. package/nstc-g6/components/NstcForm/BusinessSpecific/InputWithUnit.vue +11 -34
  86. package/nstc-g6/components/NstcForm/BusinessSpecific/SelectTreeDialog.vue +77 -77
  87. package/nstc-g6/components/NstcForm/CheckboxCustom/index.vue +5 -11
  88. package/nstc-g6/components/NstcForm/Component.vue +17 -62
  89. package/nstc-g6/components/NstcForm/ComponentSecond.vue +55 -77
  90. package/nstc-g6/components/NstcForm/InputAndDialog/NstcInputAndDialog.vue +6 -24
  91. package/nstc-g6/components/NstcForm/InputCustom/index.vue +2 -8
  92. package/nstc-g6/components/NstcForm/IntervalInputCustom/index.vue +4 -21
  93. package/nstc-g6/components/NstcForm/Item.vue +3 -15
  94. package/nstc-g6/components/NstcForm/ItemSecond.vue +7 -22
  95. package/nstc-g6/components/NstcForm/List.vue +12 -28
  96. package/nstc-g6/components/NstcForm/ListSecond.vue +11 -27
  97. package/nstc-g6/components/NstcForm/RadioCustom/index.vue +5 -23
  98. package/nstc-g6/components/NstcForm/SelectAccount/NstcSelectAccount.vue +4 -24
  99. package/nstc-g6/components/NstcForm/SelectAndDialog/NstcSelectAndDialog.vue +7 -30
  100. package/nstc-g6/components/NstcForm/SelectCashFlow/NstcSelectCashFlow.vue +50 -38
  101. package/nstc-g6/components/NstcForm/SelectCustom/index.vue +6 -16
  102. package/nstc-g6/components/NstcForm/SelectSubject/NstcSelectSubject.vue +72 -82
  103. package/nstc-g6/components/NstcForm/SelectindialogCustom/index.vue +6 -20
  104. package/nstc-g6/components/NstcForm/TableRadioCustom/index.vue +17 -26
  105. package/nstc-g6/components/NstcForm/TextCustom/index.vue +2 -2
  106. package/nstc-g6/components/NstcForm/UploadCustom/index.vue +13 -60
  107. package/nstc-g6/components/NstcForm/configs.js +3 -14
  108. package/nstc-g6/components/NstcForm/configsSecond.js +3 -16
  109. package/nstc-g6/components/NstcForm/index.js +1 -1
  110. package/nstc-g6/components/NstcForm/payeePersonSelect/NstcPayeePerson.vue +57 -73
  111. package/nstc-g6/components/NstcPagination/NstcPagination.vue +2 -12
  112. package/nstc-g6/components/NstcScreenFull/NstcScreenFull.vue +2 -3
  113. package/nstc-g6/components/NstcSelectTree/NstcSelectTree.vue +4 -15
  114. package/nstc-g6/components/NstcSelectTreeList/NstcSelectTreeList.vue +5 -20
  115. package/nstc-g6/components/NstcSticky/NstcSticky.vue +10 -4
  116. package/nstc-g6/components/NstcSvgIcon/NstcSvgIcon.vue +1 -7
  117. package/nstc-g6/components/NstcTab/NstcTab.vue +8 -20
  118. package/nstc-g6/components/NstcTabWithBadge/NstcTabWithBadge.vue +7 -7
  119. package/nstc-g6/components/NstcTable/ElTableColumnCustom/index.vue +88 -126
  120. package/nstc-g6/components/NstcTable/NstcTable.vue +4 -17
  121. package/nstc-g6/components/NstcTableSet/NstcTableSet.vue +27 -72
  122. package/nstc-g6/components/NstcThemePicker/NstcThemePicker.vue +13 -14
  123. package/nstc-g6/components/NstcUploadCustomExcel/NstcUploadCustomExcel.vue +3 -13
  124. package/nstc-g6/components/NstcUploadExcel/NstcUploadExcel.vue +21 -22
  125. package/nstc-g6/components/NstcWorkBench/NstcWorkBench.vue +4 -17
  126. package/nstc-g6/components/Search/NstcSearch.vue +12 -47
  127. package/nstc-g6/components/Search/src/demo/index copy.vue +28 -28
  128. package/nstc-g6/components/Search/src/demo/index.vue +36 -36
  129. package/nstc-g6/components/Search/src/main copy.vue +169 -204
  130. package/nstc-g6/components/approvelTwo/main.vue +2 -6
  131. package/nstc-g6/components/approvelTwo/progress.vue +7 -29
  132. package/nstc-g6/directives/VCopy/index.js +52 -54
  133. package/nstc-g6/directives/VNstcNumber/index.js +1 -1
  134. package/nstc-g6/directives/VNstcNumber/temp.js +357 -362
  135. package/nstc-g6/utils/mapper_aims.js +774 -775
  136. package/nstc-g6/utils/parseTime.js +38 -36
  137. package/nstc-g6/utils/validate/index.js +2 -2
  138. package/nstc-g6/utils/vendor/Export2Excel.js +110 -111
  139. package/nstc-g6/utils/vendor/Export2Zip.js +12 -7
  140. package/nstc-g6/utils/vue-bus.js +1 -1
  141. package/package.json +1 -1
  142. package/src/assets/iconFont/demo_index.html +1 -1
  143. package/src/assets/iconFont/iconfont.js +66 -1
  144. package/src/assets/iconFont2/demo_index.html +277 -286
  145. package/src/assets/iconFont2/iconfont.js +66 -1
  146. package/src/components/Button/button-group.vue +1 -1
  147. package/src/components/Layout/HeaderWrap/indexN.vue +1 -1
  148. package/src/components/Layout/indexN.vue +1 -2
  149. package/src/components/LoginTemporary/indexN.vue +12 -2
  150. package/src/components/TableOperateColumn/index.vue +1 -1
  151. package/src/plugins/Print/print-js/README.md +5 -5
  152. package/src/plugins/Print/print-js/package.json +2 -2
  153. package/src/plugins/Print/print-js/src/index.d.ts +36 -36
  154. package/src/plugins/Print/print-js/src/js/browser.js +3 -1
  155. package/src/plugins/Print/print-js/src/js/functions.js +16 -10
  156. package/src/plugins/Print/print-js/src/js/html.js +2 -2
  157. package/src/plugins/Print/print-js/src/js/image.js +1 -1
  158. package/src/plugins/Print/print-js/src/js/init.js +15 -7
  159. package/src/plugins/Print/print-js/src/js/json.js +14 -4
  160. package/src/plugins/Print/print-js/src/js/modal.js +16 -15
  161. package/src/plugins/Print/print-js/src/js/pdf.js +1 -1
  162. package/src/plugins/Print/print-js/src/js/print.js +6 -6
  163. package/src/plugins/Sign/NetSM3/InfosecNetSignCNGAgent.min.js +1825 -1592
  164. package/src/plugins/Sign/cfca/index.js +525 -520
  165. package/src/plugins/Sign/sign.js +128 -128
  166. package/style/index.css +1 -1
  167. package/style/index.css.map +1 -1
  168. package/theme/blue.css +1 -1
  169. package/theme/cctcRed.css +1 -1
  170. package/theme/green.css +1 -1
  171. package/theme/lightBlue.css +1 -1
  172. package/theme/orange.css +1 -1
  173. package/theme/purple.css +1 -1
  174. package/theme/red.css +1 -1
  175. 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
- <el-input
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
- <el-input
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">disabled状态切换</el-button>
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 "../index";
139
- import NstcExpandCollapse from "../../ExpandCollapse";
140
- import request from "@/utils/request";
141
- import { SUPPORT_TYPE } from "../configs";
142
- import NstcFormGroup from "^/FormGroup/src/main";
143
- import OriginalForm from "^/Form/A_DEMO/component/originalForm";
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: "input",
158
- name: "项目名称",
150
+ mold: 'input',
151
+ name: '项目名称',
159
152
  width: 200,
160
- prop: "searchContent",
161
- placeholder: "请输入项目名称",
153
+ prop: 'searchContent',
154
+ placeholder: '请输入项目名称'
162
155
  },
163
156
  {
164
- mold: "input",
165
- name: "金额",
166
- prop: "money",
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: "input",
174
- name: "项目名称",
166
+ mold: 'input',
167
+ name: '项目名称',
175
168
  width: 200,
176
- prop: "searchContent1",
177
- placeholder: "请输入项目名称",
169
+ prop: 'searchContent1',
170
+ placeholder: '请输入项目名称'
178
171
  },
179
172
  {
180
- mold: "input",
181
- name: "金额",
182
- prop: "money1",
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: "querybutton",
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: "input",
200
- name: "开证费率",
201
- prop: "openRate",
202
- class: ["nstc-rate-num"],
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: "input",
209
- name: "可以输入负数",
210
- prop: "issueFee",
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: "input",
217
- name: "综合成本",
218
- prop: "synCost",
209
+ mold: 'input',
210
+ name: '综合成本',
211
+ prop: 'synCost'
219
212
  },
220
213
  {
221
- mold: "selectindialog",
222
- name: "金融机构",
223
- title: "金融机构",
224
- prop: "openRate",
225
- placeholder: "请选择",
226
- labelKey: "relCorpFullName",
227
- valueKey: "relCorpId",
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: "input",
232
- name: "单位名称",
233
- prop: "relCorpFullName",
234
- width: "180px",
224
+ mold: 'input',
225
+ name: '单位名称',
226
+ prop: 'relCorpFullName',
227
+ width: '180px'
235
228
  },
236
229
  {
237
- mold: "input",
238
- name: "组织编号",
239
- prop: "relCorpNo",
240
- width: "180px",
241
- },
230
+ mold: 'input',
231
+ name: '组织编号',
232
+ prop: 'relCorpNo',
233
+ width: '180px'
234
+ }
242
235
  ],
243
236
  columns: [
244
237
  {
245
- label: "组织编号",
246
- prop: "relCorpNo",
238
+ label: '组织编号',
239
+ prop: 'relCorpNo'
247
240
  },
248
241
  {
249
- label: "单位中文名称",
250
- prop: "relCorpFullName",
242
+ label: '单位中文名称',
243
+ prop: 'relCorpFullName'
251
244
  },
252
245
  {
253
- label: "单位简称",
254
- prop: "relCorpName",
246
+ label: '单位简称',
247
+ prop: 'relCorpName'
255
248
  },
256
249
  {
257
- label: "单位类型",
258
- prop: "relCorpType",
259
- },
260
- ],
261
- },
250
+ label: '单位类型',
251
+ prop: 'relCorpType'
252
+ }
253
+ ]
254
+ }
262
255
  ],
263
256
  [
264
257
  {
265
- mold: "input",
266
- name: "开证费率",
267
- prop: "openRate",
268
- class: ["nstc-rate-num"],
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: "select",
275
- name: "金融机构",
276
- prop: "e",
267
+ mold: 'select',
268
+ name: '金融机构',
269
+ prop: 'e',
277
270
  isRequired: true,
278
271
  remote: true,
279
272
  filterable: true,
280
- httpMethod: "get",
281
- valueKey: "cnapsNo",
282
- labelKey: "branchBankName",
283
- query: "branchBankName",
273
+ httpMethod: 'get',
274
+ valueKey: 'cnapsNo',
275
+ labelKey: 'branchBankName',
276
+ query: 'branchBankName',
284
277
  lazyLoad: true,
285
- url: "/api/nstc-mdm/1.0/branchBank",
286
- pageMode: "special",
287
- pageCurrentKey: "page.current",
288
- pageSizeKey: "page.size",
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: "input",
294
- name: "开证费率",
295
- prop: "openRate",
296
- class: ["nstc-rate-num"],
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: "select",
303
- name: "测试分类",
304
- prop: "f_1",
295
+ mold: 'select',
296
+ name: '测试分类',
297
+ prop: 'f_1',
305
298
  options: [
306
- { label: "111", value: "1212" },
307
- { label: "222", value: "1212111" },
308
- ],
309
- },
299
+ { label: '111', value: '1212' },
300
+ { label: '222', value: '1212111' }
301
+ ]
302
+ }
310
303
  ],
311
304
  [
312
305
  {
313
- mold: "datepicker",
314
- name: "开始日",
315
- prop: "k_2",
316
- isRequired: true,
306
+ mold: 'datepicker',
307
+ name: '开始日',
308
+ prop: 'k_2',
309
+ isRequired: true
317
310
  },
318
311
  {
319
- mold: "select",
320
- name: "测试分类11",
321
- prop: "cs_1",
312
+ mold: 'select',
313
+ name: '测试分类11',
314
+ prop: 'cs_1',
322
315
  options: [
323
- { label: "111", value: 1 },
324
- { label: "222", value: 2 },
325
- ],
326
- },
316
+ { label: '111', value: 1 },
317
+ { label: '222', value: 2 }
318
+ ]
319
+ }
327
320
  ],
328
321
  [
329
322
  {
330
- mold: "inputwithunit",
331
- name: "期限",
332
- prop: "k_3",
323
+ mold: 'inputwithunit',
324
+ name: '期限',
325
+ prop: 'k_3',
333
326
  default: [null, 3],
334
327
  options: [
335
- { label: "", value: 3 },
336
- { label: "", value: 2 },
337
- { label: "", value: 1 },
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: "select",
343
- name: "测试分类22",
344
- prop: "cs_2",
335
+ mold: 'select',
336
+ name: '测试分类22',
337
+ prop: 'cs_2',
345
338
  disabled: true,
346
339
  isRequired: false,
347
340
  options: [
348
- { label: "333", value: 3 },
349
- { label: "444", value: 4 },
350
- ],
351
- },
341
+ { label: '333', value: 3 },
342
+ { label: '444', value: 4 }
343
+ ]
344
+ }
352
345
  ],
353
346
  [
354
347
  {
355
- mold: "inputwithunit",
356
- name: "期限",
357
- prop: "k_3",
348
+ mold: 'inputwithunit',
349
+ name: '期限',
350
+ prop: 'k_3',
358
351
  default: [null, 3],
359
352
  options: [
360
- { label: "", value: 3 },
361
- { label: "", value: 2 },
362
- { label: "", value: 1 },
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: "nstcselecttree",
368
- name: "单位下拉树",
369
- prop: "y_3",
370
- url: "/api/nstc-mdm/1.0/unit",
371
- nodeKey: "unitNo",
372
- queryKey: "unitName",
373
- defaultProps: { children: "children", label: "unitName" },
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: "input",
380
- type: "textarea",
381
- class: "nstc-form-only-one",
382
- name: "独占一行",
383
- prop: "memo",
384
- maxLength: "128",
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: "nstcfileupload",
395
- prop: "attchFileList",
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: "input",
404
- name: "项目名称",
396
+ mold: 'input',
397
+ name: '项目名称',
405
398
  width: 200,
406
- prop: "searchContent",
407
- placeholder: "请输入项目名称",
399
+ prop: 'searchContent',
400
+ placeholder: '请输入项目名称'
408
401
  },
409
402
  {
410
- mold: "input",
411
- name: "金额",
412
- prop: "money",
413
- placeholder: "请输入金额",
414
- unit: "",
403
+ mold: 'input',
404
+ name: '金额',
405
+ prop: 'money',
406
+ placeholder: '请输入金额',
407
+ unit: ''
415
408
  },
416
409
  {
417
- mold: "datepicker",
418
- name: "选择时间",
410
+ mold: 'datepicker',
411
+ name: '选择时间',
419
412
  width: 180,
420
- prop: "date",
421
- placeholder: "请选择时间",
413
+ prop: 'date',
414
+ placeholder: '请选择时间'
422
415
  },
423
416
  {
424
- mold: "cascader",
425
- name: "级联选择器",
417
+ mold: 'cascader',
418
+ name: '级联选择器',
426
419
  width: 220,
427
- prop: "cascader",
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: "radio",
449
- name: "选择城市",
441
+ mold: 'radio',
442
+ name: '选择城市',
450
443
  width: 300,
451
- prop: "city",
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: "checkbox",
475
- name: "多选框",
467
+ mold: 'checkbox',
468
+ name: '多选框',
476
469
  width: 300,
477
- prop: "checkbox",
470
+ prop: 'checkbox',
478
471
  // type: 'button',
479
472
  options: [
480
473
  {
481
- label: "复选框 A",
482
- value: "复选框 A",
474
+ label: '复选框 A',
475
+ value: '复选框 A'
483
476
  },
484
477
  {
485
- label: "复选框 B",
486
- value: "复选框 B",
487
- disabled: true,
478
+ label: '复选框 B',
479
+ value: '复选框 B',
480
+ disabled: true
488
481
  },
489
482
  {
490
- label: "复选框 C",
491
- value: "复选框 C",
492
- },
493
- ],
483
+ label: '复选框 C',
484
+ value: '复选框 C'
485
+ }
486
+ ]
494
487
  },
495
488
  {
496
- mold: "upload",
497
- name: "上传附件",
489
+ mold: 'upload',
490
+ name: '上传附件',
498
491
  width: 180,
499
- prop: "file",
492
+ prop: 'file'
500
493
  },
501
494
  // 联动1 组件位于同一行// 1 对 多
502
495
  {
503
- mold: "select",
504
- name: "类别",
505
- prop: "mode",
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: "select", // 指定mold 将渲染至同一块区域
516
- prop: "districts",
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: "input",
525
- options: types1,
517
+ default: 'input',
518
+ options: types1
526
519
  }
527
520
  : {
528
- default: "select",
529
- options: types2,
530
- };
531
- },
521
+ default: 'select',
522
+ options: types2
523
+ }
524
+ }
532
525
  },
533
526
  {
534
- mold: "select",
535
- prop: "plateIds",
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: "input",
542
- options: types2,
534
+ default: 'input',
535
+ options: types2
543
536
  }
544
537
  : {
545
- default: "select",
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: "select",
555
- prop: "wuyeTypes",
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: "houseTypeIds",
557
+ prop: 'houseTypeIds',
565
558
  handler: async function (val) {
566
559
  return +val === 1
567
560
  ? {
568
561
  renderable: true,
569
- default: "input",
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: "buildingFormGroups",
573
+ prop: 'buildingFormGroups',
581
574
  handler: async function (val) {
582
575
  return +val === 2
583
576
  ? {
584
577
  renderable: true,
585
- default: ["input", "select"],
586
- options: types2,
578
+ default: ['input', 'select'],
579
+ options: types2
587
580
  }
588
581
  : {
589
582
  renderable: false,
590
- default: ["input", "select"],
591
- options: [],
592
- };
593
- },
594
- },
595
- ],
583
+ default: ['input', 'select'],
584
+ options: []
585
+ }
586
+ }
587
+ }
588
+ ]
596
589
  },
597
590
  {
598
- mold: "select",
599
- prop: "houseTypeIds",
600
- name: "套型",
591
+ mold: 'select',
592
+ prop: 'houseTypeIds',
593
+ name: '套型',
601
594
  clearable: false,
602
- default: "input",
603
- options: types1,
595
+ default: 'input',
596
+ options: types1
604
597
  },
605
598
  {
606
- mold: "select",
607
- prop: "buildingFormGroups",
608
- name: "建筑形态",
599
+ mold: 'select',
600
+ prop: 'buildingFormGroups',
601
+ name: '建筑形态',
609
602
  clearable: false,
610
603
  multiple: true,
611
- default: ["input", "select"],
612
- options: types2,
604
+ default: ['input', 'select'],
605
+ options: types2
613
606
  },
614
607
  {
615
- name: "查询",
616
- mold: "querybutton",
617
- },
618
- ];
608
+ name: '查询',
609
+ mold: 'querybutton'
610
+ }
611
+ ]
619
612
 
620
613
  export default {
621
- name: "FormCustomDemo",
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: "请输入活动名称", trigger: "blur" }],
635
- name1: [{ required: true, message: "请输入活动名称", trigger: "blur" }],
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_ : '12132132.54',
649
+ item_: '12132132.54',
657
650
  tableData: [
658
651
  {
659
- date: "2016-05-02",
660
- name: "王小虎",
661
- address: "1235646654",
652
+ date: '2016-05-02',
653
+ name: '王小虎',
654
+ address: '1235646654'
662
655
  },
663
656
  {
664
- date: "2016-05-04",
665
- name: "王小虎",
666
- address: "798455654",
657
+ date: '2016-05-04',
658
+ name: '王小虎',
659
+ address: '798455654'
667
660
  },
668
661
  {
669
- date: "2016-05-01",
670
- name: "王小虎",
671
- address: "7566256.3",
662
+ date: '2016-05-01',
663
+ name: '王小虎',
664
+ address: '7566256.3'
672
665
  },
673
666
  {
674
- date: "2016-05-03",
675
- name: "王小虎",
676
- address: "775555666.33",
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, "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("model", model);
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("/api/xxx", { ...model });
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 ? "输入" : "选择"}${curr.name}`,
778
- trigger: isInput ? "blur" : "change",
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>