|
@@ -1,6 +1,7 @@
|
|
|
<script>
|
|
|
import useColumns from "./columns";
|
|
|
import { ITEM, LIST } from "@/api/business/purchase/apply";
|
|
|
+import { toOA } from '@/api/purchase/purchaseDemand.js'
|
|
|
|
|
|
export default {
|
|
|
name: "SeeDrawer",
|
|
@@ -101,7 +102,11 @@ export default {
|
|
|
this.tabName = tabName;
|
|
|
},
|
|
|
async jumpOA() {
|
|
|
- console.log('参数',this)
|
|
|
+ toOA(this.$store.state.user.name, this.params.flowId).then(res => {
|
|
|
+ if(res.code === 200) {
|
|
|
+ window.open(res.oaUrl)
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
},
|
|
|
created() {},
|
|
@@ -127,9 +132,9 @@ export default {
|
|
|
>
|
|
|
<template slot="title">
|
|
|
<span>{{ title }}</span>
|
|
|
- <!-- <el-button :size="$attrs.size" :loading="loading" @click="jumpOA">
|
|
|
+ <el-button :size="$attrs.size" :loading="loading" @click="jumpOA" v-if="params.flowId">
|
|
|
流程跳转
|
|
|
- </el-button> -->
|
|
|
+ </el-button>
|
|
|
<el-button :size="$attrs.size" :loading="loading" @click="hide">
|
|
|
取 消
|
|
|
</el-button>
|