gcs-ui-lib 1.0.1
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/.env.development +5 -0
- package/.env.production +7 -0
- package/.eslintrc.js +5 -0
- package/README.md +97 -0
- package/_webpack.config.js +135 -0
- package/babel.config.js +16 -0
- package/lib/demo.html +10 -0
- package/lib/fonts/SIMSUN.5e0c362c.5e0c362c.ttf +0 -0
- package/lib/fonts/element-icons.535877f5.535877f5.woff +0 -0
- package/lib/fonts/element-icons.732389de.732389de.ttf +0 -0
- package/lib/fonts/iconfont.09d221ee.09d221ee.woff +0 -0
- package/lib/fonts/iconfont.1c4bfacc.1c4bfacc.ttf +0 -0
- package/lib/fonts/iconfont.a6f34dc7.a6f34dc7.woff2 +0 -0
- package/lib/fonts/iconfont.f4c32765.f4c32765.ttf +0 -0
- package/lib/gcs-ui-lib.common.js +106776 -0
- package/lib/gcs-ui-lib.css +3 -0
- package/lib/gcs-ui-lib.umd.js +106786 -0
- package/lib/gcs-ui-lib.umd.min.js +330 -0
- package/lib/img/bankbackground(1).e1f6e40f.jpg +0 -0
- package/lib/img/busibackground(2).7e09bf1f.jpg +0 -0
- package/lib/img/document.193a282d.svg +8 -0
- package/lib/img/folder.8e019792.svg +9 -0
- package/lib/img/icon.fc86764f.gif +0 -0
- package/npm +1 -0
- package/package.json +101 -0
- package/packages/AutoFillDetail/index.js +7 -0
- package/packages/AutoFillDetail/src/components/fillDetail.vue +188 -0
- package/packages/AutoFillDetail/src/demo/index.vue +18 -0
- package/packages/AutoFillDetail/src/main.vue +283 -0
- package/packages/AutoFillDetection/index.js +7 -0
- package/packages/AutoFillDetection/src/components/FillInfo.vue +36 -0
- package/packages/AutoFillDetection/src/components/HandEntred.vue +226 -0
- package/packages/AutoFillDetection/src/components/RuleHit.vue +105 -0
- package/packages/AutoFillDetection/src/components/SelectEntries.vue +192 -0
- package/packages/AutoFillDetection/src/components/config.js +359 -0
- package/packages/AutoFillDetection/src/demo/index.vue +18 -0
- package/packages/AutoFillDetection/src/main.vue +130 -0
- package/packages/AutoFillList/index.js +7 -0
- package/packages/AutoFillList/src/components/ImportRules.vue +407 -0
- package/packages/AutoFillList/src/components/ImportRulesDialog.vue +40 -0
- package/packages/AutoFillList/src/components/config.js +616 -0
- package/packages/AutoFillList/src/demo/index.vue +28 -0
- package/packages/AutoFillList/src/main.vue +559 -0
- package/packages/AutoFillRuleHistory/index.js +7 -0
- package/packages/AutoFillRuleHistory/src/demo/index.vue +23 -0
- package/packages/AutoFillRuleHistory/src/main.vue +422 -0
- package/packages/AutoFillService/index.js +7 -0
- package/packages/AutoFillService/src/components/BudgetAccountDialogForSetting.vue +588 -0
- package/packages/AutoFillService/src/components/BudgetAccountSettingDialog.vue +377 -0
- package/packages/AutoFillService/src/components/ConditionGroup.vue +413 -0
- package/packages/AutoFillService/src/components/CustomInput.vue +191 -0
- package/packages/AutoFillService/src/components/FillComponent.vue +371 -0
- package/packages/AutoFillService/src/components/SelectBudgetAccountDialog.vue +161 -0
- package/packages/AutoFillService/src/components/SelectDialog.vue +211 -0
- package/packages/AutoFillService/src/components/basic.vue +308 -0
- package/packages/AutoFillService/src/components/config.js +549 -0
- package/packages/AutoFillService/src/components/fillDetail.vue +145 -0
- package/packages/AutoFillService/src/components/fillRules.vue +787 -0
- package/packages/AutoFillService/src/components/paymentCategory.vue +297 -0
- package/packages/AutoFillService/src/components/paymentCategoryT.vue +292 -0
- package/packages/AutoFillService/src/customTemplate/FillBigDecimal.vue +50 -0
- package/packages/AutoFillService/src/customTemplate/FillDate.vue +54 -0
- package/packages/AutoFillService/src/customTemplate/FillInput.vue +33 -0
- package/packages/AutoFillService/src/customTemplate/FillMultiSelect.vue +70 -0
- package/packages/AutoFillService/src/customTemplate/FillSelect.vue +72 -0
- package/packages/AutoFillService/src/demo/index.vue +30 -0
- package/packages/AutoFillService/src/main.vue +432 -0
- package/packages/Bank/index.js +7 -0
- package/packages/Bank/src/demo/index.vue +18 -0
- package/packages/Bank/src/main.vue +70 -0
- package/packages/BranchBank/index.js +7 -0
- package/packages/BranchBank/src/demo/index.vue +18 -0
- package/packages/BranchBank/src/main.vue +97 -0
- package/packages/ConfigurableForm/index.js +7 -0
- package/packages/ConfigurableForm/src/components/config.js +63 -0
- package/packages/ConfigurableForm/src/components/detail.vue +158 -0
- package/packages/ConfigurableForm/src/demo/index.vue +279 -0
- package/packages/ConfigurableForm/src/main.vue +529 -0
- package/packages/DynamicForm/index.js +7 -0
- package/packages/DynamicForm/src/components/Amount.vue +51 -0
- package/packages/DynamicForm/src/components/AmountRange.vue +76 -0
- package/packages/DynamicForm/src/components/CheckboxGroup.vue +63 -0
- package/packages/DynamicForm/src/components/DMY.vue +126 -0
- package/packages/DynamicForm/src/components/Date.vue +51 -0
- package/packages/DynamicForm/src/components/DateRange.vue +51 -0
- package/packages/DynamicForm/src/components/Dialog.vue +247 -0
- package/packages/DynamicForm/src/components/Input.vue +48 -0
- package/packages/DynamicForm/src/components/InputNumber.vue +69 -0
- package/packages/DynamicForm/src/components/InputNumberRange.vue +47 -0
- package/packages/DynamicForm/src/components/LazySelect.vue +311 -0
- package/packages/DynamicForm/src/components/RadioGroup.vue +43 -0
- package/packages/DynamicForm/src/components/Rate.vue +57 -0
- package/packages/DynamicForm/src/components/Select.vue +307 -0
- package/packages/DynamicForm/src/components/Switch.vue +32 -0
- package/packages/DynamicForm/src/components/Textarea.vue +58 -0
- package/packages/DynamicForm/src/components/TimeSelect.vue +61 -0
- package/packages/DynamicForm/src/components/unitTreeSelect.vue +141 -0
- package/packages/DynamicForm/src/components/urlLinkInput.vue +100 -0
- package/packages/DynamicForm/src/demo/index.vue +486 -0
- package/packages/DynamicForm/src/fileUpload.js +232 -0
- package/packages/DynamicForm/src/formConfig.js +2910 -0
- package/packages/DynamicForm/src/helpers.js +18 -0
- package/packages/DynamicForm/src/main.vue +1095 -0
- package/packages/FileImport/index.js +7 -0
- package/packages/FileImport/src/demo/index.vue +29 -0
- package/packages/FileImport/src/main.vue +306 -0
- package/packages/MultiCurrencyStatistics/index.js +7 -0
- package/packages/MultiCurrencyStatistics/src/demo/index.vue +320 -0
- package/packages/MultiCurrencyStatistics/src/main.vue +200 -0
- package/packages/SelectTicket/index.js +7 -0
- package/packages/SelectTicket/src/Tree/index.vue +13 -0
- package/packages/SelectTicket/src/demo/index.vue +139 -0
- package/packages/SelectTicket/src/header.js +276 -0
- package/packages/SelectTicket/src/main.vue +581 -0
- package/packages/SelectTicket/src/printDialog/dialogO.vue +116 -0
- package/packages/SelectTicket/src/printDialog/index.vue +69 -0
- package/packages/SelectTicket/src/ticketDetail/billInformation/README.MD +6 -0
- package/packages/SelectTicket/src/ticketDetail/billInformation/mixins/index.js +35 -0
- package/packages/SelectTicket/src/ticketDetail/billInformation/obverse.vue +768 -0
- package/packages/SelectTicket/src/ticketDetail/billInformation/overview.vue +115 -0
- package/packages/SelectTicket/src/ticketDetail/billInformation/printList.vue +127 -0
- package/packages/SelectTicket/src/ticketDetail/billInformation/reverse.vue +205 -0
- package/packages/SelectTicket/src/ticketDetail/billInformation//351/231/204/345/212/240/344/277/235/350/257/201/344/277/241/346/201/257/345/255/227/346/256/265/345/257/271/347/205/247.md +246 -0
- package/packages/SelectTicket/src/ticketDetail/dialog.vue +73 -0
- package/packages/SelectTicket/src/ticketDetail/img/bankbackground(1).jpg +0 -0
- package/packages/SelectTicket/src/ticketDetail/img/busibackground(2).jpg +0 -0
- package/packages/SelectTicket/src/ticketDetail/img/icon.gif +0 -0
- package/packages/SelectTicket/src/ticketDetail/img/icon2.png +0 -0
- package/packages/SelectTicket/src/ticketDetail/img/noData.png +0 -0
- package/packages/SelectTicket/src/ticketDetail/index.vue +188 -0
- package/packages/SelectTreeUnit/index.js +7 -0
- package/packages/SelectTreeUnit/src/Tree/document.svg +8 -0
- package/packages/SelectTreeUnit/src/Tree/folder.svg +9 -0
- package/packages/SelectTreeUnit/src/Tree/index.vue +239 -0
- package/packages/SelectTreeUnit/src/demo/index.vue +219 -0
- package/packages/SelectTreeUnit/src/forEachs.js +16 -0
- package/packages/SelectTreeUnit/src/main.vue +1136 -0
- package/packages/SelectTreeUnitForm/index.js +7 -0
- package/packages/SelectTreeUnitForm/src/Tree/document.svg +8 -0
- package/packages/SelectTreeUnitForm/src/Tree/folder.svg +9 -0
- package/packages/SelectTreeUnitForm/src/Tree/index.vue +254 -0
- package/packages/SelectTreeUnitForm/src/demo/index.vue +230 -0
- package/packages/SelectTreeUnitForm/src/forEachs.js +16 -0
- package/packages/SelectTreeUnitForm/src/main.vue +1068 -0
- package/packages/StreamRefill/index.js +7 -0
- package/packages/StreamRefill/src/components/FillBigDecimal.vue +50 -0
- package/packages/StreamRefill/src/components/FillDate.vue +56 -0
- package/packages/StreamRefill/src/components/FillInput.vue +36 -0
- package/packages/StreamRefill/src/components/FillMultiSelect.vue +54 -0
- package/packages/StreamRefill/src/components/FillSelect.vue +51 -0
- package/packages/StreamRefill/src/demo/index.vue +254 -0
- package/packages/StreamRefill/src/main.vue +335 -0
- package/packages/Trade/index.js +7 -0
- package/packages/Trade/src/components/all/index.vue +913 -0
- package/packages/Trade/src/components/dynamicColumnMixin.js +69 -0
- package/packages/Trade/src/components/getDCloumn.js +15 -0
- package/packages/Trade/src/components/i18n.json +3337 -0
- package/packages/Trade/src/components/pendingEvent/index.vue +934 -0
- package/packages/Trade/src/components/server-config.js +60 -0
- package/packages/Trade/src/components/setUnitName.js +10 -0
- package/packages/Trade/src/components/specialHandle.js +171 -0
- package/packages/Trade/src/components/topendingTabs.js +21 -0
- package/packages/Trade/src/demo/index.vue +43 -0
- package/packages/Trade/src/main.vue +86 -0
- package/packages/ValidateQuota/index.js +58 -0
- package/packages/ValidateQuota/src/demo/index.vue +190 -0
- package/packages/ValidateQuota/src/main.vue +71 -0
- package/packages/ZipImport/index.js +7 -0
- package/packages/ZipImport/src/demo/index.vue +139 -0
- package/packages/ZipImport/src/main.vue +330 -0
- package/packages/approvel/index.js +8 -0
- package/packages/approvel/src/demo/index.vue +28 -0
- package/packages/approvel/src/main.vue +26 -0
- package/packages/approvel/src/progress.vue +167 -0
- package/packages/approvel/src/url.json +29 -0
- package/packages/extends/ElSelect.vue +180 -0
- package/packages/imgs/list-select.png +0 -0
- package/packages/imgs/list-unselect.png +0 -0
- package/packages/imgs/list.png +0 -0
- package/packages/imgs/tree-select.png +0 -0
- package/packages/imgs/tree-unselect.png +0 -0
- package/packages/imgs/tree.png +0 -0
- package/packages/inputTag/index.js +7 -0
- package/packages/inputTag/src/demo/index.vue +355 -0
- package/packages/inputTag/src/main.vue +502 -0
- package/public/favicon.ico +0 -0
- package/public/index.html +19 -0
- package/src/App.vue +61 -0
- package/src/api/aims.js +8 -0
- package/src/api/common.js +254 -0
- package/src/api/fileApi.js +33 -0
- package/src/api/setting.js +249 -0
- package/src/config/appSettings.js +12 -0
- package/src/config/favicon.ico +0 -0
- package/src/css/autoFill.scss +252 -0
- package/src/css/selectTreeUnit.scss +254 -0
- package/src/filter/filter.js +1 -0
- package/src/filter/index.js +274 -0
- package/src/fonts/demo.css +539 -0
- package/src/fonts/iconfont.css +21 -0
- package/src/fonts/iconfont.js +1 -0
- package/src/fonts/iconfont.json +23 -0
- package/src/fonts/iconfont.ttf +0 -0
- package/src/index.js +161 -0
- package/src/locale/format.js +47 -0
- package/src/locale/index.js +48 -0
- package/src/locale/lang/cn2hk.json +1270 -0
- package/src/locale/lang/en.js +73 -0
- package/src/locale/lang/es.js +7 -0
- package/src/locale/lang/index.js +66 -0
- package/src/locale/lang/ja.js +7 -0
- package/src/locale/lang/zh.js +74 -0
- package/src/locale/lang/zht.js +27 -0
- package/src/main.js +49 -0
- package/src/preview/page/Aside/index.vue +60 -0
- package/src/preview/router.js +107 -0
- package/src/utils/auth.js +12 -0
- package/src/utils/directive/asciiWidth.js +107 -0
- package/src/utils/directive/clickOutside.js +21 -0
- package/src/utils/directive/vtitle.js +140 -0
- package/src/utils/excel.js +538 -0
- package/src/utils/index.js +581 -0
- package/src/utils/request.js +157 -0
- package/src/utils/requestCache.js +68 -0
- package/src/utils/session.js +36 -0
- package/src/utils/thems.js +62 -0
- package/src/utils/token.js +26 -0
- package/src/utils/tools.js +317 -0
- package/src/utils/utils.js +513 -0
- package/types/favicon.ico +0 -0
- package/vue.config.js +49 -0
|
@@ -0,0 +1,588 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: your name
|
|
3
|
+
* @Date: 2021-09-27 22:30:25
|
|
4
|
+
* @LastEditTime: 2023-12-18 16:06:14
|
|
5
|
+
* @LastEditors: maoliqiong maoliqiong@nstc.com.cn
|
|
6
|
+
* @Description: 预算科目-(付款)
|
|
7
|
+
* @FilePath: \gcs-rec_web\payee-web\payee\src\views\component\BudgetAccountDialog.vue
|
|
8
|
+
-->
|
|
9
|
+
<template>
|
|
10
|
+
<div>
|
|
11
|
+
<el-dialog
|
|
12
|
+
ref="budgetAccountDialog"
|
|
13
|
+
:class="[{ 'fixed-dialog': true, showplan: showPlan }]"
|
|
14
|
+
:title="$l('选择预算科目')"
|
|
15
|
+
:visible="visible"
|
|
16
|
+
width="1000px"
|
|
17
|
+
:append-to-body="isChild"
|
|
18
|
+
@close="close"
|
|
19
|
+
:close-on-click-modal="false"
|
|
20
|
+
v-drag
|
|
21
|
+
>
|
|
22
|
+
<!-- 查询区域 -->
|
|
23
|
+
<div class="form-wrap">
|
|
24
|
+
<ClAdvancedFilter
|
|
25
|
+
:visible="true"
|
|
26
|
+
onlyKey="value"
|
|
27
|
+
filterId="Budgetaccount-payment-filterIdNew"
|
|
28
|
+
:model="form"
|
|
29
|
+
:filter-list="filterList"
|
|
30
|
+
@search="submitForm('searchForm', true)"
|
|
31
|
+
@enter="submitForm('searchForm', true)"
|
|
32
|
+
@clear="queryReset"
|
|
33
|
+
>
|
|
34
|
+
<template slot="budgetUnitNo">
|
|
35
|
+
<el-select
|
|
36
|
+
filterable
|
|
37
|
+
clearable
|
|
38
|
+
v-model="form.budgetUnitNo"
|
|
39
|
+
:placeholder="$l('请选择')"
|
|
40
|
+
@change="budgetUnitChange()"
|
|
41
|
+
:ruleField="true"
|
|
42
|
+
v-rule-key
|
|
43
|
+
rule-form="ruleValidate"
|
|
44
|
+
:rules="[
|
|
45
|
+
{
|
|
46
|
+
required: true,
|
|
47
|
+
message: $l('请选择') + $l('预算单位'),
|
|
48
|
+
trigger: ['change'],
|
|
49
|
+
},
|
|
50
|
+
]"
|
|
51
|
+
>
|
|
52
|
+
<el-option
|
|
53
|
+
:label="item.budgetUnitName"
|
|
54
|
+
:value="item.budgetUnitNo"
|
|
55
|
+
v-for="item in budgetUnitNameArr"
|
|
56
|
+
:key="item.budgetUnitNo"
|
|
57
|
+
></el-option>
|
|
58
|
+
</el-select>
|
|
59
|
+
</template>
|
|
60
|
+
<template slot="groupId">
|
|
61
|
+
<el-select
|
|
62
|
+
filterable
|
|
63
|
+
clearable
|
|
64
|
+
v-model="form.groupId"
|
|
65
|
+
:placeholder="$l('请选择')"
|
|
66
|
+
@change="getTermName()"
|
|
67
|
+
:ruleField="true"
|
|
68
|
+
v-rule-key
|
|
69
|
+
rule-form="ruleValidate"
|
|
70
|
+
:rules="[
|
|
71
|
+
{
|
|
72
|
+
required: true,
|
|
73
|
+
message: $l('请选择') + $l('预算系列'),
|
|
74
|
+
trigger: ['change'],
|
|
75
|
+
},
|
|
76
|
+
]"
|
|
77
|
+
>
|
|
78
|
+
<el-option
|
|
79
|
+
:label="item.groupName"
|
|
80
|
+
:value="item.groupId"
|
|
81
|
+
v-for="item in groupNameArr"
|
|
82
|
+
:key="item.groupId"
|
|
83
|
+
></el-option>
|
|
84
|
+
</el-select>
|
|
85
|
+
</template>
|
|
86
|
+
<template slot="termId">
|
|
87
|
+
<el-select
|
|
88
|
+
v-model="form.termId"
|
|
89
|
+
filterable
|
|
90
|
+
clearable
|
|
91
|
+
:placeholder="$l('请选择')"
|
|
92
|
+
:ruleField="true"
|
|
93
|
+
v-rule-key
|
|
94
|
+
rule-form="ruleValidate"
|
|
95
|
+
:rules="[
|
|
96
|
+
{
|
|
97
|
+
required: true,
|
|
98
|
+
message: $l('请选择') + $l('预算期间'),
|
|
99
|
+
trigger: ['change'],
|
|
100
|
+
},
|
|
101
|
+
]"
|
|
102
|
+
>
|
|
103
|
+
<el-option
|
|
104
|
+
:label="item.termName"
|
|
105
|
+
:value="item.termId"
|
|
106
|
+
v-for="item in termNameArr"
|
|
107
|
+
:key="item.termId"
|
|
108
|
+
></el-option>
|
|
109
|
+
</el-select>
|
|
110
|
+
</template>
|
|
111
|
+
</ClAdvancedFilter>
|
|
112
|
+
</div>
|
|
113
|
+
<div class="tables">
|
|
114
|
+
<!-- @row-click="choseBudget" -->
|
|
115
|
+
<el-table
|
|
116
|
+
class="nolast-border"
|
|
117
|
+
border
|
|
118
|
+
:data="tableData1"
|
|
119
|
+
style="width: 100%"
|
|
120
|
+
max-height="200"
|
|
121
|
+
:key="size"
|
|
122
|
+
v-bind="sizeBind"
|
|
123
|
+
:header-cell-style="{ 'text-align': 'center' }"
|
|
124
|
+
>
|
|
125
|
+
<!-- 序号 -->
|
|
126
|
+
<el-table-column
|
|
127
|
+
:label="$l('序号')"
|
|
128
|
+
align="center"
|
|
129
|
+
type="index"
|
|
130
|
+
width="62"
|
|
131
|
+
>
|
|
132
|
+
</el-table-column>
|
|
133
|
+
<el-table-column
|
|
134
|
+
v-for="(column, idx) in columns1"
|
|
135
|
+
:key="idx"
|
|
136
|
+
:label="column.label"
|
|
137
|
+
:min-width="column.width"
|
|
138
|
+
:align="column.align"
|
|
139
|
+
>
|
|
140
|
+
<template slot-scope="scope">
|
|
141
|
+
{{ scope.row[column.prop] }}
|
|
142
|
+
</template>
|
|
143
|
+
</el-table-column>
|
|
144
|
+
<!-- 操作 -->
|
|
145
|
+
<el-table-column
|
|
146
|
+
:label="$l('操作')"
|
|
147
|
+
width="88"
|
|
148
|
+
align="center"
|
|
149
|
+
>
|
|
150
|
+
<template slot-scope="scope">
|
|
151
|
+
<el-button type="text" @click="choseBudget(scope.row)">{{
|
|
152
|
+
$l('选择')
|
|
153
|
+
}}</el-button>
|
|
154
|
+
</template>
|
|
155
|
+
</el-table-column>
|
|
156
|
+
<CLTableSetSize
|
|
157
|
+
:size.sync="size"
|
|
158
|
+
@resize="(el) => (sizeBind = el)"
|
|
159
|
+
/>
|
|
160
|
+
</el-table>
|
|
161
|
+
<div class="flex-box flex-r m-t-s">
|
|
162
|
+
<ClPagination
|
|
163
|
+
:page-obj="pagination"
|
|
164
|
+
:page-key="{ no: 'page', size: 'size', total: 'total' }"
|
|
165
|
+
@change="paginationChange"
|
|
166
|
+
/>
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
</el-dialog>
|
|
170
|
+
</div>
|
|
171
|
+
</template>
|
|
172
|
+
|
|
173
|
+
<script>
|
|
174
|
+
import { randomString } from "@/utils/index";
|
|
175
|
+
import {
|
|
176
|
+
getUnitBudgetAllPullDown,
|
|
177
|
+
getBudgetQuota,
|
|
178
|
+
getQuotaTerm,
|
|
179
|
+
} from "@/api/common.js";
|
|
180
|
+
import { parseTime, amountFormat } from "@/utils/index.js";
|
|
181
|
+
import { Pagination, AdvancedFilter, Page, TableSetSize } from "n20-common-lib";
|
|
182
|
+
export default {
|
|
183
|
+
name: "Budgetaccount",
|
|
184
|
+
components: {
|
|
185
|
+
ClPage: Page,
|
|
186
|
+
CLTableSetSize:TableSetSize,
|
|
187
|
+
ClPagination: Pagination,
|
|
188
|
+
ClAdvancedFilter: AdvancedFilter,
|
|
189
|
+
},
|
|
190
|
+
props: {
|
|
191
|
+
unitNo: {
|
|
192
|
+
type: String,
|
|
193
|
+
},
|
|
194
|
+
visible: {
|
|
195
|
+
type: Boolean,
|
|
196
|
+
default: false,
|
|
197
|
+
},
|
|
198
|
+
isNeedQueryPlan: {
|
|
199
|
+
//是否需要差资金计划,默认是
|
|
200
|
+
type: Boolean,
|
|
201
|
+
default: true,
|
|
202
|
+
},
|
|
203
|
+
isChild: {
|
|
204
|
+
type: Boolean,
|
|
205
|
+
default: false,
|
|
206
|
+
},
|
|
207
|
+
isSetColumns: {
|
|
208
|
+
type: Boolean,
|
|
209
|
+
default: false,
|
|
210
|
+
},
|
|
211
|
+
businessDate: {
|
|
212
|
+
type: String,
|
|
213
|
+
default: '',
|
|
214
|
+
},
|
|
215
|
+
currencyNo: {
|
|
216
|
+
type: String,
|
|
217
|
+
default: "",
|
|
218
|
+
},
|
|
219
|
+
// 关联业务的收支方向
|
|
220
|
+
rpDir: {
|
|
221
|
+
type: [Number, String],
|
|
222
|
+
default: 1,
|
|
223
|
+
},
|
|
224
|
+
payTool: {
|
|
225
|
+
type: String,
|
|
226
|
+
default: "",
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
data(vm) {
|
|
230
|
+
return {
|
|
231
|
+
filterList: [
|
|
232
|
+
{
|
|
233
|
+
id: randomString(11),
|
|
234
|
+
label: vm.$l('预算单位'),
|
|
235
|
+
type: "select",
|
|
236
|
+
value: "budgetUnitNo",
|
|
237
|
+
slotName: "budgetUnitNo",
|
|
238
|
+
options: [],
|
|
239
|
+
isDefault: true,
|
|
240
|
+
required: true,
|
|
241
|
+
// static: true,
|
|
242
|
+
props: {
|
|
243
|
+
filterable: true,
|
|
244
|
+
clearable: true,
|
|
245
|
+
labelKey: "budgetUnitName",
|
|
246
|
+
valueKey: "budgetUnitNo",
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
id: randomString(11),
|
|
251
|
+
label: vm.$l('预算系列'),
|
|
252
|
+
type: "select",
|
|
253
|
+
value: "groupId",
|
|
254
|
+
slotName: "groupId",
|
|
255
|
+
options: [],
|
|
256
|
+
isDefault: true,
|
|
257
|
+
required: true,
|
|
258
|
+
// static: true,
|
|
259
|
+
props: {
|
|
260
|
+
filterable: true,
|
|
261
|
+
clearable: true,
|
|
262
|
+
labelKey: "groupName",
|
|
263
|
+
valueKey: "groupId",
|
|
264
|
+
},
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
id: randomString(11),
|
|
268
|
+
label: vm.$l('预算科目名称'), //预算科目名称
|
|
269
|
+
type: "text",
|
|
270
|
+
value: "budgetAccountNameLike",
|
|
271
|
+
isDefault: true,
|
|
272
|
+
// static: true,
|
|
273
|
+
props: {
|
|
274
|
+
clearable: true,
|
|
275
|
+
},
|
|
276
|
+
},
|
|
277
|
+
],
|
|
278
|
+
size: "small",
|
|
279
|
+
sizeBind: {},
|
|
280
|
+
parseTime: parseTime,
|
|
281
|
+
budgetTypeId: "",
|
|
282
|
+
form: {
|
|
283
|
+
budgetUnitNo: "",
|
|
284
|
+
groupId: "",
|
|
285
|
+
termId: "",
|
|
286
|
+
budgetAccountNameLike: "",
|
|
287
|
+
},
|
|
288
|
+
budgetUnitNameArr: [], //预算单位
|
|
289
|
+
groupNameArr: [], //预算系列
|
|
290
|
+
termNameArr: [], //预算期间
|
|
291
|
+
budgetAccountData: {}, //预算科目当前选中值
|
|
292
|
+
amountPlanData: {},
|
|
293
|
+
pagination: {
|
|
294
|
+
page: 1,
|
|
295
|
+
size: 50,
|
|
296
|
+
total: 0,
|
|
297
|
+
},
|
|
298
|
+
rules: {
|
|
299
|
+
budgetUnitNo: [
|
|
300
|
+
{
|
|
301
|
+
required: true,
|
|
302
|
+
message: vm.$l('请选择预算单位'),
|
|
303
|
+
trigger: "change",
|
|
304
|
+
},
|
|
305
|
+
],
|
|
306
|
+
groupId: [
|
|
307
|
+
{
|
|
308
|
+
required: true,
|
|
309
|
+
message: vm.$l('请选择预算系列'),
|
|
310
|
+
trigger: "change",
|
|
311
|
+
},
|
|
312
|
+
],
|
|
313
|
+
termId: [
|
|
314
|
+
{
|
|
315
|
+
required: true,
|
|
316
|
+
message: vm.$l('请选择预算期间'),
|
|
317
|
+
trigger: "change",
|
|
318
|
+
},
|
|
319
|
+
],
|
|
320
|
+
},
|
|
321
|
+
columns1: [],
|
|
322
|
+
tableData1: [],
|
|
323
|
+
showPlan: false,
|
|
324
|
+
};
|
|
325
|
+
},
|
|
326
|
+
watch: {
|
|
327
|
+
"form.groupId"(val) {
|
|
328
|
+
let group = this.groupNameArr?.filter((it) => {
|
|
329
|
+
return it.groupId == val;
|
|
330
|
+
});
|
|
331
|
+
if (!group || group.length == 0) return;
|
|
332
|
+
let typeId = group && group.length > 0 ? group[0].bussBudgetTypeId : "";
|
|
333
|
+
this.budgetTypeId = typeId;
|
|
334
|
+
},
|
|
335
|
+
"form.budgetUnitNo"(val) {
|
|
336
|
+
this.budgetUnitChange();
|
|
337
|
+
},
|
|
338
|
+
visible(val) {
|
|
339
|
+
if (val) {
|
|
340
|
+
this.setColumns();
|
|
341
|
+
this.tableData1 = [];
|
|
342
|
+
this.budgetAccountData = {};
|
|
343
|
+
this.amountPlanData = {};
|
|
344
|
+
this.showPlan = false;
|
|
345
|
+
this.getInitData();
|
|
346
|
+
}
|
|
347
|
+
if (!val) {
|
|
348
|
+
this.queryReset();
|
|
349
|
+
this.clearValid();
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
},
|
|
353
|
+
methods: {
|
|
354
|
+
setColumns() {
|
|
355
|
+
// if (this.isSetColumns) {
|
|
356
|
+
this.columns1 = [
|
|
357
|
+
{
|
|
358
|
+
prop: "budgetAccountCode",
|
|
359
|
+
label: this.$l('预算科目编码'),
|
|
360
|
+
align: "center",
|
|
361
|
+
width: 144,
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
prop: "budgetAccountName",
|
|
365
|
+
label: this.$l('预算科目名称'),
|
|
366
|
+
width: 230,
|
|
367
|
+
},
|
|
368
|
+
];
|
|
369
|
+
// } else {
|
|
370
|
+
// this.columns1 = [
|
|
371
|
+
// {
|
|
372
|
+
// prop: "budgetAccountCode",
|
|
373
|
+
// label: this.$l('预算科目编码'),
|
|
374
|
+
// align: "center",
|
|
375
|
+
// },
|
|
376
|
+
// {
|
|
377
|
+
// prop: "budgetAccountName",
|
|
378
|
+
// label: this.$l('预算科目名称'),
|
|
379
|
+
// width: 180,
|
|
380
|
+
// },
|
|
381
|
+
// {
|
|
382
|
+
// prop: "amount",
|
|
383
|
+
// label: this.$l('预算总额'),
|
|
384
|
+
// align: "right",
|
|
385
|
+
// },
|
|
386
|
+
// {
|
|
387
|
+
// prop: "balanceAmount",
|
|
388
|
+
// label: this.$l('预算剩余额度'),
|
|
389
|
+
// align: "right",
|
|
390
|
+
// },
|
|
391
|
+
// ];
|
|
392
|
+
// }
|
|
393
|
+
},
|
|
394
|
+
paginationChange(pagination) {
|
|
395
|
+
this.pagination = pagination;
|
|
396
|
+
this.submitForm("searchForm", false);
|
|
397
|
+
},
|
|
398
|
+
|
|
399
|
+
// 先查预算单位下拉,可得到预算系列
|
|
400
|
+
async getUnitBudgetAllPullDown() {
|
|
401
|
+
await getUnitBudgetAllPullDown({ unitNo: this.unitNo }).then((res) => {
|
|
402
|
+
this.budgetUnitNameArr = res; //预算单位
|
|
403
|
+
this.filterList.forEach((item) => {
|
|
404
|
+
if (item.value == "budgetUnitNo") {
|
|
405
|
+
item.options = this.budgetUnitNameArr;
|
|
406
|
+
}
|
|
407
|
+
});
|
|
408
|
+
if (this.budgetUnitNameArr.length == 1) {
|
|
409
|
+
this.form.budgetUnitNo = this.budgetUnitNameArr[0].budgetUnitNo;
|
|
410
|
+
this.groupNameArr = this.budgetUnitNameArr[0].groupList; //预算系列
|
|
411
|
+
this.filterList.forEach((item) => {
|
|
412
|
+
if (item.value == "groupId") {
|
|
413
|
+
item.options = this.groupNameArr;
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
if (this.groupNameArr.length == 1) {
|
|
417
|
+
this.form.groupId = this.groupNameArr[0].groupId;
|
|
418
|
+
this.budgetTypeId = this.groupNameArr[0].budgetTypeId;
|
|
419
|
+
}
|
|
420
|
+
} else {
|
|
421
|
+
this.form.groupId = "";
|
|
422
|
+
this.budgetTypeId = "";
|
|
423
|
+
}
|
|
424
|
+
this.getTermName();
|
|
425
|
+
});
|
|
426
|
+
},
|
|
427
|
+
|
|
428
|
+
budgetUnitChange() {
|
|
429
|
+
this.groupNameArr = this.budgetUnitNameArr.find((it) => {
|
|
430
|
+
return it.budgetUnitNo == this.form.budgetUnitNo;
|
|
431
|
+
})?.groupList;
|
|
432
|
+
if (this.groupNameArr?.length == 1) {
|
|
433
|
+
this.filterList.forEach((item) => {
|
|
434
|
+
if (item.value == "groupId") {
|
|
435
|
+
// item.options = this.groupNameArr;
|
|
436
|
+
this.$set(item, "options", this.groupNameArr);
|
|
437
|
+
}
|
|
438
|
+
});
|
|
439
|
+
this.form.groupId = this.groupNameArr[0].groupId;
|
|
440
|
+
this.budgetTypeId = this.groupNameArr[0].budgetTypeId;
|
|
441
|
+
} else {
|
|
442
|
+
this.form.groupId = "";
|
|
443
|
+
this.budgetTypeId = "";
|
|
444
|
+
}
|
|
445
|
+
this.getTermName();
|
|
446
|
+
},
|
|
447
|
+
|
|
448
|
+
// 根据单位查询预算期间
|
|
449
|
+
async getTermName() {
|
|
450
|
+
let paramsF = {
|
|
451
|
+
unitNo: this.unitNo,
|
|
452
|
+
budgetUnitNo: this.form.budgetUnitNo,
|
|
453
|
+
groupId: this.form.groupId,
|
|
454
|
+
// businessDate: parseTime(new Date(this.businessDate), "{y}-{m}-{d}"),
|
|
455
|
+
// minDate: parseTime(new Date(this.businessDate), "{y}-{m}-{d}"),
|
|
456
|
+
// maxDate: parseTime(new Date(this.businessDate), "{y}-{m}-{d}"),
|
|
457
|
+
occupyTerm: 1,
|
|
458
|
+
};
|
|
459
|
+
let res = await getQuotaTerm(paramsF);
|
|
460
|
+
//先手动查询预算期间 存在有符合条件的预算期间时 再查预算科目 符合条件的预算期间应该只有1条数据
|
|
461
|
+
//TODO 预算2023.12月有需求 通过预算单位,预算系列,业务日期查询预算科目 后续根据情况看是否修改
|
|
462
|
+
if (res && res.length > 0) {
|
|
463
|
+
this.form.termId = res[0].termId;
|
|
464
|
+
this.submitForm("searchForm", true);
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
submitForm(formName, isInitPage = true) {
|
|
468
|
+
this.tableData1 = [];
|
|
469
|
+
if (isInitPage) {
|
|
470
|
+
this.pagination.page = 1;
|
|
471
|
+
}
|
|
472
|
+
if (!this.form.budgetUnitNo || !this.form.groupId || !this.form.termId) {
|
|
473
|
+
return;
|
|
474
|
+
}
|
|
475
|
+
// this.$refs[formName].validate((valid) => { 漏斗组件还不支持校验,先注释掉,后面支持了再放开
|
|
476
|
+
// if (valid) {
|
|
477
|
+
this.form.budgetAccountNameLike =
|
|
478
|
+
this.form.budgetAccountNameLike &&
|
|
479
|
+
this.form.budgetAccountNameLike.replace(/\s/g, "");
|
|
480
|
+
let params = {
|
|
481
|
+
...this.form,
|
|
482
|
+
businessDate: '',
|
|
483
|
+
currencyNo: this.currencyNo,
|
|
484
|
+
rpDir: this.rpDir == 1 ? 2 : 1,
|
|
485
|
+
"page.current": this.pagination.page,
|
|
486
|
+
"page.size": this.pagination.size,
|
|
487
|
+
};
|
|
488
|
+
getBudgetQuota(params).then((res) => {
|
|
489
|
+
this.tableData1 = this.transData1(res.list);
|
|
490
|
+
this.pagination.total = res.total;
|
|
491
|
+
});
|
|
492
|
+
// } else {
|
|
493
|
+
// console.log("error submit!!");
|
|
494
|
+
// return false;
|
|
495
|
+
// }
|
|
496
|
+
// });
|
|
497
|
+
},
|
|
498
|
+
|
|
499
|
+
queryReset() {
|
|
500
|
+
if (this.budgetUnitNameArr.length && this.budgetUnitNameArr.length > 1) {
|
|
501
|
+
this.form = {
|
|
502
|
+
budgetUnitNo: "",
|
|
503
|
+
groupId: "",
|
|
504
|
+
termId: "",
|
|
505
|
+
budgetAccountNameLike: "",
|
|
506
|
+
};
|
|
507
|
+
} else if (
|
|
508
|
+
this.budgetUnitNameArr.length &&
|
|
509
|
+
this.budgetUnitNameArr.length == 1
|
|
510
|
+
) {
|
|
511
|
+
this.getUnitBudgetAllPullDown();
|
|
512
|
+
this.form.budgetAccountNameLike = "";
|
|
513
|
+
} else {
|
|
514
|
+
this.form = {
|
|
515
|
+
budgetUnitNo: "",
|
|
516
|
+
groupId: "",
|
|
517
|
+
termId: "",
|
|
518
|
+
budgetAccountNameLike: "",
|
|
519
|
+
};
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
|
|
523
|
+
clearValid() {
|
|
524
|
+
let $form = this.$refs.searchForm;
|
|
525
|
+
$form && $form.clearValidate();
|
|
526
|
+
},
|
|
527
|
+
|
|
528
|
+
// 初始时
|
|
529
|
+
async getInitData() {
|
|
530
|
+
this.queryReset();
|
|
531
|
+
this.clearValid();
|
|
532
|
+
await this.getUnitBudgetAllPullDown();
|
|
533
|
+
this.submitForm("searchForm", true);
|
|
534
|
+
},
|
|
535
|
+
|
|
536
|
+
// 表格1点击单行
|
|
537
|
+
choseBudget(val) {
|
|
538
|
+
this.budgetAccountData = val;
|
|
539
|
+
this.getCfbAmountPlanData();
|
|
540
|
+
},
|
|
541
|
+
|
|
542
|
+
//
|
|
543
|
+
getCfbAmountPlanData() {
|
|
544
|
+
let temp =
|
|
545
|
+
this.budgetUnitNameArr.filter(
|
|
546
|
+
(i) => i.budgetUnitNo == this.form.budgetUnitNo
|
|
547
|
+
) || [];
|
|
548
|
+
let map = {
|
|
549
|
+
...this.budgetAccountData,
|
|
550
|
+
budgetUnitNo: this.form.budgetUnitNo,
|
|
551
|
+
budgetUnitName: temp[0].budgetUnitName,
|
|
552
|
+
groupId: this.form.groupId,
|
|
553
|
+
};
|
|
554
|
+
this.$emit("receive", map);
|
|
555
|
+
this.close();
|
|
556
|
+
},
|
|
557
|
+
close() {
|
|
558
|
+
this.groupNameArr = [];
|
|
559
|
+
this.termNameArr = [];
|
|
560
|
+
this.$emit("cancel");
|
|
561
|
+
},
|
|
562
|
+
transData1(data) {
|
|
563
|
+
data.forEach((item) => {
|
|
564
|
+
item.transAmount = amountFormat(item.amount);
|
|
565
|
+
item.transUsedAmount = amountFormat(item.amount - item.usedAmount);
|
|
566
|
+
item.amount = amountFormat(item.amount);
|
|
567
|
+
item.balanceAmount = amountFormat(item.balanceAmount);
|
|
568
|
+
});
|
|
569
|
+
return data;
|
|
570
|
+
},
|
|
571
|
+
},
|
|
572
|
+
};
|
|
573
|
+
</script>
|
|
574
|
+
|
|
575
|
+
<style lang="less">
|
|
576
|
+
.pager.cl-pagination {
|
|
577
|
+
height: 45px;
|
|
578
|
+
}
|
|
579
|
+
.fixed-dialog /deep/ .el-dialog__footer {
|
|
580
|
+
padding: 8px 0;
|
|
581
|
+
}
|
|
582
|
+
.tables {
|
|
583
|
+
position: relative;
|
|
584
|
+
}
|
|
585
|
+
.showplan /deep/ .el-dialog {
|
|
586
|
+
margin-top: 100px !important;
|
|
587
|
+
}
|
|
588
|
+
</style>
|