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,934 @@
|
|
|
1
|
+
/* 待处理 */
|
|
2
|
+
<template>
|
|
3
|
+
<cl-page style="height: 100%">
|
|
4
|
+
<template slot="header">
|
|
5
|
+
<div class="flex-box flex-lr flex-v">
|
|
6
|
+
<div class="flex-box flex-v">
|
|
7
|
+
<cl-secondary-tab
|
|
8
|
+
:init.sync="name"
|
|
9
|
+
:data="tabList"
|
|
10
|
+
@click="tabClick"
|
|
11
|
+
/>
|
|
12
|
+
</div>
|
|
13
|
+
<div>
|
|
14
|
+
<el-button
|
|
15
|
+
icon="n20-icon-shuaxin"
|
|
16
|
+
plain
|
|
17
|
+
onlyicon
|
|
18
|
+
size="mini"
|
|
19
|
+
@click="filterFn"
|
|
20
|
+
/>
|
|
21
|
+
<el-button
|
|
22
|
+
icon="n20-icon-iconfontshaixuan "
|
|
23
|
+
plain
|
|
24
|
+
onlyicon
|
|
25
|
+
size="mini"
|
|
26
|
+
class="m-l-s"
|
|
27
|
+
@click="multiple = !multiple"
|
|
28
|
+
/>
|
|
29
|
+
<el-button
|
|
30
|
+
v-hasG="pageRelaNo.cancel"
|
|
31
|
+
class="m-l-s"
|
|
32
|
+
plain
|
|
33
|
+
size="mini"
|
|
34
|
+
:disabled="cancelDisabled"
|
|
35
|
+
@click="cancelFn"
|
|
36
|
+
>{{ $t("common_t_0002") }}</el-button
|
|
37
|
+
>
|
|
38
|
+
<el-button
|
|
39
|
+
v-hasG="pageRelaNo.del"
|
|
40
|
+
class="m-l-s"
|
|
41
|
+
plain
|
|
42
|
+
size="mini"
|
|
43
|
+
:disabled="removeDisabled"
|
|
44
|
+
@click="removeFn"
|
|
45
|
+
>{{ $t("common_t_0003") }}</el-button
|
|
46
|
+
>
|
|
47
|
+
<el-button
|
|
48
|
+
v-if="showShowColumn"
|
|
49
|
+
class="m-l-s"
|
|
50
|
+
plain
|
|
51
|
+
size="mini"
|
|
52
|
+
@click="dialogVisible = true"
|
|
53
|
+
>{{ $t("common_t_0004") }}</el-button
|
|
54
|
+
>
|
|
55
|
+
|
|
56
|
+
<cl-show-column
|
|
57
|
+
ref="showColumn"
|
|
58
|
+
:dialog-visible.sync="dialogVisible"
|
|
59
|
+
:check-columns="checkColumns"
|
|
60
|
+
:columns="originColumn"
|
|
61
|
+
label-key="label"
|
|
62
|
+
@setColumns="setChange"
|
|
63
|
+
/>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
<div class="flex-box flex-lr flex-v">
|
|
67
|
+
<!-- <div> -->
|
|
68
|
+
<cl-advanced-filter
|
|
69
|
+
:visible.sync="multiple"
|
|
70
|
+
:filterId="filterId"
|
|
71
|
+
onlyKey="id"
|
|
72
|
+
ref="cl-filters"
|
|
73
|
+
:model="searchObj"
|
|
74
|
+
:filter-list="filterList"
|
|
75
|
+
@clear="clearFn"
|
|
76
|
+
@search="filterFn"
|
|
77
|
+
@enter="filterFn"
|
|
78
|
+
>
|
|
79
|
+
<cl-date-picker-por
|
|
80
|
+
slot="startTime"
|
|
81
|
+
:start-date.sync="searchObj.startTime"
|
|
82
|
+
:end-date.sync="searchObj.endTime"
|
|
83
|
+
type="daterange"
|
|
84
|
+
value-format="yyyy-MM-dd HH:mm:ss"
|
|
85
|
+
:defaultTime="['00:00:00', '23:59:59']"
|
|
86
|
+
/>
|
|
87
|
+
</cl-advanced-filter>
|
|
88
|
+
<!-- </div> -->
|
|
89
|
+
</div>
|
|
90
|
+
</template>
|
|
91
|
+
<div class="table-wrap" style="height: 100%">
|
|
92
|
+
<div class="table-content">
|
|
93
|
+
<cl-table-pro
|
|
94
|
+
ref="vTable"
|
|
95
|
+
:sort-config="{ remote: false, sortMethod }"
|
|
96
|
+
height="100%"
|
|
97
|
+
:data="tableDate"
|
|
98
|
+
:clearSelect="false"
|
|
99
|
+
:columns="tableCloumn"
|
|
100
|
+
:row-config="{ useRowKey: 'businessId', keyField: 'businessId' }"
|
|
101
|
+
:checkbox-config="{
|
|
102
|
+
reserve: true,
|
|
103
|
+
}"
|
|
104
|
+
@selection-change-method="selectionChange"
|
|
105
|
+
>
|
|
106
|
+
<vxe-column
|
|
107
|
+
slot="businessId"
|
|
108
|
+
slot-scope="{ column }"
|
|
109
|
+
v-bind="column"
|
|
110
|
+
:class-name="column.wrap && 'vxe-table-custom-wrap'"
|
|
111
|
+
:field="column.prop"
|
|
112
|
+
:title="column.label"
|
|
113
|
+
>
|
|
114
|
+
<el-link
|
|
115
|
+
slot-scope="{ row }"
|
|
116
|
+
:underline="false"
|
|
117
|
+
type="primary"
|
|
118
|
+
class="text-ellipsis"
|
|
119
|
+
style="display: block"
|
|
120
|
+
@click="seeFn(row)"
|
|
121
|
+
>{{ row.businessId }}</el-link
|
|
122
|
+
>
|
|
123
|
+
</vxe-column>
|
|
124
|
+
<vxe-column
|
|
125
|
+
slot="state"
|
|
126
|
+
slot-scope="{ column }"
|
|
127
|
+
:class-name="column.wrap && 'vxe-table-custom-wrap'"
|
|
128
|
+
v-bind="column"
|
|
129
|
+
:field="column.prop"
|
|
130
|
+
:title="column.label"
|
|
131
|
+
>
|
|
132
|
+
<span slot-scope="{ row }">{{ stateF(row.state) }}</span>
|
|
133
|
+
</vxe-column>
|
|
134
|
+
<vxe-column
|
|
135
|
+
v-if="stateSomeGo == '3'"
|
|
136
|
+
slot="suggestion"
|
|
137
|
+
slot-scope="{ column }"
|
|
138
|
+
:class-name="column.wrap && 'vxe-table-custom-wrap'"
|
|
139
|
+
v-bind="column"
|
|
140
|
+
:field="column.prop"
|
|
141
|
+
:title="column.label"
|
|
142
|
+
>
|
|
143
|
+
<span slot-scope="{ row }">{{ row.suggestion }}</span>
|
|
144
|
+
</vxe-column>
|
|
145
|
+
<cl-table-pro-operate-column
|
|
146
|
+
slot="operate"
|
|
147
|
+
:btn-list="btnList"
|
|
148
|
+
:label="$t('common_t_0005')"
|
|
149
|
+
width="180"
|
|
150
|
+
fixed="right"
|
|
151
|
+
align="center"
|
|
152
|
+
@click="(row) => dealFn(row)"
|
|
153
|
+
@del="(row) => removeFn([row])"
|
|
154
|
+
@cancel="(row) => cancelFn([row])"
|
|
155
|
+
/>
|
|
156
|
+
</cl-table-pro>
|
|
157
|
+
</div>
|
|
158
|
+
</div>
|
|
159
|
+
<div slot="footer" class="flex-box flex-v m-t-s">
|
|
160
|
+
<cl-statis :page-sum="selectRows.length" :total-sun="pageObj.totalSize" />
|
|
161
|
+
|
|
162
|
+
<cl-pagination
|
|
163
|
+
:page-sizes="pageSizes"
|
|
164
|
+
class="m-l-auto"
|
|
165
|
+
:page-obj="pageObj"
|
|
166
|
+
:page-key="{ no: 'pageNo', size: 'pageSize', total: 'totalSize' }"
|
|
167
|
+
@change="getTableData"
|
|
168
|
+
/>
|
|
169
|
+
</div>
|
|
170
|
+
</cl-page>
|
|
171
|
+
</template>
|
|
172
|
+
|
|
173
|
+
<script>
|
|
174
|
+
import dCloumn from "../getDCloumn.js";
|
|
175
|
+
import dynamicColumnMixin from "../dynamicColumnMixin.js";
|
|
176
|
+
import unitName from "../setUnitName.js";
|
|
177
|
+
import {
|
|
178
|
+
Pagination,
|
|
179
|
+
Statis,
|
|
180
|
+
TablePro,
|
|
181
|
+
TableProOperateColumn,
|
|
182
|
+
ShowColumn,
|
|
183
|
+
SecondaryTab,
|
|
184
|
+
AdvancedFilter,
|
|
185
|
+
DatePickerPor,
|
|
186
|
+
Page,
|
|
187
|
+
} from "n20-common-lib";
|
|
188
|
+
import { pendingEventPath, rplsToDeal } from "../specialHandle.js";
|
|
189
|
+
import { appUrl } from "../server-config.js";
|
|
190
|
+
export default {
|
|
191
|
+
props: {
|
|
192
|
+
appNo: {
|
|
193
|
+
type: String,
|
|
194
|
+
required: true,
|
|
195
|
+
},
|
|
196
|
+
filterId: {
|
|
197
|
+
type: String,
|
|
198
|
+
required: true,
|
|
199
|
+
},
|
|
200
|
+
tabList: {
|
|
201
|
+
type: Array,
|
|
202
|
+
required: true,
|
|
203
|
+
},
|
|
204
|
+
pageRelaNo: {
|
|
205
|
+
type: Object,
|
|
206
|
+
required: true,
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
components: {
|
|
210
|
+
ClPage: Page,
|
|
211
|
+
ClPagination: Pagination,
|
|
212
|
+
ClStatis: Statis,
|
|
213
|
+
ClTablePro: TablePro,
|
|
214
|
+
ClTableProOperateColumn: TableProOperateColumn,
|
|
215
|
+
ClShowColumn: ShowColumn,
|
|
216
|
+
ClSecondaryTab: SecondaryTab,
|
|
217
|
+
ClAdvancedFilter: AdvancedFilter,
|
|
218
|
+
ClDatePickerPor: DatePickerPor,
|
|
219
|
+
},
|
|
220
|
+
mixins: [dynamicColumnMixin],
|
|
221
|
+
data(vm) {
|
|
222
|
+
return {
|
|
223
|
+
name: vm.$t("common_t_0001"),
|
|
224
|
+
showShowColumn: false,
|
|
225
|
+
appUrl,
|
|
226
|
+
multiple: true,
|
|
227
|
+
promptType: 1,
|
|
228
|
+
active: true,
|
|
229
|
+
verifyMsg: {
|
|
230
|
+
checkFlowVoList: [],
|
|
231
|
+
},
|
|
232
|
+
defaultProps: {
|
|
233
|
+
children: "children",
|
|
234
|
+
label: "label",
|
|
235
|
+
},
|
|
236
|
+
pageSizes: [20, 50, 100],
|
|
237
|
+
// eslint-disable-next-line vue/no-reserved-keys
|
|
238
|
+
_typeCodesOptions: [],
|
|
239
|
+
appCodeOptions: [],
|
|
240
|
+
typeCodesOptions: [],
|
|
241
|
+
dialogVisible: false,
|
|
242
|
+
checkColumns: [],
|
|
243
|
+
btnDisabled: false,
|
|
244
|
+
searchObj: {
|
|
245
|
+
typeCodes: []
|
|
246
|
+
},
|
|
247
|
+
size: "small",
|
|
248
|
+
sizeBind: undefined,
|
|
249
|
+
isShowCard: false,
|
|
250
|
+
cardData: [],
|
|
251
|
+
btnList: [
|
|
252
|
+
{
|
|
253
|
+
label: vm.$t("common_t_0009"),
|
|
254
|
+
command: "click",
|
|
255
|
+
isHas: (row) =>
|
|
256
|
+
row.typeCode !== "resetPassword" &&
|
|
257
|
+
this.$hasG(this.pageRelaNo.eidit),
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
label: vm.$t("common_t_0002"), //作废
|
|
261
|
+
command: "cancel",
|
|
262
|
+
isHas: (row) =>
|
|
263
|
+
row.typeCode !== "resetPassword" &&
|
|
264
|
+
this.$hasG(this.pageRelaNo.cancel) &&
|
|
265
|
+
(row.state == "3" || row.state == "2"),
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
label: vm.$t("common_t_0003"), //删除
|
|
269
|
+
command: "del",
|
|
270
|
+
isHas: (row) =>
|
|
271
|
+
row.typeCode !== "resetPassword" &&
|
|
272
|
+
this.$hasG(this.pageRelaNo.del) &&
|
|
273
|
+
row.state == "1",
|
|
274
|
+
},
|
|
275
|
+
],
|
|
276
|
+
filterList: [
|
|
277
|
+
{
|
|
278
|
+
id: "typeCodes",
|
|
279
|
+
label: vm.$t("common_t_0010"), //交易类型
|
|
280
|
+
type: "select",
|
|
281
|
+
value: "typeCodes",
|
|
282
|
+
props: {
|
|
283
|
+
multiple: true,
|
|
284
|
+
},
|
|
285
|
+
isDefault: true,
|
|
286
|
+
options: [],
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
id: "businessId",
|
|
290
|
+
label: vm.$t("common_t_0011"), //业务流水号
|
|
291
|
+
type: "text",
|
|
292
|
+
value: "businessId",
|
|
293
|
+
isDefault: true,
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
id: "states",
|
|
297
|
+
label: vm.$t("common_t_0014"), //交易状态
|
|
298
|
+
type: "select",
|
|
299
|
+
value: "states",
|
|
300
|
+
options: [
|
|
301
|
+
{ label: vm.$t("common_t_0006"), value: "1" },
|
|
302
|
+
{ label: vm.$t("common_t_0007"), value: "2" },
|
|
303
|
+
{ label: vm.$t("common_t_0008"), value: "3" },
|
|
304
|
+
],
|
|
305
|
+
isDefault: true,
|
|
306
|
+
props: {
|
|
307
|
+
multiple: true,
|
|
308
|
+
},
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
id: "minAmount",
|
|
312
|
+
label: vm.$t("common_t_0013"), //金额
|
|
313
|
+
type: "numberrange",
|
|
314
|
+
startValue: "minAmount",
|
|
315
|
+
endValue: "maxAmount",
|
|
316
|
+
isDefault: true,
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
id: "dataMember",
|
|
320
|
+
label: vm.$t("common_t_0012"), //单位名称
|
|
321
|
+
type: "text",
|
|
322
|
+
value: "dataMember",
|
|
323
|
+
isDefault: true,
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
id: "applyUserName",
|
|
327
|
+
label: vm.$t("common_t_0015"), //发起人
|
|
328
|
+
type: "text",
|
|
329
|
+
value: "applyUserName",
|
|
330
|
+
isDefault: false,
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
slotName: "startTime",
|
|
334
|
+
id: "startTime",
|
|
335
|
+
label: vm.$t("common_t_0016"), //发起时间
|
|
336
|
+
type: "daterange",
|
|
337
|
+
startDate: "startTime",
|
|
338
|
+
endDate: "endTime",
|
|
339
|
+
props: {
|
|
340
|
+
valueFormat: "yyyy-MM-dd HH:mm:ss",
|
|
341
|
+
defaultTime: ["00:00:00", "23:59:59"],
|
|
342
|
+
},
|
|
343
|
+
isDefault: false,
|
|
344
|
+
},
|
|
345
|
+
],
|
|
346
|
+
pageObj: {
|
|
347
|
+
pageNo: 1, // 接口需要的页码
|
|
348
|
+
pageSize: 50, // 接口需要的请求条数
|
|
349
|
+
totalSize: 0, // 接口返回的总条数
|
|
350
|
+
},
|
|
351
|
+
tableDate: [],
|
|
352
|
+
currentAmount: 0,
|
|
353
|
+
totalAmount: 0,
|
|
354
|
+
staticCloumn: [
|
|
355
|
+
{
|
|
356
|
+
type: "checkbox",
|
|
357
|
+
width: "56",
|
|
358
|
+
align: "center",
|
|
359
|
+
static: "pre", // 静态不被"显示列"显示的,且最终会被拼接到"显示列"排序后的表格的"前面"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
type: "seq",
|
|
363
|
+
label: vm.$t("common_t_0017"), //序号
|
|
364
|
+
width: "56",
|
|
365
|
+
align: "center",
|
|
366
|
+
static: "pre",
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
label: vm.$t("common_t_0011"), //业务流水号
|
|
370
|
+
slotName: "businessId",
|
|
371
|
+
"minWidth": "180",
|
|
372
|
+
"show-overflow-tooltip": true,
|
|
373
|
+
prop: "businessId",
|
|
374
|
+
checked: true,
|
|
375
|
+
isDefault: true,
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
label: vm.$t("common_t_0010"), //交易类型
|
|
379
|
+
align: "center",
|
|
380
|
+
"minWidth": "120",
|
|
381
|
+
"show-overflow-tooltip": true,
|
|
382
|
+
prop: "typeName",
|
|
383
|
+
isDefault: true,
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
label: vm.$t("common_t_0012"), //单位名称
|
|
387
|
+
align: "left",
|
|
388
|
+
"minWidth": "240",
|
|
389
|
+
"show-overflow-tooltip": true,
|
|
390
|
+
prop: "dataMember",
|
|
391
|
+
isDefault: true,
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
label: vm.$t("common_t_0018"), //币种
|
|
395
|
+
"minWidth": "113",
|
|
396
|
+
"show-overflow-tooltip": true,
|
|
397
|
+
prop: "currencyName",
|
|
398
|
+
isDefault: true,
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
label: vm.$t("common_t_0013"), //金额
|
|
402
|
+
"show-overflow-tooltip": true,
|
|
403
|
+
prop: "amount",
|
|
404
|
+
"minWidth": "190",
|
|
405
|
+
align: "right",
|
|
406
|
+
formatter: "formatAmount", // 金额格式化
|
|
407
|
+
isDefault: true,
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
label: vm.$t("common_t_0014"), //交易状态
|
|
411
|
+
"minWidth": "100",
|
|
412
|
+
prop: "state",
|
|
413
|
+
slotName: "state",
|
|
414
|
+
isDefault: true,
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
label: vm.$t("common_t_0019"), //驳回原因
|
|
418
|
+
prop: "rejmessage",
|
|
419
|
+
align: "left",
|
|
420
|
+
"minWidth": "180",
|
|
421
|
+
"show-overflow-tooltip": true,
|
|
422
|
+
isDefault: true,
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
label: vm.$t("common_t_0016"), //发起时间
|
|
426
|
+
"minWidth": "180",
|
|
427
|
+
prop: "createTime",
|
|
428
|
+
sortable: true,
|
|
429
|
+
isDefault: true,
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
label: vm.$t("common_t_0020"), //更新时间
|
|
433
|
+
"minWidth": "180",
|
|
434
|
+
prop: "updateTime",
|
|
435
|
+
sortable: true,
|
|
436
|
+
isDefault: true,
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
label: vm.$t("common_t_0015"), //发起人
|
|
440
|
+
"minWidth": "120",
|
|
441
|
+
"show-overflow-tooltip": true,
|
|
442
|
+
prop: "applyUserName",
|
|
443
|
+
isDefault: true,
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
slotName: "operate",
|
|
447
|
+
width: "180",
|
|
448
|
+
static: "next", // 静态不被"显示列"显示的,且最终会被拼接到"显示列"排序后的表格的"后面"
|
|
449
|
+
},
|
|
450
|
+
], // 静态列
|
|
451
|
+
dynamicCloumn: [], // 动态列
|
|
452
|
+
selectRows: [],
|
|
453
|
+
selectAmoubt: 0,
|
|
454
|
+
stateSomeGo: "",
|
|
455
|
+
isG20: true,
|
|
456
|
+
typeTree: [],
|
|
457
|
+
isFlowWhether: false,
|
|
458
|
+
flowOptions: [],
|
|
459
|
+
reasonSelect: "",
|
|
460
|
+
reason: "",
|
|
461
|
+
};
|
|
462
|
+
},
|
|
463
|
+
computed: {
|
|
464
|
+
tableCloumn() {
|
|
465
|
+
return this.checkColumns.length
|
|
466
|
+
? this.checkColumns
|
|
467
|
+
: [...this.staticCloumn, ...this.dynamicCloumn];
|
|
468
|
+
},
|
|
469
|
+
originColumn() {
|
|
470
|
+
return [...this.staticCloumn, ...this.dynamicCloumn];
|
|
471
|
+
},
|
|
472
|
+
isSingleSlt() {
|
|
473
|
+
let typeNames = new Set(this.selectRows.map((r) => r.typeName));
|
|
474
|
+
return typeNames.size === 1;
|
|
475
|
+
},
|
|
476
|
+
removeDisabled() {
|
|
477
|
+
if (this.isSingleSlt) {
|
|
478
|
+
return !!this.selectRows.some((r) => r.state !== 1);
|
|
479
|
+
} else {
|
|
480
|
+
return true;
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
cancelDisabled() {
|
|
484
|
+
if (this.isSingleSlt) {
|
|
485
|
+
return !!this.selectRows.some((r) => r.state == 1);
|
|
486
|
+
} else {
|
|
487
|
+
return true;
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
},
|
|
491
|
+
watch: {
|
|
492
|
+
stateSomeGo() {
|
|
493
|
+
this.$nextTick(() => {
|
|
494
|
+
this.$refs.tableRef?.doLayout();
|
|
495
|
+
});
|
|
496
|
+
},
|
|
497
|
+
},
|
|
498
|
+
created() {
|
|
499
|
+
const { id } = this.$route.query;
|
|
500
|
+
if (id) {
|
|
501
|
+
this.$set(this.searchObj, "typeCodes", [id]);
|
|
502
|
+
this.getDynamicColumn(id, "2");
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
activated() {
|
|
506
|
+
this.name = this.$t("common_t_0001");
|
|
507
|
+
this.clearSelection();
|
|
508
|
+
this.init();
|
|
509
|
+
},
|
|
510
|
+
deactivated() {},
|
|
511
|
+
mounted() {
|
|
512
|
+
// this.init();
|
|
513
|
+
},
|
|
514
|
+
methods: {
|
|
515
|
+
clearSelection() {
|
|
516
|
+
this.$refs.vTable?.clearSelection();
|
|
517
|
+
this.$refs.vTable?.$refs?.[`vxeTable`]?.clearCheckboxRow();
|
|
518
|
+
this.$refs.vTable?.$refs?.[`vxeTable`]?.clearCheckboxReserve();
|
|
519
|
+
this.$nextTick(() => {
|
|
520
|
+
this.selectRows = [];
|
|
521
|
+
});
|
|
522
|
+
},
|
|
523
|
+
stateF(state) {
|
|
524
|
+
switch (state + "") {
|
|
525
|
+
case "1":
|
|
526
|
+
return this.$t("common_t_0006"); //已保存
|
|
527
|
+
case "2":
|
|
528
|
+
return this.$t("common_t_0007"); //已撤回
|
|
529
|
+
case "3":
|
|
530
|
+
return this.$t("common_t_0008"); //已驳回
|
|
531
|
+
default:
|
|
532
|
+
return "-";
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
tabClick(item) {
|
|
536
|
+
this.$emit("tabChange", item.path);
|
|
537
|
+
},
|
|
538
|
+
setTreeData(data = []) {
|
|
539
|
+
const typeCodeMap = {};
|
|
540
|
+
data.forEach((item) => {
|
|
541
|
+
if (!typeCodeMap[item.appCode]) {
|
|
542
|
+
typeCodeMap[item.appCode] = {
|
|
543
|
+
value: item.appCode,
|
|
544
|
+
label: item.appName,
|
|
545
|
+
level: 1,
|
|
546
|
+
_item: item,
|
|
547
|
+
children: [],
|
|
548
|
+
};
|
|
549
|
+
}
|
|
550
|
+
typeCodeMap[item.appCode].children.push({
|
|
551
|
+
level: 2,
|
|
552
|
+
_item: item,
|
|
553
|
+
value: item.typeCode,
|
|
554
|
+
label: item.typeName,
|
|
555
|
+
});
|
|
556
|
+
});
|
|
557
|
+
this.typeTree = Object.values(typeCodeMap);
|
|
558
|
+
this.typeTree.unshift({
|
|
559
|
+
label: "全部审批",
|
|
560
|
+
value: "",
|
|
561
|
+
level: 1,
|
|
562
|
+
});
|
|
563
|
+
},
|
|
564
|
+
setChange(list) {
|
|
565
|
+
const index = list.findIndex((res) => res.isNew && !res.children);
|
|
566
|
+
if (index !== -1) return this.$message.warning(`新增字段必须包含子级!`);
|
|
567
|
+
let dto = {
|
|
568
|
+
approvalType: "2",
|
|
569
|
+
typeCode: this.searchObj.typeCodes?.join() || null,
|
|
570
|
+
sortColumn: JSON.stringify(list),
|
|
571
|
+
};
|
|
572
|
+
this.saveDynamicColumn(dto);
|
|
573
|
+
this.dialogVisible = false;
|
|
574
|
+
this.timer = setTimeout(() => {
|
|
575
|
+
this.getDynamicColumn(this.searchObj.typeCodes?.join(), "2");
|
|
576
|
+
}, 300);
|
|
577
|
+
},
|
|
578
|
+
/**
|
|
579
|
+
* @description 获取业务类型
|
|
580
|
+
*/
|
|
581
|
+
async getAppCode() {
|
|
582
|
+
const { data, code } = await this.$axios.post(
|
|
583
|
+
"/bems/activiti/online/list/appnos",
|
|
584
|
+
null,
|
|
585
|
+
{ loading: false }
|
|
586
|
+
);
|
|
587
|
+
if (code === 200) {
|
|
588
|
+
this.appCodeOptions = data?.map((d) => ({
|
|
589
|
+
label: d.appName,
|
|
590
|
+
value: d.appno,
|
|
591
|
+
}));
|
|
592
|
+
}
|
|
593
|
+
},
|
|
594
|
+
async getTypeCodes() {
|
|
595
|
+
this.$refs?.["cl-filters"]?.setOptions("typeCodes", []);
|
|
596
|
+
const { data, code } = await this.$axios.get(
|
|
597
|
+
"/bems/prod_1.0/activiti/temporaryStorage/typeList/1",
|
|
598
|
+
null,
|
|
599
|
+
{
|
|
600
|
+
loading: false,
|
|
601
|
+
}
|
|
602
|
+
);
|
|
603
|
+
if (code === 200) {
|
|
604
|
+
const excludes= ['CTMS_FM001', 'CTMS_FM012']
|
|
605
|
+
this.typeCodesOptions = this._typeCodesOptions = data
|
|
606
|
+
?.map((d) => ({
|
|
607
|
+
label: d.typeName,
|
|
608
|
+
value: d.typeCode,
|
|
609
|
+
appCode: d.appCode,
|
|
610
|
+
}))
|
|
611
|
+
.filter((item) => {
|
|
612
|
+
if (item.appCode === 'CTMS' && this.appNo === 'CTMS'){
|
|
613
|
+
return !excludes.includes(item.value)
|
|
614
|
+
}
|
|
615
|
+
return item.appCode === this.appNo
|
|
616
|
+
});
|
|
617
|
+
|
|
618
|
+
// this.setTreeData(data);
|
|
619
|
+
this.$refs["cl-filters"].setOptions("typeCodes", this.typeCodesOptions);
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
|
|
623
|
+
init() {
|
|
624
|
+
// this.getAppCode();
|
|
625
|
+
this.getTypeCodes();
|
|
626
|
+
this.getCloumn();
|
|
627
|
+
this.getTableData();
|
|
628
|
+
},
|
|
629
|
+
reFresh() {
|
|
630
|
+
this.pageObj.pageNo = 1;
|
|
631
|
+
this.clearSelection();
|
|
632
|
+
this.getTableData();
|
|
633
|
+
},
|
|
634
|
+
async clearFn() {
|
|
635
|
+
this.searchObj = {};
|
|
636
|
+
this.pageObj.pageNo = 1;
|
|
637
|
+
this.checkColumns = [];
|
|
638
|
+
// this.filterFn();
|
|
639
|
+
},
|
|
640
|
+
async filterFn() {
|
|
641
|
+
this.pageObj.pageNo = 1;
|
|
642
|
+
this.clearSelection();
|
|
643
|
+
await this.getCloumn();
|
|
644
|
+
if (this.searchObj.typeCodes?.length > 0) {
|
|
645
|
+
this.getDynamicColumn(this.searchObj.typeCodes.join(), "2");
|
|
646
|
+
}
|
|
647
|
+
await this.getTableData();
|
|
648
|
+
},
|
|
649
|
+
async getCloumn() {
|
|
650
|
+
if (this.searchObj.typeCodes?.length === 1) {
|
|
651
|
+
let { data } = await this.$axios.post(
|
|
652
|
+
"/bems/prod_1.0/activiti/importantInfo/setting/audit/analysis/list",
|
|
653
|
+
{
|
|
654
|
+
typeCode: this.searchObj.typeCodes[0],
|
|
655
|
+
}
|
|
656
|
+
);
|
|
657
|
+
data || (data = []);
|
|
658
|
+
// 有些业务动态列有单位名称,需要过滤掉
|
|
659
|
+
this.dynamicCloumn = data.filter(item=>item.name!='单位名称' && item.name!='unitName').map((d) => ({
|
|
660
|
+
label: d.name,
|
|
661
|
+
prop: d.column,
|
|
662
|
+
// sortable: true,
|
|
663
|
+
"minWidth": "120",
|
|
664
|
+
"show-overflow-tooltip": true,
|
|
665
|
+
}));
|
|
666
|
+
this.showShowColumn = true;
|
|
667
|
+
} else {
|
|
668
|
+
this.dynamicCloumn = [];
|
|
669
|
+
this.checkColumns = [];
|
|
670
|
+
this.showShowColumn = false;
|
|
671
|
+
}
|
|
672
|
+
},
|
|
673
|
+
async getTableData() {
|
|
674
|
+
let specialCodes = []
|
|
675
|
+
if (this.appNo === 'CTMS') {
|
|
676
|
+
specialCodes = [
|
|
677
|
+
'CTMS_FM002',
|
|
678
|
+
'CTMS_FM003',
|
|
679
|
+
'CTMS_FM004',
|
|
680
|
+
'CTMS_FM005',
|
|
681
|
+
'CTMS_FM007',
|
|
682
|
+
'CTMS_FM008',
|
|
683
|
+
'CTMS_FM009',
|
|
684
|
+
'CTMS_FM010',
|
|
685
|
+
'CTMS_FM011',
|
|
686
|
+
]
|
|
687
|
+
}
|
|
688
|
+
let { data } = await this.$axios.post(
|
|
689
|
+
"/bems/prod_1.0/activiti/temporaryStorage/todoTask",
|
|
690
|
+
{
|
|
691
|
+
...this.searchObj,
|
|
692
|
+
...this.pageObj,
|
|
693
|
+
typeCodes: this.appNo === 'CTMS'
|
|
694
|
+
? (this.searchObj.typeCodes.length ? this.searchObj.typeCodes : specialCodes)
|
|
695
|
+
: this.searchObj.typeCodes,
|
|
696
|
+
appCode: this.appNo,
|
|
697
|
+
}
|
|
698
|
+
);
|
|
699
|
+
this.stateSomeGo = this.searchObj.states;
|
|
700
|
+
this.tableDate = data.list ? data.list.map(unitName) : [];
|
|
701
|
+
console.log(this.tableCloumn, "tableCloumn");
|
|
702
|
+
this.currentAmount = data.currentAmount;
|
|
703
|
+
this.totalAmount = data.totalAmount;
|
|
704
|
+
this.pageObj.totalSize = data.totalSize;
|
|
705
|
+
// if (!this.tableDate?.length) {
|
|
706
|
+
// this.searchObj.typeCodes = [];
|
|
707
|
+
// }
|
|
708
|
+
},
|
|
709
|
+
selectionChange(val) {
|
|
710
|
+
this.selectRows = val;
|
|
711
|
+
let num = 0;
|
|
712
|
+
for (var i = 0; i < this.selectRows.length; i++) {
|
|
713
|
+
num += this.selectRows[i].amount;
|
|
714
|
+
}
|
|
715
|
+
this.selectAmoubt = Number(num.toFixed(6));
|
|
716
|
+
},
|
|
717
|
+
/* XXX: 要求在specialHandle.js文件里添加业务的特殊处理 */
|
|
718
|
+
async dealFn(row) {
|
|
719
|
+
// const { appUrl = {} } = await getJsonc("../server-config.jsonc");
|
|
720
|
+
if (
|
|
721
|
+
row.appCode === "RPLS" &&
|
|
722
|
+
[this.$t("common_t_0022"), this.$t("common_t_0023")].includes(
|
|
723
|
+
row.typeName
|
|
724
|
+
)
|
|
725
|
+
) {
|
|
726
|
+
rplsToDeal(row, this.reFresh);
|
|
727
|
+
return;
|
|
728
|
+
}
|
|
729
|
+
if (this.appUrl[row.appCode]) {
|
|
730
|
+
let path =
|
|
731
|
+
pendingEventPath(row, this.appUrl) ||
|
|
732
|
+
this.appUrl[row.appCode] + "/pending/" + row.typeCode;
|
|
733
|
+
this.$linkPush(path, {
|
|
734
|
+
orderId: row.businessId,
|
|
735
|
+
processInstanceId: row.procInstId,
|
|
736
|
+
typeCode: row.typeCode,
|
|
737
|
+
state: row.state,
|
|
738
|
+
title: row.typeName,
|
|
739
|
+
appNo: row.appCode,
|
|
740
|
+
...dCloumn(row),
|
|
741
|
+
isTodo: row.appCode === "CFB" ? 1 : undefined,
|
|
742
|
+
});
|
|
743
|
+
} else {
|
|
744
|
+
this.$message.warning(this.$t("common_t_0024"));
|
|
745
|
+
}
|
|
746
|
+
},
|
|
747
|
+
async seeFn(row) {
|
|
748
|
+
// const { appUrl = {} } = await getJsonc("../server-config.jsonc");
|
|
749
|
+
if (this.appUrl[row.appCode]) {
|
|
750
|
+
let path =
|
|
751
|
+
pendingEventPath(row, this.appUrl) ||
|
|
752
|
+
this.appUrl[row.appCode] + "/" + row.typeCode;
|
|
753
|
+
console.log(path, "pathpath");
|
|
754
|
+
if (["GWMS"].includes(row.appCode)) {
|
|
755
|
+
path = path.replace("/pending/", "/");
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
let orderIdKey = "orderId";
|
|
759
|
+
if (this.isG20 && !["USER"].includes(row.appCode)) orderIdKey = "fmId";
|
|
760
|
+
|
|
761
|
+
this.$linkPush(path, {
|
|
762
|
+
[orderIdKey]: row.businessId,
|
|
763
|
+
processInstanceId: row.procInstId,
|
|
764
|
+
typeCode: row.typeCode,
|
|
765
|
+
state: row.state,
|
|
766
|
+
title: row.typeName,
|
|
767
|
+
appNo: row.appCode,
|
|
768
|
+
parent: this.$t("common_t_0025"),
|
|
769
|
+
isTodo: row.appCode === "CFB" ? 0 : undefined,
|
|
770
|
+
habtn: true,
|
|
771
|
+
show: false,
|
|
772
|
+
...dCloumn(row),
|
|
773
|
+
});
|
|
774
|
+
} else {
|
|
775
|
+
this.$message.warning(this.$t("common_t_0024"));
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
async _submitFn(formData) {
|
|
779
|
+
let { data } = await this.$axios.post(
|
|
780
|
+
"/bems/prod_1.0/activiti/temporaryStorage/tempAdvance",
|
|
781
|
+
formData
|
|
782
|
+
);
|
|
783
|
+
|
|
784
|
+
if (data.failCount > 0) {
|
|
785
|
+
let templateTitle = `<div>${this.$t("common_t_0041")}${
|
|
786
|
+
data.successCount
|
|
787
|
+
}${this.$t("common_t_0042")}${data.failCount}${this.$t(
|
|
788
|
+
"common_t_0043"
|
|
789
|
+
)}</div><div>${this.$t("common_t_0044")}</div>`;
|
|
790
|
+
let message = data.failList
|
|
791
|
+
.map((f) => `<div>${f.message}</div>`)
|
|
792
|
+
.join(" ");
|
|
793
|
+
|
|
794
|
+
this.$msgboxPor({
|
|
795
|
+
message: templateTitle + message,
|
|
796
|
+
dangerouslyUseHTMLString: true,
|
|
797
|
+
showConfirmButton: true,
|
|
798
|
+
showCancelButton: false,
|
|
799
|
+
confirmButtonText: this.$t("common_a_0001"),
|
|
800
|
+
});
|
|
801
|
+
} else {
|
|
802
|
+
// 驳回流程的
|
|
803
|
+
try {
|
|
804
|
+
this.$message.success(this.$t("common_t_0026"));
|
|
805
|
+
this.reFresh();
|
|
806
|
+
} catch (e) {
|
|
807
|
+
console.info("未配置驳回消息提示");
|
|
808
|
+
this.reFresh();
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
},
|
|
812
|
+
removeFn(arr) {
|
|
813
|
+
const selectRows = arr.length ? arr : this.selectRows;
|
|
814
|
+
if (selectRows.length === 0) {
|
|
815
|
+
this.$message.warning(this.$t("common_t_0027"));
|
|
816
|
+
return;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
let flag =
|
|
820
|
+
new Set(selectRows.map((s) => s.appCode + s.typeCode)).size === 1;
|
|
821
|
+
if (!flag) {
|
|
822
|
+
this.$message.warning(this.$t("common_t_0028"));
|
|
823
|
+
return;
|
|
824
|
+
}
|
|
825
|
+
this.$msgboxPor({
|
|
826
|
+
title: this.$t("common_t_0029"),
|
|
827
|
+
message: this.$t("common_t_0030"),
|
|
828
|
+
type: "warning",
|
|
829
|
+
customClass: "question",
|
|
830
|
+
confirmButtonText: this.$t("common_a_0001"),
|
|
831
|
+
cancelButtonText: this.$t("common_a_0002"),
|
|
832
|
+
}).then(() => {
|
|
833
|
+
// 调用接口删除
|
|
834
|
+
this.temporarydto = selectRows.map((v) => ({
|
|
835
|
+
businessId: v.businessId,
|
|
836
|
+
typeCode: v.typeCode,
|
|
837
|
+
state: 6,
|
|
838
|
+
}));
|
|
839
|
+
|
|
840
|
+
let formData = {
|
|
841
|
+
temporarydto: this.temporarydto,
|
|
842
|
+
plainText: "",
|
|
843
|
+
signText: "",
|
|
844
|
+
reason: this.reason,
|
|
845
|
+
};
|
|
846
|
+
|
|
847
|
+
this._submitFn(formData);
|
|
848
|
+
});
|
|
849
|
+
},
|
|
850
|
+
|
|
851
|
+
cancelFn(arr) {
|
|
852
|
+
const selectRows = arr.length ? arr : this.selectRows;
|
|
853
|
+
if (selectRows.length === 0) {
|
|
854
|
+
this.$message.warning(this.$t("common_t_0027"));
|
|
855
|
+
return;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
let flag =
|
|
859
|
+
new Set(selectRows.map((s) => s.appCode + s.typeCode)).size === 1;
|
|
860
|
+
if (!flag) {
|
|
861
|
+
this.$message.warning(this.$t("common_t_0028"));
|
|
862
|
+
return;
|
|
863
|
+
}
|
|
864
|
+
this.$msgboxPor({
|
|
865
|
+
title: this.$t("common_t_0031"),
|
|
866
|
+
message: this.$t("common_t_0032"),
|
|
867
|
+
type: "warning",
|
|
868
|
+
customClass: "question",
|
|
869
|
+
confirmButtonText: this.$t("common_a_0001"),
|
|
870
|
+
cancelButtonText: this.$t("common_a_0002"),
|
|
871
|
+
}).then(() => {
|
|
872
|
+
// 调用接口作废
|
|
873
|
+
|
|
874
|
+
this.temporarydto = selectRows.map((v) => ({
|
|
875
|
+
businessId: v.businessId,
|
|
876
|
+
typeCode: v.typeCode,
|
|
877
|
+
state: 4,
|
|
878
|
+
}));
|
|
879
|
+
|
|
880
|
+
let formData = {
|
|
881
|
+
temporarydto: this.temporarydto,
|
|
882
|
+
plainText: "",
|
|
883
|
+
signText: "",
|
|
884
|
+
reason: this.reason,
|
|
885
|
+
};
|
|
886
|
+
|
|
887
|
+
this._submitFn(formData);
|
|
888
|
+
});
|
|
889
|
+
},
|
|
890
|
+
},
|
|
891
|
+
};
|
|
892
|
+
</script>
|
|
893
|
+
<style lang="less">
|
|
894
|
+
.el-range-separator {
|
|
895
|
+
box-sizing: content-box;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
.el-table {
|
|
899
|
+
.caret-wrapper {
|
|
900
|
+
height: 23px;
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
.sort-caret.ascending {
|
|
904
|
+
top: -3px;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
.sort-caret.descending {
|
|
908
|
+
bottom: 2px;
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
//处理被 flex: 1 的情况下,表格被内容挤开的场景
|
|
913
|
+
.table-wrap {
|
|
914
|
+
flex: 1 !important;
|
|
915
|
+
position: relative;
|
|
916
|
+
height: 100%;
|
|
917
|
+
|
|
918
|
+
.table-content {
|
|
919
|
+
position: absolute;
|
|
920
|
+
width: 100%;
|
|
921
|
+
height: 100%;
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
.n20-page-content {
|
|
926
|
+
overflow-y: hidden;
|
|
927
|
+
display: flex;
|
|
928
|
+
flex-direction: column;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
.n20-advanced-filter {
|
|
932
|
+
padding: 0 !important;
|
|
933
|
+
}
|
|
934
|
+
</style>
|