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() } } }