master
xy 3 years ago
parent a1e6332091
commit 03c01da9d6

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

@ -1385,7 +1385,7 @@ export default {
}
let res = await getOatoken()
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',
`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) {
let baseInfo = {
"title": row?.name,
"采购形式": row?.purchase_type?.value,
"采购方式": row?.purchase_way?.value,
"项目类型": this.type.filter(item => {
//"": row?.purchase_type?.value,
"iszhengfucaigou": row.purchase_type.value === "政府采购" ? "是" : "否",
"type": this.type.filter(item => {
return item.value === row.type
})[0]?.label,
"资金渠道": row?.money_way?.value,
"项目预算(元)": row?.plan_price
"yusuan": row?.plan_price
}
let res = await getOatoken()
let url =
@ -1413,9 +1412,9 @@ export default {
//
async signProcess(row) {
let baseInfo = {
"合同名称": row?.name,
"title": row?.name,
"执行部门": row?.carry_department,
"合同金额(元)": row?.money,
"total": row?.money,
//"\\":row.supply
}
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) {
this.select.pageIndex = e
@ -1737,6 +1725,14 @@ export default {
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() {
window.onfocus = null
}

Loading…
Cancel
Save