n20-common-lib 2.22.52 → 2.22.53
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/package.json +1 -1
- package/src/components/AIButton/index.vue +6 -5
- package/src/components/ApprovalButtons/index.vue +3 -3
- package/src/components/ApprovalButtons/indexApp.vue +10 -29
- package/src/components/ApprovalButtons/selectSpr.vue +1 -1
- package/src/components/ApprovalButtons/showAppOpi.vue +5 -5
- package/src/components/ApprovalButtons/showOtherAttr.vue +2 -2
- package/src/components/ApprovalButtons/showOtherAttrNew.vue +8 -6
- package/src/components/ApprovalCard/index.vue +6 -6
- package/src/components/ApprovalCard/indexApp.vue +2 -2
- package/src/components/ApprovalRecord/approvalImg.vue +1 -1
- package/src/components/ApprovalRecord/approvalImgPro/child.vue +3 -3
- package/src/components/ApprovalRecord/approvalImgPro/index.vue +3 -3
- package/src/components/AttachmentPass/index.vue +7 -7
- package/src/components/DateChoose/index.vue +41 -36
- package/src/components/DatePicker/index.vue +2 -2
- package/src/components/DateSelect/busiDate.vue +5 -4
- package/src/components/DateSelect/index.vue +9 -8
- package/src/components/DateSelect/quarterDatePicker.vue +12 -11
- package/src/components/Diff/index.vue +2 -1
- package/src/components/DynamicField/DynamicField.vue +1 -1
- package/src/components/DynamicField/DynamicFieldMixin.js +3 -2
- package/src/components/DynamicField/DynamicFieldOptions.vue +80 -58
- package/src/components/DynamicField/DynamicTable.vue +4 -4
- package/src/components/DynamicField/contentPop.vue +8 -6
- package/src/components/DynamicField/tableList.vue +7 -5
- package/src/components/DynamicField/tableView.vue +20 -6
- package/src/components/ElectronicArchive/index.vue +18 -16
- package/src/components/EventBubble/demo/c.vue +2 -1
- package/src/components/FileExportAsync/index.vue +11 -10
- package/src/components/FileImport/index.vue +2 -1
- package/src/components/FileUploadTable/FileUploadTableV3.vue +10 -11
- package/src/components/FileUploadTable/aiCheckDialog.vue +13 -11
- package/src/components/FileUploadTable/index.vue +15 -14
- package/src/components/Filters/indexO.vue +3 -2
- package/src/components/HandlingAdvice/index.vue +4 -3
- package/src/components/InputNumber/index.vue +2 -1
- package/src/components/Layout/HeaderWrap/changePwd.vue +8 -7
- package/src/components/Layout/HeaderWrap/index.vue +11 -10
- package/src/components/Layout/HeaderWrap/indexN.vue +21 -20
- package/src/components/Layout/HeaderWrap/noticePop.vue +8 -7
- package/src/components/Layout/HeaderWrap/switchUser.vue +1 -1
- package/src/components/Layout/index.vue +2 -1
- package/src/components/Layout/indexN.vue +2 -1
- package/src/components/LoginSetting/index.vue +14 -13
- package/src/components/LoginSetting/indexN.vue +11 -10
- package/src/components/LoginSetting/setItem.vue +22 -21
- package/src/components/LoginTemporary/form.vue +17 -16
- package/src/components/LoginTemporary/index.vue +5 -4
- package/src/components/LoginTemporary/indexN.vue +20 -19
- package/src/components/LoginTemporary/retrievePw.vue +11 -10
- package/src/components/PageHeader/index.vue +2 -1
- package/src/components/SelectDatePickerPro/busiDate.vue +6 -4
- package/src/components/SelectDatePickerPro/halfYearPicker.vue +3 -2
- package/src/components/SelectDatePickerPro/index.vue +13 -11
- package/src/components/SelectDatePickerPro/quarterDatePicker.vue +6 -4
- package/src/components/SelectTree/pro.vue +1 -1
- package/src/components/ShowColumn/index.vue +13 -12
- package/src/components/Stamp/index.vue +8 -7
- package/src/components/Statis/index.vue +9 -8
- package/src/components/Statis/statisItem.vue +4 -3
- package/src/components/Table/indexO.vue +2 -1
- package/src/components/TablePro/filterContent.vue +2 -2
- package/src/components/TablePro/filterContent_tree.vue +6 -5
- package/src/components/TablePro/index.js +2 -1
- package/src/components/TablePro/index.vue +2 -1
- package/src/components/TableTransfer/index.vue +2 -1
- package/src/components/Upload/index.vue +9 -8
- package/src/components/Upload/uploadMsg.vue +2 -1
- package/src/components/WornPagination/index.vue +3 -1
- package/src/components/operatingStatus/index.vue +9 -7
- package/src/i18n.json +5800 -714
- package/src/index.js +2 -2
- package/src/plugins/SetMenuTree/index.vue +1 -1
- package/src/plugins/SetMenuTree/setmenutree.vue +36 -34
- package/src/plugins/Sign/CaMap.js +12 -11
- package/src/plugins/Sign/Itrus/index.js +58 -56
- package/src/plugins/Sign/Itrus/sign_3720.js +53 -51
- package/src/plugins/Sign/NetSM3/index.js +12 -10
- package/src/plugins/Sign/NetV3/index.js +20 -18
- package/src/plugins/Sign/SkfSign/index.js +12 -10
- package/src/plugins/Sign/bjca/XTXSAB.js +17 -16
- package/src/plugins/Sign/bjca/index.js +19 -17
- package/src/plugins/Sign/cfca/index.js +11 -9
- package/src/plugins/Sign/codeMap.js +151 -150
- package/src/plugins/Sign/hnca/index.js +51 -49
- package/src/plugins/Sign/index.js +6 -4
- package/src/plugins/Sign/kySign/index.js +11 -9
- package/src/plugins/Sign/netca/index.js +9 -7
- package/src/plugins/Sign/netca/netca.base.1.1.0.js +29 -28
- package/src/plugins/Sign/sdca/index.js +17 -15
- package/src/plugins/Sign/sign.js +10 -8
- package/src/plugins/Sign/signV3/sign.js +14 -12
- package/src/plugins/Sign/sign_back.js +11 -9
- package/src/utils/amountInWords.js +8 -6
- package/src/utils/axios.js +9 -8
- package/src/utils/relaNo.js +3 -1
|
@@ -65,6 +65,7 @@ import axios from '../../utils/axios'
|
|
|
65
65
|
import { $lc } from '../../utils/i18n/index'
|
|
66
66
|
import loginForm from './form.vue'
|
|
67
67
|
import retrievePw from './retrievePw.vue'
|
|
68
|
+
|
|
68
69
|
export default {
|
|
69
70
|
name: 'Login',
|
|
70
71
|
components: {
|
|
@@ -205,14 +206,14 @@ export default {
|
|
|
205
206
|
if (ratio !== 1) {
|
|
206
207
|
if (ua.includes('mac os') && ratio !== 2) {
|
|
207
208
|
this.$notify.info({
|
|
208
|
-
title: $lc(
|
|
209
|
-
message: $lc(
|
|
209
|
+
title: $lc("提示"),
|
|
210
|
+
message: $lc("检测到当前屏幕分辨率不是100%,建议调整分辨率后刷新业务来确保呈现效果最佳。")
|
|
210
211
|
})
|
|
211
212
|
}
|
|
212
213
|
if (!ua.includes('mac os')) {
|
|
213
214
|
this.$notify.info({
|
|
214
|
-
title: $lc(
|
|
215
|
-
message: $lc(
|
|
215
|
+
title: $lc("提示"),
|
|
216
|
+
message: $lc("检测到当前屏幕分辨率不是100%,建议调整分辨率后刷新业务来确保呈现效果最佳。")
|
|
216
217
|
})
|
|
217
218
|
}
|
|
218
219
|
}
|
|
@@ -163,6 +163,7 @@ import retrievePw from './retrievePw.vue'
|
|
|
163
163
|
import IconMap from './systemIconMap'
|
|
164
164
|
|
|
165
165
|
import imgLoad from '../../utils/imgLoad'
|
|
166
|
+
|
|
166
167
|
window.imgLoad = imgLoad
|
|
167
168
|
|
|
168
169
|
export default {
|
|
@@ -220,11 +221,11 @@ export default {
|
|
|
220
221
|
let { protocol, host, pathname } = window.location
|
|
221
222
|
return {
|
|
222
223
|
langMap: {
|
|
223
|
-
'zh-cn':
|
|
224
|
-
'zh-hk':
|
|
225
|
-
en:
|
|
226
|
-
th:
|
|
227
|
-
vi:
|
|
224
|
+
'zh-cn': $lc("简体中文"),
|
|
225
|
+
'zh-hk': $lc("繁体中文"),
|
|
226
|
+
en: $lc("英文"),
|
|
227
|
+
th: $lc("泰文"),
|
|
228
|
+
vi: $lc("越南语")
|
|
228
229
|
},
|
|
229
230
|
wrapStyle: '',
|
|
230
231
|
logUrl: `${protocol}//${host}${pathname}`,
|
|
@@ -259,56 +260,56 @@ export default {
|
|
|
259
260
|
SYSTEM_LIST: [
|
|
260
261
|
{
|
|
261
262
|
NO: 'CSZHYW',
|
|
262
|
-
NAME:
|
|
263
|
+
NAME: $lc("财司综合业务系统"),
|
|
263
264
|
ICON: undefined,
|
|
264
265
|
LOGIN_MODE: [],
|
|
265
266
|
OPEN: false
|
|
266
267
|
},
|
|
267
268
|
{
|
|
268
269
|
NO: 'CSYWGL',
|
|
269
|
-
NAME:
|
|
270
|
+
NAME: $lc("财司业务管理系统"),
|
|
270
271
|
ICON: undefined,
|
|
271
272
|
LOGIN_MODE: [],
|
|
272
273
|
OPEN: false
|
|
273
274
|
},
|
|
274
275
|
{
|
|
275
276
|
NO: 'CSFZJC',
|
|
276
|
-
NAME:
|
|
277
|
+
NAME: $lc("财司辅助决策系统"),
|
|
277
278
|
ICON: undefined,
|
|
278
279
|
LOGIN_MODE: [],
|
|
279
280
|
OPEN: false
|
|
280
281
|
},
|
|
281
282
|
{
|
|
282
283
|
NO: 'CSWY',
|
|
283
|
-
NAME:
|
|
284
|
+
NAME: $lc("财司网银系统"),
|
|
284
285
|
ICON: undefined,
|
|
285
286
|
LOGIN_MODE: [],
|
|
286
287
|
OPEN: false
|
|
287
288
|
},
|
|
288
289
|
{
|
|
289
290
|
NO: 'JTZL',
|
|
290
|
-
NAME:
|
|
291
|
+
NAME: $lc("财司直连平台系统"),
|
|
291
292
|
ICON: undefined,
|
|
292
293
|
LOGIN_MODE: [],
|
|
293
294
|
OPEN: false
|
|
294
295
|
},
|
|
295
296
|
{
|
|
296
297
|
NO: 'JRWG',
|
|
297
|
-
NAME:
|
|
298
|
+
NAME: $lc("金融网关系统"),
|
|
298
299
|
ICON: undefined,
|
|
299
300
|
LOGIN_MODE: [],
|
|
300
301
|
OPEN: false
|
|
301
302
|
},
|
|
302
303
|
{
|
|
303
304
|
NO: 'JTSKYWGK',
|
|
304
|
-
NAME:
|
|
305
|
+
NAME: $lc("集团司库业务管控系统"),
|
|
305
306
|
ICON: undefined,
|
|
306
307
|
LOGIN_MODE: [],
|
|
307
308
|
OPEN: false
|
|
308
309
|
},
|
|
309
310
|
{
|
|
310
311
|
NO: 'JTSKSJFX',
|
|
311
|
-
NAME:
|
|
312
|
+
NAME: $lc("集团数据分析系统"),
|
|
312
313
|
ICON: undefined,
|
|
313
314
|
LOGIN_MODE: [],
|
|
314
315
|
OPEN: false
|
|
@@ -455,14 +456,14 @@ export default {
|
|
|
455
456
|
if (ratio !== 1) {
|
|
456
457
|
if (ua.includes('mac os') && ratio !== 2) {
|
|
457
458
|
this.$notify.info({
|
|
458
|
-
title: $lc(
|
|
459
|
-
message: $lc(
|
|
459
|
+
title: $lc("提示"),
|
|
460
|
+
message: $lc("检测到当前屏幕分辨率不是100%,建议调整分辨率后刷新业务来确保呈现效果最佳。")
|
|
460
461
|
})
|
|
461
462
|
}
|
|
462
463
|
if (!ua.includes('mac os')) {
|
|
463
464
|
this.$notify.info({
|
|
464
|
-
title: $lc(
|
|
465
|
-
message: $lc(
|
|
465
|
+
title: $lc("提示"),
|
|
466
|
+
message: $lc("检测到当前屏幕分辨率不是100%,建议调整分辨率后刷新业务来确保呈现效果最佳。")
|
|
466
467
|
})
|
|
467
468
|
}
|
|
468
469
|
}
|
|
@@ -528,7 +529,7 @@ export default {
|
|
|
528
529
|
try {
|
|
529
530
|
this.form[k] = k === 'LOGIN_URL' ? obj.pmValue : JSON.parse(obj.pmValue)
|
|
530
531
|
} catch (error) {
|
|
531
|
-
console.error(k +
|
|
532
|
+
console.error(k + $lc("解析错误"))
|
|
532
533
|
}
|
|
533
534
|
}
|
|
534
535
|
} else {
|
|
@@ -538,7 +539,7 @@ export default {
|
|
|
538
539
|
try {
|
|
539
540
|
this.$set(this.form.SYSTEM_LIST, i, JSON.parse(obj.pmValue))
|
|
540
541
|
} catch (error) {
|
|
541
|
-
console.error('SYSTEM_LIST[' + item.NO +
|
|
542
|
+
console.error('SYSTEM_LIST[' + item.NO + $lc("]解析错误"))
|
|
542
543
|
}
|
|
543
544
|
}
|
|
544
545
|
})
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<el-form-item class="m-b" :label="'账号' | $lc">
|
|
32
32
|
<el-input v-model="username" :placeholder="'请输入账号' | $lc" />
|
|
33
33
|
</el-form-item>
|
|
34
|
-
<el-form-item class="m-b" label="uk验证" prop="code">
|
|
34
|
+
<el-form-item class="m-b" :label="$lc('uk验证')" prop="code">
|
|
35
35
|
<br />
|
|
36
36
|
<div v-if="checkCert" class="filed-tips">{{ '该账号未开启UK校验!' | $lc }}</div>
|
|
37
37
|
<div v-if="ukCode !== 1">
|
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
import { $lc } from '../../utils/i18n/index'
|
|
75
75
|
import axios from '../../utils/axios'
|
|
76
76
|
import { getSign } from '../../plugins/Sign/sign'
|
|
77
|
+
|
|
77
78
|
export default {
|
|
78
79
|
data() {
|
|
79
80
|
const lengthToFirstPassword = (rule, value, callback) => {
|
|
@@ -101,7 +102,7 @@ export default {
|
|
|
101
102
|
}
|
|
102
103
|
const compareToFirstPassword = (rule, value, callback) => {
|
|
103
104
|
if (value && value !== this.newPwdForm.newPassword) {
|
|
104
|
-
callback(
|
|
105
|
+
callback($lc("确认密码和新密码不一致!"))
|
|
105
106
|
return
|
|
106
107
|
}
|
|
107
108
|
callback()
|
|
@@ -124,16 +125,16 @@ export default {
|
|
|
124
125
|
confirmPwd: false,
|
|
125
126
|
updateRules: {
|
|
126
127
|
phone: [
|
|
127
|
-
{ required: true, message:
|
|
128
|
+
{ required: true, message: $lc("请输入手机号!"), trigger: 'blur' },
|
|
128
129
|
{
|
|
129
130
|
pattern: /^1\d{10}$/,
|
|
130
|
-
message:
|
|
131
|
+
message: $lc("请输入正确手机号!"),
|
|
131
132
|
trigger: 'blur'
|
|
132
133
|
}
|
|
133
134
|
],
|
|
134
|
-
code: [{ required: true, message:
|
|
135
|
+
code: [{ required: true, message: $lc("请输入验证码!"), trigger: 'blur' }]
|
|
135
136
|
},
|
|
136
|
-
codeNum: $lc(
|
|
137
|
+
codeNum: $lc("验证码"),
|
|
137
138
|
isPhone: '',
|
|
138
139
|
dataForm: {},
|
|
139
140
|
sign: '',
|
|
@@ -142,14 +143,14 @@ export default {
|
|
|
142
143
|
ukCode: 1,
|
|
143
144
|
newPwdRules: {
|
|
144
145
|
newPassword: [
|
|
145
|
-
{ required: true, message: $lc(
|
|
146
|
+
{ required: true, message: $lc("请输入新密码"), trigger: 'blur' },
|
|
146
147
|
{
|
|
147
148
|
validator: lengthToFirstPassword,
|
|
148
149
|
trigger: 'blur'
|
|
149
150
|
}
|
|
150
151
|
],
|
|
151
152
|
respwd: [
|
|
152
|
-
{ required: true, message: $lc(
|
|
153
|
+
{ required: true, message: $lc("请输入确认密码"), trigger: 'blur' },
|
|
153
154
|
{
|
|
154
155
|
validator: compareToFirstPassword,
|
|
155
156
|
trigger: 'blur'
|
|
@@ -202,7 +203,7 @@ export default {
|
|
|
202
203
|
num--
|
|
203
204
|
} else {
|
|
204
205
|
clearTimeout(this.setTimeNum)
|
|
205
|
-
this.codeNum = $lc(
|
|
206
|
+
this.codeNum = $lc("验证码")
|
|
206
207
|
}
|
|
207
208
|
},
|
|
208
209
|
sendMsg(type, typeName) {
|
|
@@ -219,7 +220,7 @@ export default {
|
|
|
219
220
|
})
|
|
220
221
|
.catch(() => {
|
|
221
222
|
clearTimeout(this.setTimeNum)
|
|
222
|
-
this.codeNum = $lc(
|
|
223
|
+
this.codeNum = $lc("验证码")
|
|
223
224
|
this.$message.warning(`${typeName}: ${this.updateForm[type]} 验证码发送失败`)
|
|
224
225
|
})
|
|
225
226
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="flex-box flex-v">
|
|
3
3
|
<div class="n20-date-select-busi">
|
|
4
|
-
<el-select v-model="type" placeholder="请选择" style="width: 85px" @change="handleDate">
|
|
4
|
+
<el-select v-model="type" :placeholder="$lc('请选择')" style="width: 85px" @change="handleDate">
|
|
5
5
|
<el-option v-for="(item, index) in selectOptions" :key="index" :label="item.label" :value="item.value" />
|
|
6
6
|
</el-select>
|
|
7
7
|
<el-date-picker
|
|
@@ -30,7 +30,9 @@
|
|
|
30
30
|
</template>
|
|
31
31
|
|
|
32
32
|
<script>
|
|
33
|
+
import { $lc } from '../../utils/i18n/index.js'
|
|
33
34
|
import dayjs from 'dayjs'
|
|
35
|
+
|
|
34
36
|
export default {
|
|
35
37
|
name: 'BusiDatePicker',
|
|
36
38
|
props: {
|
|
@@ -62,9 +64,9 @@ export default {
|
|
|
62
64
|
type: Array,
|
|
63
65
|
default: () => {
|
|
64
66
|
return [
|
|
65
|
-
{ label:
|
|
66
|
-
{ label:
|
|
67
|
-
{ label:
|
|
67
|
+
{ label: $lc("期望日"), value: 1 },
|
|
68
|
+
{ label: $lc("提交日"), value: 2 },
|
|
69
|
+
{ label: $lc("发起日"), value: 3 }
|
|
68
70
|
]
|
|
69
71
|
}
|
|
70
72
|
}
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
</template>
|
|
69
69
|
|
|
70
70
|
<script>
|
|
71
|
+
import { $lc } from '../../utils/i18n/index.js'
|
|
71
72
|
export default {
|
|
72
73
|
name: 'HalfYearPicker',
|
|
73
74
|
props: {
|
|
@@ -103,7 +104,7 @@ export default {
|
|
|
103
104
|
const [, year, startMonth] = startDateMatch
|
|
104
105
|
this.year = year
|
|
105
106
|
this.halfYear = startMonth === '01' ? 1 : 2
|
|
106
|
-
this.showValue = `${year} 年 ${startMonth === '01' ?
|
|
107
|
+
this.showValue = `${year} 年 ${startMonth === '01' ? $lc("上半年") : $lc("下半年")}`
|
|
107
108
|
} else {
|
|
108
109
|
this.showValue = ''
|
|
109
110
|
}
|
|
@@ -132,7 +133,7 @@ export default {
|
|
|
132
133
|
this.halfYear = i + 1
|
|
133
134
|
let arr = [`${this.year}-${i === 0 ? '01' : '07'}`, `${this.year}-${i === 0 ? '06' : '12'}`]
|
|
134
135
|
this.showHalfYear = false
|
|
135
|
-
this.showValue = `${this.year} 年 ${i === 0 ?
|
|
136
|
+
this.showValue = `${this.year} 年 ${i === 0 ? $lc("上半年") : $lc("下半年")}`
|
|
136
137
|
// 6月最后一天是30 12月最后一天是31
|
|
137
138
|
this.$emit('input', { startDate: arr[0] + '-01', endDate: i === 0 ? arr[1] + '-30' : arr[1] + '-31' })
|
|
138
139
|
this.$emit('change', { startDate: arr[0] + '-01', endDate: i === 0 ? arr[1] + '-30' : arr[1] + '-31' })
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<!--结算 日 周 月 年 时间选择控件封装 -->
|
|
3
3
|
<div class="n20-date-select">
|
|
4
|
-
<el-select v-model="type" placeholder="请选择" style="width: 75px" @change="dateTypeSelectChange">
|
|
4
|
+
<el-select v-model="type" :placeholder="$lc('请选择')" style="width: 75px" @change="dateTypeSelectChange">
|
|
5
5
|
<el-option v-for="(item, index) in selectList" :key="index" :label="item" :value="item" />
|
|
6
6
|
</el-select>
|
|
7
7
|
<date-picker
|
|
8
|
-
v-if="type === '日' && selectList.includes(type)"
|
|
8
|
+
v-if="type === $lc('日') && selectList.includes(type)"
|
|
9
9
|
key="day"
|
|
10
10
|
v-model="day"
|
|
11
11
|
style="width: 100%"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
:placeholder="'选择日' | $lc"
|
|
17
17
|
/>
|
|
18
18
|
<date-picker
|
|
19
|
-
v-if="type === '周' && selectList.includes(type)"
|
|
19
|
+
v-if="type === $lc('周') && selectList.includes(type)"
|
|
20
20
|
key="week"
|
|
21
21
|
v-model="week"
|
|
22
22
|
format="yyyy 第 WW 周"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
/>
|
|
29
29
|
|
|
30
30
|
<date-picker
|
|
31
|
-
v-if="type === '月' && selectList.includes(type)"
|
|
31
|
+
v-if="type === $lc('月') && selectList.includes(type)"
|
|
32
32
|
key="month"
|
|
33
33
|
v-model="month"
|
|
34
34
|
type="month"
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
v-bind="$attrs"
|
|
39
39
|
:placeholder="'选择月' | $lc"
|
|
40
40
|
/>
|
|
41
|
-
<quarter-date-picker v-if="type === '季'" key="quarter" v-model="quarter" :disabled-date="attrs.disabledDate" />
|
|
41
|
+
<quarter-date-picker v-if="type === $lc('季')" key="quarter" v-model="quarter" :disabled-date="attrs.disabledDate" />
|
|
42
42
|
<HalfYearPicker
|
|
43
|
-
v-if="type === '半年' && selectList.includes(type)"
|
|
43
|
+
v-if="type === $lc('半年') && selectList.includes(type)"
|
|
44
44
|
key="year"
|
|
45
45
|
v-model="halfYear"
|
|
46
46
|
v-bind="$attrs"
|
|
47
47
|
:placeholder="'选择半年' | $lc"
|
|
48
48
|
/>
|
|
49
49
|
<date-picker
|
|
50
|
-
v-if="type === '年' && selectList.includes(type)"
|
|
50
|
+
v-if="type === $lc('年') && selectList.includes(type)"
|
|
51
51
|
key="year"
|
|
52
52
|
v-model="year"
|
|
53
53
|
type="year"
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
:placeholder="'选择年' | $lc"
|
|
59
59
|
/>
|
|
60
60
|
<el-date-picker
|
|
61
|
-
v-if="type === '临时' && selectList.includes(type)"
|
|
61
|
+
v-if="type === $lc('临时') && selectList.includes(type)"
|
|
62
62
|
v-model="custom"
|
|
63
63
|
type="daterange"
|
|
64
64
|
style="width: 100%"
|
|
@@ -70,11 +70,13 @@
|
|
|
70
70
|
</template>
|
|
71
71
|
|
|
72
72
|
<script>
|
|
73
|
+
import { $lc } from '../../utils/i18n/index.js'
|
|
73
74
|
// TODO: 双向绑定数值格式不统一
|
|
74
75
|
import datePicker from '../DatePicker/index.vue'
|
|
75
76
|
import quarterDatePicker from './quarterDatePicker'
|
|
76
77
|
import HalfYearPicker from './halfYearPicker'
|
|
77
78
|
import dayjs from 'dayjs'
|
|
79
|
+
|
|
78
80
|
export default {
|
|
79
81
|
name: 'SelectDatePickerPro',
|
|
80
82
|
components: { datePicker, quarterDatePicker, HalfYearPicker },
|
|
@@ -96,7 +98,7 @@ export default {
|
|
|
96
98
|
) {
|
|
97
99
|
return true
|
|
98
100
|
} else {
|
|
99
|
-
console.error(
|
|
101
|
+
console.error($lc("双向绑定的数据必须为个对象,且必须有startDate和endDate属性"))
|
|
100
102
|
return false
|
|
101
103
|
}
|
|
102
104
|
}
|
|
@@ -104,7 +106,7 @@ export default {
|
|
|
104
106
|
selectList: {
|
|
105
107
|
type: Array,
|
|
106
108
|
default: () => {
|
|
107
|
-
return [
|
|
109
|
+
return [$lc("日"), $lc("周"), $lc("月"), $lc("季"), $lc("半年"), $lc("年"), $lc("临时")]
|
|
108
110
|
}
|
|
109
111
|
}
|
|
110
112
|
},
|
|
@@ -118,7 +120,7 @@ export default {
|
|
|
118
120
|
if (this.selectList.includes(this.value.typeDate)) {
|
|
119
121
|
return this.value.typeDate
|
|
120
122
|
} else {
|
|
121
|
-
console.error(
|
|
123
|
+
console.error($lc("selectList中没有对应的选项"))
|
|
122
124
|
return ''
|
|
123
125
|
}
|
|
124
126
|
},
|
|
@@ -93,8 +93,10 @@
|
|
|
93
93
|
</template>
|
|
94
94
|
|
|
95
95
|
<script>
|
|
96
|
+
import { $lc } from '../../utils/i18n/index.js'
|
|
96
97
|
import quarter from 'dayjs/plugin/quarterOfYear'
|
|
97
98
|
import dayjs from 'dayjs'
|
|
99
|
+
|
|
98
100
|
dayjs.extend(quarter)
|
|
99
101
|
export default {
|
|
100
102
|
name: 'QuarterDatePicker',
|
|
@@ -194,16 +196,16 @@ export default {
|
|
|
194
196
|
let value = ''
|
|
195
197
|
switch (val) {
|
|
196
198
|
case 1:
|
|
197
|
-
value =
|
|
199
|
+
value = $lc("一")
|
|
198
200
|
break
|
|
199
201
|
case 2:
|
|
200
|
-
value =
|
|
202
|
+
value = $lc("二")
|
|
201
203
|
break
|
|
202
204
|
case 3:
|
|
203
|
-
value =
|
|
205
|
+
value = $lc("三")
|
|
204
206
|
break
|
|
205
207
|
case 4:
|
|
206
|
-
value =
|
|
208
|
+
value = $lc("四")
|
|
207
209
|
break
|
|
208
210
|
default:
|
|
209
211
|
break
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
:value="item[defineProps.value]"
|
|
18
18
|
style="display: none"
|
|
19
19
|
/>
|
|
20
|
-
<el-checkbox v-model="checkD" class="m-l-lg" :label="checkD ? '取消勾选' : '全部勾选'" @change="handleCheckBox" />
|
|
20
|
+
<el-checkbox v-model="checkD" class="m-l-lg" :label="checkD ? $lc('取消勾选') : $lc('全部勾选')" @change="handleCheckBox" />
|
|
21
21
|
<Tree
|
|
22
22
|
ref="tree"
|
|
23
23
|
:data="data"
|
|
@@ -180,6 +180,7 @@ import { Message } from 'element-ui'
|
|
|
180
180
|
import forEachs from '../../utils/forEachs'
|
|
181
181
|
import dialogWrap from '../Dialog/index.vue'
|
|
182
182
|
import dragList from '../DragList/index.vue'
|
|
183
|
+
|
|
183
184
|
export default {
|
|
184
185
|
name: 'ShowColumn',
|
|
185
186
|
components: { dialogWrap, dragList },
|
|
@@ -255,20 +256,20 @@ export default {
|
|
|
255
256
|
computed: {
|
|
256
257
|
title() {
|
|
257
258
|
if (this.isExport) {
|
|
258
|
-
return $lc(
|
|
259
|
+
return $lc("导出")
|
|
259
260
|
} else if (this.isFilter) {
|
|
260
|
-
return $lc(
|
|
261
|
+
return $lc("筛选")
|
|
261
262
|
} else {
|
|
262
|
-
return $lc(
|
|
263
|
+
return $lc("设置显示列")
|
|
263
264
|
}
|
|
264
265
|
},
|
|
265
266
|
header() {
|
|
266
267
|
if (this.isExport) {
|
|
267
|
-
return $lc(
|
|
268
|
+
return $lc("导出")
|
|
268
269
|
} else if (this.isFilter) {
|
|
269
|
-
return $lc(
|
|
270
|
+
return $lc("筛选")
|
|
270
271
|
} else {
|
|
271
|
-
return $lc(
|
|
272
|
+
return $lc("显示列")
|
|
272
273
|
}
|
|
273
274
|
},
|
|
274
275
|
visible: {
|
|
@@ -325,9 +326,9 @@ export default {
|
|
|
325
326
|
validator(rule, value, callback) {
|
|
326
327
|
if (value) {
|
|
327
328
|
if (value > 300) {
|
|
328
|
-
return callback(new Error($lc(
|
|
329
|
+
return callback(new Error($lc("输入最大宽度不能大于300")))
|
|
329
330
|
} else if (!/^[1-9]\d*$/.test(value)) {
|
|
330
|
-
return callback(new Error($lc(
|
|
331
|
+
return callback(new Error($lc("表头宽度只能输入正整数")))
|
|
331
332
|
}
|
|
332
333
|
}
|
|
333
334
|
callback()
|
|
@@ -338,17 +339,17 @@ export default {
|
|
|
338
339
|
},
|
|
339
340
|
configSaveN() {
|
|
340
341
|
if (!this.configModelN.label) {
|
|
341
|
-
return this.$message.warning($lc(
|
|
342
|
+
return this.$message.warning($lc("请填写名称"))
|
|
342
343
|
}
|
|
343
344
|
const hasLabel = this.dragListN.find((item) => {
|
|
344
345
|
return item.label === this.configModelN.label
|
|
345
346
|
})
|
|
346
347
|
if (hasLabel) {
|
|
347
|
-
return this.$message.warning($lc(
|
|
348
|
+
return this.$message.warning($lc("已有重名字段,请修改"))
|
|
348
349
|
}
|
|
349
350
|
this.dragList.unshift(this.configModelN)
|
|
350
351
|
// this.columns = [this.configModelN, ...this.columns]
|
|
351
|
-
this.$message.success($lc(
|
|
352
|
+
this.$message.success($lc("添加成功"))
|
|
352
353
|
this.configVisibleN = false
|
|
353
354
|
this.configModelN = {
|
|
354
355
|
label: '',
|
|
@@ -411,7 +412,7 @@ export default {
|
|
|
411
412
|
if (this.dragList.length < 1) {
|
|
412
413
|
this.$message.error(
|
|
413
414
|
`${$lc(`至少设置`)}${
|
|
414
|
-
this.isExport ? $lc(
|
|
415
|
+
this.isExport ? $lc("一列导出数据") : this.isFilter ? $lc("一个筛选条件") : $lc("一列显示列")
|
|
415
416
|
}!`
|
|
416
417
|
)
|
|
417
418
|
return
|
|
@@ -11,12 +11,13 @@ import icon_clinch from './images/clinch.png'
|
|
|
11
11
|
import icon_cancellation from './images/cancellation.png'
|
|
12
12
|
import icon_accounts from './images/accounts.png'
|
|
13
13
|
|
|
14
|
+
|
|
14
15
|
export default {
|
|
15
16
|
name: 'Stamp',
|
|
16
17
|
props: {
|
|
17
18
|
name: {
|
|
18
19
|
type: String,
|
|
19
|
-
default: $lc(
|
|
20
|
+
default: $lc("已成交")
|
|
20
21
|
},
|
|
21
22
|
src: {
|
|
22
23
|
type: String,
|
|
@@ -40,23 +41,23 @@ export default {
|
|
|
40
41
|
name: {
|
|
41
42
|
handler(val) {
|
|
42
43
|
switch (val) {
|
|
43
|
-
case $lc(
|
|
44
|
+
case $lc("已终止"):
|
|
44
45
|
this.imgSrc = icon_termination
|
|
45
46
|
break
|
|
46
|
-
case $lc(
|
|
47
|
+
case $lc("已失效"):
|
|
47
48
|
this.imgSrc = icon_efficacy
|
|
48
49
|
break
|
|
49
|
-
case $lc(
|
|
50
|
+
case $lc("已签订"):
|
|
50
51
|
this.imgSrc = icon_conclude
|
|
51
52
|
break
|
|
52
|
-
case $lc(
|
|
53
|
+
case $lc("已成交"):
|
|
53
54
|
this.imgSrc = icon_clinch
|
|
54
55
|
break
|
|
55
56
|
|
|
56
|
-
case $lc(
|
|
57
|
+
case $lc("已作废"):
|
|
57
58
|
this.imgSrc = icon_cancellation
|
|
58
59
|
break
|
|
59
|
-
case $lc(
|
|
60
|
+
case $lc("已结清"):
|
|
60
61
|
this.imgSrc = icon_accounts
|
|
61
62
|
break
|
|
62
63
|
}
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
<script>
|
|
31
31
|
import { $lc } from '../../utils/i18n/index'
|
|
32
32
|
import statisItem from './statisItem.vue'
|
|
33
|
+
|
|
33
34
|
export default {
|
|
34
35
|
name: 'Statis',
|
|
35
36
|
components: {
|
|
@@ -70,7 +71,7 @@ export default {
|
|
|
70
71
|
},
|
|
71
72
|
label: {
|
|
72
73
|
type: String,
|
|
73
|
-
default:
|
|
74
|
+
default: $lc("已选")
|
|
74
75
|
}
|
|
75
76
|
},
|
|
76
77
|
computed: {
|
|
@@ -78,7 +79,7 @@ export default {
|
|
|
78
79
|
if (!this.showU) {
|
|
79
80
|
return undefined
|
|
80
81
|
} else if (this.showU === true) {
|
|
81
|
-
return $lc(
|
|
82
|
+
return $lc("元")
|
|
82
83
|
} else {
|
|
83
84
|
return this.showU
|
|
84
85
|
}
|
|
@@ -86,29 +87,29 @@ export default {
|
|
|
86
87
|
pageList() {
|
|
87
88
|
if (this.pageAmount !== undefined) {
|
|
88
89
|
return [
|
|
89
|
-
{ label: $lc(
|
|
90
|
+
{ label: $lc("笔数"), value: this.pageSum },
|
|
90
91
|
{
|
|
91
|
-
label: $lc(
|
|
92
|
+
label: $lc("金额"),
|
|
92
93
|
value: this.pageAmount,
|
|
93
94
|
unit: this.unitAs
|
|
94
95
|
}
|
|
95
96
|
]
|
|
96
97
|
} else {
|
|
97
|
-
return [{ label: $lc(
|
|
98
|
+
return [{ label: $lc("笔数"), value: this.pageSum }]
|
|
98
99
|
}
|
|
99
100
|
},
|
|
100
101
|
totalList() {
|
|
101
102
|
if (this.totalAmount !== undefined) {
|
|
102
103
|
return [
|
|
103
|
-
{ label: $lc(
|
|
104
|
+
{ label: $lc("笔数"), value: this.totalSun },
|
|
104
105
|
{
|
|
105
|
-
label: $lc(
|
|
106
|
+
label: $lc("金额"),
|
|
106
107
|
value: this.totalAmount,
|
|
107
108
|
unit: this.unitAs
|
|
108
109
|
}
|
|
109
110
|
]
|
|
110
111
|
} else {
|
|
111
|
-
return [{ label: $lc(
|
|
112
|
+
return [{ label: $lc("笔数"), value: this.totalSun }]
|
|
112
113
|
}
|
|
113
114
|
}
|
|
114
115
|
}
|
|
@@ -25,18 +25,19 @@
|
|
|
25
25
|
import { $lc } from '../../utils/i18n/index'
|
|
26
26
|
// import numerify from 'numerify'
|
|
27
27
|
import XEUtils from 'xe-utils'
|
|
28
|
+
|
|
28
29
|
const n = 10000
|
|
29
30
|
|
|
30
31
|
export default {
|
|
31
32
|
name: 'StatisItem',
|
|
32
33
|
filters: {
|
|
33
34
|
numerify({ label, value }, f, w, unit = '') {
|
|
34
|
-
unit = unit ? (unit === true ? $lc(
|
|
35
|
+
unit = unit ? (unit === true ? $lc("元") : unit) : ''
|
|
35
36
|
if (!w) {
|
|
36
37
|
return XEUtils.commafy(value, { digits: 2 }) + unit
|
|
37
38
|
} else {
|
|
38
39
|
if (value > n) {
|
|
39
|
-
return XEUtils.commafy(value / n, { digits: 2 }) + $lc(
|
|
40
|
+
return XEUtils.commafy(value / n, { digits: 2 }) + $lc("万") + unit
|
|
40
41
|
} else {
|
|
41
42
|
return XEUtils.commafy(value, { digits: 2 }) + unit
|
|
42
43
|
}
|
|
@@ -66,7 +67,7 @@ export default {
|
|
|
66
67
|
},
|
|
67
68
|
countLabel: {
|
|
68
69
|
type: Array,
|
|
69
|
-
default: () => [
|
|
70
|
+
default: () => [$lc("笔数")]
|
|
70
71
|
},
|
|
71
72
|
// 是否多币种
|
|
72
73
|
isDbz: {
|