From c892e31e27c2602249b6b29f822b60f54525c6f6 Mon Sep 17 00:00:00 2001 From: liujun Date: Tue, 11 Jun 2024 14:21:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=96=B9=E4=BA=BA=E5=91=98?= =?UTF-8?q?=E5=AE=A1=E6=89=B9=E5=8F=AF=E6=8C=87=E5=AE=9A=E6=89=93=E5=9B=9E?= =?UTF-8?q?=E8=87=B3=E7=89=B9=E6=AE=8A=E8=8A=82=E7=82=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/xgf/flow/components/sendUtil.vue | 103 ++++++++++++++++++++- 1 file changed, 100 insertions(+), 3 deletions(-) diff --git a/src/views/xgf/flow/components/sendUtil.vue b/src/views/xgf/flow/components/sendUtil.vue index d7a15fb..01ec759 100644 --- a/src/views/xgf/flow/components/sendUtil.vue +++ b/src/views/xgf/flow/components/sendUtil.vue @@ -38,11 +38,64 @@ - + + + +
{{ form.BACK_NAME }}
+
+
+ + + + + + + + + + @@ -114,7 +167,9 @@ export default { tm: new Date().getTime(), list: [], isShow: true, - info: {} + info: {}, + BACK_NAME: '', + BACK_STEP: '' }, rules: { STATUS: [ @@ -134,6 +189,9 @@ export default { ], LIMIT_END_TIME: [ { required: true, message: '请选择指定培训有效截至时间', trigger: 'change' } + ], + BACK_NAME: [ + { required: true, message: '请填选择回节点', trigger: 'change' } ] }, heirloom: {}, @@ -154,7 +212,9 @@ export default { user: '', uploadFile: '', limitFlag: '' - } + }, + step: 0, + list: [] } }, methods: { @@ -165,6 +225,8 @@ export default { this.form.list = JSON.stringify(e) this.info = e[0] await this.getMenu() + this.form.BACK_NAME = this.info.BELONG_TO_CORP_NAME + this.form.BACK_STEP = '-1' if (this.info.FLOWS_TYPE === '0') { if (this.info.FLOWS_STEP === 0) { @@ -328,6 +390,11 @@ export default { list: [], tm: new Date().getTime() } + this.list = [ + { + INDEX: '-1' + } + ] }, clearInfo() { this.form.APPOINT_DEPARTMENT_ID = null @@ -336,6 +403,36 @@ export default { this.form.APPOINT_USER_NAME = '' this.form.OPINION = '' this.form.user = '' + if (this.form.STATUS === '0') { + this.getInfo() + } + }, + getInfo() { + const info = JSON.parse(this.heirloom)[0] + requestFN( + '/xgf/user/getApproveInfo', { XGF_USER_ID: info.XGF_USER_ID } + ).then((data) => { + this.list = data.flow.info + this.step = data.flow.STEP + if (data.flow.endFlag === '1') { + this.title = '审批中' + } + if (data.flow.endFlag === '2') { + this.title = '审批结束' + } + if (data.flow.endFlag === '-2') { + this.title = '审批驳回' + } + this.visible = true + this.loading = false + }).catch((e) => { + console.log(e) + }) + }, + backPoint(num, name) { + this.form.BACK_STEP = num + this.form.BACK_NAME = name + this.$forceUpdate() } } }