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.
Files changed (118) hide show
  1. package/nstc-g6/components/Calendar/src/main.vue +1 -1
  2. package/nstc-g6/components/Form/AutocompleteCustom/index.vue +3 -1
  3. package/nstc-g6/components/Form/BusinessSpecific/InputWithUnit.vue +5 -4
  4. package/nstc-g6/components/Form/BusinessSpecific/SelectTreeDialog.vue +18 -15
  5. package/nstc-g6/components/Form/Component.vue +1 -1
  6. package/nstc-g6/components/Form/ComponentSecond.vue +1 -1
  7. package/nstc-g6/components/Form/DatepickerCustom/index.vue +3 -3
  8. package/nstc-g6/components/Form/InputAndDialog/src/main.vue +5 -4
  9. package/nstc-g6/components/Form/InputCustom/index.vue +3 -2
  10. package/nstc-g6/components/Form/IntervalinputCustom/index.vue +2 -1
  11. package/nstc-g6/components/Form/ItemSecond.vue +2 -2
  12. package/nstc-g6/components/Form/SelectAccount/src/main.vue +9 -8
  13. package/nstc-g6/components/Form/SelectAndDialog/src/main.vue +5 -4
  14. package/nstc-g6/components/Form/SelectCashFlow/src/main.vue +7 -6
  15. package/nstc-g6/components/Form/SelectCustom/index.vue +3 -2
  16. package/nstc-g6/components/Form/SelectSubject/src/main.vue +8 -7
  17. package/nstc-g6/components/Form/SelectindialogCustom/index.vue +3 -2
  18. package/nstc-g6/components/Form/UploadCustom/index.vue +4 -3
  19. package/nstc-g6/components/Form/configs.js +2 -1
  20. package/nstc-g6/components/Form/configsSecond.js +2 -1
  21. package/nstc-g6/components/Form/payeePersonSelect/src/main.vue +15 -18
  22. package/nstc-g6/components/FormGroup/src/main.vue +9 -6
  23. package/nstc-g6/components/FormGroup/src/validate.js +3 -1
  24. package/nstc-g6/components/InputTag/InputTag.vue +1 -1
  25. package/nstc-g6/components/NstcConfirm/NstcConfirm.vue +5 -4
  26. package/nstc-g6/components/NstcDialog/NstcDialog.vue +5 -2
  27. package/nstc-g6/components/NstcDialogTable/NstcDialogTable.vue +5 -3
  28. package/nstc-g6/components/NstcDropdownTree/NstcDropdownTree.vue +5 -4
  29. package/nstc-g6/components/NstcElectronicFile/NstcElectronicFile.vue +32 -30
  30. package/nstc-g6/components/NstcExcelCustomImport/NstcExcelCustomImport.vue +17 -15
  31. package/nstc-g6/components/NstcExcelExport/NstcExcelExport.vue +3 -2
  32. package/nstc-g6/components/NstcExcelImport/NstcExcelImport.vue +18 -16
  33. package/nstc-g6/components/NstcExcelImportN/NstcExcelImportN.vue +17 -15
  34. package/nstc-g6/components/NstcFileUpload/NstcFileUpload.vue +39 -37
  35. package/nstc-g6/components/NstcForm/AutocompleteCustom/index.vue +3 -1
  36. package/nstc-g6/components/NstcForm/BusinessSpecific/InputWithUnit.vue +5 -4
  37. package/nstc-g6/components/NstcForm/BusinessSpecific/SelectTreeDialog.vue +16 -15
  38. package/nstc-g6/components/NstcForm/Component.vue +1 -1
  39. package/nstc-g6/components/NstcForm/ComponentSecond.vue +1 -1
  40. package/nstc-g6/components/NstcForm/DatepickerCustom/index.vue +3 -3
  41. package/nstc-g6/components/NstcForm/InputAndDialog/NstcInputAndDialog.vue +5 -4
  42. package/nstc-g6/components/NstcForm/InputCustom/index.vue +3 -2
  43. package/nstc-g6/components/NstcForm/IntervalInputCustom/index.vue +2 -1
  44. package/nstc-g6/components/NstcForm/ItemSecond.vue +2 -2
  45. package/nstc-g6/components/NstcForm/SelectAccount/NstcSelectAccount.vue +11 -10
  46. package/nstc-g6/components/NstcForm/SelectAndDialog/NstcSelectAndDialog.vue +5 -4
  47. package/nstc-g6/components/NstcForm/SelectCashFlow/NstcSelectCashFlow.vue +9 -8
  48. package/nstc-g6/components/NstcForm/SelectCustom/index.vue +3 -2
  49. package/nstc-g6/components/NstcForm/SelectSubject/NstcSelectSubject.vue +10 -9
  50. package/nstc-g6/components/NstcForm/SelectindialogCustom/index.vue +4 -3
  51. package/nstc-g6/components/NstcForm/UploadCustom/index.vue +4 -3
  52. package/nstc-g6/components/NstcForm/configs.js +2 -1
  53. package/nstc-g6/components/NstcForm/configsSecond.js +2 -1
  54. package/nstc-g6/components/NstcForm/payeePersonSelect/NstcPayeePerson.vue +15 -14
  55. package/nstc-g6/components/NstcPagination/NstcPagination.vue +9 -7
  56. package/nstc-g6/components/NstcScreenFull/NstcScreenFull.vue +3 -1
  57. package/nstc-g6/components/NstcSelectTree/NstcSelectTree.vue +6 -5
  58. package/nstc-g6/components/NstcSelectTreeList/NstcSelectTreeList.vue +4 -3
  59. package/nstc-g6/components/NstcTable/NstcTable.vue +3 -2
  60. package/nstc-g6/components/NstcTableSet/NstcTableSet.vue +16 -14
  61. package/nstc-g6/components/NstcThemePicker/NstcThemePicker.vue +3 -1
  62. package/nstc-g6/components/NstcWorkBench/NstcWorkBench.vue +36 -32
  63. package/nstc-g6/components/Search/NstcSearch.vue +8 -6
  64. package/nstc-g6/components/approvelTwo/main.vue +6 -5
  65. package/nstc-g6/components/approvelTwo/progress.vue +2 -2
  66. package/nstc-g6/index.js +3 -1
  67. package/nstc-g6/utils/dateAndValidator.js +8 -6
  68. package/nstc-g6/utils/vendor/Export2Zip.js +2 -1
  69. package/package.json +1 -1
  70. package/src/components/ApprovalButtons/index.vue +1 -1
  71. package/src/components/ApprovalButtons/indexApp.vue +1 -1
  72. package/src/components/ApprovalButtons/selectSpr.vue +3 -3
  73. package/src/components/ApprovalButtons/showOtherAttr.vue +1 -1
  74. package/src/components/ApprovalRecord/approvalImg.vue +2 -1
  75. package/src/components/AttachmentPass/index.vue +1 -1
  76. package/src/components/DateChoose/index.vue +3 -3
  77. package/src/components/DateSelect/index.vue +1 -1
  78. package/src/components/DateSelect/quarterDatePicker.vue +5 -5
  79. package/src/components/DynamicField/DynamicFieldOptions.vue +4 -4
  80. package/src/components/DynamicField/tableList.vue +1 -1
  81. package/src/components/ElectronicArchive/index.vue +1 -1
  82. package/src/components/FileUploadTable/index.vue +10 -6
  83. package/src/components/LoginSetting/index.vue +19 -9
  84. package/src/components/LoginTemporary/form.vue +2 -4
  85. package/src/components/LoginTemporary/index.vue +1 -1
  86. package/src/components/LoginTemporary/retrievePw.vue +8 -8
  87. package/src/components/Pivot/ChartView.vue +1 -1
  88. package/src/components/Pivot/TableView.vue +1 -1
  89. package/src/components/Pivot/index.vue +11 -7
  90. package/src/components/ProFilterView/index.vue +4 -3
  91. package/src/components/SelectDatePickerPro/halfYearPicker.vue +4 -4
  92. package/src/components/SelectDatePickerPro/index.vue +1 -1
  93. package/src/components/SelectDatePickerPro/quarterDatePicker.vue +5 -5
  94. package/src/components/TableSetSize/index.vue +2 -2
  95. package/src/components/Upload/index.vue +1 -1
  96. package/src/components/operatingStatus/index.vue +1 -1
  97. package/src/components/v3/UploadList/index.vue +1 -1
  98. package/src/i18n.json +802 -4
  99. package/src/plugins/Print/print-js/src/js/init.js +2 -1
  100. package/src/plugins/SetMenuTree/setmenutree.vue +3 -3
  101. package/src/plugins/SetMenuTree/utils.js +2 -1
  102. package/src/plugins/Sign/Itrus/index.js +12 -9
  103. package/src/plugins/Sign/Itrus/sign_3720.js +13 -8
  104. package/src/plugins/Sign/NetSM3/index.js +14 -11
  105. package/src/plugins/Sign/NetV3/index.js +17 -16
  106. package/src/plugins/Sign/SkfSign/index.js +14 -11
  107. package/src/plugins/Sign/bjca/index.js +21 -18
  108. package/src/plugins/Sign/cfca/index.js +10 -9
  109. package/src/plugins/Sign/hnca/index.js +11 -11
  110. package/src/plugins/Sign/index.js +2 -1
  111. package/src/plugins/Sign/kySign/index.js +13 -10
  112. package/src/plugins/Sign/netca/index.js +8 -7
  113. package/src/plugins/Sign/sdca/index.js +16 -15
  114. package/src/plugins/Sign/sign.js +13 -10
  115. package/src/plugins/Sign/signV3/sign.js +17 -14
  116. package/src/plugins/Sign/sign_back.js +13 -10
  117. package/src/utils/xls2json.js +2 -1
  118. package/src/utils/xlsx2json.js +2 -1
