n20-common-lib 3.2.39 → 3.2.42

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 (71) hide show
  1. package/package.json +2 -2
  2. package/src/components/AIButton/index.vue +6 -5
  3. package/src/components/AdvancedFilter/index.vue +4 -3
  4. package/src/components/ApprovalButtons/index.vue +26 -22
  5. package/src/components/ApprovalButtons/indexApp.vue +19 -13
  6. package/src/components/ApprovalButtons/selectSpr.vue +1 -1
  7. package/src/components/ApprovalButtons/showAppOpi.vue +5 -5
  8. package/src/components/ApprovalButtons/showOtherAttr.vue +1 -1
  9. package/src/components/ApprovalButtons/showOtherAttrNew.vue +4 -4
  10. package/src/components/ApprovalCard/index.vue +7 -7
  11. package/src/components/ApprovalCard/indexApp.vue +2 -2
  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 +33 -33
  16. package/src/components/DatePicker/index.vue +3 -1
  17. package/src/components/DateSelect/busiDate.vue +7 -4
  18. package/src/components/DateSelect/index.vue +8 -8
  19. package/src/components/DateSelect/quarterDatePicker.vue +11 -11
  20. package/src/components/DynamicField/DynamicField.vue +2 -2
  21. package/src/components/DynamicField/DynamicFieldOptions.vue +57 -57
  22. package/src/components/DynamicField/DynamicFormView.vue +13 -13
  23. package/src/components/DynamicField/DynamicTable.vue +4 -4
  24. package/src/components/DynamicField/contentPop.vue +6 -6
  25. package/src/components/DynamicField/tableList.vue +5 -5
  26. package/src/components/DynamicField/tableView.vue +20 -6
  27. package/src/components/ElectronicArchive/index.vue +20 -17
  28. package/src/components/FileExportAsync/index.vue +3 -3
  29. package/src/components/FileUploadTable/aiCheckDialog.vue +11 -11
  30. package/src/components/FileUploadTable/index.vue +98 -7
  31. package/src/components/HandlingAdvice/index.vue +3 -3
  32. package/src/components/Layout/HeaderWrap/changePwd.vue +2 -2
  33. package/src/components/Layout/HeaderWrap/index.vue +2 -2
  34. package/src/components/Layout/HeaderWrap/switchUser.vue +1 -1
  35. package/src/components/LoginSetting/setItem.vue +16 -16
  36. package/src/components/LoginTemporary/form.vue +2 -2
  37. package/src/components/LoginTemporary/indexN.vue +15 -15
  38. package/src/components/LoginTemporary/retrievePw.vue +4 -4
  39. package/src/components/MdmSelect/index.vue +3 -3
  40. package/src/components/Pivot/ConfigSidebar.vue +27 -25
  41. package/src/components/Pivot/MainToolbar.vue +9 -9
  42. package/src/components/Pivot/ReportSidebar.vue +4 -4
  43. package/src/components/Pivot/TableView.vue +8 -11
  44. package/src/components/Pivot/index.vue +26 -26
  45. package/src/components/ProFilterView/advancedQuery.vue +57 -63
  46. package/src/components/ProFilterView/index.vue +26 -26
  47. package/src/components/SelectDatePickerPro/busiDate.vue +5 -5
  48. package/src/components/SelectDatePickerPro/halfYearPicker.vue +2 -2
  49. package/src/components/SelectDatePickerPro/index.vue +24 -16
  50. package/src/components/SelectDatePickerPro/quarterDatePicker.vue +4 -4
  51. package/src/components/SelectTree/pro.vue +1 -1
  52. package/src/components/Statis/index.vue +1 -1
  53. package/src/components/Statis/statisItem.vue +1 -1
  54. package/src/components/Table/indexO.vue +1 -1
  55. package/src/components/TablePro/filterContent.vue +2 -2
  56. package/src/components/TablePro/filterContent_tree.vue +5 -5
  57. package/src/components/TablePro/index.js +1 -1
  58. package/src/components/TableTransfer/index.vue +1 -1
  59. package/src/components/Upload/index.vue +2 -2
  60. package/src/components/WornPagination/index.vue +1 -1
  61. package/src/components/operatingStatus/index.vue +7 -7
  62. package/src/components/v3/TablePro/filterContent.vue +2 -2
  63. package/src/components/v3/TablePro/filterContent_tree.vue +5 -5
  64. package/src/components/v3/TablePro/index.js +1 -1
  65. package/src/components/v3/UploadList/components/aiCheckDialog.vue +11 -11
  66. package/src/components/v3/UploadList/index.vue +10 -10
  67. package/src/i18n.json +8951 -715
  68. package/src/plugins/SetMenuTree/index.vue +1 -1
  69. package/src/plugins/SetMenuTree/setmenutree.vue +34 -34
  70. package/src/utils/amountInWords.js +6 -6
  71. package/src/utils/auth.js +1 -1
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "3.2.39",
3
+ "version": "3.2.42",
4
4
  "private": false,
