gcs-ui-lib 1.1.433
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 +17 -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 +40576 -0
- package/lib/gcs-ui-lib.css +3 -0
- package/lib/gcs-ui-lib.umd.js +40586 -0
- package/lib/gcs-ui-lib.umd.min.js +40 -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 +100 -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/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 +1065 -0
- package/packages/Trade/index.js +7 -0
- package/packages/Trade/src/components/all/index.vue +891 -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 +909 -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 +42 -0
- package/packages/Trade/src/main.vue +86 -0
- package/packages/ZipImport/index.js +7 -0
- package/packages/ZipImport/src/demo/index.vue +139 -0
- package/packages/ZipImport/src/main.vue +303 -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/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 +103 -0
- package/src/api/fileApi.js +22 -0
- package/src/config/appSettings.js +12 -0
- package/src/config/favicon.ico +0 -0
- package/src/css/selectTreeUnit.scss +247 -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 +109 -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 +28 -0
- package/src/main.js +44 -0
- package/src/preview/page/Aside/index.vue +60 -0
- package/src/preview/router.js +46 -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/index.js +545 -0
- package/src/utils/request.js +191 -0
- package/src/utils/requestCache.js +68 -0
- package/src/utils/thems.js +62 -0
- package/types/favicon.ico +0 -0
- package/vue.config.js +45 -0
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: maoliqiong maoliqiong@nstc.com.cn
|
|
3
|
+
* @Date: 2022-11-21 15:24:52
|
|
4
|
+
* @LastEditors: yanshuang yanshuang@nstc.com.cn
|
|
5
|
+
* @LastEditTime: 2024-02-23 15:47:26
|
|
6
|
+
* @FilePath: \portal-webe:\nstc\新一代票据\gts-bill_web\src\views\sign\waitSignIn\tableHeader.js
|
|
7
|
+
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
|
+
*/
|
|
9
|
+
// import i18n from '@/lang/index'
|
|
10
|
+
import { numerify } from 'n20-common-lib'
|
|
11
|
+
let formatCellValue = function(val) {
|
|
12
|
+
return [null, , undefined].includes(val) ? '--' : val
|
|
13
|
+
}
|
|
14
|
+
export function billListHeader(vm, showSelection = true) {
|
|
15
|
+
|
|
16
|
+
const columns = [
|
|
17
|
+
{
|
|
18
|
+
type: 'index',
|
|
19
|
+
label: vm.$l('序号'),
|
|
20
|
+
width: '62',
|
|
21
|
+
align: 'center',
|
|
22
|
+
fixed: 'left',
|
|
23
|
+
isDefault: true,
|
|
24
|
+
static: 'pre'
|
|
25
|
+
},
|
|
26
|
+
// 票据(包)号
|
|
27
|
+
{
|
|
28
|
+
label: vm.$l('票据(包)号'),
|
|
29
|
+
prop: 'billNo',
|
|
30
|
+
minWidth: 300,
|
|
31
|
+
|
|
32
|
+
align: 'center',
|
|
33
|
+
isDefault: true,
|
|
34
|
+
checked: true,
|
|
35
|
+
slotName: 'billNo',
|
|
36
|
+
'show-overflow-tooltip': true
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
label: vm.$l('子票区间'),
|
|
40
|
+
prop: 'cdRange',
|
|
41
|
+
minWidth: 200,
|
|
42
|
+
align: 'center',
|
|
43
|
+
isDefault: true,
|
|
44
|
+
'show-overflow-tooltip': true,
|
|
45
|
+
formatter: (row, column, cellValue, index) => {
|
|
46
|
+
if (formatCellValue(cellValue) == '--') {
|
|
47
|
+
return '--'
|
|
48
|
+
} else {
|
|
49
|
+
if (cellValue.indexOf(',') > -1) {
|
|
50
|
+
const [min, max] = cellValue.split(',')
|
|
51
|
+
return parseFloat(min) + '-' + parseFloat(max)
|
|
52
|
+
} else {
|
|
53
|
+
return cellValue
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
// 票据金额
|
|
59
|
+
{
|
|
60
|
+
label: vm.$l('票据金额'),
|
|
61
|
+
prop: 'billAmount',
|
|
62
|
+
align: 'right',
|
|
63
|
+
'show-overflow-tooltip': true,
|
|
64
|
+
isDefault: true,
|
|
65
|
+
formatter: (row, column, cellValue, index) => {
|
|
66
|
+
let returnValue = formatCellValue(cellValue)
|
|
67
|
+
if (returnValue != '--') {
|
|
68
|
+
returnValue = numerify(cellValue, '0,0.00')
|
|
69
|
+
}
|
|
70
|
+
return returnValue
|
|
71
|
+
},
|
|
72
|
+
minWidth: 190
|
|
73
|
+
},
|
|
74
|
+
// 出票日期
|
|
75
|
+
{
|
|
76
|
+
label: vm.$l('出票日期'),
|
|
77
|
+
prop: 'issuedDate',
|
|
78
|
+
align: 'center',
|
|
79
|
+
'show-overflow-tooltip': true,
|
|
80
|
+
isDefault: true,
|
|
81
|
+
formatter: (row, column, cellValue, index) => formatCellValue(cellValue),
|
|
82
|
+
minWidth: 130
|
|
83
|
+
},
|
|
84
|
+
// 到期日期
|
|
85
|
+
{
|
|
86
|
+
label: vm.$l('到期日期'),
|
|
87
|
+
prop: 'dueDate',
|
|
88
|
+
align: 'center',
|
|
89
|
+
'show-overflow-tooltip': true,
|
|
90
|
+
isDefault: true,
|
|
91
|
+
formatter: (row, column, cellValue, index) => formatCellValue(cellValue),
|
|
92
|
+
minWidth: 130
|
|
93
|
+
},
|
|
94
|
+
// 票据种类
|
|
95
|
+
{
|
|
96
|
+
label: vm.$l('种类'),
|
|
97
|
+
prop: 'draftTypeName',
|
|
98
|
+
align: 'center',
|
|
99
|
+
filterMultiple: true,
|
|
100
|
+
filters: 'typeList',
|
|
101
|
+
columnKey: 'typeName',
|
|
102
|
+
isDefault: true,
|
|
103
|
+
'show-overflow-tooltip': true,
|
|
104
|
+
formatter: (row, column, cellValue, index) => formatCellValue(cellValue),
|
|
105
|
+
minWidth: 88,
|
|
106
|
+
filteredValue: []
|
|
107
|
+
},
|
|
108
|
+
// 出票人账号
|
|
109
|
+
{
|
|
110
|
+
label: vm.$l('出票人账号'),
|
|
111
|
+
prop: 'payAccountNo',
|
|
112
|
+
align: 'center',
|
|
113
|
+
'show-overflow-tooltip': true,
|
|
114
|
+
formatter: (row, column, cellValue, index) => formatCellValue(cellValue),
|
|
115
|
+
minWidth: 240,
|
|
116
|
+
isDefault: true
|
|
117
|
+
},
|
|
118
|
+
|
|
119
|
+
{
|
|
120
|
+
label: vm.$l('出票人'),
|
|
121
|
+
prop: 'payName',
|
|
122
|
+
align: 'left',
|
|
123
|
+
'show-overflow-tooltip': true,
|
|
124
|
+
formatter: (row, column, cellValue, index) => formatCellValue(cellValue),
|
|
125
|
+
minWidth: 240,
|
|
126
|
+
isDefault: true
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
label: vm.$l('出票人开户行'),
|
|
130
|
+
prop: "payOpenOrgName",
|
|
131
|
+
align: "left",
|
|
132
|
+
formatter: (row, column, cellValue, index) => formatCellValue(cellValue),
|
|
133
|
+
"show-overflow-tooltip": true,
|
|
134
|
+
minWidth: 268,
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
label: vm.$l('承兑人户名'),
|
|
138
|
+
prop: "acceptAccountName",
|
|
139
|
+
align: "left",
|
|
140
|
+
formatter: (row, column, cellValue, index) => formatCellValue(cellValue),
|
|
141
|
+
"show-overflow-tooltip": true,
|
|
142
|
+
minWidth: 240,
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
label: vm.$l('承兑人开户行'),
|
|
146
|
+
prop: "acceptBankName",
|
|
147
|
+
align: "left",
|
|
148
|
+
formatter: (row, column, cellValue, index) => formatCellValue(cellValue),
|
|
149
|
+
"show-overflow-tooltip": true,
|
|
150
|
+
minWidth: 268,
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
label: vm.$l('收票人户名'),
|
|
154
|
+
prop: "recAccountName",
|
|
155
|
+
align: "left",
|
|
156
|
+
formatter: (row, column, cellValue, index) => formatCellValue(cellValue),
|
|
157
|
+
"show-overflow-tooltip": true,
|
|
158
|
+
minWidth: 240,
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
label: vm.$l('收票人开户行'),
|
|
162
|
+
prop: "recBankName",
|
|
163
|
+
align: "left",
|
|
164
|
+
formatter: (row, column, cellValue, index) => formatCellValue(cellValue),
|
|
165
|
+
"show-overflow-tooltip": true,
|
|
166
|
+
minWidth: 268,
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
slotName: 'operate',
|
|
170
|
+
label: vm.$l('operate'),
|
|
171
|
+
static: 'next' // 静态不被"显示列"显示的,且最终会被拼接到"显示列"排序后的表格的"后面"
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
|
|
175
|
+
// 如果需要显示多选列,并且满足条件,则添加多选列
|
|
176
|
+
if (!showSelection) {
|
|
177
|
+
columns.unshift({
|
|
178
|
+
type: 'selection',
|
|
179
|
+
width: '46',
|
|
180
|
+
fixed: 'left',
|
|
181
|
+
align: 'center',
|
|
182
|
+
'reserve-selection': true,
|
|
183
|
+
static: 'pre'
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
return columns;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export function selectBillFilter(vm) {
|
|
190
|
+
return [
|
|
191
|
+
{
|
|
192
|
+
label: vm.$l("出票人"),
|
|
193
|
+
value: "unitNo",
|
|
194
|
+
id: "unitNo",
|
|
195
|
+
type: "text",
|
|
196
|
+
isDefault: true,
|
|
197
|
+
static: true,
|
|
198
|
+
isNotClose: true,
|
|
199
|
+
props: {
|
|
200
|
+
clearable: true,
|
|
201
|
+
disabled: false
|
|
202
|
+
},
|
|
203
|
+
slotName: "unitNo",
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
label: vm.$l('出票人账号'),
|
|
207
|
+
type: 'text',
|
|
208
|
+
value: 'payAccountNo',
|
|
209
|
+
id: 'payAccountNo',
|
|
210
|
+
slotName: 'payAccountNo',
|
|
211
|
+
isDefault: true,
|
|
212
|
+
static: true,
|
|
213
|
+
isNotClose: true,
|
|
214
|
+
props: {
|
|
215
|
+
clearable: true,
|
|
216
|
+
disabled: vm.isFee
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
label: vm.$l('到期日'),
|
|
221
|
+
type: 'daterange',
|
|
222
|
+
startDate: 'dueDateStart',
|
|
223
|
+
id: 'dueDateStart',
|
|
224
|
+
endDate: 'dueDateEnd',
|
|
225
|
+
isDefault: true,
|
|
226
|
+
static: true,
|
|
227
|
+
isNotClose: true,
|
|
228
|
+
maxNow: true
|
|
229
|
+
},
|
|
230
|
+
|
|
231
|
+
{
|
|
232
|
+
label: vm.$l('票据(包)号'),
|
|
233
|
+
type: 'text',
|
|
234
|
+
value: 'billNoLike',
|
|
235
|
+
id: 'billNoLike',
|
|
236
|
+
isDefault: true,
|
|
237
|
+
props: {
|
|
238
|
+
clearable: true
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
label: vm.$l('承兑人户名'),
|
|
243
|
+
type: 'text',
|
|
244
|
+
value: 'acceptNameLike',
|
|
245
|
+
id: 'acceptNameLike',
|
|
246
|
+
isDefault: true,
|
|
247
|
+
props: {
|
|
248
|
+
clearable: true
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
label: vm.$l('承兑人开户行'),
|
|
253
|
+
type: 'text',
|
|
254
|
+
value: 'acceptOpenOrgNameLike',
|
|
255
|
+
id: 'acceptOpenOrgNameLike',
|
|
256
|
+
isDefault: true,
|
|
257
|
+
props: {
|
|
258
|
+
clearable: true
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
label: vm.$l('票据金额'),
|
|
263
|
+
type: 'numberrange',
|
|
264
|
+
startValue: 'minBillAmount',
|
|
265
|
+
id: 'minBillAmount',
|
|
266
|
+
endValue: 'maxBillAmount',
|
|
267
|
+
isDefault: true,
|
|
268
|
+
props: {
|
|
269
|
+
min: 0,
|
|
270
|
+
max: 999999999999.99,
|
|
271
|
+
isClearable: true,
|
|
272
|
+
placeholder: vm.$l('请输入')
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
}
|