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.
Files changed (97) hide show
  1. package/package.json +1 -1
  2. package/src/components/AIButton/index.vue +6 -5
  3. package/src/components/ApprovalButtons/index.vue +3 -3
  4. package/src/components/ApprovalButtons/indexApp.vue +10 -29
  5. package/src/components/ApprovalButtons/selectSpr.vue +1 -1
  6. package/src/components/ApprovalButtons/showAppOpi.vue +5 -5
  7. package/src/components/ApprovalButtons/showOtherAttr.vue +2 -2
  8. package/src/components/ApprovalButtons/showOtherAttrNew.vue +8 -6
  9. package/src/components/ApprovalCard/index.vue +6 -6
  10. package/src/components/ApprovalCard/indexApp.vue +2 -2
  11. package/src/components/ApprovalRecord/approvalImg.vue +1 -1
  12. package/src/components/ApprovalRecord/approvalImgPro/child.vue +3 -3
  13. package/src/components/ApprovalRecord/approvalImgPro/index.vue +3 -3
  14. package/src/components/AttachmentPass/index.vue +7 -7
  15. package/src/components/DateChoose/index.vue +41 -36
  16. package/src/components/DatePicker/index.vue +2 -2
  17. package/src/components/DateSelect/busiDate.vue +5 -4
  18. package/src/components/DateSelect/index.vue +9 -8
  19. package/src/components/DateSelect/quarterDatePicker.vue +12 -11
  20. package/src/components/Diff/index.vue +2 -1
  21. package/src/components/DynamicField/DynamicField.vue +1 -1
  22. package/src/components/DynamicField/DynamicFieldMixin.js +3 -2
  23. package/src/components/DynamicField/DynamicFieldOptions.vue +80 -58
  24. package/src/components/DynamicField/DynamicTable.vue +4 -4
  25. package/src/components/DynamicField/contentPop.vue +8 -6
  26. package/src/components/DynamicField/tableList.vue +7 -5
  27. package/src/components/DynamicField/tableView.vue +20 -6
  28. package/src/components/ElectronicArchive/index.vue +18 -16
  29. package/src/components/EventBubble/demo/c.vue +2 -1
  30. package/src/components/FileExportAsync/index.vue +11 -10
  31. package/src/components/FileImport/index.vue +2 -1
  32. package/src/components/FileUploadTable/FileUploadTableV3.vue +10 -11
  33. package/src/components/FileUploadTable/aiCheckDialog.vue +13 -11
  34. package/src/components/FileUploadTable/index.vue +15 -14
  35. package/src/components/Filters/indexO.vue +3 -2
  36. package/src/components/HandlingAdvice/index.vue +4 -3
  37. package/src/components/InputNumber/index.vue +2 -1
  38. package/src/components/Layout/HeaderWrap/changePwd.vue +8 -7
  39. package/src/components/Layout/HeaderWrap/index.vue +11 -10
  40. package/src/components/Layout/HeaderWrap/indexN.vue +21 -20
  41. package/src/components/Layout/HeaderWrap/noticePop.vue +8 -7
  42. package/src/components/Layout/HeaderWrap/switchUser.vue +1 -1
  43. package/src/components/Layout/index.vue +2 -1
  44. package/src/components/Layout/indexN.vue +2 -1
  45. package/src/components/LoginSetting/index.vue +14 -13
  46. package/src/components/LoginSetting/indexN.vue +11 -10
  47. package/src/components/LoginSetting/setItem.vue +22 -21
  48. package/src/components/LoginTemporary/form.vue +17 -16
  49. package/src/components/LoginTemporary/index.vue +5 -4
  50. package/src/components/LoginTemporary/indexN.vue +20 -19
  51. package/src/components/LoginTemporary/retrievePw.vue +11 -10
  52. package/src/components/PageHeader/index.vue +2 -1
  53. package/src/components/SelectDatePickerPro/busiDate.vue +6 -4
  54. package/src/components/SelectDatePickerPro/halfYearPicker.vue +3 -2
  55. package/src/components/SelectDatePickerPro/index.vue +13 -11
  56. package/src/components/SelectDatePickerPro/quarterDatePicker.vue +6 -4
  57. package/src/components/SelectTree/pro.vue +1 -1
  58. package/src/components/ShowColumn/index.vue +13 -12
  59. package/src/components/Stamp/index.vue +8 -7
  60. package/src/components/Statis/index.vue +9 -8
  61. package/src/components/Statis/statisItem.vue +4 -3
  62. package/src/components/Table/indexO.vue +2 -1
  63. package/src/components/TablePro/filterContent.vue +2 -2
  64. package/src/components/TablePro/filterContent_tree.vue +6 -5
  65. package/src/components/TablePro/index.js +2 -1
  66. package/src/components/TablePro/index.vue +2 -1
  67. package/src/components/TableTransfer/index.vue +2 -1
  68. package/src/components/Upload/index.vue +9 -8
  69. package/src/components/Upload/uploadMsg.vue +2 -1
  70. package/src/components/WornPagination/index.vue +3 -1
  71. package/src/components/operatingStatus/index.vue +9 -7
  72. package/src/i18n.json +5800 -714
  73. package/src/index.js +2 -2
  74. package/src/plugins/SetMenuTree/index.vue +1 -1
  75. package/src/plugins/SetMenuTree/setmenutree.vue +36 -34
  76. package/src/plugins/Sign/CaMap.js +12 -11
  77. package/src/plugins/Sign/Itrus/index.js +58 -56
  78. package/src/plugins/Sign/Itrus/sign_3720.js +53 -51
  79. package/src/plugins/Sign/NetSM3/index.js +12 -10
  80. package/src/plugins/Sign/NetV3/index.js +20 -18
  81. package/src/plugins/Sign/SkfSign/index.js +12 -10
  82. package/src/plugins/Sign/bjca/XTXSAB.js +17 -16
  83. package/src/plugins/Sign/bjca/index.js +19 -17
  84. package/src/plugins/Sign/cfca/index.js +11 -9
  85. package/src/plugins/Sign/codeMap.js +151 -150
  86. package/src/plugins/Sign/hnca/index.js +51 -49
  87. package/src/plugins/Sign/index.js +6 -4
  88. package/src/plugins/Sign/kySign/index.js +11 -9
  89. package/src/plugins/Sign/netca/index.js +9 -7
  90. package/src/plugins/Sign/netca/netca.base.1.1.0.js +29 -28
  91. package/src/plugins/Sign/sdca/index.js +17 -15
  92. package/src/plugins/Sign/sign.js +10 -8
  93. package/src/plugins/Sign/signV3/sign.js +14 -12
  94. package/src/plugins/Sign/sign_back.js +11 -9
  95. package/src/utils/amountInWords.js +8 -6
  96. package/src/utils/axios.js +9 -8
  97. package/src/utils/relaNo.js +3 -1
