From dee6df9c4b89fed4ffff4259d98f564b7e317164 Mon Sep 17 00:00:00 2001
From: "271556543@qq.com" <271556543@qq.com>
Date: Fri, 29 Jul 2022 16:28:10 +0800
Subject: [PATCH] 2022.7.29 (2)
---
.../contract/components/detailContract.vue | 78 +++++++++++++++++-
src/views/contract/contractList.vue | 80 ++++++++++++-------
2 files changed, 126 insertions(+), 32 deletions(-)
diff --git a/src/views/contract/components/detailContract.vue b/src/views/contract/components/detailContract.vue
index 130d425..9c53481 100644
--- a/src/views/contract/components/detailContract.vue
+++ b/src/views/contract/components/detailContract.vue
@@ -66,9 +66,12 @@
@@ -94,6 +97,7 @@
import {detailContract} from "@/api/contract/contract";
import {delContractSign, getContractSign} from "@/api/contractSign/contractSign"
import {parseTime} from "@/utils"
+import {getOatoken} from "@/api/oatoken";
import {Message} from "element-ui";
import detailContractSign from "./detailContractSign"
@@ -103,6 +107,13 @@ export default {
},
data() {
return {
+ window:{
+ width:0,
+ height:0,
+ top:0,
+ left:0
+ },
+
//合同详情
id:'',
detail:null,
@@ -200,6 +211,60 @@ export default {
}
},
methods: {
+ async seeBuyProcess(){
+ if(!this.detail?.purchase_last_flow_id){
+ Message({
+ type:"warning",
+ message:"还未进行采购申请",
+ duration:2000
+ })
+ return
+ }
+ let res = await getOatoken()
+ let url =`${process.env.VUE_APP_OUT_URL}/admin/flow/view/${this.detail.purchase_last_flow_id}?oatoken=${res.oatoken}`
+ let seeBuy = window.open(url,'seeBuy',`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`)
+ },
+ async seeBidding(){
+ if(!this.detail?.invite_last_flow_id){
+ Message({
+ type:"warning",
+ message:"还未进行招标申请",
+ duration:2000
+ })
+ return
+ }
+ let res = await getOatoken()
+ let url =`${process.env.VUE_APP_OUT_URL}/admin/flow/view/${this.detail.invite_last_flow_id}?oatoken=${res.oatoken}`
+ let seeBidding = window.open(url,'seeBidding',`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`)
+ },
+ async seeSignProcess(){
+ if(!this.detail?.join_last_flow_id){
+ Message({
+ type:"warning",
+ message:"还未进行会签申请",
+ duration:2000
+ })
+ return
+ }
+ let res = await getOatoken()
+ let url =`${process.env.VUE_APP_OUT_URL}/admin/flow/view/${this.detail.join_last_flow_id}?oatoken=${res.oatoken}`
+ let seeSign = window.open(url,'seeSign',`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`)
+
+ },
+ async seeAskProcess(){
+ if(!this.detail?.req_last_flow_id){
+ Message({
+ type:"warning",
+ message:"还未进行请示申请",
+ duration:2000
+ })
+ return
+ }
+ let res = await getOatoken()
+ let url =`${process.env.VUE_APP_OUT_URL}/admin/flow/view/${this.detail.req_last_flow_id}?oatoken=${res.oatoken}`
+ let seeAsk = window.open(url,'seeAsk',`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`)
+ },
+
async getDetail(id){
this.id = id
let res = await detailContract({id:id})
@@ -238,6 +303,12 @@ export default {
}
}
}
+ },
+ mounted() {
+ this.window.width = screen.availWidth * 0.8
+ this.window.height = screen.availHeight * 0.8
+ this.window.top = (window.screen.height - 30 - this.window.height)/2
+ this.window.left = (window.screen.width - 10 - this.window.width)/2
}
}
@@ -319,7 +390,6 @@ export default {
&>div{
cursor: pointer;
- flex-basis: 16%;
margin: 0 20px;
}
diff --git a/src/views/contract/contractList.vue b/src/views/contract/contractList.vue
index a419969..efb4284 100644
--- a/src/views/contract/contractList.vue
+++ b/src/views/contract/contractList.vue
@@ -85,20 +85,21 @@
-
+
-
+
-
+
-
+
deleteContract(scope.row.id)">
删除
-
+
+
+
@@ -210,7 +214,7 @@
*关联预算计划