diff --git a/src/views/xgf/flow/components/flowInfo.vue b/src/views/xgf/flow/components/flowInfo.vue index 0f7a130..7ffe2e4 100644 --- a/src/views/xgf/flow/components/flowInfo.vue +++ b/src/views/xgf/flow/components/flowInfo.vue @@ -3,7 +3,7 @@ v-if="visible" :visible.sync="visible" :before-close="handleClose" - :append-to-body="true" + :append-to-body="appendToBody" title="审批流程" width="60%"> @@ -15,18 +15,24 @@
- + 审批人:{{ item.APPROVER_NAME }} 审批状态:{{ item.PASS_FLAG === '1' ? '同意' : '不同意' }} - 审批时间:{{ item.APPROVER_TIME }} + 审批人归属公司:{{ item.APPROVER_CORPINFO_NAME }} + 审批时间:{{ item.APPROVER_TIME }} + + 审批意见:{{ item.APPROVER_OPINION }} + + 审批结束 +
@@ -35,7 +41,6 @@
@@ -45,9 +50,9 @@ import '@riophae/vue-treeselect/dist/vue-treeselect.css' export default { props: { - corpInfo: { - type: String, - default: '' + appendToBody: { + type: Boolean, + default: false } }, data() { diff --git a/src/views/xgf/flow/components/flowInfoList.vue b/src/views/xgf/flow/components/flowInfoList.vue index 0f5c959..981ccf5 100644 --- a/src/views/xgf/flow/components/flowInfoList.vue +++ b/src/views/xgf/flow/components/flowInfoList.vue @@ -24,9 +24,8 @@ - + diff --git a/src/views/xgf/flow/components/flowStep.vue b/src/views/xgf/flow/components/flowStep.vue index 45004c3..a517ae3 100644 --- a/src/views/xgf/flow/components/flowStep.vue +++ b/src/views/xgf/flow/components/flowStep.vue @@ -2,9 +2,10 @@ @@ -16,15 +17,21 @@
- 审批人:{{ item.APPOINT_DEPARTMENT_NAME }} + 审批人:{{ item.APPOINT_USER_NAME }} + + + 审批人公司:{{ item.APPOINT_CORP_NAME }} + + + 审批人部门:{{ item.APPOINT_DEPARTMENT_NAME }} 审批状态:{{ item.APPOINT_STATUS === '1' ? '同意' : item.APPOINT_STATUS === '0' ? '不同意' : '' }} - 审批时间:{{ item.APPOINT_USER_NAME }} + 审批时间:{{ item.APPOINT_TIME }} - + 审批意见:{{ item.APPOINT_OPINION }} @@ -56,6 +63,7 @@ export default { visible: false, loading: false, list: [], + title: '审批流程', form: { XGF_USER_ID: '' }, @@ -64,8 +72,6 @@ export default { }, methods: { init(e) { - this.visible = true - this.loading = false this.form.XGF_USER_ID = e.XGF_USER_ID this.getInfo() }, @@ -75,6 +81,17 @@ export default { ).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) }) diff --git a/src/views/xgf/flowList/components/list.vue b/src/views/xgf/flowList/components/list.vue index 0b313c5..bbe419b 100644 --- a/src/views/xgf/flowList/components/list.vue +++ b/src/views/xgf/flowList/components/list.vue @@ -41,9 +41,11 @@ - + @@ -59,6 +61,8 @@ + +
@@ -71,9 +75,11 @@ import apply from './apply' import user from './user.vue' import SendUtil from './sendUtil.vue' import UserInfo from '../../flowApply/components/userInfo.vue' +import FlowStep from '../../flow/components/flowStep.vue' +import FlowInfoList from '../../flow/components/flowInfoList.vue' export default { - components: { UserInfo, SendUtil, Pagination, apply, vueQr, user }, + components: { FlowInfoList, FlowStep, UserInfo, SendUtil, Pagination, apply, vueQr, user }, directives: { waves }, data() { return { @@ -156,6 +162,12 @@ export default { handleShow(row) { this.$refs.userInfos.init(row) }, + handleShowStep(row) { + this.$refs.flowStep.init(row) + }, + handleShowFlow(row) { + this.$refs.flowInfo.init(row) + }, approve(row) { this.$refs.sendUtil.init(row) },