n20-common-lib 2.9.68 → 2.9.69

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.9.68",
3
+ "version": "2.9.69",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -203,11 +203,33 @@
203
203
  />
204
204
  </cl-dialog>
205
205
  <cl-dialog v-drag :visible.sync="rejectToV" :title="'驳回至节点' | $lc" width="960px" append-to-body top="7.5vh">
206
- <reject-to-prop :task-id="taskId" @close="rejectToV = false" @confirm="rejectToFn" />
206
+ <reject-to-prop
207
+ :task-id="taskId"
208
+ @close="rejectToV = false"
209
+ :showRetraceFlow="isShowRetrace"
210
+ @confirm="rejectToFn"
211
+ />
207
212
  </cl-dialog>
208
213
  <cl-dialog v-drag :visible.sync="approvalToV" :title="'批准至节点' | $lc" width="960px" append-to-body top="7.5vh">
209
214
  <reject-to-prop :task-id="taskId" type="approvalTo" @close="approvalToV = false" @confirm="approvalToFn" />
210
215
  </cl-dialog>
216
+ <cl-dialog
217
+ v-drag
218
+ :visible.sync="showFlowDialog"
219
+ :title="'驳回发起人是否重走流程' | $lc"
220
+ width="400px"
221
+ append-to-body
222
+ center-dialog
223
+ >
224
+ <el-radio-group v-model="isJump">
225
+ <el-radio label="0">{{ '重走流程' | $lc }}</el-radio>
226
+ <el-radio label="1">{{ '不重走流程' | $lc }}</el-radio>
227
+ </el-radio-group>
228
+ <div slot="footer">
229
+ <el-button type="primary" @click="handleIsJumpSave">{{ '确定' | $lc }}</el-button>
230
+ <el-button @click="showFlowDialog = false">{{ '取消' | $lc }}</el-button>
231
+ </div>
232
+ </cl-dialog>
211
233
  <cl-dialog v-drag :visible.sync="verifyV" :title="'校验结果' | $lc" width="960px" append-to-body top="7.5vh">
212
234
  <div class="m-t m-b">
213
235
  <span class="m-r-ss">{{ '结果统计:' | $lc }}</span> {{ '共计校验' | $lc }}<span>{{ verifyMsg.checkSum }}</span
@@ -393,7 +415,10 @@ export default {
393
415
  verifyV: false,
394
416
  verifyMsg: {},
395
417
  promptType: '0',
396
- remarkOpt: []
418
+ remarkOpt: [],
419
+ isShowRetrace: undefined,
420
+ isJump: undefined,
421
+ showFlowDialog: false
397
422
  }
398
423
  },
399
424
  computed: {
@@ -577,6 +602,7 @@ export default {
577
602
  addTaskTag: this.addTaskTag,
578
603
  addTaskWay: this.addTaskWay,
579
604
  customizationDtos,
605
+ isJump: this.isJump,
580
606
  ...this.otherAtt
581
607
  }
582
608
  ]
@@ -625,24 +651,46 @@ export default {
625
651
  F.then && F.then(callFn)
626
652
  }
627
653
  },
654
+ // 查询是否配置 允许不重走流程
655
+ async getIsShowRetraceFlow() {
656
+ let procInstId = this.$route.query.processInstanceId
657
+ let taskId = this.taskId
658
+ const { code, data } = await axios.get(
659
+ `/bems/activiti/admin/todo/isShowRetraceFlowOptions/${procInstId}/${taskId}`
660
+ )
661
+ return code === 200 && data
662
+ },
628
663
  // 驳回
