n20-common-lib 1.3.8 → 1.3.11
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/nstc-g6/assets/svg/404.svg +1 -0
- package/nstc-g6/assets/svg/addFile.svg +32 -0
- package/nstc-g6/assets/svg/bug.svg +1 -0
- package/nstc-g6/assets/svg/chart.svg +1 -0
- package/nstc-g6/assets/svg/clipboard.svg +1 -0
- package/nstc-g6/assets/svg/component.svg +1 -0
- package/nstc-g6/assets/svg/dashboard.svg +1 -0
- package/nstc-g6/assets/svg/deleteFile.svg +28 -0
- package/nstc-g6/assets/svg/documentation.svg +1 -0
- package/nstc-g6/assets/svg/drag.svg +1 -0
- package/nstc-g6/assets/svg/edit.svg +1 -0
- package/nstc-g6/assets/svg/education.svg +1 -0
- package/nstc-g6/assets/svg/email.svg +1 -0
- package/nstc-g6/assets/svg/example.svg +1 -0
- package/nstc-g6/assets/svg/excel.svg +1 -0
- package/nstc-g6/assets/svg/exit-fullscreen.svg +1 -0
- package/nstc-g6/assets/svg/eye-open.svg +1 -0
- package/nstc-g6/assets/svg/eye.svg +1 -0
- package/nstc-g6/assets/svg/favorite.svg +1 -0
- package/nstc-g6/assets/svg/favorite_active.svg +1 -0
- package/nstc-g6/assets/svg/favorite_x400.svg +1 -0
- package/nstc-g6/assets/svg/favorite_x400_active.svg +1 -0
- package/nstc-g6/assets/svg/favorite_x400_blank.svg +1 -0
- package/nstc-g6/assets/svg/filter.svg +16 -0
- package/nstc-g6/assets/svg/filter@2x.png +0 -0
- package/nstc-g6/assets/svg/filterActive.svg +16 -0
- package/nstc-g6/assets/svg/filterClose@2x.png +0 -0
- package/nstc-g6/assets/svg/form.svg +1 -0
- package/nstc-g6/assets/svg/fullscreen.svg +1 -0
- package/nstc-g6/assets/svg/guide.svg +1 -0
- package/nstc-g6/assets/svg/hourglass.svg +19 -0
- package/nstc-g6/assets/svg/icon.svg +1 -0
- package/nstc-g6/assets/svg/international.svg +1 -0
- package/nstc-g6/assets/svg/language.svg +1 -0
- package/nstc-g6/assets/svg/left-dis.svg +1 -0
- package/nstc-g6/assets/svg/left.svg +1 -0
- package/nstc-g6/assets/svg/link.svg +1 -0
- package/nstc-g6/assets/svg/list.svg +1 -0
- package/nstc-g6/assets/svg/lock.svg +1 -0
- package/nstc-g6/assets/svg/message-t.svg +1 -0
- package/nstc-g6/assets/svg/money.svg +1 -0
- package/nstc-g6/assets/svg/money3.svg +1 -0
- package/nstc-g6/assets/svg/money4.svg +1 -0
- package/nstc-g6/assets/svg/moneyTwo.svg +1 -0
- package/nstc-g6/assets/svg/msg_white.svg +1 -0
- package/nstc-g6/assets/svg/nested.svg +1 -0
- package/nstc-g6/assets/svg/newsearch.svg +19 -0
- package/nstc-g6/assets/svg/password.svg +1 -0
- package/nstc-g6/assets/svg/pdf.svg +1 -0
- package/nstc-g6/assets/svg/people.svg +1 -0
- package/nstc-g6/assets/svg/peoples.svg +1 -0
- package/nstc-g6/assets/svg/phone.svg +1 -0
- package/nstc-g6/assets/svg/phone_msg.svg +1 -0
- package/nstc-g6/assets/svg/qq.svg +1 -0
- package/nstc-g6/assets/svg/right-dis.svg +1 -0
- package/nstc-g6/assets/svg/right.svg +1 -0
- package/nstc-g6/assets/svg/search.svg +1 -0
- package/nstc-g6/assets/svg/searchActive.svg +19 -0
- package/nstc-g6/assets/svg/shopping.svg +1 -0
- package/nstc-g6/assets/svg/size.svg +1 -0
- package/nstc-g6/assets/svg/skill.svg +1 -0
- package/nstc-g6/assets/svg/star.svg +1 -0
- package/nstc-g6/assets/svg/steam.svg +1 -0
- package/nstc-g6/assets/svg/tab.svg +1 -0
- package/nstc-g6/assets/svg/table.svg +1 -0
- package/nstc-g6/assets/svg/theme.svg +1 -0
- package/nstc-g6/assets/svg/tree-table.svg +1 -0
- package/nstc-g6/assets/svg/tree.svg +1 -0
- package/nstc-g6/assets/svg/user.svg +1 -0
- package/nstc-g6/assets/svg/wechat.svg +1 -0
- package/nstc-g6/assets/svg/z-left-2-dis.svg +1 -0
- package/nstc-g6/assets/svg/z-left-2.svg +1 -0
- package/nstc-g6/assets/svg/z-right-2-dis.svg +1 -0
- package/nstc-g6/assets/svg/z-right-2.svg +1 -0
- package/nstc-g6/assets/svg/z-right.svg +1 -0
- package/nstc-g6/assets/svg/zip.svg +1 -0
- package/nstc-g6/components/Calendar/index.js +8 -0
- package/nstc-g6/components/Calendar/src/basic/month-table.vue +129 -0
- package/nstc-g6/components/Calendar/src/basic/year-table.vue +126 -0
- package/nstc-g6/components/Calendar/src/main.vue +442 -0
- package/nstc-g6/components/DialogForm/index.js +8 -0
- package/nstc-g6/components/DialogForm/src/demo/index.vue +56 -0
- package/nstc-g6/components/DialogForm/src/main.vue +189 -0
- package/nstc-g6/components/Form/A_DEMO/component/originalForm.vue +281 -0
- package/nstc-g6/components/Form/A_DEMO/config/config_3.js +1222 -0
- package/nstc-g6/components/Form/A_DEMO/index.vue +803 -0
- package/nstc-g6/components/Form/AutocompleteCustom/index.vue +72 -0
- package/nstc-g6/components/Form/BusinessSpecific/InputMultiple.vue +191 -0
- package/nstc-g6/components/Form/BusinessSpecific/InputWithUnit.vue +128 -0
- package/nstc-g6/components/Form/BusinessSpecific/SelectTreeDialog.vue +233 -0
- package/nstc-g6/components/Form/BusinessSpecific/readme.md +7 -0
- package/nstc-g6/components/Form/CascaderCustom/index.vue +101 -0
- package/nstc-g6/components/Form/CheckboxCustom/index.vue +84 -0
- package/nstc-g6/components/Form/Component.vue +661 -0
- package/nstc-g6/components/Form/ComponentSecond.vue +650 -0
- package/nstc-g6/components/Form/DatepickerCustom/index.vue +130 -0
- package/nstc-g6/components/Form/InputAndDialog/index.js +15 -0
- package/nstc-g6/components/Form/InputAndDialog/src/main.vue +395 -0
- package/nstc-g6/components/Form/InputCustom/demo/index.vue +65 -0
- package/nstc-g6/components/Form/InputCustom/index.vue +307 -0
- package/nstc-g6/components/Form/IntervalinputCustom/demo/index.vue +31 -0
- package/nstc-g6/components/Form/IntervalinputCustom/index.vue +118 -0
- package/nstc-g6/components/Form/Item.vue +330 -0
- package/nstc-g6/components/Form/ItemSecond.vue +269 -0
- package/nstc-g6/components/Form/List.vue +146 -0
- package/nstc-g6/components/Form/ListSecond.vue +130 -0
- package/nstc-g6/components/Form/RadioCustom/index.vue +73 -0
- package/nstc-g6/components/Form/SelectAccount/index.js +15 -0
- package/nstc-g6/components/Form/SelectAccount/src/demo/index.vue +58 -0
- package/nstc-g6/components/Form/SelectAccount/src/main.vue +283 -0
- package/nstc-g6/components/Form/SelectAndDialog/index.js +15 -0
- package/nstc-g6/components/Form/SelectAndDialog/src/main.vue +384 -0
- package/nstc-g6/components/Form/SelectCashFlow/index.js +15 -0
- package/nstc-g6/components/Form/SelectCashFlow/src/demo/index.vue +42 -0
- package/nstc-g6/components/Form/SelectCashFlow/src/main.vue +126 -0
- package/nstc-g6/components/Form/SelectCustom/demo/index.vue +82 -0
- package/nstc-g6/components/Form/SelectCustom/index.vue +488 -0
- package/nstc-g6/components/Form/SelectSubject/index.js +15 -0
- package/nstc-g6/components/Form/SelectSubject/src/demo/index.vue +85 -0
- package/nstc-g6/components/Form/SelectSubject/src/main.vue +182 -0
- package/nstc-g6/components/Form/SelectindialogCustom/demo/index.vue +188 -0
- package/nstc-g6/components/Form/SelectindialogCustom/index.vue +650 -0
- package/nstc-g6/components/Form/SelectindialogCustom/install.js +7 -0
- package/nstc-g6/components/Form/TableRadioCustom/demo/index.vue +53 -0
- package/nstc-g6/components/Form/TableRadioCustom/index.vue +183 -0
- package/nstc-g6/components/Form/TextCustom/index.vue +38 -0
- package/nstc-g6/components/Form/UploadCustom/demo/index.vue +31 -0
- package/nstc-g6/components/Form/UploadCustom/iconxitongshezhi-yichu.png +0 -0
- package/nstc-g6/components/Form/UploadCustom/index.vue +506 -0
- package/nstc-g6/components/Form/configs.js +191 -0
- package/nstc-g6/components/Form/configsSecond.js +161 -0
- package/nstc-g6/components/Form/index.js +8 -0
- package/nstc-g6/components/Form/index.scss +29 -0
- package/nstc-g6/components/Form/payeePersonSelect/index.js +15 -0
- package/nstc-g6/components/Form/payeePersonSelect/src/demo/index.vue +164 -0
- package/nstc-g6/components/Form/payeePersonSelect/src/main.vue +185 -0
- package/nstc-g6/components/Form/readme.txt +4 -0
- package/nstc-g6/components/FormGroup/index.js +8 -0
- package/nstc-g6/components/FormGroup/src/demo/config.js +23 -0
- package/nstc-g6/components/FormGroup/src/demo/index.vue +85 -0
- package/nstc-g6/components/FormGroup/src/main.vue +639 -0
- package/nstc-g6/components/FormGroup/src/validate.js +23 -0
- package/nstc-g6/components/InputTag/InputTag.vue +270 -0
- package/nstc-g6/components/NstcApprovel/NstcApprovel.vue +24 -0
- package/nstc-g6/components/NstcBackToTop/NstcBackToTop.vue +150 -0
- package/nstc-g6/components/NstcBranchLazyLoad/NstcBranchLazyLoad.vue +123 -0
- package/nstc-g6/components/NstcCharts/NstcCharts.vue +162 -0
- package/nstc-g6/components/NstcCharts/define.js +74 -0
- package/nstc-g6/components/NstcCharts/mixins/resize.js +56 -0
- package/nstc-g6/components/NstcConfirm/NstcConfirm.vue +152 -0
- package/nstc-g6/components/NstcConfirm/index.js +25 -0
- package/nstc-g6/components/NstcDialog/NstcDialog.vue +185 -0
- package/nstc-g6/components/NstcDialogForm/NstcDialogForm.vue +176 -0
- package/nstc-g6/components/NstcDialogTable/NstcDialogTable.vue +280 -0
- package/nstc-g6/components/NstcDropdown/NstcDropdown.vue +52 -0
- package/nstc-g6/components/NstcDropdownTree/NstcDropdownTree.vue +396 -0
- package/nstc-g6/components/NstcElectronicFile/NstcElectronicFile.vue +591 -0
- package/nstc-g6/components/NstcExcelCustomImport/NstcExcelCustomImport.vue +475 -0
- package/nstc-g6/components/NstcExcelCustomImport/img/upload@2x.png +0 -0
- package/nstc-g6/components/NstcExcelExport/NstcExcelExport.vue +145 -0
- package/nstc-g6/components/NstcExcelImport/NstcExcelImport.vue +1074 -0
- package/nstc-g6/components/NstcExcelImport/img/upload@2x.png +0 -0
- package/nstc-g6/components/NstcExcelImportN/NstcExcelImportN.vue +1166 -0
- package/nstc-g6/components/NstcExpandCollapse/NstcExpandCollapse.vue +130 -0
- package/nstc-g6/components/NstcExpandCollapse/index.scss +77 -0
- package/nstc-g6/components/NstcFileUpload/NstcFileUpload.vue +989 -0
- package/nstc-g6/components/NstcFileUpload/img/addFile.svg +32 -0
- package/nstc-g6/components/NstcFileUpload/img/delete.svg +24 -0
- package/nstc-g6/components/NstcFileUpload/img/deleteFile.svg +28 -0
- package/nstc-g6/components/NstcFileUpload/img/download.svg +24 -0
- package/nstc-g6/components/NstcFileUpload/img/inputUpload.svg +30 -0
- package/nstc-g6/components/NstcFileUpload/img/look-diabled.svg +24 -0
- package/nstc-g6/components/NstcFileUpload/img/look.svg +24 -0
- package/nstc-g6/components/NstcForm/A_DEMO/component/originalForm.vue +281 -0
- package/nstc-g6/components/NstcForm/A_DEMO/config/config_3.js +1222 -0
- package/nstc-g6/components/NstcForm/A_DEMO/index.vue +796 -0
- package/nstc-g6/components/NstcForm/AutocompleteCustom/index.vue +68 -0
- package/nstc-g6/components/NstcForm/BusinessSpecific/InputMultiple.vue +189 -0
- package/nstc-g6/components/NstcForm/BusinessSpecific/InputWithUnit.vue +128 -0
- package/nstc-g6/components/NstcForm/BusinessSpecific/SelectTreeDialog.vue +233 -0
- package/nstc-g6/components/NstcForm/BusinessSpecific/readme.md +7 -0
- package/nstc-g6/components/NstcForm/CascaderCustom/index.vue +101 -0
- package/nstc-g6/components/NstcForm/CheckboxCustom/index.vue +84 -0
- package/nstc-g6/components/NstcForm/Component.vue +684 -0
- package/nstc-g6/components/NstcForm/ComponentSecond.vue +650 -0
- package/nstc-g6/components/NstcForm/DatepickerCustom/index.vue +130 -0
- package/nstc-g6/components/NstcForm/InputAndDialog/NstcInputAndDialog.vue +389 -0
- package/nstc-g6/components/NstcForm/InputCustom/index.vue +314 -0
- package/nstc-g6/components/NstcForm/IntervalInputCustom/index.vue +116 -0
- package/nstc-g6/components/NstcForm/Item.vue +327 -0
- package/nstc-g6/components/NstcForm/ItemSecond.vue +269 -0
- package/nstc-g6/components/NstcForm/List.vue +146 -0
- package/nstc-g6/components/NstcForm/ListSecond.vue +130 -0
- package/nstc-g6/components/NstcForm/RadioCustom/index.vue +73 -0
- package/nstc-g6/components/NstcForm/SelectAccount/NstcSelectAccount.vue +334 -0
- package/nstc-g6/components/NstcForm/SelectAndDialog/NstcSelectAndDialog.vue +377 -0
- package/nstc-g6/components/NstcForm/SelectCashFlow/NstcSelectCashFlow.vue +123 -0
- package/nstc-g6/components/NstcForm/SelectCustom/index.vue +460 -0
- package/nstc-g6/components/NstcForm/SelectSubject/NstcSelectSubject.vue +185 -0
- package/nstc-g6/components/NstcForm/SelectindialogCustom/index.vue +648 -0
- package/nstc-g6/components/NstcForm/TableRadioCustom/index.vue +183 -0
- package/nstc-g6/components/NstcForm/TextCustom/index.vue +38 -0
- package/nstc-g6/components/NstcForm/UploadCustom/iconxitongshezhi-yichu.png +0 -0
- package/nstc-g6/components/NstcForm/UploadCustom/index.vue +500 -0
- package/nstc-g6/components/NstcForm/configs.js +191 -0
- package/nstc-g6/components/NstcForm/configsSecond.js +161 -0
- package/nstc-g6/components/NstcForm/index.js +8 -0
- package/nstc-g6/components/NstcForm/index.scss +29 -0
- package/nstc-g6/components/NstcForm/payeePersonSelect/NstcPayeePerson.vue +188 -0
- package/nstc-g6/components/NstcForm/readme.txt +4 -0
- package/nstc-g6/components/NstcPagination/NstcPagination.vue +428 -0
- package/nstc-g6/components/NstcPagination/setPageNum.png +0 -0
- package/nstc-g6/components/NstcPagination/setpagedefault.png +0 -0
- package/nstc-g6/components/NstcScreenFull/NstcScreenFull.vue +70 -0
- package/nstc-g6/components/NstcSelectTree/NstcSelectTree.vue +729 -0
- package/nstc-g6/components/NstcSelectTreeList/NstcSelectTreeList.vue +676 -0
- package/nstc-g6/components/NstcSticky/NstcSticky.vue +97 -0
- package/nstc-g6/components/NstcSvgIcon/NstcSvgIcon.vue +72 -0
- package/nstc-g6/components/NstcTab/NstcTab.vue +80 -0
- package/nstc-g6/components/NstcTabWithBadge/NstcTabWithBadge.vue +45 -0
- package/nstc-g6/components/NstcTabWithBadge/index.scss +31 -0
- package/nstc-g6/components/NstcTable/ElTableColumnCustom/index.vue +292 -0
- package/nstc-g6/components/NstcTable/NstcTable.vue +460 -0
- package/nstc-g6/components/NstcTableSet/NstcTableSet.vue +801 -0
- package/nstc-g6/components/NstcThemePicker/NstcThemePicker.vue +186 -0
- package/nstc-g6/components/NstcUploadCustomExcel/NstcUploadCustomExcel.vue +330 -0
- package/nstc-g6/components/NstcUploadExcel/NstcUploadExcel.vue +145 -0
- package/nstc-g6/components/NstcWorkBench/NstcWorkBench.vue +176 -0
- package/nstc-g6/components/Search/NstcSearch.vue +583 -0
- package/nstc-g6/components/Search/src/demo/index copy.vue +101 -0
- package/nstc-g6/components/Search/src/demo/index.vue +103 -0
- package/nstc-g6/components/Search/src/main copy.vue +607 -0
- package/nstc-g6/components/approvelTwo/main.vue +220 -0
- package/nstc-g6/components/approvelTwo/progress.vue +154 -0
- package/nstc-g6/directives/VCopy/index.js +60 -0
- package/nstc-g6/directives/VNstcNumber/index.js +14 -0
- package/nstc-g6/directives/VNstcNumber/temp.js +446 -0
- package/nstc-g6/index.js +193 -0
- package/nstc-g6/utils/auth.js +2 -0
- package/nstc-g6/utils/axios.js +2 -0
- package/nstc-g6/utils/dateAndValidator.js +649 -0
- package/nstc-g6/utils/debounce.js +40 -0
- package/nstc-g6/utils/parseTime.js +48 -0
- package/nstc-g6/utils/validate/index.js +7 -0
- package/nstc-g6/utils/vendor/Export2Excel.js +229 -0
- package/nstc-g6/utils/vendor/Export2Zip.js +24 -0
- package/nstc-g6/utils/vue-bus.js +5 -0
- package/package.json +8 -2
- package/src/assets/css/_coreLib.scss +9 -1
- package/src/components/ChildRange/index.vue +28 -64
- package/src/components/ChildRange/style.scss +34 -0
- package/src/components/FileImport/index.vue +3 -1
- package/src/components/PageHeader/index.vue +3 -47
- package/src/components/PageHeader/style.scss +39 -0
- package/src/components/Search/index.vue +1 -97
- package/src/components/Search/style.scss +93 -0
- package/src/components/Table/ThSelectHeader.vue +28 -33
- package/src/components/Table/index.vue +4 -2
- package/src/directives/VTitle/index.js +14 -17
- package/style/css/normalize.scss +6 -6
- package/style/index.css +3 -3
- package/style/index.css.map +1 -1
- package/style/server-config.jsonc +527 -410
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [important] 请添加支持组件的类型的同时, 指定组件引入 和 对应组件默认状态值
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// const DatepickerCustom = () => import('./DatepickerCustom')
|
|
6
|
+
// const InputCustom = () => import('./InputCustom')
|
|
7
|
+
// const IntervalinputCustom = () => import('./IntervalinputCustom')
|
|
8
|
+
// const AutocompleteCustom = () => import('./AutocompleteCustom')
|
|
9
|
+
// const SelectCustom = () => import('./SelectCustom')
|
|
10
|
+
// const SelectindialogCustom = () => import('./SelectindialogCustom')
|
|
11
|
+
// const UploadCustom = () => import('./UploadCustom')
|
|
12
|
+
// const RadioCustom = () => import('./RadioCustom')
|
|
13
|
+
// const CheckboxCustom = () => import('./CheckboxCustom')
|
|
14
|
+
// const CascaderCustom = () => import('./CascaderCustom')
|
|
15
|
+
// const TextCustom = () => import('./TextCustom')
|
|
16
|
+
// const nstcuploadCustom = () => import('../Upload/src/main')
|
|
17
|
+
// const FormItemTips = () => ('../FormCreate/component/FormItemTips')
|
|
18
|
+
// const FormTooltips = () => ('../FormCreate/component/FormTooltips')
|
|
19
|
+
// const nstcselecttreeCustom = () => import('../SelectTree/src/main')
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
import DatepickerCustom from './DatepickerCustom'
|
|
23
|
+
import InputCustom from './InputCustom'
|
|
24
|
+
import IntervalinputCustom from './IntervalInputCustom'
|
|
25
|
+
import AutocompleteCustom from './AutocompleteCustom'
|
|
26
|
+
import SelectCustom from './SelectCustom'
|
|
27
|
+
import SelectindialogCustom from './SelectindialogCustom'
|
|
28
|
+
import UploadCustom from './UploadCustom'
|
|
29
|
+
import RadioCustom from './RadioCustom'
|
|
30
|
+
import CheckboxCustom from './CheckboxCustom'
|
|
31
|
+
import CascaderCustom from './CascaderCustom'
|
|
32
|
+
import TextCustom from './TextCustom'
|
|
33
|
+
// import nstcuploadCustom from '^/Upload/src/main'
|
|
34
|
+
import nstcselecttreeCustom from '../NstcSelectTree/NstcSelectTree'
|
|
35
|
+
import nstcselecttreelistCustom from '../NstcSelectTreeList/NstcSelectTreeList'
|
|
36
|
+
// import nstcfileuploadCustom from '^/FileUpload/src/main'
|
|
37
|
+
|
|
38
|
+
// 特殊的业务组件
|
|
39
|
+
import inputwithunitCustom from './BusinessSpecific/InputWithUnit'
|
|
40
|
+
import inputmultipleCustom from './BusinessSpecific/InputMultiple'
|
|
41
|
+
import selecttreedialogCustom from './BusinessSpecific/SelectTreeDialog'
|
|
42
|
+
import selectaccountCustom from './SelectAccount/NstcSelectAccount'
|
|
43
|
+
import selectcashflowCustom from './SelectCashFlow/NstcSelectCashFlow'
|
|
44
|
+
import selectsubjectCustom from './SelectSubject/NstcSelectSubject'
|
|
45
|
+
import payeePersonSelect from './payeePersonSelect/NstcPayeePerson'
|
|
46
|
+
import inputAndDialog from './InputAndDialog/NstcInputAndDialog'
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
// 定义支持的类型
|
|
50
|
+
export const SUPPORT_TYPE = [
|
|
51
|
+
'datepicker',
|
|
52
|
+
'input',
|
|
53
|
+
'intervalinput',
|
|
54
|
+
'autocomplete',
|
|
55
|
+
'select',
|
|
56
|
+
'selectindialog',
|
|
57
|
+
'upload',
|
|
58
|
+
'radio',
|
|
59
|
+
'checkbox',
|
|
60
|
+
'cascader',
|
|
61
|
+
'text',
|
|
62
|
+
'nstcupload',
|
|
63
|
+
'nstcselecttree',
|
|
64
|
+
'nstcselecttreelist',
|
|
65
|
+
'nstcfileupload',
|
|
66
|
+
'inputwithunit',
|
|
67
|
+
'inputmultiple',
|
|
68
|
+
'selecttreedialog',
|
|
69
|
+
'selectaccount',
|
|
70
|
+
'selectcashflow',
|
|
71
|
+
'selectsubject'
|
|
72
|
+
]
|
|
73
|
+
|
|
74
|
+
// 支持的类型对应的组件
|
|
75
|
+
export const components = {
|
|
76
|
+
SelectindialogCustom, // loop
|
|
77
|
+
SelectCustom,
|
|
78
|
+
DatepickerCustom,
|
|
79
|
+
InputCustom,
|
|
80
|
+
IntervalinputCustom,
|
|
81
|
+
AutocompleteCustom,
|
|
82
|
+
UploadCustom,
|
|
83
|
+
RadioCustom,
|
|
84
|
+
CheckboxCustom,
|
|
85
|
+
CascaderCustom,
|
|
86
|
+
TextCustom,
|
|
87
|
+
// nstcuploadCustom,
|
|
88
|
+
nstcselecttreeCustom,
|
|
89
|
+
nstcselecttreelistCustom,
|
|
90
|
+
// nstcfileuploadCustom,
|
|
91
|
+
inputwithunitCustom,
|
|
92
|
+
inputmultipleCustom,
|
|
93
|
+
selecttreedialogCustom,
|
|
94
|
+
selectaccountCustom,
|
|
95
|
+
selectcashflowCustom,
|
|
96
|
+
selectsubjectCustom,
|
|
97
|
+
payeePersonSelect,
|
|
98
|
+
inputAndDialog
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// 支持的类型对应的默认值
|
|
102
|
+
export function getDefaultValue({ mold, multiple, type, default: def }) {
|
|
103
|
+
let _def
|
|
104
|
+
mold = mold.replace(/ /g, '')
|
|
105
|
+
switch (mold) {
|
|
106
|
+
case 'select':
|
|
107
|
+
case 'selectindialog':
|
|
108
|
+
case 'nstcBankBanchTree':
|
|
109
|
+
case 'selecttreedialog':
|
|
110
|
+
_def = {
|
|
111
|
+
value: isEmpty(def) ? multiple ? [] : null : def
|
|
112
|
+
}
|
|
113
|
+
break
|
|
114
|
+
|
|
115
|
+
case 'input':
|
|
116
|
+
case 'autocomplete':
|
|
117
|
+
case 'text':
|
|
118
|
+
case 'nstcselecttree':
|
|
119
|
+
case 'nstcselecttreelist':
|
|
120
|
+
case 'selectaccount':
|
|
121
|
+
case 'selectcashflow':
|
|
122
|
+
case 'selectsubject':
|
|
123
|
+
_def = {
|
|
124
|
+
value: isEmpty(def) ? '' : def
|
|
125
|
+
}
|
|
126
|
+
break
|
|
127
|
+
|
|
128
|
+
case 'upload':
|
|
129
|
+
_def = {
|
|
130
|
+
value: isEmpty(def)
|
|
131
|
+
? multiple
|
|
132
|
+
? []
|
|
133
|
+
: null
|
|
134
|
+
: multiple
|
|
135
|
+
? [...def]
|
|
136
|
+
: def
|
|
137
|
+
}
|
|
138
|
+
break
|
|
139
|
+
|
|
140
|
+
case 'checkbox':
|
|
141
|
+
case 'cascader':
|
|
142
|
+
case 'intervalinput':
|
|
143
|
+
case 'nstcupload':
|
|
144
|
+
case 'nstcfileupload':
|
|
145
|
+
case 'inputwithunit':
|
|
146
|
+
case 'inputmultiple':
|
|
147
|
+
_def = {
|
|
148
|
+
value: isEmpty(def) ? [] : [...def]
|
|
149
|
+
}
|
|
150
|
+
break
|
|
151
|
+
|
|
152
|
+
case 'radio':
|
|
153
|
+
_def = {
|
|
154
|
+
value: isEmpty(def) ? null : def
|
|
155
|
+
}
|
|
156
|
+
break
|
|
157
|
+
|
|
158
|
+
case 'datewmqy':
|
|
159
|
+
case 'datepicker':
|
|
160
|
+
_def = {
|
|
161
|
+
value: type && type.includes('range')
|
|
162
|
+
? isEmpty(def) ? [] : [...def]
|
|
163
|
+
: isEmpty(def) ? null : def
|
|
164
|
+
}
|
|
165
|
+
break
|
|
166
|
+
|
|
167
|
+
case 'switch':
|
|
168
|
+
_def = {
|
|
169
|
+
value: isEmpty(def) ? false : def
|
|
170
|
+
}
|
|
171
|
+
break
|
|
172
|
+
|
|
173
|
+
case 'querybutton':
|
|
174
|
+
case 'addbutton':
|
|
175
|
+
case 'otherbutton':
|
|
176
|
+
_def = null
|
|
177
|
+
break
|
|
178
|
+
|
|
179
|
+
default:
|
|
180
|
+
alert(`未匹配到符合该类型${mold}的功能,请联系开发人员`)
|
|
181
|
+
_def = null
|
|
182
|
+
break
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
return _def
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export function isEmpty(def) {
|
|
189
|
+
return def === null || def === undefined
|
|
190
|
+
}
|
|
191
|
+
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [important] 请添加支持组件的类型的同时, 指定组件引入 和 对应组件默认状态值
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// const DatepickerCustom = () => import('./DatepickerCustom')
|
|
6
|
+
// const InputCustom = () => import('./InputCustom')
|
|
7
|
+
// const IntervalinputCustom = () => import('./IntervalinputCustom')
|
|
8
|
+
// const AutocompleteCustom = () => import('./AutocompleteCustom')
|
|
9
|
+
// const SelectCustom = () => import('./SelectCustom')
|
|
10
|
+
// const SelectindialogCustom = () => import('./SelectindialogCustom')
|
|
11
|
+
// const UploadCustom = () => import('./UploadCustom')
|
|
12
|
+
// const RadioCustom = () => import('./RadioCustom')
|
|
13
|
+
// const CheckboxCustom = () => import('./CheckboxCustom')
|
|
14
|
+
// const CascaderCustom = () => import('./CascaderCustom')
|
|
15
|
+
// const TextCustom = () => import('./TextCustom')
|
|
16
|
+
// const nstcuploadCustom = () => import('../Upload/src/main')
|
|
17
|
+
// const FormItemTips = () => ('../FormCreate/component/FormItemTips')
|
|
18
|
+
// const FormTooltips = () => ('../FormCreate/component/FormTooltips')
|
|
19
|
+
// const nstcselecttreeCustom = () => import('../SelectTree/src/main')
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
import DatepickerCustom from './DatepickerCustom'
|
|
23
|
+
import InputCustom from './InputCustom'
|
|
24
|
+
import IntervalinputCustom from './IntervalInputCustom'
|
|
25
|
+
import AutocompleteCustom from './AutocompleteCustom'
|
|
26
|
+
import SelectCustom from './SelectCustom'
|
|
27
|
+
import UploadCustom from './UploadCustom'
|
|
28
|
+
import RadioCustom from './RadioCustom'
|
|
29
|
+
import CheckboxCustom from './CheckboxCustom'
|
|
30
|
+
import CascaderCustom from './CascaderCustom'
|
|
31
|
+
import TextCustom from './TextCustom'
|
|
32
|
+
// import nstcuploadCustom from '^/Upload/src/main'
|
|
33
|
+
import nstcselecttreeCustom from '../NstcSelectTree/NstcSelectTree'
|
|
34
|
+
import nstcselecttreeListCustom from '../NstcSelectTreeList/NstcSelectTreeList'
|
|
35
|
+
import nstcfileuploadCustom from '../NstcFileUpload/NstcFileUpload'
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
// 定义支持的类型
|
|
40
|
+
export const SUPPORT_TYPE = [
|
|
41
|
+
'datepicker',
|
|
42
|
+
'input',
|
|
43
|
+
'intervalinput',
|
|
44
|
+
'autocomplete',
|
|
45
|
+
'select',
|
|
46
|
+
'selectindialog',
|
|
47
|
+
'upload',
|
|
48
|
+
'radio',
|
|
49
|
+
'checkbox',
|
|
50
|
+
'cascader',
|
|
51
|
+
'text',
|
|
52
|
+
'nstcupload',
|
|
53
|
+
'nstcselecttree',
|
|
54
|
+
'nstcselecttreelist',
|
|
55
|
+
'nstcfileupload'
|
|
56
|
+
]
|
|
57
|
+
|
|
58
|
+
// 支持的类型对应的组件
|
|
59
|
+
export const components = {
|
|
60
|
+
SelectCustom,
|
|
61
|
+
DatepickerCustom,
|
|
62
|
+
InputCustom,
|
|
63
|
+
IntervalinputCustom,
|
|
64
|
+
AutocompleteCustom,
|
|
65
|
+
UploadCustom,
|
|
66
|
+
RadioCustom,
|
|
67
|
+
CheckboxCustom,
|
|
68
|
+
CascaderCustom,
|
|
69
|
+
TextCustom,
|
|
70
|
+
// nstcuploadCustom,
|
|
71
|
+
nstcselecttreeCustom,
|
|
72
|
+
nstcselecttreeListCustom,
|
|
73
|
+
nstcfileuploadCustom
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
// 支持的类型对应的默认值
|
|
78
|
+
export function getDefaultValue({ mold, multiple, type, default: def }) {
|
|
79
|
+
let _def
|
|
80
|
+
mold = mold.replace(/ /g, '')
|
|
81
|
+
switch (mold) {
|
|
82
|
+
case 'select':
|
|
83
|
+
case 'selectindialog':
|
|
84
|
+
case 'nstcBankBanchTree':
|
|
85
|
+
_def = {
|
|
86
|
+
value: isEmpty(def) ? multiple ? [] : null : def
|
|
87
|
+
}
|
|
88
|
+
break
|
|
89
|
+
|
|
90
|
+
case 'input':
|
|
91
|
+
case 'autocomplete':
|
|
92
|
+
case 'text':
|
|
93
|
+
case 'nstcselecttree':
|
|
94
|
+
case 'nstcselecttreelist':
|
|
95
|
+
_def = {
|
|
96
|
+
value: isEmpty(def) ? '' : def
|
|
97
|
+
}
|
|
98
|
+
break
|
|
99
|
+
|
|
100
|
+
case 'upload':
|
|
101
|
+
_def = {
|
|
102
|
+
value: isEmpty(def)
|
|
103
|
+
? multiple
|
|
104
|
+
? []
|
|
105
|
+
: null
|
|
106
|
+
: multiple
|
|
107
|
+
? [...def]
|
|
108
|
+
: def
|
|
109
|
+
}
|
|
110
|
+
break
|
|
111
|
+
|
|
112
|
+
case 'checkbox':
|
|
113
|
+
case 'cascader':
|
|
114
|
+
case 'intervalinput':
|
|
115
|
+
case 'nstcupload':
|
|
116
|
+
case 'nstcfileupload':
|
|
117
|
+
_def = {
|
|
118
|
+
value: isEmpty(def) ? [] : [...def]
|
|
119
|
+
}
|
|
120
|
+
break
|
|
121
|
+
|
|
122
|
+
case 'radio':
|
|
123
|
+
_def = {
|
|
124
|
+
value: isEmpty(def) ? null : def
|
|
125
|
+
}
|
|
126
|
+
break
|
|
127
|
+
|
|
128
|
+
case 'datewmqy':
|
|
129
|
+
case 'datepicker':
|
|
130
|
+
_def = {
|
|
131
|
+
value: type && type.includes('range')
|
|
132
|
+
? isEmpty(def) ? [] : [...def]
|
|
133
|
+
: isEmpty(def) ? null : def
|
|
134
|
+
}
|
|
135
|
+
break
|
|
136
|
+
|
|
137
|
+
case 'switch':
|
|
138
|
+
_def = {
|
|
139
|
+
value: isEmpty(def) ? false : def
|
|
140
|
+
}
|
|
141
|
+
break
|
|
142
|
+
|
|
143
|
+
case 'querybutton':
|
|
144
|
+
case 'addbutton':
|
|
145
|
+
case 'otherbutton':
|
|
146
|
+
_def = null
|
|
147
|
+
break
|
|
148
|
+
|
|
149
|
+
default:
|
|
150
|
+
alert(`未匹配到符合该类型Second-${mold}的功能,请联系开发人员`)
|
|
151
|
+
_def = null
|
|
152
|
+
break
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
return _def
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export function isEmpty(def) {
|
|
159
|
+
return def === null || def === undefined
|
|
160
|
+
}
|
|
161
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.form-custom {
|
|
2
|
+
&-horizontal {
|
|
3
|
+
.form-item {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
vertical-align: bottom;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&-vertical {
|
|
10
|
+
}
|
|
11
|
+
.form-item-link .el-form-item__content {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-wrap: wrap;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
.form-item-link-child {
|
|
16
|
+
//flex: 1;
|
|
17
|
+
margin-bottom: 0;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
.form-item-name-link {
|
|
21
|
+
color: #606266;
|
|
22
|
+
padding: 0 8px;
|
|
23
|
+
font-weight: 700;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.form-custom .el-form-item--mini.el-form-item {
|
|
28
|
+
margin-bottom: 24px;
|
|
29
|
+
}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: your name
|
|
3
|
+
* @Date: 2022-01-13 11:06:47
|
|
4
|
+
* @LastEditTime: 2022-01-13 17:11:38
|
|
5
|
+
* @LastEditors: Please set LastEditors
|
|
6
|
+
* @Description: 科目选择
|
|
7
|
+
* @FilePath: NstcSelectSubject.vue
|
|
8
|
+
-->
|
|
9
|
+
<template>
|
|
10
|
+
<SelectAndDialog v-if="bindProps" v-model="_value" ref="select" v-bind="bindProps" :table-form="formSearch"
|
|
11
|
+
:format-data="formatData" :format-params="formatParams" @show-dialog="onShowDialog">
|
|
12
|
+
<div class="form-wrap">
|
|
13
|
+
<el-form inline :model="formSearch">
|
|
14
|
+
<el-form-item :label="'所属单位'">
|
|
15
|
+
<el-input
|
|
16
|
+
:placeholder="'请输入'"
|
|
17
|
+
v-model="formSearch.unitName"
|
|
18
|
+
maxlength="60"
|
|
19
|
+
disabled
|
|
20
|
+
clearable
|
|
21
|
+
>
|
|
22
|
+
</el-input>
|
|
23
|
+
</el-form-item>
|
|
24
|
+
<el-form-item :label="'客商类型'">
|
|
25
|
+
<el-select v-model="formSearch.supplierType" disabled placeholder="请选择" clearable>
|
|
26
|
+
<el-option
|
|
27
|
+
v-for="item in supplierTypeList"
|
|
28
|
+
:key="item.value"
|
|
29
|
+
:label="item.label"
|
|
30
|
+
:value="item.value">
|
|
31
|
+
</el-option>
|
|
32
|
+
</el-select>
|
|
33
|
+
</el-form-item>
|
|
34
|
+
<el-form-item :label="'客商名称'">
|
|
35
|
+
<el-input
|
|
36
|
+
:placeholder="'请输入'"
|
|
37
|
+
v-model="formSearch.relCorpFullName"
|
|
38
|
+
maxlength="60"
|
|
39
|
+
clearable
|
|
40
|
+
>
|
|
41
|
+
</el-input>
|
|
42
|
+
</el-form-item>
|
|
43
|
+
<el-form-item>
|
|
44
|
+
<el-button type="primary" class="nstc-g6-common-btn-1" @click="searchClick">查询
|
|
45
|
+
</el-button>
|
|
46
|
+
<el-button style="margin-left:8px;" class="nstc-g6-common-btn-3" @click="queryReset">重置
|
|
47
|
+
</el-button>
|
|
48
|
+
</el-form-item>
|
|
49
|
+
</el-form>
|
|
50
|
+
</div>
|
|
51
|
+
</SelectAndDialog>
|
|
52
|
+
</template>
|
|
53
|
+
|
|
54
|
+
<script>
|
|
55
|
+
import SelectAndDialog from "../SelectAndDialog/NstcSelectAndDialog.vue";
|
|
56
|
+
|
|
57
|
+
export default {
|
|
58
|
+
name: "NstcPayeePerson",
|
|
59
|
+
components: {SelectAndDialog},
|
|
60
|
+
props: {
|
|
61
|
+
value: [String, Object],
|
|
62
|
+
queryConf: {
|
|
63
|
+
type: Object,
|
|
64
|
+
default: () => {
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
disabled: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: false
|
|
70
|
+
},
|
|
71
|
+
dialogParams: {
|
|
72
|
+
type: Object,
|
|
73
|
+
default: () => {
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
formatData: {
|
|
77
|
+
type: Function,
|
|
78
|
+
default: (d) => d,
|
|
79
|
+
},
|
|
80
|
+
formatParams: {
|
|
81
|
+
type: Function,
|
|
82
|
+
default: (d) => d,
|
|
83
|
+
},
|
|
84
|
+
chMapper: {
|
|
85
|
+
type: Object,
|
|
86
|
+
default: () => ({
|
|
87
|
+
title: "选择付款人",
|
|
88
|
+
plcInput: "请输入",
|
|
89
|
+
plcSelect: "请选择",
|
|
90
|
+
noselectmsg: "请选择付款人"
|
|
91
|
+
}),
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
data() {
|
|
95
|
+
return {
|
|
96
|
+
showText: "",
|
|
97
|
+
formSearch: {
|
|
98
|
+
unitCode: "",
|
|
99
|
+
unitName: "",
|
|
100
|
+
supplierType: 0,
|
|
101
|
+
relCorpFullName: ""
|
|
102
|
+
},
|
|
103
|
+
supplierTypeList: [
|
|
104
|
+
{
|
|
105
|
+
label: '账户',
|
|
106
|
+
value: 0
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
label: '供应商',
|
|
110
|
+
value: 1
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
showDialog: false,
|
|
114
|
+
columns: [],
|
|
115
|
+
options: [],
|
|
116
|
+
inputHovering: false,
|
|
117
|
+
remoteQuery: "",
|
|
118
|
+
bindProps: {},
|
|
119
|
+
|
|
120
|
+
};
|
|
121
|
+
},
|
|
122
|
+
wacth: {},
|
|
123
|
+
computed: {
|
|
124
|
+
_value: {
|
|
125
|
+
set(val) {
|
|
126
|
+
this.$emit("input", val);
|
|
127
|
+
},
|
|
128
|
+
get() {
|
|
129
|
+
return this.value;
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
created() {
|
|
134
|
+
// 选择弹窗的参数传递
|
|
135
|
+
console.log('this.formSearch', this.dialogParams)
|
|
136
|
+
this.formSearch.unitCode = this.dialogParams.unitCode
|
|
137
|
+
this.formSearch.unitName = this.dialogParams.unitName
|
|
138
|
+
this.bindProps = {...this.queryConf, chMapper: this.chMapper}
|
|
139
|
+
|
|
140
|
+
console.log('this.payeePerson====', this.bindProps)
|
|
141
|
+
},
|
|
142
|
+
mounted() {
|
|
143
|
+
},
|
|
144
|
+
methods: {
|
|
145
|
+
formatData(res) {
|
|
146
|
+
let data = [],
|
|
147
|
+
total = 0;
|
|
148
|
+
if (res && !res.total && Array.isArray(res)) {
|
|
149
|
+
data = res;
|
|
150
|
+
total = res.length;
|
|
151
|
+
} else if (res && res.total && res.list) {
|
|
152
|
+
data = res.list || [];
|
|
153
|
+
total = res.total;
|
|
154
|
+
}
|
|
155
|
+
return {data, total};
|
|
156
|
+
},
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
onShowDialog() {
|
|
160
|
+
this.queryReset();
|
|
161
|
+
},
|
|
162
|
+
|
|
163
|
+
searchClick() {
|
|
164
|
+
this.$refs.select.queryTableData();
|
|
165
|
+
},
|
|
166
|
+
|
|
167
|
+
queryReset() {
|
|
168
|
+
this.formSearch = {
|
|
169
|
+
unitCode: "",
|
|
170
|
+
unitName: "",
|
|
171
|
+
supplierType: 0,
|
|
172
|
+
relCorpFullName: ""
|
|
173
|
+
};
|
|
174
|
+
this.formSearch.unitCode = this.dialogParams.unitCode
|
|
175
|
+
this.formSearch.unitName = this.dialogParams.unitName
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
};
|
|
179
|
+
</script>
|
|
180
|
+
|
|
181
|
+
<style>
|
|
182
|
+
.search-btn {
|
|
183
|
+
color: #c0c4cc;
|
|
184
|
+
position: absolute;
|
|
185
|
+
right: 5px;
|
|
186
|
+
top: -1px;
|
|
187
|
+
}
|
|
188
|
+
</style>
|