@@ -8,7 +8,7 @@
8
8
  <div v-show="type === 'normal'">
9
9
  <div class="nstc-calendar_header">
10
10
  <div v-if="$i18n.locale === 'zh'">
11
- <span @click="chooseYear">{{ yearStr }}年 </span>
11
+ <span @click="chooseYear">{{ yearStr }}{{ $lc('') }} </span>
12
12
  <span @click="chooseMonth">{{ monthStr }}</span>
13
13
  </div>
14
14
  <div v-else>
@@ -14,6 +14,8 @@
14
14
  </template>
15
15
 
16
16
  <script>
17
+ import { $lc } from '../../../../src/utils/i18n/index.js'
18
+
17
19
  export default {
18
20
  name: 'AutocompleteCustom',
19
21
 
@@ -38,7 +40,7 @@ export default {
38
40
  placeholder: {
39
41
  type: String,
40
42
  default: function () {
41
- return '请输入'
43
+ return $lc('请输入')
42
44
  }
43
45
  },
44
46
 
@@ -6,7 +6,7 @@
6
6
  </div>
7
7
  <div v-else class="nstc-g6-common-input-with-unit">
8
8
  <InputCustom v-model="_value[0]" :width="_widthConfig[0]" :maxlength="3" />
9
- <span style="margin: 0 10px">到</span>
9
+ <span style="margin: 0 10px">{{ $lc('至') }}</span>
10
10
  <InputCustom v-model="_value[1]" :width="_widthConfig[1]" :maxlength="3" />
11
11
  <SelectCustom v-model="_value[2]" filterable :options="options" :width="_widthConfig[2]" />
12
12
  </div>
@@ -16,6 +16,7 @@
16
16
  <script>
17
17
  import InputCustom from '../InputCustom'
18
18
  import SelectCustom from '../SelectCustom'
19
+ import { $lc } from '../../../../src/utils/i18n/index.js'
19
20
  export default {
20
21
  name: 'NstcInputWithUnit',
21
22
  props: {
@@ -33,9 +34,9 @@ export default {
33
34
  type: Array,
34
35
  default: () => {
35
36
  return [
36
- { label: '年', value: 3 },
37
- { label: '月', value: 2 },
38
- { label: '日', value: 1 }
37
+ { label: $lc('年'), value: 3 },
38
+ { label: $lc('月'), value: 2 },
39
+ { label: $lc('日'), value: 1 }
39
40
  ]
40
41
  }
41
42
  },
@@ -15,7 +15,7 @@
15
15
  >
16
16
  <template v-slot:table>
17
17
  <div style="display: flex">
18
- <el-input class="select-dialog-custom-tree-inp" placeholder="输入关键字进行过滤" v-model="filterText">
18
+ <el-input class="select-dialog-custom-tree-inp" :placeholder="$lc('输入关键字进行过滤')" v-model="filterText">
19
19
  </el-input>
20
20
  <el-button
21
21
  type="primary"
@@ -23,7 +23,7 @@
23
23
  class="nstc-g6-common-btn-1 nstc-g6-common-btn-size-b"
24
24
  @click.stop="handleQuery"
25
25
  >
26
- 查询
26
+ {{ $lc('查询') }}
27
27
  </el-button>
28
28
  </div>
29
29
 
@@ -46,9 +46,11 @@
46
46
  </div>
47
47
  <div style="text-align: center">
48
48
  <el-button type="primary" class="nstc-g6-common-btn-1 nstc-g6-common-btn-size-b" @click.stop="handleclick">
49
- 确认
49
+ {{ $lc('确认') }}
50
+ </el-button>
51
+ <el-button class="nstc-g6-common-btn-1 nstc-g6-common-btn-size-b" @click.stop="handleClear">
52
+ {{ $lc('取消') }}
50
53
  </el-button>
51
- <el-button class="nstc-g6-common-btn-1 nstc-g6-common-btn-size-b" @click.stop="handleClear"> 取消 </el-button>
52
54
  </div>
53
55
  </template>
54
56
  </SelectInDialogCustom>
@@ -56,6 +58,7 @@
56
58
 
57
59
  <script>
58
60
  import SelectInDialogCustom from '../SelectindialogCustom'
61
+ import { $lc } from '../../../../src/utils/i18n/index.js'
59
62
  export default {
60
63
  name: 'SelectTreeDialog',
61
64
 
@@ -77,7 +80,7 @@ export default {
77
80
  props: {
78
81
  title: {
79
82
  type: String,
80
- default: '表格里边弹窗'
83
+ default: () => $lc('表格里边弹窗')
81
84
  },
82
85
  value: {
83
86
  type: String,
@@ -88,19 +91,19 @@ export default {
88
91
  default: () => [
89
92
  {
90
93
  id: 1,
91
- label: '一级 1',
94
+ label: `${$lc('一级')} 1`,
92
95
  children: [
93
96
  {
94
97
  id: 4,
95
- label: '二级 1-1',
98
+ label: `${$lc('二级')} 1-1`,
96
99
  children: [
97
100
  {
98
101
  id: 9,
99
- label: '三级 1-1-1'
102
+ label: `${$lc('三级')} 1-1-1`
100
103
  },
101
104
  {
102
105
  id: 10,
103
- label: '三级 1-1-2'
106
+ label: `${$lc('三级')} 1-1-2`
104
107
  }
105
108
  ]
106
109
  }
@@ -108,29 +111,29 @@ export default {
108
111
  },
109
112
  {
110
113
  id: 2,
111
- label: '一级 2',
114
+ label: `${$lc('一级')} 2`,
112
115
  children: [
113
116
  {
114
117
  id: 5,
115
- label: '二级 2-1'
118
+ label: `${$lc('二级')} 2-1`
116
119
  },
117
120
  {
118
121
  id: 6,
119
- label: '二级 2-2'
122
+ label: `${$lc('二级')} 2-2`
120
123
  }
121
124
  ]
122
125
  },
123
126
  {
124
127
  id: 3,
125
- label: '一级 3',
128
+ label: `${$lc('一级')} 3`,
126
129
  children: [
127
130
  {
128
131
  id: 7,
129
- label: '二级 3-1'
132
+ label: `${$lc('二级')} 3-1`
130
133
  },
131
134
  {
132
135
  id: 8,
133
- label: '二级 3-2'
136
+ label: `${$lc('二级')} 3-2`
134
137
  }
135
138
  ]
136
139
  }
@@ -33,7 +33,7 @@
33
33
 
34
34
  <div v-if="isVertical && queryBtn" :class="[`form-item`, `form-item-button`]">
35
35
  <el-button v-bind="queryBtn" :loading="queryLoading" :disabled="disableds.querybutton" @click="handleExpectQuery">
36
- {{ queryBtn.name || '查询' }}
36
+ {{ queryBtn.name || $lc('查询') }}
37
37
  </el-button>
38
38
  </div>
39
39
  </el-form>
@@ -31,7 +31,7 @@
31
31
 
32
32
  <div v-if="isVertical && queryBtn" :class="[`form-item`, `form-item-button`]">
33
33
  <el-button v-bind="queryBtn" :loading="queryLoading" :disabled="disableds.querybutton" @click="handleExpectQuery">
34
- {{ queryBtn.name || '查询' }}
34
+ {{ queryBtn.name || $lc('查询') }}
35
35
  </el-button>
36
36
  </div>
37
37
  </el-form>
@@ -8,9 +8,9 @@
8
8
  :picker-options="_pickerOptions"
9
9
  :style="{ width: parseFloat(width) + 'px' }"
10
10
  clearable
11
- placeholder="请选择"
12
- start-placeholder="请选择"
13
- end-placeholder="请选择"
11
+ :placeholder="$lc('请选择')"
12
+ :start-placeholder="$lc('请选择')"
13
+ :end-placeholder="$lc('请选择')"
14
14
  v-on="$listeners"
15
15
  />
16
16
  </template>
@@ -37,6 +37,7 @@
37
37
  <script>
38
38
  import request from '@/utils/request'
39
39
  import DialogTable from '^/DialogTable/src/main.vue'
40
+ import { $lc } from '../../../../../src/utils/i18n/index.js'
40
41
  export default {
41
42
  name: 'NstcInputAndDialog',
42
43
  components: { DialogTable },
@@ -101,10 +102,10 @@ export default {
101
102
  chMapper: {
102
103
  type: Object,
103
104
  default: () => ({
104
- title: '选择xx',
105
- noselectmsg: '请选择xx',
106
- plcInput: '请输入',
107
- plcSelect: '请选择'
105
+ title: $lc('选择xx'),
106
+ noselectmsg: $lc('请选择xx'),
107
+ plcInput: $lc('请输入'),
108
+ plcSelect: $lc('请选择')
108
109
  })
109
110
  },
110
111
  // 是否添加懒加载
@@ -7,7 +7,7 @@
7
7
  v-nstc-number="numberRule"
8
8
  v-bind="$attrs"
9
9
  :style="{ width: parseFloat(width) + 'px' }"
10
- :placeholder="placeholder || '请输入'"
10
+ :placeholder="placeholder || $lc('请输入')"
11
11
  :type="_type"
12
12
  :maxlength="maxlength"
13
13
  :class="{ 'nstc-amount-num': isMoney, 'nstc-common-form-textarea': type === 'textarea' }"
@@ -27,6 +27,7 @@
27
27
 
28
28
  <script>
29
29
  import request from '@/utils/request'
30
+ import { $lc } from '../../../../src/utils/i18n/index.js'
30
31
  export default {
31
32
  name: 'InputCustom',
32
33
 
@@ -50,7 +51,7 @@ export default {
50
51
 
51
52
  placeholder: {
52
53
  type: String,
53
- default: '请输入'
54
+ default: () => $lc('请输入')
54
55
  },
55
56
 
56
57
  type: {
@@ -8,6 +8,7 @@
8
8
 
9
9
  <script>
10
10
  import InputCustom from '../InputCustom'
11
+ import { $lc } from '../../../../src/utils/i18n/index.js'
11
12
 
12
13
  export default {
13
14
  name: 'IntervalInputCustom', // 区间输入框
@@ -64,7 +65,7 @@ export default {
64
65
  value1 = isNaN(parseFloat(this._value[0])) ? 0 : parseFloat(this._value[0])
65
66
  value2 = isNaN(parseFloat(this._value[1])) ? 0 : parseFloat(this._value[1])
66
67
  if (value1 > value2) {
67
- this.$message.warning('起始值不能大于结束值')
68
+ this.$message.warning($lc('起始值不能大于结束值'))
68
69
  newVal = ['', '']
69
70
  }
70
71
  }
@@ -10,7 +10,7 @@
10
10
  class="query-button nstc-g6-common-btn-1 nstc-g6-common-btn-size-b"
11
11
  @click="$emit('query-click')"
12
12
  >
13
- {{ item.name || '查询' }}
13
+ {{ item.name || $lc('查询') }}
14
14
  </el-button>
15
15
  </el-form-item>
16
16
 
@@ -21,7 +21,7 @@
21
21
  :icon="item.icon || 'el-icon-plus'"
22
22
  @click="$emit('add-click')"
23
23
  >
24
- {{ item.name || '新增' }}
24
+ {{ item.name || $lc('新增') }}
25
25
  </el-button>
26
26
  </el-form-item>
27
27
 
@@ -76,6 +76,7 @@
76
76
  <script>
77
77
  import request from '@/utils/request'
78
78
  import SelectAndDialog from '^/Form/SelectAndDialog/src/main.vue'
79
+ import { $lc } from '../../../../../src/utils/i18n/index.js'
79
80
  export default {
80
81
  name: 'NstcSelectAccount',
81
82
  components: { SelectAndDialog },
@@ -116,14 +117,14 @@ export default {
116
117
  chMapper: {
117
118
  type: Object,
118
119
  default: () => ({
119
- title: '选择账号',
120
- plcInput: '请输入',
121
- plcSelect: '请输入或选择',
122
- noselectmsg: '请选择账号',
123
- accountAgencyLabel: '开户机构',
124
- accountLabel: '账号',
125
- accountNameLabel: '账户名',
126
- accountNameTableLabel: '户名'
120
+ title: $lc('选择账号'),
121
+ plcInput: $lc('请输入'),
122
+ plcSelect: $lc('请输入或选择'),
123
+ noselectmsg: $lc('请选择账号'),
124
+ accountAgencyLabel: $lc('开户机构'),
125
+ accountLabel: $lc('账号'),
126
+ accountNameLabel: $lc('账户名'),
127
+ accountNameTableLabel: $lc('户名')
127
128
  })
128
129
  },
129
130
 
@@ -50,6 +50,7 @@
50
50
  <script>
51
51
  import request from '@/utils/request'
52
52
  import DialogTable from '^/DialogTable/src/main.vue'
53
+ import { $lc } from '../../../../../src/utils/i18n/index.js'
53
54
  export default {
54
55
  name: 'NstcSelectAndDialog',
55
56
  components: { DialogTable },
@@ -106,10 +107,10 @@ export default {
106
107
  chMapper: {
107
108
  type: Object,
108
109
  default: () => ({
109
- title: '选择xx',
110
- noselectmsg: '请选择xx',
111
- plcInput: '请输入',
112
- plcSelect: '请选择'
110
+ title: $lc('选择xx'),
111
+ noselectmsg: $lc('请选择xx'),
112
+ plcInput: $lc('请输入'),
113
+ plcSelect: $lc('请选择')
113
114
  })
114
115
  },
115
116
  // 是否添加懒加载
@@ -39,6 +39,7 @@
39
39
 
40
40
  <script>
41
41
  import SelectAndDialog from '^/Form/SelectAndDialog/src/main.vue'
42
+ import { $lc } from '../../../../../src/utils/i18n/index.js'
42
43
  export default {
43
44
  name: 'NstcSelectCashFlow',
44
45
  components: { SelectAndDialog },
@@ -51,12 +52,12 @@ export default {
51
52
  chMapper: {
52
53
  type: Object,
53
54
  default: () => ({
54
- title: '选择现金流',
55
- plcInput: '请输入',
56
- plcSelect: '请选择',
57
- noselectmsg: '请选择现金流',
58
- flowNoLabel: '现金流编号',
59
- flowNameLabel: '现金流名称'
55
+ title: $lc('选择现金流'),
56
+ plcInput: $lc('请输入'),
57
+ plcSelect: $lc('请选择'),
58
+ noselectmsg: $lc('请选择现金流'),
59
+ flowNoLabel: $lc('现金流编号'),
60
+ flowNameLabel: $lc('现金流名称')
60
61
  })
61
62
  }
62
63
  },
@@ -5,7 +5,7 @@
5
5
  v-bind="$attrs"
6
6
  v-nstc-lazy-load="lazyLoadAction"
7
7
  :style="{ width: parseFloat(width ? width : 224) + 'px' }"
8
- :placeholder="placeholder || '请选择'"
8
+ :placeholder="placeholder || $lc('请选择')"
9
9
  :loading="loading"
10
10
  :remote="remote"
11
11
  :remote-method="remoteMethod"
@@ -58,6 +58,7 @@
58
58
 
59
59
  <script>
60
60
  import request from '@/utils/request'
61
+ import { $lc } from '../../../../src/utils/i18n/index.js'
61
62
 
62
63
  export default {
63
64
  name: 'SelectCustom',
@@ -155,7 +156,7 @@ export default {
155
156
  placeholder: {
156
157
  type: String,
157
158
  default: function () {
158
- return '请选择'
159
+ return $lc('请选择')
159
160
  }
160
161
  },
161
162
 
@@ -40,6 +40,7 @@
40
40
  <script>
41
41
  import request from '@/utils/request'
42
42
  import SelectAndDialog from '^/Form/SelectAndDialog/src/main.vue'
43
+ import { $lc } from '../../../../../src/utils/i18n/index.js'
43
44
  export default {
44
45
  name: 'NstcSelectSubject',
45
46
  components: { SelectAndDialog },
@@ -52,13 +53,13 @@ export default {
52
53
  chMapper: {
53
54
  type: Object,
54
55
  default: () => ({
55
- title: '选择科目',
56
- plcInput: '请输入',
57
- plcSelect: '请选择',
58
- noselectmsg: '请选择科目',
59
- subjectNoLabel: '科目编号',
60
- subjectNameLabel: '科目名称',
61
- balanceDirectionlabel: '余额方向'
56
+ title: $lc('选择科目'),
57
+ plcInput: $lc('请输入'),
58
+ plcSelect: $lc('请选择'),
59
+ noselectmsg: $lc('请选择科目'),
60
+ subjectNoLabel: $lc('科目编号'),
61
+ subjectNameLabel: $lc('科目名称'),
62
+ balanceDirectionlabel: $lc('余额方向')
62
63
  })
63
64
  },
64
65
  disabled: {
@@ -91,6 +91,7 @@ import NstcFormDialog from '../ComponentSecond'
91
91
  import variables from '@/theme/theme1/styles/variables.scss'
92
92
 
93
93
  import request from '@/utils/request'
94
+ import { $lc } from '../../../../src/utils/i18n/index.js'
94
95
 
95
96
  export default {
96
97
  name: 'NstcSelectInDialog',
@@ -212,7 +213,7 @@ export default {
212
213
  placeholder: {
213
214
  type: String,
214
215
  default: function () {
215
- return '请选择'
216
+ return $lc('请选择')
216
217
  }
217
218
  },
218
219
 
@@ -282,7 +283,7 @@ export default {
282
283
  multipleSelected: [],
283
284
  footerHandlers: {
284
285
  confirm: {
285
- text: '确认'
286
+ text: $lc('确认')
286
287
  }
287
288
  }
288
289
  }
@@ -51,6 +51,7 @@
51
51
  import closeImg from './iconxitongshezhi-yichu.png'
52
52
 
53
53
  import request from '@/utils/request'
54
+ import { $lc } from '../../../../src/utils/i18n/index.js'
54
55
  // import OSS from 'ali-oss'
55
56
 
56
57
  export default {
@@ -62,7 +63,7 @@ export default {
62
63
  text: {
63
64
  type: String,
64
65
  default: function () {
65
- return '请选择附件'
66
+ return $lc('请选择附件')
66
67
  }
67
68
  },
68
69
 
@@ -224,7 +225,7 @@ export default {
224
225
  },
225
226
 
226
227
  fileBtnName() {
227
- return this.isView ? '下载' : '删除'
228
+ return this.isView ? $lc('下载') : $lc('删除')
228
229
  }
229
230
  },
230
231
 
@@ -378,7 +379,7 @@ export default {
378
379
  fileMaxCheck(files) {
379
380
  return new Promise((resolve, reject) => {
380
381
  if (this.multiple && files.length + this._value.length > this.max) {
381
- reject({ reason: `最多上传文件数:${this.max}` })
382
+ reject({ reason: `${$lc('最多上传文件数:')}${this.max}` })
382
383
  }
383
384
 
384
385
  resolve()
@@ -43,6 +43,7 @@ import selectcashflowCustom from '^/Form/SelectCashFlow'
43
43
  import selectsubjectCustom from '^/Form/SelectSubject'
44
44
  import payeePersonSelect from '^/Form/payeePersonSelect'
45
45
  import inputAndDialog from '^/Form/InputAndDialog'
46
+ import { $lc } from '../../../src/utils/i18n/index.js'
46
47
 
47
48
  // 定义支持的类型
48
49
  export const SUPPORT_TYPE = [
@@ -167,7 +168,7 @@ export function getDefaultValue({ mold, multiple, type, default: def }) {
167
168
  break
168
169
 
169
170
  default:
170
- alert(`未匹配到符合该类型${mold}的功能,请联系开发人员`)
171
+ alert(`${$lc('未匹配到符合该类型')}${mold}${$lc('的功能,请联系开发人员')}`)
171
172
  _def = null
172
173
  break
173
174
  }
@@ -32,6 +32,7 @@ import nstcuploadCustom from '^/Upload/src/main'
32
32
  import nstcselecttreeCustom from '^/SelectTree/src/main'
33
33
  import nstcselecttreeListCustom from '^/SelectTreeList/src/main'
34
34
  import nstcfileuploadCustom from '^/FileUpload/src/main'
35
+ import { $lc } from '../../../src/utils/i18n/index.js'
35
36
 
36
37
  // 定义支持的类型
37
38
  export const SUPPORT_TYPE = [
@@ -135,7 +136,7 @@ export function getDefaultValue({ mold, multiple, type, default: def }) {
135
136
  break
136
137
 
137
138
  default:
138
- alert(`未匹配到符合该类型Second-${mold}的功能,请联系开发人员`)
139
+ alert(`${$lc('未匹配到符合该类型Second-')}${mold}${$lc('的功能,请联系开发人员')}`)
139
140
  _def = null
140
141
  break
141
142
  }
@@ -19,25 +19,21 @@
19
19
  >
20
20
  <div class="form-wrap">
21
21
  <el-form inline :model="formSearch">
22
- <el-form-item :label="'所属单位'">
23
- <el-input :placeholder="'请输入'" v-model="formSearch.unitName" maxlength="60" disabled clearable> </el-input>
22
+ <el-form-item :label="$lc('所属单位')">
23
+ <el-input :placeholder="$lc('请输入')" v-model="formSearch.unitName" maxlength="60" disabled clearable> </el-input>
24
24
  </el-form-item>
25
- <el-form-item :label="'客商类型'">
26
- <el-select v-model="formSearch.supplierType" disabled placeholder="请选择" clearable>
25
+ <el-form-item :label="$lc('客商类型')">
26
+ <el-select v-model="formSearch.supplierType" disabled :placeholder="$lc('请选择')" clearable>
27
27
  <el-option v-for="item in supplierTypeList" :key="item.value" :label="item.label" :value="item.value">
28
28
  </el-option>
29
29
  </el-select>
30
30
  </el-form-item>
31
- <el-form-item :label="'客商名称'">
32
- <el-input :placeholder="'请输入'" v-model="formSearch.relCorpFullName" maxlength="60" clearable> </el-input>
31
+ <el-form-item :label="$lc('客商名称')">
32
+ <el-input :placeholder="$lc('请输入')" v-model="formSearch.relCorpFullName" maxlength="60" clearable> </el-input>
33
33
  </el-form-item>
34
34
  <el-form-item>
35
- <el-button type="primary" class="nstc-g6-common-btn-1" @click="searchClick">{{
36
- $t(`common_w_0034`)
37
- }}</el-button>
38
- <el-button style="margin-left: 8px" class="nstc-g6-common-btn-3" @click="queryReset">{{
39
- $t(`common_w_0037`)
40
- }}</el-button>
35
+ <el-button type="primary" class="nstc-g6-common-btn-1" @click="searchClick">{{ $lc('查询') }}</el-button>
36
+ <el-button style="margin-left: 8px" class="nstc-g6-common-btn-3" @click="queryReset">{{ $lc('重置') }}</el-button>
41
37
  </el-form-item>
42
38
  </el-form>
43
39
  </div>
@@ -47,6 +43,7 @@
47
43
  <script>
48
44
  import request from '@/utils/request'
49
45
  import SelectAndDialog from '^/Form/SelectAndDialog/src/main.vue'
46
+ import { $lc } from '../../../../../src/utils/i18n/index.js'
50
47
  export default {
51
48
  name: 'NstcPayeePerson',
52
49
  components: { SelectAndDialog },
@@ -75,10 +72,10 @@ export default {
75
72
  chMapper: {
76
73
  type: Object,
77
74
  default: () => ({
78
- title: '选择付款人',
79
- plcInput: '请输入',
80
- plcSelect: '请选择',
81
- noselectmsg: '请选择付款人'
75
+ title: $lc('选择付款人'),
76
+ plcInput: $lc('请输入'),
77
+ plcSelect: $lc('请选择'),
78
+ noselectmsg: $lc('请选择付款人')
82
79
  })
83
80
  }
84
81
  },
@@ -93,11 +90,11 @@ export default {
93
90
  },
94
91
  supplierTypeList: [
95
92
  {
96
- label: '账户',
93
+ label: $lc('账户'),
97
94
  value: 0
98
95
  },
99
96
  {
100
- label: '供应商',
97
+ label: $lc('供应商'),
101
98
  value: 1
102
99
  }
103
100
  ],
@@ -112,6 +112,7 @@ import ExpandCollapse from '^/ExpandCollapse/src/main'
112
112
 
113
113
  // 引入特殊检验
114
114
  import { validInputWithUnit } from './validate'
115
+ import { $lc } from '../../../../src/utils/i18n/index.js'
115
116
 
116
117
  export default {
117
118
  name: 'NstcFormGroup',
@@ -132,17 +133,17 @@ export default {
132
133
  default: function () {
133
134
  return {
134
135
  submit: {
135
- label: '提交',
136
+ label: $lc('提交'),
136
137
  isShow: true,
137
138
  className: 'nstc-g6-common-btn-1'
138
139
  },
139
140
  save: {
140
- label: '保存',
141
+ label: $lc('保存'),
141
142
  isShow: true,
142
143
  className: 'nstc-g6-common-btn-1'
143
144
  },
144
145
  reset: {
145
- label: '重置',
146
+ label: $lc('重置'),
146
147
  isShow: true,
147
148
  className: 'nstc-g6-common-btn-4 nstc-g6-common-btn-size-b'
148
149
  }
@@ -301,7 +302,7 @@ export default {
301
302
  console.log(err)
302
303
  this.$message({
303
304
  type: 'warning',
304
- message: '请确认表单信息'
305
+ message: $lc('请确认表单信息')
305
306
  })
306
307
  // this.$confirm('', '请确认表单信息', {
307
308
  // type: 'warning' // success info warning error
@@ -333,7 +334,7 @@ export default {
333
334
  } catch (err) {
334
335
  this.$message({
335
336
  type: 'warning',
336
- message: '请确认表单信息'
337
+ message: $lc('请确认表单信息')
337
338
  })
338
339
  // this.$confirm('', '请确认表单信息', {
339
340
  // type: 'warning' // success info warning error
@@ -439,7 +440,9 @@ export default {
439
440
  ...res,
440
441
  [curr.prop]: {
441
442
  required: true,
442
- [`${hasSpecificValid ? 'nstc-' : ''}message`]: `请${isInput ? '输入' : '选择'}${curr.name}`,
443
+ [`${hasSpecificValid ? 'nstc-' : ''}message`]: `${isInput ? $lc('请输入') : $lc('请选择')}${
444
+ curr.name
445
+ }`,
443
446
  trigger: isInput ? 'blur' : 'change',
444
447
  ...(hasSpecificValid ? { validator: hasSpecificValid } : {})
445
448
  // whitespace: isInput || undefined,