n20-common-lib 2.22.61 → 2.22.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/nstc-g6/components/Calendar/src/main.vue +1 -1
- package/nstc-g6/components/Form/AutocompleteCustom/index.vue +3 -1
- package/nstc-g6/components/Form/BusinessSpecific/InputWithUnit.vue +5 -4
- package/nstc-g6/components/Form/BusinessSpecific/SelectTreeDialog.vue +18 -15
- package/nstc-g6/components/Form/Component.vue +1 -1
- package/nstc-g6/components/Form/ComponentSecond.vue +1 -1
- package/nstc-g6/components/Form/DatepickerCustom/index.vue +3 -3
- package/nstc-g6/components/Form/InputAndDialog/src/main.vue +5 -4
- package/nstc-g6/components/Form/InputCustom/index.vue +3 -2
- package/nstc-g6/components/Form/IntervalinputCustom/index.vue +2 -1
- package/nstc-g6/components/Form/ItemSecond.vue +2 -2
- package/nstc-g6/components/Form/SelectAccount/src/main.vue +9 -8
- package/nstc-g6/components/Form/SelectAndDialog/src/main.vue +5 -4
- package/nstc-g6/components/Form/SelectCashFlow/src/main.vue +7 -6
- package/nstc-g6/components/Form/SelectCustom/index.vue +3 -2
- package/nstc-g6/components/Form/SelectSubject/src/main.vue +8 -7
- package/nstc-g6/components/Form/SelectindialogCustom/index.vue +3 -2
- package/nstc-g6/components/Form/UploadCustom/index.vue +4 -3
- package/nstc-g6/components/Form/configs.js +2 -1
- package/nstc-g6/components/Form/configsSecond.js +2 -1
- package/nstc-g6/components/Form/payeePersonSelect/src/main.vue +15 -18
- package/nstc-g6/components/FormGroup/src/main.vue +9 -6
- package/nstc-g6/components/FormGroup/src/validate.js +3 -1
- package/nstc-g6/components/InputTag/InputTag.vue +1 -1
- package/nstc-g6/components/NstcConfirm/NstcConfirm.vue +5 -4
- package/nstc-g6/components/NstcDialog/NstcDialog.vue +5 -2
- package/nstc-g6/components/NstcDialogTable/NstcDialogTable.vue +5 -3
- package/nstc-g6/components/NstcDropdownTree/NstcDropdownTree.vue +5 -4
- package/nstc-g6/components/NstcElectronicFile/NstcElectronicFile.vue +32 -30
- package/nstc-g6/components/NstcExcelCustomImport/NstcExcelCustomImport.vue +17 -15
- package/nstc-g6/components/NstcExcelExport/NstcExcelExport.vue +3 -2
- package/nstc-g6/components/NstcExcelImport/NstcExcelImport.vue +18 -16
- package/nstc-g6/components/NstcExcelImportN/NstcExcelImportN.vue +17 -15
- package/nstc-g6/components/NstcFileUpload/NstcFileUpload.vue +39 -37
- package/nstc-g6/components/NstcForm/AutocompleteCustom/index.vue +3 -1
- package/nstc-g6/components/NstcForm/BusinessSpecific/InputWithUnit.vue +5 -4
- package/nstc-g6/components/NstcForm/BusinessSpecific/SelectTreeDialog.vue +16 -15
- package/nstc-g6/components/NstcForm/Component.vue +1 -1
- package/nstc-g6/components/NstcForm/ComponentSecond.vue +1 -1
- package/nstc-g6/components/NstcForm/DatepickerCustom/index.vue +3 -3
- package/nstc-g6/components/NstcForm/InputAndDialog/NstcInputAndDialog.vue +5 -4
- package/nstc-g6/components/NstcForm/InputCustom/index.vue +3 -2
- package/nstc-g6/components/NstcForm/IntervalInputCustom/index.vue +2 -1
- package/nstc-g6/components/NstcForm/ItemSecond.vue +2 -2
- package/nstc-g6/components/NstcForm/SelectAccount/NstcSelectAccount.vue +11 -10
- package/nstc-g6/components/NstcForm/SelectAndDialog/NstcSelectAndDialog.vue +5 -4
- package/nstc-g6/components/NstcForm/SelectCashFlow/NstcSelectCashFlow.vue +9 -8
- package/nstc-g6/components/NstcForm/SelectCustom/index.vue +3 -2
- package/nstc-g6/components/NstcForm/SelectSubject/NstcSelectSubject.vue +10 -9
- package/nstc-g6/components/NstcForm/SelectindialogCustom/index.vue +4 -3
- package/nstc-g6/components/NstcForm/UploadCustom/index.vue +4 -3
- package/nstc-g6/components/NstcForm/configs.js +2 -1
- package/nstc-g6/components/NstcForm/configsSecond.js +2 -1
- package/nstc-g6/components/NstcForm/payeePersonSelect/NstcPayeePerson.vue +15 -14
- package/nstc-g6/components/NstcPagination/NstcPagination.vue +9 -7
- package/nstc-g6/components/NstcScreenFull/NstcScreenFull.vue +3 -1
- package/nstc-g6/components/NstcSelectTree/NstcSelectTree.vue +6 -5
- package/nstc-g6/components/NstcSelectTreeList/NstcSelectTreeList.vue +4 -3
- package/nstc-g6/components/NstcTable/NstcTable.vue +3 -2
- package/nstc-g6/components/NstcTableSet/NstcTableSet.vue +16 -14
- package/nstc-g6/components/NstcThemePicker/NstcThemePicker.vue +3 -1
- package/nstc-g6/components/NstcWorkBench/NstcWorkBench.vue +36 -32
- package/nstc-g6/components/Search/NstcSearch.vue +8 -6
- package/nstc-g6/components/approvelTwo/main.vue +6 -5
- package/nstc-g6/components/approvelTwo/progress.vue +2 -2
- package/nstc-g6/index.js +3 -1
- package/nstc-g6/utils/dateAndValidator.js +8 -6
- package/nstc-g6/utils/vendor/Export2Zip.js +2 -1
- package/package.json +1 -1
- package/src/components/AIButton/index.vue +1 -1
- package/src/components/ApprovalButtons/index.vue +1 -1
- package/src/components/ApprovalButtons/indexApp.vue +1 -1
- package/src/components/ApprovalButtons/selectSpr.vue +2 -2
- package/src/components/ApprovalButtons/showOtherAttrNew.vue +1 -1
- package/src/components/ApprovalRecord/approvalImg.vue +1 -1
- package/src/components/ApprovalRecord/approvalImgPro/child.vue +2 -4
- package/src/components/ApprovalRecord/approvalImgPro/index.vue +5 -7
- package/src/components/AttachmentPass/index.vue +1 -1
- package/src/components/DateSelect/index.vue +1 -1
- package/src/components/DateSelect/quarterDatePicker.vue +15 -12
- package/src/components/DynamicField/DynamicFieldOptions.vue +1 -1
- package/src/components/DynamicField/tableList.vue +1 -1
- package/src/components/ElectronicArchive/index.vue +3 -3
- package/src/components/FileUploadTable/FileUploadTableV3.vue +1 -1
- package/src/components/FileUploadTable/index.vue +10 -6
- package/src/components/LoginSetting/index.vue +19 -9
- package/src/components/LoginTemporary/form.vue +2 -4
- package/src/components/LoginTemporary/index.vue +1 -1
- package/src/components/LoginTemporary/retrievePw.vue +8 -8
- package/src/components/SelectDatePickerPro/halfYearPicker.vue +14 -8
- package/src/components/SelectDatePickerPro/index.vue +1 -1
- package/src/components/SelectDatePickerPro/quarterDatePicker.vue +17 -13
- package/src/components/TableSetSize/index.vue +2 -2
- package/src/components/operatingStatus/index.vue +1 -1
- package/src/i18n.json +742 -28
- package/src/plugins/Print/print-js/src/js/init.js +2 -1
- package/src/plugins/SetMenuTree/setmenutree.vue +3 -3
- package/src/plugins/SetMenuTree/utils.js +2 -1
- package/src/plugins/Sign/Itrus/index.js +3 -1
- package/src/plugins/Sign/Itrus/sign_3720.js +5 -1
- package/src/plugins/Sign/NetSM3/index.js +3 -1
- package/src/plugins/Sign/SkfSign/index.js +3 -1
- package/src/plugins/Sign/bjca/index.js +3 -1
- package/src/plugins/Sign/hnca/index.js +1 -2
- package/src/plugins/Sign/kySign/index.js +3 -1
- package/src/plugins/Sign/netca/netca.base.1.1.0.js +6 -1
- package/src/plugins/Sign/sign.js +4 -2
- package/src/plugins/Sign/signV3/sign.js +4 -2
- package/src/plugins/Sign/sign_back.js +3 -1
- package/src/utils/xls2json.js +2 -1
- package/src/utils/xlsx2json.js +2 -1
|
@@ -7,6 +7,7 @@ import Html from './html'
|
|
|
7
7
|
import RawHtml from './raw-html'
|
|
8
8
|
import Image from './image'
|
|
9
9
|
import Json from './json'
|
|
10
|
+
import { $lc } from '../../../../../utils/i18n/index.js'
|
|
10
11
|
|
|
11
12
|
const printTypes = ['pdf', 'html', 'image', 'json', 'raw-html']
|
|
12
13
|
|
|
@@ -30,7 +31,7 @@ export default {
|
|
|
30
31
|
onLoadingEnd: null,
|
|
31
32
|
onPrintDialogClose: () => {},
|
|
32
33
|
onIncompatibleBrowser: () => {},
|
|
33
|
-
modalMessage: '打印中...',
|
|
34
|
+
modalMessage: $lc('打印中...'),
|
|
34
35
|
frameId: 'printJS',
|
|
35
36
|
printableElement: null,
|
|
36
37
|
documentTitle: 'Document',
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<span slot-scope="{ node, data }" class="menu-item flex-item flex-box flex-lr flex-v">
|
|
24
24
|
<span>
|
|
25
25
|
<logoIcon v-if="data.logo" :logo="data.logo" width="14px" style="vertical-align: bottom" />
|
|
26
|
-
{{ node.label || '未命名...' }}</span
|
|
26
|
+
{{ node.label || $lc('未命名...') }}</span
|
|
27
27
|
>
|
|
28
28
|
<span class="menu-item-btn m-r">
|
|
29
29
|
<el-button
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
v-title="$lc('是否作为门户首页的快捷入口的备选项')"
|
|
108
108
|
active-value="1"
|
|
109
109
|
inactive-value="0"
|
|
110
|
-
active-text="是"
|
|
111
|
-
inactive-text="否"
|
|
110
|
+
:active-text="$lc('是')"
|
|
111
|
+
:inactive-text="$lc('否')"
|
|
112
112
|
inline
|
|
113
113
|
:width="46"
|
|
114
114
|
/>
|
|
@@ -64,7 +64,7 @@ export function menutree2treeSource(menuTree) {
|
|
|
64
64
|
delete item.version
|
|
65
65
|
})
|
|
66
66
|
|
|
67
|
-
let _version = window.prompt(
|
|
67
|
+
let _version = window.prompt(`${$lc('请输入应用[')}${appNo}]${$lc('的版本号')}`, version)
|
|
68
68
|
|
|
69
69
|
return {
|
|
70
70
|
appNo: appNo,
|
|
@@ -72,3 +72,4 @@ export function menutree2treeSource(menuTree) {
|
|
|
72
72
|
initResInfo: menuTree
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
+
import { $lc } from '../../utils/i18n/index.js'
|
|
@@ -2511,7 +2511,9 @@ try {
|
|
|
2511
2511
|
Notification({
|
|
2512
2512
|
title: $lc("提示"),
|
|
2513
2513
|
dangerouslyUseHTMLString: true,
|
|
2514
|
-
message: `<div
|
|
2514
|
+
message: `<div>${$lc(
|
|
2515
|
+
'检测到您的电脑中没有安装签名助手,为了不影响使用请使用管理员权限'
|
|
2516
|
+
)}<a class="color-primary" href="${url}" download>${$lc('下载安装')}</a>${name}</div>`,
|
|
2515
2517
|
duration: 5000
|
|
2516
2518
|
})
|
|
2517
2519
|
}
|
|
@@ -1789,7 +1789,11 @@ try {
|
|
|
1789
1789
|
Notification({
|
|
1790
1790
|
title: $lc("提示"),
|
|
1791
1791
|
dangerouslyUseHTMLString: true,
|
|
1792
|
-
message: `<div
|
|
1792
|
+
message: `<div>${$lc(
|
|
1793
|
+
'检测到您的电脑中没有安装签名助手,为了不影响使用请使用管理员权限'
|
|
1794
|
+
)}<a class="color-primary" href="/portal/TopESA3.7.2.0.exe" download>${$lc('下载安装')}</a>${$lc(
|
|
1795
|
+
'天诚安信数字证书助手'
|
|
1796
|
+
)}</div>`,
|
|
1793
1797
|
duration: 5000
|
|
1794
1798
|
})
|
|
1795
1799
|
}
|
|
@@ -52,7 +52,9 @@ function checkAvailable(fn, url, count) {
|
|
|
52
52
|
Notification({
|
|
53
53
|
title: $lc("提示"),
|
|
54
54
|
dangerouslyUseHTMLString: true,
|
|
55
|
-
message: `<div
|
|
55
|
+
message: `<div>${$lc(
|
|
56
|
+
'检测到您的电脑中没有安装签名助手,为了不影响使用请使用管理员权限'
|
|
57
|
+
)}<a class="color-primary" href="${url}" download>${$lc('下载安装')}</a>${name}</div>`,
|
|
56
58
|
duration: 5000
|
|
57
59
|
})
|
|
58
60
|
} else {
|
|
@@ -52,7 +52,9 @@ function checkAvailable(fn, url, count) {
|
|
|
52
52
|
Notification({
|
|
53
53
|
title: $lc("提示"),
|
|
54
54
|
dangerouslyUseHTMLString: true,
|
|
55
|
-
message: `<div
|
|
55
|
+
message: `<div>${$lc(
|
|
56
|
+
'检测到您的电脑中没有安装签名助手,为了不影响使用请使用管理员权限'
|
|
57
|
+
)}<a class="color-primary" href="${url}" download>${$lc('下载安装')}</a>${name}</div>`,
|
|
56
58
|
duration: 5000
|
|
57
59
|
})
|
|
58
60
|
} else {
|
|
@@ -344,7 +344,9 @@ export async function getCert(dn) {
|
|
|
344
344
|
return
|
|
345
345
|
} else {
|
|
346
346
|
if (s_retVal[0] && s_retVal[0].retVal && dn) {
|
|
347
|
-
errMsg =
|
|
347
|
+
errMsg = `${$lc('用户CN值为:CN=')}${parseCA(dn)},${$lc('数字证书CN值为:CN=')}${parseCA(
|
|
348
|
+
s_retVal[0].retVal
|
|
349
|
+
)}.${$lc('不匹配')}`
|
|
348
350
|
} else {
|
|
349
351
|
errMsg = $lc("参数dn信息不匹配!")
|
|
350
352
|
}
|
|
@@ -5000,7 +5000,7 @@ export function getCert(dn) {
|
|
|
5000
5000
|
|
|
5001
5001
|
}
|
|
5002
5002
|
}
|
|
5003
|
-
|
|
5003
|
+
|
|
5004
5004
|
// 签名方法
|
|
5005
5005
|
export async function getSign(plain, dn) {
|
|
5006
5006
|
let plainText = undefined
|
|
@@ -5063,4 +5063,3 @@ export function getCert(dn) {
|
|
|
5063
5063
|
Message.error($lc("签名失败!"))
|
|
5064
5064
|
}
|
|
5065
5065
|
}
|
|
5066
|
-
|
|
@@ -59,7 +59,9 @@ function checkAvailable() {
|
|
|
59
59
|
Notification({
|
|
60
60
|
title: $lc("提示"),
|
|
61
61
|
dangerouslyUseHTMLString: true,
|
|
62
|
-
message: `<div
|
|
62
|
+
message: `<div>${$lc(
|
|
63
|
+
'检测到您的电脑中没有安装签名助手,为了不影响使用请使用管理员权限'
|
|
64
|
+
)}<a class="color-primary" href="${url}" download>${$lc('下载安装')}</a>${name}</div>`,
|
|
63
65
|
duration: 5000
|
|
64
66
|
})
|
|
65
67
|
}
|
|
@@ -314,7 +314,12 @@ var NetcaPKI = (function () {
|
|
|
314
314
|
}
|
|
315
315
|
} catch (e) {
|
|
316
316
|
//没有办法定位是哪个实例,只是默认不处理该信息
|
|
317
|
-
obj =
|
|
317
|
+
obj = {
|
|
318
|
+
responseResult: {
|
|
319
|
+
status: -1,
|
|
320
|
+
msg: $lc("响应的数据不是有效的JSON数据")
|
|
321
|
+
}
|
|
322
|
+
}
|
|
318
323
|
// 打印调用中间件服务发生的异常
|
|
319
324
|
console.log(e.stack)
|
|
320
325
|
synpromise.FireEvent(null, obj.responseResult)
|
package/src/plugins/Sign/sign.js
CHANGED
|
@@ -47,7 +47,9 @@ function checkAvailable(fn, url, count) {
|
|
|
47
47
|
Notification({
|
|
48
48
|
title: $lc("提示"),
|
|
49
49
|
dangerouslyUseHTMLString: true,
|
|
50
|
-
message: `<div
|
|
50
|
+
message: `<div>${$lc(
|
|
51
|
+
'检测到您的电脑中没有安装签名助手,为了不影响使用请使用管理员权限'
|
|
52
|
+
)}<a class="color-primary" href="${url}" download>${$lc('下载安装')}</a>${name}</div>`,
|
|
51
53
|
duration: 5000
|
|
52
54
|
})
|
|
53
55
|
} else {
|
|
@@ -176,7 +178,7 @@ function verifyDn(dnList, dn) {
|
|
|
176
178
|
})
|
|
177
179
|
if (index === -1) {
|
|
178
180
|
let dnList = dnList?.map((res) => res.certDN)?.join(',')
|
|
179
|
-
Message.error(
|
|
181
|
+
Message.error(`${$lc('证书Dn不匹配:')}${dnList}${$lc('里面无法匹配===>')}${dn}`)
|
|
180
182
|
return index
|
|
181
183
|
}
|
|
182
184
|
if (index !== -1) {
|
|
@@ -49,7 +49,9 @@ function checkAvailable(fn, url, count) {
|
|
|
49
49
|
Notification({
|
|
50
50
|
title: $lc("提示"),
|
|
51
51
|
dangerouslyUseHTMLString: true,
|
|
52
|
-
message: `<div
|
|
52
|
+
message: `<div>${$lc(
|
|
53
|
+
'检测到您的电脑中没有安装签名助手,为了不影响使用请使用管理员权限'
|
|
54
|
+
)}<a class="color-primary" href="${url}" download>${$lc('下载安装')}</a>${name}</div>`,
|
|
53
55
|
duration: 5000
|
|
54
56
|
})
|
|
55
57
|
} else {
|
|
@@ -276,7 +278,7 @@ function verifyDn(dnList, dn) {
|
|
|
276
278
|
}
|
|
277
279
|
if (index === -1) {
|
|
278
280
|
let dnListB = dnList?.map((res) => res.certDN)?.join(',')
|
|
279
|
-
Message.error(
|
|
281
|
+
Message.error(`${$lc('证书Dn不匹配:')}${dnListB}${$lc('里面无法匹配===>')}${dn}`)
|
|
280
282
|
return index
|
|
281
283
|
}
|
|
282
284
|
return index
|
|
@@ -46,7 +46,9 @@ function checkAvailable(fn, url, count) {
|
|
|
46
46
|
Notification({
|
|
47
47
|
title: $lc("提示"),
|
|
48
48
|
dangerouslyUseHTMLString: true,
|
|
49
|
-
message: `<div
|
|
49
|
+
message: `<div>${$lc(
|
|
50
|
+
'检测到您的电脑中没有安装签名助手,为了不影响使用请使用管理员权限'
|
|
51
|
+
)}<a class="color-primary" href="${url}" download>${$lc('下载安装')}</a>${name}</div>`,
|
|
50
52
|
duration: 5000
|
|
51
53
|
})
|
|
52
54
|
} else {
|
package/src/utils/xls2json.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import importG from './importGlobal.js'
|
|
2
|
+
import { $lc } from './i18n/index.js'
|
|
2
3
|
|
|
3
4
|
export default async function toJson(file, name, formAt = 'yyyy-MM-dd') {
|
|
4
5
|
const { read, utils } = await importG('xlsx', () => import(/*webpackChunkName: "xlsx"*/ 'xlsx'))
|
|
@@ -37,7 +38,7 @@ export default async function toJson(file, name, formAt = 'yyyy-MM-dd') {
|
|
|
37
38
|
return pro.then((workbook) => {
|
|
38
39
|
let sheetName = name || workbook.SheetNames[0]
|
|
39
40
|
let workSheet = workbook.Sheets[sheetName]
|
|
40
|
-
if (!workSheet) return Promise.reject(
|
|
41
|
+
if (!workSheet) return Promise.reject(`${$lc('工作表')}:${name} ${$lc('不存在')}`)
|
|
41
42
|
// let rows = []
|
|
42
43
|
const merges = workSheet['!merges'] || []
|
|
43
44
|
if (merges.length > 0) {
|
package/src/utils/xlsx2json.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import importG from './importGlobal.js'
|
|
2
|
+
import { $lc } from './i18n/index.js'
|
|
2
3
|
|
|
3
4
|
export default async function toJson(file, name) {
|
|
4
5
|
let { default: ExcelJS } = await importG(' ', () => import(/*webpackChunkName: "exceljs"*/ 'exceljs'))
|
|
@@ -9,7 +10,7 @@ export default async function toJson(file, name) {
|
|
|
9
10
|
.load(file)
|
|
10
11
|
.then(() => {
|
|
11
12
|
const worksheet = workbook.getWorksheet(name || 1)
|
|
12
|
-
if (!worksheet) return reject(
|
|
13
|
+
if (!worksheet) return reject(`${$lc('工作表')}:${name} ${$lc('不存在')}`)
|
|
13
14
|
|
|
14
15
|
let rows = []
|
|
15
16
|
worksheet.eachRow((r) => {
|