n20-common-lib 3.2.55 → 3.2.57
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/ApprovalButtons/index.vue +1 -1
- package/src/components/ApprovalButtons/indexApp.vue +1 -1
- package/src/components/ApprovalButtons/selectSpr.vue +3 -3
- package/src/components/ApprovalButtons/showOtherAttr.vue +1 -1
- package/src/components/ApprovalRecord/approvalImg.vue +2 -1
- package/src/components/AttachmentPass/index.vue +1 -1
- package/src/components/DateChoose/index.vue +3 -3
- package/src/components/DateSelect/index.vue +1 -1
- package/src/components/DateSelect/quarterDatePicker.vue +5 -5
- package/src/components/DynamicField/DynamicFieldOptions.vue +4 -4
- package/src/components/DynamicField/tableList.vue +1 -1
- package/src/components/ElectronicArchive/index.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/Pivot/ChartView.vue +1 -1
- package/src/components/Pivot/TableView.vue +1 -1
- package/src/components/Pivot/index.vue +11 -7
- package/src/components/ProFilterView/index.vue +4 -3
- package/src/components/SelectDatePickerPro/halfYearPicker.vue +4 -4
- package/src/components/SelectDatePickerPro/index.vue +1 -1
- package/src/components/SelectDatePickerPro/quarterDatePicker.vue +5 -5
- package/src/components/TableSetSize/index.vue +2 -2
- package/src/components/Upload/index.vue +1 -1
- package/src/components/operatingStatus/index.vue +1 -1
- package/src/components/v3/UploadList/index.vue +1 -1
- package/src/i18n.json +802 -4
- 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 +12 -9
- package/src/plugins/Sign/Itrus/sign_3720.js +13 -8
- package/src/plugins/Sign/NetSM3/index.js +14 -11
- package/src/plugins/Sign/NetV3/index.js +17 -16
- package/src/plugins/Sign/SkfSign/index.js +14 -11
- package/src/plugins/Sign/bjca/index.js +21 -18
- package/src/plugins/Sign/cfca/index.js +10 -9
- package/src/plugins/Sign/hnca/index.js +11 -11
- package/src/plugins/Sign/index.js +2 -1
- package/src/plugins/Sign/kySign/index.js +13 -10
- package/src/plugins/Sign/netca/index.js +8 -7
- package/src/plugins/Sign/sdca/index.js +16 -15
- package/src/plugins/Sign/sign.js +13 -10
- package/src/plugins/Sign/signV3/sign.js +17 -14
- package/src/plugins/Sign/sign_back.js +13 -10
- package/src/utils/xls2json.js +2 -1
- package/src/utils/xlsx2json.js +2 -1
|
@@ -8,6 +8,8 @@ export function notValid(rule, value, callback) {
|
|
|
8
8
|
/**
|
|
9
9
|
* 校验 【融资】 - 【期限】
|
|
10
10
|
*/
|
|
11
|
+
import { $lc } from '../../../../src/utils/i18n/index.js'
|
|
12
|
+
|
|
11
13
|
export function validInputWithUnit(rule, value, callback) {
|
|
12
14
|
if (value[0] && value[1]) {
|
|
13
15
|
// if (/^[0-9]*$/.test(value[0])) {
|
|
@@ -16,6 +18,6 @@ export function validInputWithUnit(rule, value, callback) {
|
|
|
16
18
|
// callback(new Error('请输入正整数'))
|
|
17
19
|
// }
|
|
18
20
|
} else {
|
|
19
|
-
callback(new Error('请输入期限'))
|
|
21
|
+
callback(new Error($lc('请输入期限')))
|
|
20
22
|
}
|
|
21
23
|
}
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
|
|
48
48
|
<script>
|
|
49
49
|
import NstcDialog from '../NstcDialog/NstcDialog.vue'
|
|
50
|
+
import { $lc } from '../../../src/utils/i18n/index.js'
|
|
50
51
|
export default {
|
|
51
52
|
name: 'NstcConfirm',
|
|
52
53
|
components: {
|
|
@@ -57,13 +58,13 @@ export default {
|
|
|
57
58
|
dialogVisible: true,
|
|
58
59
|
config: {
|
|
59
60
|
type: 'question',
|
|
60
|
-
title: '提示语言',
|
|
61
|
-
info: '详情提示语言',
|
|
61
|
+
title: $lc('提示语言'),
|
|
62
|
+
info: $lc('详情提示语言'),
|
|
62
63
|
rejectMessage: false, //驳回意见
|
|
63
64
|
rejectMessagePlaceHolder: '',
|
|
64
65
|
button: {
|
|
65
|
-
ok: '确定',
|
|
66
|
-
cancel: '取消'
|
|
66
|
+
ok: $lc('确定'),
|
|
67
|
+
cancel: $lc('取消')
|
|
67
68
|
}
|
|
68
69
|
},
|
|
69
70
|
message: ''
|
|
@@ -34,16 +34,18 @@
|
|
|
34
34
|
:class="footerHandlers.confirm.className"
|
|
35
35
|
@click="handleConfirm"
|
|
36
36
|
>
|
|
37
|
-
{{ footerHandlers.confirm.text || '确认' }}
|
|
37
|
+
{{ footerHandlers.confirm.text || $lc('确认') }}
|
|
38
38
|
</el-button>
|
|
39
39
|
<el-button v-if="footerHandlers.cancel" plain :class="footerHandlers.cancel.className" @click="handleClose">
|
|
40
|
-
{{ footerHandlers.cancel.text || '取消' }}
|
|
40
|
+
{{ footerHandlers.cancel.text || $lc('取消') }}
|
|
41
41
|
</el-button>
|
|
42
42
|
</div>
|
|
43
43
|
</el-dialog>
|
|
44
44
|
</template>
|
|
45
45
|
|
|
46
46
|
<script>
|
|
47
|
+
import { $lc } from '../../../src/utils/i18n/index.js'
|
|
48
|
+
|
|
47
49
|
export default {
|
|
48
50
|
name: 'NstcDialog',
|
|
49
51
|
props: {
|
|
@@ -136,6 +138,7 @@ export default {
|
|
|
136
138
|
}
|
|
137
139
|
},
|
|
138
140
|
methods: {
|
|
141
|
+
$lc,
|
|
139
142
|
handleConfirm() {
|
|
140
143
|
this.handleListeners('confirm')
|
|
141
144
|
},
|
|
@@ -47,14 +47,15 @@
|
|
|
47
47
|
</slot>
|
|
48
48
|
|
|
49
49
|
<div slot="footer" class="btns">
|
|
50
|
-
<el-button type="primary" class="nstc-g6-common-btn-1" @click="onSubmit"
|
|
51
|
-
<el-button class="nstc-g6-common-btn-3" style="margin-left: 8px" @click="closeDialog"
|
|
50
|
+
<el-button type="primary" class="nstc-g6-common-btn-1" @click="onSubmit">{{ $lc('确定') }}</el-button>
|
|
51
|
+
<el-button class="nstc-g6-common-btn-3" style="margin-left: 8px" @click="closeDialog">{{ $lc('取消') }}</el-button>
|
|
52
52
|
</div>
|
|
53
53
|
</el-dialog>
|
|
54
54
|
</template>
|
|
55
55
|
|
|
56
56
|
<script>
|
|
57
57
|
import NstcPagination from '../NstcPagination/NstcPagination'
|
|
58
|
+
import { $lc } from '../../../src/utils/i18n/index.js'
|
|
58
59
|
export default {
|
|
59
60
|
name: 'NstcDialogTable',
|
|
60
61
|
components: {
|
|
@@ -111,7 +112,7 @@ export default {
|
|
|
111
112
|
},
|
|
112
113
|
warning: {
|
|
113
114
|
type: String,
|
|
114
|
-
default: '请选择数据'
|
|
115
|
+
default: () => $lc('请选择数据')
|
|
115
116
|
},
|
|
116
117
|
selectRowKey: String
|
|
117
118
|
},
|
|
@@ -141,6 +142,7 @@ export default {
|
|
|
141
142
|
}
|
|
142
143
|
},
|
|
143
144
|
methods: {
|
|
145
|
+
$lc,
|
|
144
146
|
queryData(eventname) {
|
|
145
147
|
this.tableData = []
|
|
146
148
|
this.setPagination(0)
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
|
|
44
44
|
<script>
|
|
45
45
|
import axios from '../../utils/axios'
|
|
46
|
+
import { $lc } from '../../../src/utils/i18n/index.js'
|
|
46
47
|
export default {
|
|
47
48
|
name: 'NstcDropdownTree', // 单位按树模块查询
|
|
48
49
|
props: {
|
|
@@ -127,11 +128,11 @@ export default {
|
|
|
127
128
|
},
|
|
128
129
|
dropUnitName: {
|
|
129
130
|
type: String,
|
|
130
|
-
default: '全部单位'
|
|
131
|
+
default: () => $lc('全部单位')
|
|
131
132
|
},
|
|
132
133
|
placeholderTemp: {
|
|
133
134
|
type: String,
|
|
134
|
-
default: '请输入关键字进行过滤'
|
|
135
|
+
default: () => $lc('请输入关键字进行过滤')
|
|
135
136
|
}
|
|
136
137
|
},
|
|
137
138
|
data() {
|
|
@@ -145,7 +146,7 @@ export default {
|
|
|
145
146
|
placeholder: '',
|
|
146
147
|
windowEventFlag: false,
|
|
147
148
|
timeTemp: null,
|
|
148
|
-
unitNameText: '全部单位'
|
|
149
|
+
unitNameText: $lc('全部单位')
|
|
149
150
|
}
|
|
150
151
|
},
|
|
151
152
|
computed: {
|
|
@@ -251,7 +252,7 @@ export default {
|
|
|
251
252
|
if (that.showNull) {
|
|
252
253
|
let map = {
|
|
253
254
|
treeNo: '',
|
|
254
|
-
unitName: '全部单位',
|
|
255
|
+
unitName: $lc('全部单位'),
|
|
255
256
|
unitNo: ''
|
|
256
257
|
}
|
|
257
258
|
// eslint-disable-next-line no-debugger
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<!-- <el-dialog :visible.sync="VisibleAdd" :close-on-click-modal="false" width='1140px'> -->
|
|
4
4
|
<!-- 新增 -->
|
|
5
5
|
<div class="uploadfiletip">
|
|
6
|
-
<div
|
|
6
|
+
<div>{{ $lc('附件信息') }}</div>
|
|
7
7
|
<div>
|
|
8
|
-
<el-button v-if="viewMode" type="primary" size="small" @click="createRow"
|
|
9
|
-
<el-button size="small" plain @click="batchload"
|
|
10
|
-
<el-button size="small" type="danger" plain @click="batchdel"
|
|
8
|
+
<el-button v-if="viewMode" type="primary" size="small" @click="createRow">{{ $lc('新增') }}</el-button>
|
|
9
|
+
<el-button size="small" plain @click="batchload">{{ $lc('下载') }}</el-button>
|
|
10
|
+
<el-button size="small" type="danger" plain @click="batchdel">{{ $lc('删除') }}</el-button>
|
|
11
11
|
</div>
|
|
12
12
|
</div>
|
|
13
13
|
<el-table
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
@selection-change="handleSelectionChange"
|
|
20
20
|
>
|
|
21
21
|
<el-table-column type="selection" width="55" />
|
|
22
|
-
<el-table-column label="附件类型">
|
|
22
|
+
<el-table-column :label="$lc('附件类型')">
|
|
23
23
|
<template slot-scope="scope">
|
|
24
24
|
<el-select
|
|
25
25
|
v-if="scope.row.updateType != 0"
|
|
26
26
|
v-model="scope.row.attnoadd"
|
|
27
|
-
placeholder="请选择"
|
|
27
|
+
:placeholder="$lc('请选择')"
|
|
28
28
|
size="small"
|
|
29
29
|
clearable
|
|
30
30
|
>
|
|
@@ -33,20 +33,20 @@
|
|
|
33
33
|
<span v-if="scope.row.updateType === 0">{{ scope.row.attname }}</span>
|
|
34
34
|
</template>
|
|
35
35
|
</el-table-column>
|
|
36
|
-
<el-table-column label="附件名称" width="200">
|
|
36
|
+
<el-table-column :label="$lc('附件名称')" width="200">
|
|
37
37
|
<template slot-scope="scope">
|
|
38
38
|
<el-input
|
|
39
39
|
v-if="scope.row.updateType != 0"
|
|
40
40
|
v-model="scope.row.memo"
|
|
41
41
|
size="small"
|
|
42
42
|
autocomplete="off"
|
|
43
|
-
placeholder="请输入"
|
|
43
|
+
:placeholder="$lc('请输入')"
|
|
44
44
|
clearable
|
|
45
45
|
/>
|
|
46
46
|
<span v-if="scope.row.updateType === 0">{{ scope.row.memo }}</span>
|
|
47
47
|
</template>
|
|
48
48
|
</el-table-column>
|
|
49
|
-
<el-table-column label="附件上传">
|
|
49
|
+
<el-table-column :label="$lc('附件上传')">
|
|
50
50
|
<template slot-scope="scope">
|
|
51
51
|
<div v-if="scope.row.updateType != 0" class="cantpick">
|
|
52
52
|
<div v-show="!scope.row.attnoadd" class="canttip" @click="cantTip"></div>
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
v-model="scope.row.file.name"
|
|
67
67
|
size="small"
|
|
68
68
|
class="uploadinput"
|
|
69
|
-
placeholder="请选择附件"
|
|
69
|
+
:placeholder="$lc('请选择附件')"
|
|
70
70
|
>
|
|
71
71
|
<i v-show="scope.row.canupload == 1" slot="suffix" class="el-icon-upload2" style="color: #242424"></i>
|
|
72
72
|
<i v-show="scope.row.canupload == 0" slot="suffix" class="el-icon-upload2" style="color: #d8d8d8"></i>
|
|
@@ -76,19 +76,19 @@
|
|
|
76
76
|
<span v-if="scope.row.updateType === 0">{{ scope.row.recordname }}</span>
|
|
77
77
|
</template>
|
|
78
78
|
</el-table-column>
|
|
79
|
-
<el-table-column label="文件大小">
|
|
79
|
+
<el-table-column :label="$lc('文件大小')">
|
|
80
80
|
<template slot-scope="scope">
|
|
81
81
|
<span v-if="scope.row.file != null">{{ scope.row.file.size }}</span>
|
|
82
82
|
<span v-if="scope.row.updateType === 0">{{ scope.row.fileSize }}</span>
|
|
83
83
|
</template>
|
|
84
84
|
</el-table-column>
|
|
85
|
-
<el-table-column label="上传时间" align="left">
|
|
85
|
+
<el-table-column :label="$lc('上传时间')" align="left">
|
|
86
86
|
<template slot-scope="scope">
|
|
87
87
|
<span v-if="scope.row.file != null">{{ uploadDate }}</span>
|
|
88
88
|
<span>{{ format(scope.row.uploadtime, 'yyyy-MM-dd hh:mm:ss') }}</span>
|
|
89
89
|
</template>
|
|
90
90
|
</el-table-column>
|
|
91
|
-
<el-table-column label="上传进度">
|
|
91
|
+
<el-table-column :label="$lc('上传进度')">
|
|
92
92
|
<template slot-scope="scope">
|
|
93
93
|
<div class="loadcol">
|
|
94
94
|
<div class="loadtotal">
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
class="ml10 p0"
|
|
109
109
|
type="text"
|
|
110
110
|
@click="cancelupload(scope.$index)"
|
|
111
|
-
|
|
111
|
+
>{{ $lc('取消') }}</el-button
|
|
112
112
|
>
|
|
113
113
|
</div>
|
|
114
114
|
<div v-show="scope.row.upstatus == 2">
|
|
@@ -117,13 +117,13 @@
|
|
|
117
117
|
<div v-show="scope.row.upstatus == 3">
|
|
118
118
|
<i class="el-icon-error" style="color: #fb5555"></i>
|
|
119
119
|
<el-button v-show="scope.row.upstatus == 3" class="ml10 p0" type="text" @click="reupload(scope.$index)"
|
|
120
|
-
|
|
120
|
+
>{{ $lc('重新上传') }}</el-button
|
|
121
121
|
>
|
|
122
122
|
</div>
|
|
123
123
|
</div>
|
|
124
124
|
</template>
|
|
125
125
|
</el-table-column>
|
|
126
|
-
<el-table-column label="操作" type="index" width="100">
|
|
126
|
+
<el-table-column :label="$lc('操作')" type="index" width="100">
|
|
127
127
|
<template slot-scope="scope">
|
|
128
128
|
<i
|
|
129
129
|
v-show="scope.row.beid && scope.row.updateType != 0"
|
|
@@ -146,6 +146,7 @@
|
|
|
146
146
|
<script>
|
|
147
147
|
import axios from 'axios'
|
|
148
148
|
import Cookies from 'js-cookie'
|
|
149
|
+
import { $lc } from '../../../src/utils/i18n/index.js'
|
|
149
150
|
var CancelToken = axios.CancelToken
|
|
150
151
|
let token = Cookies.get('Admin-Token')
|
|
151
152
|
function randomString(num) {
|
|
@@ -224,6 +225,7 @@ export default {
|
|
|
224
225
|
this.getUploadedFile()
|
|
225
226
|
},
|
|
226
227
|
methods: {
|
|
228
|
+
$lc,
|
|
227
229
|
formatDate(date, fmt) {
|
|
228
230
|
date = new Date(date)
|
|
229
231
|
if (/(y+)/.test(fmt)) {
|
|
@@ -292,9 +294,9 @@ export default {
|
|
|
292
294
|
})
|
|
293
295
|
},
|
|
294
296
|
batchload() {
|
|
295
|
-
this.$confirm('确定下载选中的附件?', {
|
|
296
|
-
confirmButtonText: '确定',
|
|
297
|
-
cancelButtonText: '取消',
|
|
297
|
+
this.$confirm($lc('确定下载选中的附件?'), {
|
|
298
|
+
confirmButtonText: $lc('确定'),
|
|
299
|
+
cancelButtonText: $lc('取消'),
|
|
298
300
|
type: 'warning'
|
|
299
301
|
}).then(() => {
|
|
300
302
|
let multipleSelection = this.multipleSelection
|
|
@@ -306,9 +308,9 @@ export default {
|
|
|
306
308
|
})
|
|
307
309
|
},
|
|
308
310
|
batchdel() {
|
|
309
|
-
this.$confirm('确定删除选中的附件?', {
|
|
310
|
-
confirmButtonText: '确定',
|
|
311
|
-
cancelButtonText: '取消',
|
|
311
|
+
this.$confirm($lc('确定删除选中的附件?'), {
|
|
312
|
+
confirmButtonText: $lc('确定'),
|
|
313
|
+
cancelButtonText: $lc('取消'),
|
|
312
314
|
type: 'warning'
|
|
313
315
|
}).then(() => {
|
|
314
316
|
let files = this.files
|
|
@@ -331,10 +333,10 @@ export default {
|
|
|
331
333
|
.post('/api/neams/eamsbaserecord/delete', idArr)
|
|
332
334
|
.then((res) => {
|
|
333
335
|
if (res.code == '200') {
|
|
334
|
-
this.$message.success('删除成功')
|
|
336
|
+
this.$message.success($lc('删除成功'))
|
|
335
337
|
this.files = files
|
|
336
338
|
} else {
|
|
337
|
-
this.$message.success('删除失败' + res.data.msg)
|
|
339
|
+
this.$message.success($lc('删除失败') + res.data.msg)
|
|
338
340
|
}
|
|
339
341
|
})
|
|
340
342
|
.catch(function (error) {
|
|
@@ -391,19 +393,19 @@ export default {
|
|
|
391
393
|
cantTip() {
|
|
392
394
|
this.$message({
|
|
393
395
|
showClose: true,
|
|
394
|
-
message: '请选择附件类型'
|
|
396
|
+
message: $lc('请选择附件类型')
|
|
395
397
|
})
|
|
396
398
|
},
|
|
397
399
|
cantTip1() {
|
|
398
400
|
this.$message({
|
|
399
401
|
showClose: true,
|
|
400
|
-
message: '请输入附件名称'
|
|
402
|
+
message: $lc('请输入附件名称')
|
|
401
403
|
})
|
|
402
404
|
},
|
|
403
405
|
cantTip2() {
|
|
404
406
|
this.$message({
|
|
405
407
|
showClose: true,
|
|
406
|
-
message: '没有上传完成,不能再次上传'
|
|
408
|
+
message: $lc('没有上传完成,不能再次上传')
|
|
407
409
|
})
|
|
408
410
|
},
|
|
409
411
|
uploadFile(params) {
|
|
@@ -444,7 +446,7 @@ export default {
|
|
|
444
446
|
this.eamsAttachfiles.forEach((item) => {
|
|
445
447
|
if (_file.attnoadd == item.attno) {
|
|
446
448
|
if (item.attSize * 1024 < _file.size) {
|
|
447
|
-
this.$message.error('附件超过设置大小,目前附件限制大小为' + item.attSize + 'M')
|
|
449
|
+
this.$message.error($lc('附件超过设置大小,目前附件限制大小为') + item.attSize + 'M')
|
|
448
450
|
return
|
|
449
451
|
}
|
|
450
452
|
}
|
|
@@ -484,7 +486,7 @@ export default {
|
|
|
484
486
|
this.$message.error(res.data.msg)
|
|
485
487
|
} else {
|
|
486
488
|
_file.upstatus = 2
|
|
487
|
-
this.$message.success('上传成功!')
|
|
489
|
+
this.$message.success($lc('上传成功!'))
|
|
488
490
|
let recordno = res.data.data.replace(',', '')
|
|
489
491
|
// _file.recordno = recordno
|
|
490
492
|
// if (this.recordarr.indexOf(recordno) === -1) {
|
|
@@ -544,7 +546,7 @@ export default {
|
|
|
544
546
|
}
|
|
545
547
|
// resolve(response)
|
|
546
548
|
} else {
|
|
547
|
-
this.$message.error('下载失败数据已删除!')
|
|
549
|
+
this.$message.error($lc('下载失败数据已删除!'))
|
|
548
550
|
}
|
|
549
551
|
})
|
|
550
552
|
.catch((error) => this.$message.error(error))
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<div class="nstc-common-excel-import-tips-box">
|
|
20
20
|
<el-row :gutter="10">
|
|
21
21
|
<el-col style="width: 75px; text-align: right">
|
|
22
|
-
<span class="tips-box-text"
|
|
22
|
+
<span class="tips-box-text">{{ $lc('导入说明:') }}</span>
|
|
23
23
|
</el-col>
|
|
24
24
|
<el-col :span="18">
|
|
25
25
|
<div v-for="(item, index) in tips" :key="index" class="tips-item">
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<slot />
|
|
33
33
|
|
|
34
34
|
<el-form :label-width="labelWidth">
|
|
35
|
-
<el-form-item label="上传">
|
|
35
|
+
<el-form-item :label="$lc('上传')">
|
|
36
36
|
<div class="excel-unload-input" @click="uploadChooseFile">
|
|
37
37
|
<div
|
|
38
38
|
:class="{
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
'placeholder-has-file': placeholderHasFile
|
|
41
41
|
}"
|
|
42
42
|
>
|
|
43
|
-
|
|
43
|
+
{{ placeholderText || $lc('请选择') }}
|
|
44
44
|
</div>
|
|
45
45
|
<img class="excel-unload-input-img" :src="uploadImg" alt="" />
|
|
46
46
|
</div>
|
|
@@ -49,23 +49,23 @@
|
|
|
49
49
|
class="nstc-g6-common-btn-1 nstc-g6-common-btn-size-s"
|
|
50
50
|
@click="handleConfirmImportExcel"
|
|
51
51
|
:disabled="excelData.tableData.length === 0 || confirmDisabledFlag"
|
|
52
|
-
|
|
52
|
+
>{{ $lc('导入') }}</el-button
|
|
53
53
|
>
|
|
54
54
|
<el-button type="text" style="margin-left: 20px" @click="downloadTemplate" :disabled="!templateUrl"
|
|
55
|
-
|
|
55
|
+
>{{ $lc('导入模板下载') }}</el-button
|
|
56
56
|
>
|
|
57
57
|
</el-form-item>
|
|
58
58
|
</el-form>
|
|
59
59
|
|
|
60
60
|
<div v-show="statisticsFlag" class="excel-upload-result-box">
|
|
61
|
-
<div class="excel-upload-result-box-head"
|
|
61
|
+
<div class="excel-upload-result-box-head">{{ $lc('结果统计') }}</div>
|
|
62
62
|
<div class="excel-upload-result-box-content">
|
|
63
|
-
<span
|
|
64
|
-
<span
|
|
63
|
+
<span>{{ $lc('结果统计') }} {{ validateResult.totalNum }} {{ $lc('条记录,') }} </span>
|
|
64
|
+
<span>{{ $lc('其中有效数据记录') }}{{ validateResult.successNum }} {{ $lc('条,') }} </span>
|
|
65
65
|
<span
|
|
66
|
-
|
|
66
|
+
>{{ $lc('其中无效数据记录') }}
|
|
67
67
|
<span class="nstc-import-error-num">{{ validateResult.errorList.length }}</span>
|
|
68
|
-
|
|
68
|
+
{{ $lc('条。') }}</span
|
|
69
69
|
>
|
|
70
70
|
</div>
|
|
71
71
|
</div>
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
></NstcUploadCustomExcel>
|
|
81
81
|
|
|
82
82
|
<div v-show="hasErrorFlag" class="fail-excel-import-box">
|
|
83
|
-
<div class="fail-excel-import-box-title"
|
|
83
|
+
<div class="fail-excel-import-box-title">{{ $lc('无效数据情况统计') }}</div>
|
|
84
84
|
<NstcTable
|
|
85
85
|
:columns="columnsListTemp"
|
|
86
86
|
:data="errorListTemp"
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
></NstcTable>
|
|
90
90
|
</div>
|
|
91
91
|
|
|
92
|
-
<div v-show="hasErrorFlag" class="end-tips"
|
|
92
|
+
<div v-show="hasErrorFlag" class="end-tips">{{ $lc('上述数据输入有误,请修改导入文件中相关信息!') }}</div>
|
|
93
93
|
</div>
|
|
94
94
|
</NstcDialog>
|
|
95
95
|
</div>
|
|
@@ -100,6 +100,7 @@ import NstcUploadCustomExcel from '../NstcUploadCustomExcel/NstcUploadCustomExce
|
|
|
100
100
|
import NstcDialog from '../NstcDialog/NstcDialog'
|
|
101
101
|
import NstcTable from '../NstcTable/NstcTable'
|
|
102
102
|
import uploadImg from './img/upload@2x.png'
|
|
103
|
+
import { $lc } from '../../../src/utils/i18n/index.js'
|
|
103
104
|
export default {
|
|
104
105
|
name: 'NstcExcelCustomImport',
|
|
105
106
|
|
|
@@ -135,7 +136,7 @@ export default {
|
|
|
135
136
|
title: {
|
|
136
137
|
type: String,
|
|
137
138
|
default: function () {
|
|
138
|
-
return '导入'
|
|
139
|
+
return $lc('导入')
|
|
139
140
|
}
|
|
140
141
|
},
|
|
141
142
|
//是否重置
|
|
@@ -215,7 +216,7 @@ export default {
|
|
|
215
216
|
fileName: '',
|
|
216
217
|
drawerFlag: false,
|
|
217
218
|
dialogVisible: false,
|
|
218
|
-
tipsText: '导入说明',
|
|
219
|
+
tipsText: $lc('导入说明'),
|
|
219
220
|
totalNum: 0,
|
|
220
221
|
successNum: 0,
|
|
221
222
|
failNum: 0,
|
|
@@ -326,6 +327,7 @@ export default {
|
|
|
326
327
|
console.log('批量导入的国际化', '上述数据输入有误,请修改导入文件中相关信息!')
|
|
327
328
|
},
|
|
328
329
|
methods: {
|
|
330
|
+
$lc,
|
|
329
331
|
beforeUpload(file) {
|
|
330
332
|
this.percentage = 0
|
|
331
333
|
this.progressStatus = ''
|
|
@@ -386,7 +388,7 @@ export default {
|
|
|
386
388
|
this.reset = false
|
|
387
389
|
this.statisticsFlag = false
|
|
388
390
|
this.placeholderHasFile = false
|
|
389
|
-
this.placeholderText = '请选择'
|
|
391
|
+
this.placeholderText = $lc('请选择')
|
|
390
392
|
console.log('执行了弹框关闭事件')
|
|
391
393
|
![`delete`].includes(flag) && (this._value = false)
|
|
392
394
|
this.$nextTick(() => {
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
<script>
|
|
8
8
|
import * as Export2Excel from '../../utils/vendor/Export2Excel'
|
|
9
|
+
import { $lc } from '../../../src/utils/i18n/index.js'
|
|
9
10
|
export default {
|
|
10
11
|
name: 'NstcExcelExport',
|
|
11
12
|
props: {
|
|
@@ -16,7 +17,7 @@ export default {
|
|
|
16
17
|
childKey: '', //指定childKey时,会更具childKey递归取数据
|
|
17
18
|
head: [], //表头数据,未指定childKey时,必须传字符串数组,指定childKey时,表头为对象数组,{key:'key',value:'value'},方便表格行取对应数据
|
|
18
19
|
data: [], //行数据,未指定childKey时,必须传与表头对应的字符串数组,指定childKey时,传与表头对应的对象数组
|
|
19
|
-
fileName: '列表'
|
|
20
|
+
fileName: $lc('列表')
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
},
|
|
@@ -84,7 +85,7 @@ export default {
|
|
|
84
85
|
if (this.data.head.length < 1 || this.data.data.length < 1) {
|
|
85
86
|
this.$message({
|
|
86
87
|
type: 'warning',
|
|
87
|
-
message: '表格数据不足!'
|
|
88
|
+
message: $lc('表格数据不足!')
|
|
88
89
|
})
|
|
89
90
|
return
|
|
90
91
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<div class="nstc-common-excel-import-tips-box">
|
|
21
21
|
<el-row :gutter="10">
|
|
22
22
|
<el-col style="width: 75px; text-align: right">
|
|
23
|
-
<span class="tips-box-text"
|
|
23
|
+
<span class="tips-box-text">{{ $lc('导入说明:') }}</span>
|
|
24
24
|
</el-col>
|
|
25
25
|
<el-col :span="18">
|
|
26
26
|
<div v-for="(item, index) in tips" :key="index" class="tips-item">
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<slot></slot>
|
|
34
34
|
|
|
35
35
|
<el-form :label-width="labelWidth">
|
|
36
|
-
<el-form-item label="上传">
|
|
36
|
+
<el-form-item :label="$lc('上传')">
|
|
37
37
|
<div class="excel-unload-input" @click="uploadChooseFile">
|
|
38
38
|
<div
|
|
39
39
|
:class="{
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
'placeholder-has-file': placeholderHasFile
|
|
42
42
|
}"
|
|
43
43
|
>
|
|
44
|
-
|
|
44
|
+
{{ placeholderText || $lc('请选择') }}
|
|
45
45
|
</div>
|
|
46
46
|
<img class="excel-unload-input-img" :src="uploadImg" alt="" />
|
|
47
47
|
</div>
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
class="nstc-g6-common-btn-1 nstc-g6-common-btn-size-s"
|
|
51
51
|
:disabled="excelData.tableData.length === 0 || confirmDisabledFlag"
|
|
52
52
|
@click="handleConfirmImportExcel"
|
|
53
|
-
|
|
53
|
+
>{{ $lc('导入') }}</el-button
|
|
54
54
|
>
|
|
55
55
|
<el-button
|
|
56
56
|
v-if="isNeedTemplate"
|
|
@@ -58,20 +58,20 @@
|
|
|
58
58
|
style="margin-left: 20px"
|
|
59
59
|
:disabled="!templateUrl"
|
|
60
60
|
@click="downloadTemplate"
|
|
61
|
-
|
|
61
|
+
>{{ $lc('导入模板下载') }}</el-button
|
|
62
62
|
>
|
|
63
63
|
</el-form-item>
|
|
64
64
|
</el-form>
|
|
65
65
|
|
|
66
66
|
<div class="excel-upload-result-box">
|
|
67
|
-
<div class="excel-upload-result-box-head"
|
|
67
|
+
<div class="excel-upload-result-box-head">{{ $lc('结果统计') }}</div>
|
|
68
68
|
<div class="excel-upload-result-box-content">
|
|
69
|
-
<span
|
|
70
|
-
<span
|
|
69
|
+
<span>{{ $lc('结果统计') }} {{ validateResult.totalNum }} {{ $lc('条记录,') }} </span>
|
|
70
|
+
<span>{{ $lc('其中有效数据记录') }}{{ validateResult.successNum }} {{ $lc('条,') }} </span>
|
|
71
71
|
<span
|
|
72
|
-
|
|
72
|
+
>{{ $lc('其中无效数据记录') }}
|
|
73
73
|
<span class="nstc-import-error-num">{{ validateResult.errorList.length }}</span>
|
|
74
|
-
|
|
74
|
+
{{ $lc('条。') }}</span
|
|
75
75
|
>
|
|
76
76
|
</div>
|
|
77
77
|
</div>
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
/>
|
|
86
86
|
|
|
87
87
|
<div v-show="hasErrorFlag" class="fail-excel-import-box">
|
|
88
|
-
<div class="fail-excel-import-box-title"
|
|
88
|
+
<div class="fail-excel-import-box-title">{{ $lc('无效数据情况统计') }}</div>
|
|
89
89
|
<el-table :data="errorListTemp" :height="tableHeight" style="width: 100%; height: 500px">
|
|
90
90
|
<el-table-column
|
|
91
91
|
v-for="column in columnsListTemp"
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
</el-table>
|
|
103
103
|
</div>
|
|
104
104
|
|
|
105
|
-
<div class="end-tips"
|
|
105
|
+
<div class="end-tips">{{ $lc('上述数据输入有误,请修改导入文件中相关信息!') }}</div>
|
|
106
106
|
</div>
|
|
107
107
|
<slot name="footer"></slot>
|
|
108
108
|
</NstcDialog>
|
|
@@ -114,6 +114,7 @@ import NstcUploadExcel from '../NstcUploadExcel/NstcUploadExcel'
|
|
|
114
114
|
import NstcDialog from '../NstcDialog/NstcDialog'
|
|
115
115
|
import uploadImg from './img/upload@2x.png'
|
|
116
116
|
import axios from '../../utils/axios'
|
|
117
|
+
import { $lc } from '../../../src/utils/i18n/index.js'
|
|
117
118
|
export default {
|
|
118
119
|
name: 'NstcExcelImport',
|
|
119
120
|
components: {
|
|
@@ -146,7 +147,7 @@ export default {
|
|
|
146
147
|
title: {
|
|
147
148
|
type: String,
|
|
148
149
|
default: function () {
|
|
149
|
-
return '导入'
|
|
150
|
+
return $lc('导入')
|
|
150
151
|
}
|
|
151
152
|
},
|
|
152
153
|
reset: {
|
|
@@ -183,7 +184,7 @@ export default {
|
|
|
183
184
|
default() {
|
|
184
185
|
return {
|
|
185
186
|
isFrontDown: true,
|
|
186
|
-
fileName: '
|
|
187
|
+
fileName: `${$lc('下载')}.xlsx`
|
|
187
188
|
}
|
|
188
189
|
}
|
|
189
190
|
},
|
|
@@ -221,7 +222,7 @@ export default {
|
|
|
221
222
|
fileName: '',
|
|
222
223
|
drawerFlag: false,
|
|
223
224
|
dialogVisible: false,
|
|
224
|
-
tipsText: '导入说明',
|
|
225
|
+
tipsText: $lc('导入说明'),
|
|
225
226
|
totalNum: 0,
|
|
226
227
|
successNum: 0,
|
|
227
228
|
failNum: 0,
|
|
@@ -340,6 +341,7 @@ export default {
|
|
|
340
341
|
},
|
|
341
342
|
created() {},
|
|
342
343
|
methods: {
|
|
344
|
+
$lc,
|
|
343
345
|
beforeUpload(file) {
|
|
344
346
|
this.percentage = 0
|
|
345
347
|
this.progressStatus = ''
|
|
@@ -419,7 +421,7 @@ export default {
|
|
|
419
421
|
this.reset = false
|
|
420
422
|
this.statisticsFlag = false
|
|
421
423
|
this.placeholderHasFile = false
|
|
422
|
-
this.placeholderText = '请选择'
|
|
424
|
+
this.placeholderText = $lc('请选择')
|
|
423
425
|
console.log('执行了弹框关闭事件')
|
|
424
426
|
![`delete`].includes(flag) && (this._value = false)
|
|
425
427
|
this.$nextTick(() => {
|