629
- rejectFn() {
664
+ async rejectFn() {
630
665
  if (!this.messageC) {
631
666
  return this.errMsgFn(this.authList.includes('refuse') ? $lc('拒绝') : $lc('驳回'))
632
667
  }
668
+ this.showFlowDialog = await this.getIsShowRetraceFlow()
669
+
670
+ if (this.showFlowDialog) return
671
+
672
+ this.beforeFn(this.beforeReject, () => {
673
+ axios.post('/bems/activiti/admin/todo/reject', this.getParam()).then(({ data }) => {
674
+ this.thenMsg(data, $lc('驳回至发起人'))
675
+ })
676
+ })
677
+ },
678
+ handleIsJumpSave() {
633
679
  this.beforeFn(this.beforeReject, () => {
634
680
  axios.post('/bems/activiti/admin/todo/reject', this.getParam()).then(({ data }) => {
635
681
  this.thenMsg(data, $lc('驳回至发起人'))
636
682
  })
637
683
  })
638
684
  },
639
- rejectToB() {
685
+ async rejectToB() {
640
686
  if (!this.messageC) {
641
687
  return this.errMsgFn($lc('驳回'))
642
688
  }
689
+ this.isShowRetrace = await this.getIsShowRetraceFlow()
643
690
  this.rejectToV = true
644
691
  },
645
- rejectToFn(taskId) {
692
+ rejectToFn(taskId, isJump) {
693
+ this.isJump = isJump
646
694
  this.rejectToV = false
647
695
  let param = this.getParam()
648
696
  param.forEach((item) => {
@@ -40,9 +40,18 @@
40
40
  <template slot-scope="{ row }">{{ row | userF }}</template>
41
41
  </el-table-column>
42
42
  </el-table>
43
- <div slot="footer" class="m-t text-c">
44
- <el-button type="primary" @click="confirmFn">{{ type === 'approvalTo' ? $lc('批准') : $lc('驳回') }}</el-button>
45
- <el-button @click="$emit('close')">{{ '取消' | $lc }}</el-button>
43
+
44
+ <div slot="footer" class="m-t">
45
+ <div v-if="showRetraceFlowC">
46
+ <el-radio-group v-model="isJump">
47
+ <el-radio label="1">{{ '重走流程' | $lc }}</el-radio>
48
+ <el-radio label="0">{{ '不重走流程' | $lc }}</el-radio>
49
+ </el-radio-group>
50
+ </div>
51
+ <div class="text-c">
52
+ <el-button type="primary" @click="confirmFn">{{ type === 'approvalTo' ? $lc('批准') : $lc('驳回') }}</el-button>
53
+ <el-button @click="$emit('close')">{{ '取消' | $lc }}</el-button>
54
+ </div>
46
55
  </div>
47
56
  </cl-page>
48
57
  </template>
@@ -72,6 +81,10 @@ export default {
72
81
  taskId: {
73
82
  type: String,
74
83
  default: ''
84
+ },
85
+ showRetraceFlow: {
86
+ type: Boolean,
87
+ default: false
75
88
  }
76
89
  },
77
90
  data() {
@@ -81,9 +94,15 @@ export default {
81
94
  },
82
95
  stlV: undefined,
83
96
  list: [],
97
+ isJump: undefined,
84
98
  tableData: []
85
99
  }
86
100
  },
101
+ computed: {
102
+ showRetraceFlowC() {
103
+ return this.showRetraceFlow
104
+ }
105
+ },
87
106
  mounted() {
88
107
  axios
89
108
  .get(`/bems/activiti/sample/getTaskMoveVos/${this.taskId}/${this.type === 'approvalTo' ? 1 : 0}`, null, {
@@ -112,7 +131,7 @@ export default {
112
131
  this.$message.warning($lc('请选择节点'))
113
132
  return
114
133
  }
115
- this.$emit('confirm', this.stlV)
134
+ this.$emit('confirm', this.stlV, this.isJump)
116
135
  }
117
136
  }
118
137
  }
package/src/i18n.json CHANGED
@@ -3459,5 +3459,15 @@
3459
3459
  "en": "App approval",
3460
3460
  "th": "การอนุมัติบน App",
3461
3461
  "vi": "Phe duyệt bằng App"
3462
+ },
3463
+ "重走流程": {
3464
+ "en": "Re-run the process",
3465
+ "th": "ทำการรีรันด้วยขั้นตอนเดิม",
3466
+ "vi": "Làm lại quy trình"
3467
+ },
3468
+ "不重走流程": {
3469
+ "en": "Do not re-run the process",
3470
+ "th": "ไม่ทำการรีรันด้วยขั้นตอนเดิม",
3471
+ "vi": "Không làm lại quy trình"
3462
3472
  }
3463
3473
  }