n20-common-lib 2.19.14 → 2.19.15-sc

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "2.19.14",
3
+ "version": "2.19.15-sc",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -108,22 +108,12 @@
108
108
  ref="msg-input"
109
109
  v-model="messageC"
110
110
  type="textarea"
111
- :placeholder="`${$lc('请输入操作意见(')}${messageMax}${
112
- requiredC
113
- ? $lc('字以内),批准该意见为必填,驳回/作废该意见为必填!')
114
- : $lc('字以内),批准该意见为非必填,驳回/作废该意见为必填!')
115
- }`"
111
+ :placeholder="messagePlaceholder"
116
112
  :maxlength="messageMax"
117
113
  show-word-limit
118
114
  :autosize="{ minRows: 2 }"
119
115
  />
120
- <template v-if="taskId && showBtn">
121
- <show-app-opi
122
- v-if="opiAndUser || authList.includes('showAppOpi')"
123
- :task-id="taskId"
124
- :message.sync="messageC"
125
- :and-user="opiAndUser"
126
- />
116
+ <!-- <template v-if="taskId && showBtn">
127
117
  <show-other-att
128
118
  v-if="authList.includes('showOtherAtt')"
129
119
  class="flex-1 m-l"
@@ -131,7 +121,7 @@
131
121
  :other-att="otherAtt"
132
122
  style="width: 18%"
133
123
  />
134
- </template>
124
+ </template> -->
135
125
  </el-form-item>
136
126
  <el-form-item v-if="fileKitT">
137
127
  <span slot="label">
@@ -350,13 +340,12 @@ import ClUpload from '../Upload'
350
340
  import dCloumn from './getDCloumn'
351
341
  import CarboncopyProp from './setCarboncopyProp.vue'
352
342
  import RejectToProp from './setRejectToProp.vue'
353
- import ShowAppOpi from './showAppOpi.vue'
354
343
  import ShowOtherAtt from './showOtherAttr.vue'
355
344
  import ShowOtherAttNew from './showOtherAttrNew.vue'
356
345
  import ExpandablePane from '../Expandable/main.vue'
357
346
  import { toExaminePath } from './specialHandle'
358
347
  const prefixCls = 'n20-approval-Button'
359
- // window._approvalExtend = { 'addtask.chdUserInfo.extend': {}, 'appOpi.queryAppOpiAndUser.exist': undefined, 'card.countermand.suggestion': false }
348
+ // window._approvalExtend = { 'addtask.chdUserInfo.extend': {}, 'card.countermand.suggestion': false }
360
349
  if (!window._approvalExtend) window._approvalExtend = {}
361
350
  if (!window._approvalExtend['addtask.chdUserInfo.extend']) {
362
351
  window._approvalExtend['addtask.chdUserInfo.extend'] = window._isAddtask_get_userlist_extend_data_ || {}
@@ -370,7 +359,6 @@ export default {
370
359
  ClUpload,
371
360
  CarboncopyProp,
372
361
  RejectToProp,
373
- ShowAppOpi,
374
362
  ShowOtherAtt,
375
363
  ShowOtherAttNew,
376
364
  ExpandablePane
@@ -485,7 +473,6 @@ export default {
485
473
  rejectToV: false,
486
474
  approvalToV: false,
487
475
  showApprovalTo: false,
488
- opiAndUser: false,
489
476
  addTaskMode: '0',
490
477
  otherAtt: {},
491
478
  customizationDtos: {},
@@ -521,6 +508,24 @@ export default {
521
508
  }
522
509
  },
523
510
  computed: {
511
+ messagePlaceholder() {
512
+ // 提示与实际按钮保持一致:普通审批只提示驳回,支持作废的审核同时提示作废。
513
+ const showDiscard = this.authList.includes('byAddTask')
514
+ ? this.addTaskList.length === 0
515
+ : this.authList.includes('discard')
516
+ let opinionTip
517
+ // 保留流程配置的批准必填规则,避免提示与提交校验不一致。
518
+ if (showDiscard) {
519
+ opinionTip = this.requiredC
520
+ ? $lc('字以内),批准该意见为必填,驳回/作废该意见为必填!')
521
+ : $lc('字以内),批准该意见为非必填,驳回/作废该意见为必填!')
522
+ } else {
523
+ opinionTip = this.requiredC
524
+ ? $lc('字以内),批准该意见为必填,驳回该意见为必填!')
525
+ : $lc('字以内),批准该意见为非必填,驳回该意见为必填!')
526
+ }
527
+ return `${$lc('请输入审批意见(')}${this.messageMax}${opinionTip}`
528
+ },
524
529
  messageC: {
525
530
  get() {
526
531
  return this.msgisSync ? this.message : this.messageIn
@@ -551,7 +556,6 @@ export default {
551
556
  this.getBtns()
552
557
  this.getAddTaskMode()
553
558
  this.getShowApprovalTo()
554
- this.getHasQueryAppOpiAndUser()
555
559
  this.nextApproval && this.getTodoList()
556
560
  this.getConfiguration()
557
561
  this.getIsShowUploadWidget()
@@ -743,24 +747,6 @@ export default {
743
747
  this.preAddTask = window._approvalExtend['appOpi.addTaskWay.exist']
744
748
  }
745
749
  },
746
- // 刺探审批意见接口是否存在
747
- getHasQueryAppOpiAndUser() {
748
- if (this.showBtn && window._approvalExtend['appOpi.queryAppOpiAndUser.exist'] === undefined) {
749
- axios
750
- .post('/bems/activiti/actAppOpi/queryAppOpiAndUser', null, {
751
- loading: false,
752
- noMsg: true
753
- })
754
- .then(() => {
755
- this.opiAndUser = window._approvalExtend['appOpi.queryAppOpiAndUser.exist'] = true
756
- })
757
- .catch(() => {
758
- window._approvalExtend['appOpi.queryAppOpiAndUser.exist'] = false
759
- })
760
- } else {
761
- this.opiAndUser = window._approvalExtend['appOpi.queryAppOpiAndUser.exist']
762
- }
763
- },
764
750
  // 获取提交参数
765
751
  getParam() {
766
752
  let { typeCode, taskId, groupNo, isAgentcy, isCheck } = this.$route.query
package/src/i18n.json CHANGED
@@ -2879,20 +2879,35 @@
2879
2879
  "th": "แนบการอัปโหลด",
2880
2880
  "vi": "Tải lên đính kèm"
2881
2881
  },
2882
+ "请输入审批意见(": {
2883
+ "en": "Please enter approval comments (up to ",
2884
+ "th": "โปรดระบุความคิดเห็นในการอนุมัติ (ไม่เกิน ",
2885
+ "vi": "Vui lòng nhập ý kiến phê duyệt (tối đa "
2886
+ },
2887
+ "字以内),批准该意见为非必填,驳回该意见为必填!": {
2888
+ "en": " characters). Comments are optional for approval and required for rejection!",
2889
+ "th": "ตัวอักษร) ไม่จำเป็นต้องระบุความคิดเห็นเมื่ออนุมัติ แต่จำเป็นเมื่อปฏิเสธ!",
2890
+ "vi": " ký tự). Ý kiến không bắt buộc khi phê duyệt, nhưng bắt buộc khi từ chối!"
2891
+ },
2892
+ "字以内),批准该意见为必填,驳回该意见为必填!": {
2893
+ "en": " characters). Comments are required for both approval and rejection!",
2894
+ "th": "ตัวอักษร) จำเป็นต้องระบุความคิดเห็นทั้งเมื่ออนุมัติและเมื่อปฏิเสธ!",
2895
+ "vi": " ký tự). Ý kiến là bắt buộc khi phê duyệt và khi từ chối!"
2896
+ },
2882
2897
  "请输入操作意见(": {
2883
2898
  "en": "Please input operation comments(",
2884
2899
  "th": "โปรดใส่ความคิดเห็นการดำเนินการ (",
2885
2900
  "vi": "Vui lòng nhập ý kiến về thao tác ("
2886
2901
  },
2887
2902
  "字以内),批准该意见为非必填,驳回/作废该意见为必填!": {
2888
- "en": "within words),approve this opinion is not required, reject/void this opinion is required!",
2889
- "th": "ภายในคำ), การอนุมัติความคิดเห็นนี้ไม่จำเป็น, การปฏิเสธ/ยกเลิกความคิดเห็นนี้จำเป็น!",
2890
- "vi": "trong từ), không yêu cầu phê duyệt ý kiến này, phải yêu cầu từ chối/hủy ý kiến này!"
2903
+ "en": " characters). Comments are optional for approval and required for rejection/voiding!",
2904
+ "th": "ตัวอักษร) ไม่จำเป็นต้องระบุความคิดเห็นเมื่ออนุมัติ แต่จำเป็นเมื่อปฏิเสธ/ยกเลิก!",
2905
+ "vi": " ký tự). Ý kiến không bắt buộc khi phê duyệt, nhưng bắt buộc khi từ chối/hủy!"
2891
2906
  },
2892
2907
  "字以内),批准该意见为必填,驳回/作废该意见为必填!": {
2893
- "en": "within words), approve this opinion is required, reject/void this opinion is required!",
2894
- "th": "ภายในคำ), การอนุมัติความคิดเห็นนี้จำเป็น, การปฏิเสธ/ยกเลิกความคิดเห็นนี้จำเป็น!",
2895
- "vi": "trong từ), phê duyệt ý kiến này là bắt buộc, từ chối/hủy ý kiến này là bắt buộc!"
2908
+ "en": " characters). Comments are required for approval, rejection and voiding!",
2909
+ "th": "ตัวอักษร) จำเป็นต้องระบุความคิดเห็นเมื่ออนุมัติ ปฏิเสธ หรือยกเลิก!",
2910
+ "vi": " ký tự). Ý kiến là bắt buộc khi phê duyệt, từ chối hoặc hủy!"
2896
2911
  },
2897
2912
  "批准至": {
2898
2913
  "en": "Approved to",