@@ -44,6 +44,7 @@
44
44
  <script>
45
45
  import { $lc } from '../../utils/i18n/index'
46
46
  import Pagination from '../Pagination/index.vue'
47
+
47
48
  const columnRender = {
48
49
  props: {
49
50
  cRender: {
@@ -128,7 +129,7 @@ export default {
128
129
  },
129
130
  created() {
130
131
  if (this.column) {
131
- console.warn('调整列顺序,请使用ShowColumn组件')
132
+ console.warn($lc("调整列顺序,请使用ShowColumn组件"))
132
133
  }
133
134
  }
134
135
  }
@@ -50,12 +50,12 @@
50
50
  </div>
51
51
  </template>
52
52
  <template v-else>
53
- <div class="my-fc-search-empty">无匹配项</div>
53
+ <div class="my-fc-search-empty">{{ $lc('无匹配项') }}</div>
54
54
  </template>
55
55
  </div>
56
56
  <div v-else class="my-fc-search-content">
57
57
  <div class="my-fc-search-top">
58
- <el-input v-model="searchVal" placeholder="输入关键字进行过滤" />
58
+ <el-input v-model="searchVal" :placeholder="$lc('输入关键字进行过滤')" />
59
59
  </div>
60
60
  <ul class="el-table-filter__list">
61
61
  <li
@@ -2,7 +2,7 @@
2
2
  <div class="my-filter-content">
3
3
  <div class="my-fc-search">
4
4
  <div class="my-fc-search-top">
5
- <el-input v-model="filterText" placeholder="输入关键字进行过滤" />
5
+ <el-input v-model="filterText" :placeholder="$lc('输入关键字进行过滤')" />
6
6
  </div>
7
7
  <div class="my-fc-search-content">
8
8
  <template v-if="data.length">
@@ -19,18 +19,19 @@
19
19
  />
20
20
  </template>
21
21
  <template v-else>
22
- <div class="my-fc-search-empty">无匹配项</div>
22
+ <div class="my-fc-search-empty">{{ $lc('无匹配项') }}</div>
23
23
  </template>
24
24
  </div>
25
25
  </div>
26
26
  <div class="flex-box flex-c m-t-s" style="width: 100%">
27
- <el-button type="primary" size="mini" @click="confirmFilterEvent">确认</el-button>
28
- <el-button plan size="mini" @click="resetFilterEvent">重置</el-button>
27
+ <el-button type="primary" size="mini" @click="confirmFilterEvent">{{ $lc('确认') }}</el-button>
28
+ <el-button plan size="mini" @click="resetFilterEvent">{{ $lc('重置') }}</el-button>
29
29
  </div>
30
30
  </div>
31
31
  </template>
32
32
 
33
33
  <script>
34
+ import { $lc } from '../../utils/i18n/index.js'
34
35
  export default {
35
36
  name: 'FilterContent',
36
37
  props: {
@@ -85,7 +86,7 @@ export default {
85
86
  this.data = [
86
87
  {
87
88
  value: 0,
88
- label: '全部',
89
+ label: $lc("全部"),
89
90
  children: column.filters
90
91
  }
91
92
  ]
@@ -7,6 +7,7 @@ import { $lc } from '../../utils/i18n/index.js'
7
7
  import zhCN from 'vxe-table/lib/locale/lang/zh-CN'
8
8
  import { getColumnField, getRowValue, getVxeCore, setVxeVersion } from './compat.js'
9
9
 
10
+
10
11
  function getInstalledVxeVersion(vxe) {
11
12
  const core = getVxeCore(vxe)
12
13
  return (
@@ -98,7 +99,7 @@ if (vxeFormats && typeof vxeFormats.mixin === 'function') {
98
99
  },
99
100
  // 格式化性别
100
101
  formatSex({ cellValue }) {
101
- return cellValue ? (cellValue === '1' ? '' : '') : '--'
102
+ return cellValue ? (cellValue === '1' ? $lc("") : $lc("")) : '--'
102
103
  },
103
104
  // 格式化下拉选项
104
105
  formatSelect({ cellValue }, list) {
@@ -143,6 +143,7 @@ import tableSetSize from '../TableSetSize/index.vue'
143
143
  import { $lc } from '../../utils/i18n/index.js'
144
144
  import { getColumnField, getEventField, isVxe320OrNewer, normalizeArray } from './compat.js'
145
145
 
146
+
146
147
  /** 将 Element 表格风格的 show-overflow-tooltip 转为 vxe-column 的 show-overflow */
147
148
  function hasOverflowTooltipKey(item) {
148
149
  return (
@@ -703,7 +704,7 @@ export default {
703
704
  // 计算所有列的基础宽度总和
704
705
  let totalBaseWidth = 0
705
706
  columns.forEach((column) => {
706
- if (column.static && column.label === $lc('操作') && !column.width && !column.minWidth) {
707
+ if (column.static && column.label === $lc("操作") && !column.width && !column.minWidth) {
707
708
  column.width = 180
708
709
  }
709
710
  if (column.type === 'checkbox') {
@@ -25,6 +25,7 @@
25
25
  </template>
26
26
 
27
27
  <script>
28
+ import { $lc } from '../../utils/i18n/index.js'
28
29
  export default {
29
30
  name: 'TableTransfer',
30
31
  props: {
@@ -34,7 +35,7 @@ export default {
34
35
  },
35
36
  header: {
36
37
  type: String,
37
- default: '已选择'
38
+ default: $lc("已选择")
38
39
  },
39
40
  selectList: {
40
41
  type: Array,
@@ -41,7 +41,7 @@
41
41
  :percent-msg="percentMsg"
42
42
  :percent="percent"
43
43
  :width="width"
44
- title="文件导入"
44
+ :title="$lc('文件导入')"
45
45
  :show-error-export="showErrorExport"
46
46
  :pagination="pagination"
47
47
  :footer-btn="footer"
@@ -59,6 +59,7 @@ import auth from '../../utils/auth'
59
59
  import axios from '../../utils/axios'
60
60
  import { $lc } from '../../utils/i18n/index'
61
61
  import uploadMsg from './uploadMsg.vue'
62
+
62
63
  export default {
63
64
  name: 'Upload',
64
65
  filters: {
@@ -87,7 +88,7 @@ export default {
87
88
  },
88
89
  placeholder: {
89
90
  type: String,
90
- default: $lc('请选择')
91
+ default: $lc("请选择")
91
92
  },
92
93
  width: {
93
94
  type: String,
@@ -218,7 +219,7 @@ export default {
218
219
  this.fileNameC = ''
219
220
  this.fileUrlC = ''
220
221
  this.fileList.pop()
221
- console.log('删除上传')
222
+ console.log($lc("删除上传"))
222
223
  }
223
224
  } else {
224
225
  const before = this.beforeRemove(this.fileList)
@@ -245,7 +246,7 @@ export default {
245
246
  sizeNum = parseFloat(size)
246
247
  }
247
248
  if (file.size > sizeNum) {
248
- this.$message.error($lc('文件大小不能超过 ') + size + '!')
249
+ this.$message.error($lc("文件大小不能超过") + size + '!')
249
250
  return false
250
251
  }
251
252
  }
@@ -258,7 +259,7 @@ export default {
258
259
  if ((ftB && accept.includes(ftB.toLowerCase())) || accept.includes(ftA.toLowerCase())) {
259
260
  // console.log('文件格式' + ftB + '/' + ftA)
260
261
  } else {
261
- this.$message.error(ftA + $lc('格式文件,暂不支持上传!'))
262
+ this.$message.error(ftA + $lc("格式文件,暂不支持上传!"))
262
263
  return false
263
264
  }
264
265
  }
@@ -343,7 +344,7 @@ export default {
343
344
  }
344
345
  }
345
346
 
346
- this.percentMsg = response.msg || $lc('上传成功!')
347
+ this.percentMsg = response.msg || $lc("上传成功!")
347
348
  } else if (this.msgType === 'message') {
348
349
  if (!this.onSuccess) {
349
350
  this.$message({
@@ -367,12 +368,12 @@ export default {
367
368
 
368
369
  if (this.msgType === 'dialog') {
369
370
  this.percentType = 'exception'
370
- this.percentMsg = err?.msg || $lc('上传失败!')
371
+ this.percentMsg = err?.msg || $lc("上传失败!")
371
372
  } else if (this.msgType === 'message') {
372
373
  if (!this.onError) {
373
374
  this.$message({
374
375
  type: 'error',
375
- message: err?.msg || $lc('上传失败'),
376
+ message: err?.msg || $lc("上传失败"),
376
377
  showClose: true
377
378
  })
378
379
  }
@@ -118,13 +118,14 @@ import XEUtils from 'xe-utils'
118
118
  import { $lc } from '../../utils/i18n/index'
119
119
  import Pagination from '../Pagination/index.vue'
120
120
  import { colfFRow } from '../Table/filters.js'
121
+
121
122
  export default {
122
123
  name: 'UploadMsg',
123
124
  components: { Pagination },
124
125
  props: {
125
126
  title: {
126
127
  type: String,
127
- default: $lc('提示')
128
+ default: $lc("提示")
128
129
  },
129
130
  footerBtn: {
130
131
  type: Object,
@@ -5,7 +5,9 @@
5
5
  </template>
6
6
 
7
7
  <script>
8
+ import { $lc } from '../../utils/i18n/index.js'
8
9
  import Pagination from '../Pagination/index.vue'
10
+
9
11
  export default {
10
12
  name: 'WornPagination',
11
13
  components: {
@@ -53,7 +55,7 @@ export default {
53
55
  }
54
56
  },
55
57
  mounted() {
56
- console.warn('WornPagination组件已废弃,未来版本将剔除,请使用Pagination组件')
58
+ console.warn($lc("WornPagination组件已废弃,未来版本将剔除,请使用Pagination组件"))
57
59
  },
58
60
  methods: {
59
61
  pageChange(v) {
@@ -10,17 +10,19 @@
10
10
  </template>
11
11
 
12
12
  <script>
13
+ import { $lc } from '../../utils/i18n/index.js'
13
14
  import XEUtils from 'xe-utils'
14
15
  import getJsonc from '../../assets/getJsonc.js'
15
16
  import axios from '../../utils/axios'
17
+
16
18
  let enumData = {
17
- D001: '营业阶段',
18
- D002: '日终阶段',
19
- D003: '业务截止',
20
- D004: '营业结束',
21
- D005: '暂停营业',
22
- D006: '反关机',
23
- D007: '系统有异常'
19
+ D001: $lc("营业阶段"),
20
+ D002: $lc("日终阶段"),
21
+ D003: $lc("业务截止"),
22
+ D004: $lc("营业结束"),
23
+ D005: $lc("暂停营业"),
24
+ D006: $lc("反关机"),
25
+ D007: $lc("系统有异常")
24
26
  }
25
27
  export default {
26
28
  name: 'OperatingStatus',