master
xy 3 years ago
parent a1e6332091
commit 03c01da9d6

@ -45,7 +45,7 @@ export const constantRoutes = [{
{ {
path: '/', path: '/',
component: Layout, component: Layout,
redirect: '/contract/dashboard', redirect: '/worker',
children: [{ children: [{
path: 'contract/dashboard', path: 'contract/dashboard',
name: '系统首页', name: '系统首页',

@ -1385,7 +1385,7 @@ export default {
} }
let res = await getOatoken() let res = await getOatoken()
let url = let url =
`${process.env.VUE_APP_OUT_URL}?s=/flow/add/modid/8/oatoken=${res.oatoken}&out_contract_id=${row.id}&contract_json=${JSON.stringify(baseInfo)}` `${process.env.VUE_APP_OUT_URL}?s=/flow/add/modid/8&oatoken=${res.oatoken}&out_contract_id=${row.id}&contract_json=${JSON.stringify(baseInfo)}`
let bidding = window.open(url, 'bidding', let bidding = window.open(url, 'bidding',
`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0` `top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`
) )
@ -1395,13 +1395,12 @@ export default {
async buyProcess(row) { async buyProcess(row) {
let baseInfo = { let baseInfo = {
"title": row?.name, "title": row?.name,
"采购形式": row?.purchase_type?.value, //"": row?.purchase_type?.value,
"采购方式": row?.purchase_way?.value, "iszhengfucaigou": row.purchase_type.value === "政府采购" ? "是" : "否",
"项目类型": this.type.filter(item => { "type": this.type.filter(item => {
return item.value === row.type return item.value === row.type
})[0]?.label, })[0]?.label,
"资金渠道": row?.money_way?.value, "yusuan": row?.plan_price
"项目预算(元)": row?.plan_price
} }
let res = await getOatoken() let res = await getOatoken()
let url = let url =
@ -1413,9 +1412,9 @@ export default {
// //
async signProcess(row) { async signProcess(row) {
let baseInfo = { let baseInfo = {
"合同名称": row?.name, "title": row?.name,
"执行部门": row?.carry_department, "执行部门": row?.carry_department,
"合同金额(元)": row?.money, "total": row?.money,
//"\\":row.supply //"\\":row.supply
} }
let res = await getOatoken() let res = await getOatoken()
@ -1435,17 +1434,6 @@ export default {
) )
}, },
//
debounce(fn, delay = 500) {
let timer = null
return function _debounce() {
if (timer) clearTimeout(timer)
timer = setTimeout(() => {
fn()
}, delay)
}
},
// //
pageChange(e) { pageChange(e) {
this.select.pageIndex = e this.select.pageIndex = e
@ -1737,6 +1725,14 @@ export default {
this.getContracts() this.getContracts()
} }
}, },
created() {
let iframe = document.createElement('iframe');
iframe.src = `${process.env.VUE_APP_OUT_OLD}/login/oss_login?id=${this.$store.state.user.userId}&username=${this.$store.state.user.username}`
iframe.style.display = 'none'
console.log(111,`${process.env.VUE_APP_OUT_OLD}/login/oss_login?id=${this.$store.state.user.userId}&username=${this.$store.state.user.username}`
)
document.body.appendChild(iframe);
},
destroyed() { destroyed() {
window.onfocus = null window.onfocus = null
} }

Loading…
Cancel
Save