master
xy 3 years ago
parent 64505cd08a
commit 3d36f985e4

@ -1,5 +1,5 @@
import request from "@/utils/request" import request from "@/utils/request"
export function getOutDetail({ tbname,out_caigou_id,out_contract_id,out_pay_id }) { export function getOutDetail({ tbname,out_caigou_id,out_contract_id,out_pay_id,out_zhaobiao_id }) {
return request({ return request({
method: 'get', method: 'get',
url: '/index.php', url: '/index.php',
@ -9,7 +9,8 @@ export function getOutDetail({ tbname,out_caigou_id,out_contract_id,out_pay_id }
tbname, tbname,
out_caigou_id, out_caigou_id,
out_contract_id, out_contract_id,
out_pay_id out_pay_id,
out_zhaobiao_id
} }
}) })
} }

@ -1548,13 +1548,14 @@ export default {
}, },
// //
async bidding(row) { async bidding(row) {
this.setNowContract(row,'zhaobiao')
let baseInfo = { let baseInfo = {
"项目名称": row?.name, "title": row?.name,
"项目预算(元)": row?.plan_price "out_zhaobiao_id": row.id,
} }
//let res = await getOatoken() //let res = await getOatoken()
let url = let url =
`${process.env.VUE_APP_OUT_OLD}?s=/flow/add/modid/8&oatoken=${res.oatoken}&out_contract_id=${row.id}&contract_json=${JSON.stringify(baseInfo)}` `${process.env.VUE_APP_OUT_OLD}?s=/flow/add/modid/30&id=${this.$store.state.user.userId}&username=${this.$store.state.user.username}&out_zhaobiao_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`
) )
@ -1990,15 +1991,20 @@ export default {
case "hetong": case "hetong":
select['out_contract_id'] = this.nowContract.id; select['out_contract_id'] = this.nowContract.id;
break; break;
case "zhaobiao":
select['out_zhaobiao_id'] = this.nowContract.id;
break;
} }
const res = await getOutDetail(select) const res = await getOutDetail(select)
let flowIdMap = new Map([ let flowIdMap = new Map([
['caigou',8], ['caigou',8],
['hetong',9] ['hetong',9],
['zhaobiao',30]
]) ])
let flowTypeMap = new Map([ let flowTypeMap = new Map([
['caigou',2], ['caigou',2],
['hetong',3] ['hetong',3],
['zhaobiao',27]
]) ])
let getStatus = (status) => { let getStatus = (status) => {
if(status === 'end') { if(status === 'end') {

@ -0,0 +1,17 @@
<template>
<div>
</div>
</template>
<script>
export default {
data() {
return {}
},
methods: {},
computed: {}
}
</script>
<style scoped lang="scss">
</style>
Loading…
Cancel
Save