5
5
  "scripts": {
6
- "serve": "vue-cli-service serve",
6
+ "serve": "pnpm --dir ../packages/docs run serve",
7
7
  "prepublishOnly": "npm run build:css",
8
8
  "build": "node versionInfo.js && npm run build:css && vue-cli-service build --testTheme",
9
9
  "test:unit": "vue-cli-service test:unit",
@@ -1,9 +1,9 @@
1
1
  <template>
2
2
  <span>
3
3
  <slot :customEvent="aiFn">
4
- <el-button v-title="'AI识别'" type="text" icon="n20-icon-query" @click="aiFn" />
4
+ <el-button v-title="$lc('AI识别')" type="text" icon="n20-icon-query" @click="aiFn" />
5
5
  </slot>
6
- <Dialog v-drag :visible.sync="visible" title="AI识别" :destroy-on-open="true" width="690px">
6
+ <Dialog v-drag :visible.sync="visible" :title="$lc('AI识别')" :destroy-on-open="true" width="690px">
7
7
  <cl-upload
8
8
  :drag="true"
9
9
  :file-name.sync="fileName"
@@ -15,7 +15,7 @@
15
15
  >
16
16
  <template slot="trigger">
17
17
  <i class="drag-icon n20-icon-shangchuan"></i>
18
- <span class="drag-text">点击或将文件拖拽到这里上传</span>
18
+ <span class="drag-text">{{ $lc('点击或将文件拖拽到这里上传') }}</span>
19
19
  </template>
20
20
  </cl-upload>
21
21
  </Dialog>
@@ -24,6 +24,7 @@
24
24
 
25
25
  <script>
26
26
  import axios from '../../utils/axios.js'
27
+ import { $lc } from '../../utils/i18n/index.js'
27
28
  import Dialog from '../Dialog/index.vue'
28
29
  import clUpload from '../Upload/index.vue'
29
30
 
@@ -80,7 +81,7 @@ export default {
80
81
  async AiFn(beid) {
81
82
  const uploadTime = dayjs().format('YYYY-MM-DD HH:mm:ss')
82
83
  if (!this.AIOptions.bussType) {
83
- this.$message.error('请先配置bussType')
84
+ this.$message.error($lc('请先配置bussType'))
84
85
  return false
85
86
  }
86
87
  const { data, code } = await axios.post(
@@ -94,7 +95,7 @@ export default {
94
95
  if (code === 200) {
95
96
  this.$emit('aiFn', { AiResult: data, beid: beid, fileName: this.fileName, uploadTime: uploadTime })
96
97
  this.visible = false
97
- this.$message.success('识别成功')
98
+ this.$message.success($lc('识别成功'))
98
99
  }
99
100
  }
100
101
  }
@@ -93,7 +93,7 @@
93
93
  <el-form-item
94
94
  :label="$lc('视图名称')"
95
95
  prop="viewName"
96
- :rules="[{ required: true, message: '请输入', trigger: 'blur' }]"
96
+ :rules="[{ required: true, message: $lc('请输入'), trigger: 'blur' }]"
97
97
  >
98
98
  <el-input v-model="form.viewName" maxlength="30" show-word-limit />
99
99
  </el-form-item>
@@ -113,6 +113,7 @@ import filterItem from './filterItem.vue'
113
113
  import formItemRender from './formItemRender.vue'
114
114
 
115
115
  import axios from '../../utils/axios.js'
116
+ import { $lc } from '../../utils/i18n/index.js'
116
117
  import ClDialog from '../Dialog/index.vue'
117
118
  import InputSearch from '../InputSearch/index.vue'
118
119
 
@@ -393,7 +394,7 @@ export default {
393
394
  if (valid) {
394
395
  // 如果没有 bussId,不保存视图
395
396
  if (!this.bussId) {
396
- this.$message.warning('缺少业务ID,无法保存视图')
397
+ this.$message.warning($lc('缺少业务ID,无法保存视图'))
397
398
  return
398
399
  }
399
400
 
@@ -408,7 +409,7 @@ export default {
408
409
  const { code } = await axios.post(`/bems/query/viewColumn/saveOrUpdateViewInfo`, obj)
409
410
  if (code === 200) {
410
411
  this.stVisible = false
411
- this.$message.success('保存成功')
412
+ this.$message.success($lc('保存成功'))
412
413
  this.$emit('refresh')
413
414
  }
414
415
  }
@@ -4,7 +4,7 @@
4
4
  <!-- 自定义项 -->
5
5
  <ExpandablePane
6
6
  v-if="taskId && showBtn && authList.includes('isShowOtherAtt')"
7
- title="自定义项"
7
+ :title="$lc('自定义项')"
8
8
  :default-expand="otherExpand"
9
9
  >
10
10
  <el-form ref="approveBtnGroup" label-position="right" :label-width="_lang === 'zh' ? '12em' : '12em'">
@@ -339,22 +339,24 @@
339
339
  </template>
340
340
 
341
341
  <script>
342
+ import dCloumn from './getDCloumn'
342
343
  import selectSpr from './selectSpr.vue'
344
+ import CarboncopyProp from './setCarboncopyProp.vue'
345
+ import RejectToProp from './setRejectToProp.vue'
346
+ import ShowAppOpi from './showAppOpi.vue'
347
+ import ShowOtherAtt from './showOtherAttr.vue'
348
+ import ShowOtherAttNew from './showOtherAttrNew.vue'
349
+ import { toExaminePath } from './specialHandle'
350
+
343
351
  import getJsonc from '../../assets/getJsonc.js'
344
352
  import { closeTagsForBackPage } from '../../plugins/CompatibleOld'
345
353
  import axios from '../../utils/axios'
346
354
  import { $lc } from '../../utils/i18n/index'
347
355
  import { linkGo, linkPush } from '../../utils/urlToGo'
348
356
  import ClDialog from '../Dialog'
349
- import ClUpload from '../Upload'
350
- import dCloumn from './getDCloumn'
351
- import CarboncopyProp from './setCarboncopyProp.vue'
352
- import RejectToProp from './setRejectToProp.vue'
353
- import ShowAppOpi from './showAppOpi.vue'
354
- import ShowOtherAtt from './showOtherAttr.vue'
355
- import ShowOtherAttNew from './showOtherAttrNew.vue'
356
357
  import ExpandablePane from '../Expandable/main.vue'
357
- import { toExaminePath } from './specialHandle'
358
+ import ClUpload from '../Upload'
359
+
358
360
  const prefixCls = 'n20-approval-Button'
359
361
  // window._approvalExtend = { 'addtask.chdUserInfo.extend': {}, 'appOpi.queryAppOpiAndUser.exist': undefined, 'card.countermand.suggestion': false }
360
362
  if (!window._approvalExtend) window._approvalExtend = {}
@@ -515,14 +517,14 @@ export default {
515
517
  checkSum: 0,
516
518
  mustUploadWidget: false,
517
519
  btnsNames: {
518
- pass: this.$l('通过'),
519
- refuse: this.$l('拒绝'),
520
- takeOff: this.$l('请假'),
521
- reject: this.$l('驳回至申请人'),
522
- rejectPre: this.$l('驳回至上一节点'),
523
- approval: this.$l('批 准'),
524
- discard: this.$l('作 废'),
525
- rejectTo: this.$l('驳回至')
520
+ pass: $lc('通过'),
521
+ refuse: $lc('拒绝'),
522
+ takeOff: $lc('请假'),
523
+ reject: $lc('驳回至申请人'),
524
+ rejectPre: $lc('驳回至上一节点'),
525
+ approval: $lc('批 准'),
526
+ discard: $lc('作 废'),
527
+ rejectTo: $lc('驳回至')
526
528
  }
527
529
  }
528
530
  },
@@ -949,7 +951,7 @@ export default {
949
951
  onContinue() {
950
952
  if (this.isWyfk) {
951
953
  this.attributes = {
952
- ebsPaymentRiskWarning: '核实无误'
954
+ ebsPaymentRiskWarning: $lc('核实无误')
953
955
  }
954
956
  } else {
955
957
  this.attributes = undefined
@@ -1162,13 +1164,15 @@ export default {
1162
1164
  const callback = this._pendingAddTaskTip
1163
1165
  this._pendingAddTaskTip = null
1164
1166
  if (this.addTaskList.length === 0) {
1165
- this.$confirm('请检查是否向后加签', $lc('提示'), {
1167
+ this.$confirm($lc('请检查是否向后加签'), $lc('提示'), {
1166
1168
  confirmButtonText: $lc('确定'),
1167
1169
  cancelButtonText: $lc('取消'),
1168
1170
  type: 'warning'
1169
- }).then(() => {
1170
- callback()
1171
- }).catch(() => {})
1171
+ })
1172
+ .then(() => {
1173
+ callback()
1174
+ })
1175
+ .catch(() => {})
1172
1176
  } else {
1173
1177
  callback()
1174
1178
  }
@@ -4,7 +4,7 @@
4
4
  <!-- 自定义项 -->
5
5
  <ExpandablePane
6
6
  v-if="taskId && showBtn && authList.includes('isShowOtherAtt')"
7
- title="自定义项"
7
+ :title="$lc('自定义项')"
8
8
  :default-expand="false"
9
9
  >
10
10
  <el-form ref="approveBtnGroup" label-position="right" :label-width="_lang === 'zh' ? '12em' : '12em'">
@@ -67,7 +67,11 @@
67
67
  :label="'向前加签' | $lc"
68
68
  value="2"
69
69
  />
70
- <el-option v-if="authList.includes('isAddtask') || preAddTask" :label="'向后加签' | $lc" value="1" />
70
+ <el-option
71
+ v-if="authList.includes('isAddtask') || preAddTask"
72
+ :label="$lc('向后加签') | $lc"
73
+ value="1"
74
+ />
71
75
  </template>
72
76
  </el-select>
73
77
 
@@ -106,7 +110,7 @@
106
110
  ref="msg-input"
107
111
  v-model="messageC"
108
112
  type="textarea"
109
- placeholder="请输入审批意见"
113
+ :placeholder="$lc('请输入审批意见')"
110
114
  :maxlength="messageMax"
111
115
  show-word-limit
112
116
  :autosize="{ minRows: 2 }"
@@ -145,7 +149,9 @@
145
149
  </div>
146
150
 
147
151
  <div v-else-if="!authList.includes('byAddTask')" class="text-c">
148
- <div v-if="!approveBtns" style="text-align: center; font-size: 18px">请点击左上角返回处,进入OA待办页面</div>
152
+ <div v-if="!approveBtns" style="text-align: center; font-size: 18px">
153
+ {{ $lc('请点击左上角返回处,进入OA待办页面') }}
154
+ </div>
149
155
  <!-- 特殊会签按钮 START -->
150
156
  <el-button v-if="authList.includes('pass')" type="primary" @click="checkFlowFn">{{
151
157
  btnsNames['pass']
@@ -490,14 +496,14 @@ export default {
490
496
  checkSum: 0,
491
497
  mustUploadWidget: false,
492
498
  btnsNames: {
493
- pass: this.$l('通过'),
494
- refuse: this.$l('拒绝'),
495
- takeOff: this.$l('请假'),
496
- reject: this.$l('驳回'),
497
- rejectPre: this.$l('驳回至上一节点'),
498
- approval: this.$l('批 准'),
499
- discard: this.$l('作 废'),
500
- rejectTo: this.$l('驳回至')
499
+ pass: $lc('通过'),
500
+ refuse: $lc('拒绝'),
501
+ takeOff: $lc('请假'),
502
+ reject: $lc('驳回'),
503
+ rejectPre: $lc('驳回至上一节点'),
504
+ approval: $lc('批 准'),
505
+ discard: $lc('作 废'),
506
+ rejectTo: $lc('驳回至')
501
507
  },
502
508
  approveBtns: true
503
509
  }
@@ -879,7 +885,7 @@ export default {
879
885
  if (this.isWyfk) {
880
886
  this.attributes = {
881
887
  appOrPc: '3',
882
- ebsPaymentRiskWarning: '核实无误'
888
+ ebsPaymentRiskWarning: $lc('核实无误')
883
889
  }
884
890
  } else {
885
891
  this.attributes = { appOrPc: '3' }
@@ -48,7 +48,7 @@
48
48
  </div>
49
49
  <template slot="footer">
50
50
  <div class="flex-box m-t m-b" style="margin-left: calc(30% + 50px)">
51
- <cl-statis-item type="已选合计" :list="[{ label: '笔数', value: personList.length }]" show-w />
51
+ <cl-statis-item type="已选合计" :list="[{ label: $lc('笔数'), value: personList.length }]" show-w />
52
52
  </div>
53
53
  <div class="text-c">
54
54
  <el-button type="primary" @click="confirmFn">{{ '确定' | $lc }}</el-button>
@@ -75,7 +75,7 @@
75
75
  <el-input
76
76
  v-model="row.suggestion"
77
77
  slot-scope="{ row }"
78
- placeholder="请输入"
78
+ :placeholder="$lc('请输入')"
79
79
  size="normal"
80
80
  clearable
81
81
  maxlength="500"
@@ -200,14 +200,14 @@ export default {
200
200
  case '保存为常用语':
201
201
  axios.post('/bems/activiti/actAppOpi/saveAppOpi', { message: this.message }).then((res) => {
202
202
  if (res.code === 200) {
203
- this.$message.success('保存成功')
203
+ this.$message.success($lc("保存成功"))
204
204
  }
205
205
  })
206
206
  break
207
207
  case '保存':
208
208
  V = this.tableDataA.some((d) => !d.suggestion)
209
209
  if (V) {
210
- return this.$message.error('审批意见不能为空')
210
+ return this.$message.error($lc("审批意见不能为空"))
211
211
  }
212
212
  list = []
213
213
  this.tableDataA.forEach((d) => {
@@ -218,7 +218,7 @@ export default {
218
218
  })
219
219
  axios.post('/bems/activiti/actAppOpi/saveList', list).then((res) => {
220
220
  if (res.code === 200) {
221
- this.$message.success('保存成功')
221
+ this.$message.success($lc("保存成功"))
222
222
  this.setSpr = false
223
223
  this.show = true
224
224
  this.getData()
@@ -241,7 +241,7 @@ export default {
241
241
  break
242
242
  case '批量删除':
243
243
  if (this.selectValue.length === 0) {
244
- this.$message.warning('请选择要删除的数据')
244
+ this.$message.warning($lc("请选择要删除的数据"))
245
245
  return false
246
246
  }
247
247
  this.selectValue.forEach((item) => {
@@ -44,7 +44,7 @@ export default {
44
44
  try {
45
45
  this.otherattjson = JSON.parse(other.otherattjson) || []
46
46
  } catch (error) {
47
- console.warn(other.otherattjson, '配置的不对')
47
+ console.warn(other.otherattjson, $lc("配置的不对"))
48
48
  }
49
49
  if (!Array.isArray(this.otherattjson)) {
50
50
  this.otherattjson = []
@@ -17,7 +17,7 @@
17
17
  v-if="['11'].includes(item.cfgType)"
18
18
  v-model="item.cfgVal"
19
19
  :type="'text'"
20
- placeholder="请输入"
20
+ :placeholder="$lc('请输入')"
21
21
  class="input-w"
22
22
  clearable
23
23
  />
@@ -55,14 +55,14 @@
55
55
  value-format="yyyy-MM-dd"
56
56
  type="date"
57
57
  class="input-w"
58
- placeholder="选择日期"
58
+ :placeholder="$lc('选择日期')"
59
59
  />
60
60
  </el-form-item>
61
61
  <el-input
62
62
  v-if="['12'].includes(item.cfgType)"
63
63
  v-model="item.cfgVal"
64
64
  :type="'textarea'"
65
- placeholder="请输入"
65
+ :placeholder="$lc('请输入')"
66
66
  class="w-100p m-r-s m-b-s flex-1"
67
67
  clearable
68
68
  />
@@ -70,7 +70,7 @@
70
70
  v-if="item.cfgHasRemark === '1' && !['11', '12'].includes(item.cfgType)"
71
71
  v-model="item.cfgRemark"
72
72
  class="w-100p m-r-lg m-b-s flex-1"
73
- placeholder="请输入备注"
73
+ :placeholder="$lc('请输入备注')"
74
74
  />
75
75
  </div>
76
76
  </div>
@@ -80,7 +80,7 @@
80
80
  </span>
81
81
  </div>
82
82
  <div v-if="item.approvalCost" class="approval-info-cost">
83
- <span>审批时长:</span>
83
+ <span>{{ $lc('审批时长:') }}</span>
84
84
  <span>{{ item.approvalCost }}</span>
85
85
  </div>
86
86
  <div v-if="item.showConnect === '1'" class="approval-info-detail">
@@ -99,7 +99,7 @@
99
99
  <span v-if="item.addTaskName">{{ '加签审批人:' | $lc }}{{ item.addTaskName }}</span>
100
100
  </div>
101
101
 
102
- <template v-if="item.resultName !== '撤回' || showCtdMsg">
102
+ <template v-if="item.resultName !== $lc('撤回') || showCtdMsg">
103
103
  <div v-if="item.subProcInitId" class="n20-description-c n20-description-bgc m-t p-a-s">
104
104
  <span class="color-primary pointer" @click="seeApproveChild(item.subProcInitId)"
105
105
  >{{ item.suggestion }}<i class="n20-icon-shouqizhedie f-s-m"></i
@@ -152,7 +152,7 @@
152
152
  :show-overflow-tooltip="true"
153
153
  class="n20-worker text-ellipsis approval-info-member"
154
154
  >
155
- {{ row.memberName }}
155
+ {{ $lc(row.memberName) }}
156
156
  </div>
157
157
  <div
158
158
  v-title="row.deptName"
@@ -192,7 +192,7 @@
192
192
  <div v-if="row.addTaskName" class="n20-description-c m-t">
193
193
  {{ '加签审批人:' | $lc }}{{ row.addTaskName }}
194
194
  </div>
195
- <div v-if="row.resultName !== '撤回' || showCtdMsg">
195
+ <div v-if="row.resultName !== $lc('撤回') || showCtdMsg">
196
196
  <div v-if="row.suggestion" class="n20-description-c n20-description-bgc m-t p-a-s">
197
197
  <span v-if="row.result !== status.waiting">{{ '审批意见:' | $lc }}</span>
198
198
  <span style="line-height: 22px">{{ row.suggestion }} </span>
@@ -247,7 +247,7 @@
247
247
  @close="closeSee"
248
248
  >
249
249
  <span class="file-upload-table_preview-pn">
250
- <el-button plain size="mini" @click="downFile(seeRow)">下载</el-button>
250
+ <el-button plain size="mini" @click="downFile(seeRow)">{{ $lc('下载') }}</el-button>
251
251
  </span>
252
252
  <div v-if="visibleP" class="p-a" style="height: 82vh">
253
253
  <!-- <ViewerImg v-if="imgType.test(previewName)" :options="viewerOptions" style="height: 100%">
@@ -323,7 +323,7 @@
323
323
  @close="closeSee"
324
324
  >
325
325
  <span class="file-upload-table_preview-pn">
326
- <el-button plain size="mini" @click="downFile(seeRow)">下载</el-button>
326
+ <el-button plain size="mini" @click="downFile(seeRow)">{{ $lc('下载') }}</el-button>
327
327
  </span>
328
328
  <div v-if="visibleP" class="p-a" style="height: 82vh">
329
329
  <!-- <ViewerImg v-if="imgType.test(previewName)" :options="viewerOptions" style="height: 100%">
@@ -510,7 +510,7 @@ export default {
510
510
  businessId: item._details.businessId
511
511
  })
512
512
  } else {
513
- this.$message.error('未配置审批详情链接')
513
+ this.$message.error($lc('未配置审批详情链接'))
514
514
  }
515
515
  },
516
516
  async seeApproveChild(id) {
@@ -90,7 +90,7 @@
90
90
  <span v-if="item.addTaskName">{{ '加签审批人:' | $lc }}{{ item.addTaskName }}</span>
91
91
  </div>
92
92
 
93
- <template v-if="item.resultName !== '撤回' || showCtdMsg">
93
+ <template v-if="item.resultName !== $lc('撤回') || showCtdMsg">
94
94
  <!-- 子流程app暂时屏蔽 -->
95
95
  <!-- <div v-if="item.subProcInitId" class="n20-description-c n20-description-bgc m-t p-a-s">
96
96
  <span class="color-primary pointer" @click="seeApproveChild(item.subProcInitId)"
@@ -465,7 +465,7 @@ export default {
465
465
  businessId: item._details.businessId
466
466
  })
467
467
  } else {
468
- this.$message.error('未配置审批详情链接')
468
+ this.$message.error($lc("未配置审批详情链接"))
469
469
  }
470
470
  },
471
471
  async seeApproveChild(id) {
@@ -55,9 +55,9 @@
55
55
  <div v-if="assignee" :class="{ 'm-t-s': assigneeEnd }">{{ assignee }}</div>
56
56
 
57
57
  <div v-if="taskCandidate" class="m-t-ss m-b-ss">
58
- <div v-if="taskCandidate.cltNames.length">待审批单位:{{ taskCandidate.cltNames.join('、') }}</div>
59
- <div v-if="taskCandidate.roleNames.length">待审批角色:{{ taskCandidate.roleNames.join('、') }}</div>
60
- <div v-if="taskCandidate.unames.length">待审批人:{{ taskCandidate.unames.join('、') }}</div>
58
+ <div v-if="taskCandidate.cltNames.length">{{ $lc('待审批单位:') }}{{ taskCandidate.cltNames.join('、') }}</div>
59
+ <div v-if="taskCandidate.roleNames.length">{{ $lc('待审批角色:') }}{{ taskCandidate.roleNames.join('、') }}</div>
60
+ <div v-if="taskCandidate.unames.length">{{ $lc('待审批人:') }}{{ taskCandidate.unames.join('、') }}</div>
61
61
  </div>
62
62
  </div>
63
63
  </el-popover>
@@ -78,9 +78,9 @@
78
78
  <div v-if="assignee" :class="{ 'm-t-s': assigneeEnd }">{{ assignee }}</div>
79
79
 
80
80
  <div v-if="taskCandidate" class="m-t-ss m-b-ss">
81
- <div v-if="taskCandidate.cltNames.length">待审批单位:{{ taskCandidate.cltNames.join('、') }}</div>
82
- <div v-if="taskCandidate.roleNames.length">待审批角色:{{ taskCandidate.roleNames.join('、') }}</div>
83
- <div v-if="taskCandidate.unames.length">待审批人:{{ taskCandidate.unames.join('、') }}</div>
81
+ <div v-if="taskCandidate.cltNames.length">{{ $lc('待审批单位:') }}{{ taskCandidate.cltNames.join('、') }}</div>
82
+ <div v-if="taskCandidate.roleNames.length">{{ $lc('待审批角色:') }}{{ taskCandidate.roleNames.join('、') }}</div>
83
+ <div v-if="taskCandidate.unames.length">{{ $lc('待审批人:') }}{{ taskCandidate.unames.join('、') }}</div>
84
84
  </div>
85
85
  </div>
86
86
  </el-popover>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <Dialog v-drag :visible.sync="visibleC" width="75%" title="补传附件" v-bind="$attrs" v-on="$listeners">
2
+ <Dialog v-drag :visible.sync="visibleC" width="75%" :title="$lc('补传附件')" v-bind="$attrs" v-on="$listeners">
3
3
  <el-form ref="form" :model="paramValues" label-width="8em" class="label-width-14em">
4
4
  <el-form-item
5
5
  v-for="item in defaultModel"
@@ -13,7 +13,7 @@
13
13
  v-model="paramValues[item.value]"
14
14
  value-key="label"
15
15
  class="input-w"
16
- placeholder="请选择"
16
+ :placeholder="$lc('请选择')"
17
17
  v-bind="item.props"
18
18
  v-on="item.on"
19
19
  >
@@ -30,7 +30,7 @@
30
30
  type="date"
31
31
  class="input-w"
32
32
  value-format="yyyy-MM-dd"
33
- placeholder="请选择"
33
+ :placeholder="$lc('请选择')"
34
34
  v-bind="item.props"
35
35
  v-on="item.on"
36
36
  />
@@ -38,7 +38,7 @@
38
38
  v-if="item.type === 'text'"
39
39
  v-model="paramValues[item.value]"
40
40
  v-bind="item.props"
41
- placeholder="请选择"
41
+ :placeholder="$lc('请选择')"
42
42
  v-on="item.on"
43
43
  />
44
44
  </el-form-item>
@@ -53,7 +53,7 @@
53
53
  @delete-rows="deleteRows"
54
54
  @down-rows="downRows"
55
55
  >
56
- <el-table-column slot="slotCol" label="归档名称" width="140" prop="archiveName" show-overflow-tooltip />
56
+ <el-table-column slot="slotCol" :label="$lc('归档名称')" width="140" prop="archiveName" show-overflow-tooltip />
57
57
  </FileUploadTable>
58
58
  <slot name="dialogFoot"></slot>
59
59
  </Dialog>
@@ -159,7 +159,7 @@ export default {
159
159
  async downRows(rows) {
160
160
  const filesId = rows.map(({ beid }) => beid).filter(Boolean)
161
161
  if (!filesId.length) {
162
- return this.$message.warning('请勾选附件')
162
+ return this.$message.warning($lc("请勾选附件"))
163
163
  }
164
164
  const res = await axios.post(
165
165
  this.apiPrefix
@@ -218,7 +218,7 @@ export default {
218
218
 
219
219
  if (res.code === 200) {
220
220
  this.tableData = this.tableData.filter((item) => !filesId.includes(item.beid)) || []
221
- this.$message.success('删除成功')
221
+ this.$message.success($lc("删除成功"))
222
222
  }
223
223
  }
224
224