|
|
|
|
@ -2183,40 +2183,22 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
async toOaDetail (tbname,row) {
|
|
|
|
|
let res;
|
|
|
|
|
let url = `${process.env.VUE_APP_OUT_URL}/flow/view/`
|
|
|
|
|
switch (tbname) {
|
|
|
|
|
case 'hetong':
|
|
|
|
|
res = await httpCurl({
|
|
|
|
|
tbname,
|
|
|
|
|
out_contract_id: row.id
|
|
|
|
|
})
|
|
|
|
|
case "caigou":
|
|
|
|
|
url += row.purchase_last_flow_id
|
|
|
|
|
break;
|
|
|
|
|
case 'caigou':
|
|
|
|
|
res = await httpCurl({
|
|
|
|
|
tbname,
|
|
|
|
|
out_caigou_id: row.id
|
|
|
|
|
})
|
|
|
|
|
case "hetong":
|
|
|
|
|
url += row.join_last_flow_id
|
|
|
|
|
break;
|
|
|
|
|
case 'pay':
|
|
|
|
|
res = await httpCurl({
|
|
|
|
|
tbname,
|
|
|
|
|
out_pay_id: row.id
|
|
|
|
|
})
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
console.log(res)
|
|
|
|
|
if (res && res.flow?.id) {
|
|
|
|
|
window.open(
|
|
|
|
|
`${process.env.VUE_APP_OUT_OLD}/flow/view/${res.flow.id}&auth_token=${this.$store.getters.oa_token}`,
|
|
|
|
|
"bidding",
|
|
|
|
|
`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`
|
|
|
|
|
)
|
|
|
|
|
} else {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: 'warning',
|
|
|
|
|
message: '未查找到该流程'
|
|
|
|
|
})
|
|
|
|
|
default:
|
|
|
|
|
url = `${process.env.VUE_APP_OUT_URL}/admin/flow/list/todo`
|
|
|
|
|
}
|
|
|
|
|
window.open(
|
|
|
|
|
url,
|
|
|
|
|
"detail",
|
|
|
|
|
`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
reset () {
|
|
|
|
|
this.select = deepCopy(this.selectCopy)
|
|
|
|
|
@ -2336,13 +2318,13 @@ export default {
|
|
|
|
|
switch (row.flow_mod_id) {
|
|
|
|
|
case 12:
|
|
|
|
|
baseInfo = {
|
|
|
|
|
"6583b42c5c29a": row.name
|
|
|
|
|
"6583b42c5c29a": row.name,
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 5:
|
|
|
|
|
baseInfo = {
|
|
|
|
|
"65b37c797845d": row.name,
|
|
|
|
|
"65b37c8facfc9": row.content
|
|
|
|
|
"65b37c8facfc9": row.content,
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 29:
|
|
|
|
|
@ -2353,12 +2335,12 @@ export default {
|
|
|
|
|
"65852ba4697e7": row?.plans.reduce((pre,cur,index)=>(index === 0 ? cur?.name : pre+cur?.name+","),""),
|
|
|
|
|
"65852bd7afd2f": row.plan_price,
|
|
|
|
|
"65852bc914b8d": row.plan_price,
|
|
|
|
|
"65852c08d98f5": row.content
|
|
|
|
|
"65852c08d98f5": row.content,
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
// let res = await getOatoken()
|
|
|
|
|
let url = `${process.env.VUE_APP_OUT_OLD}/flow/create/${row.flow_mod_id}?auth_token=${this.$store.getters.oa_token}&out_caigou_id=${
|
|
|
|
|
let url = `${process.env.VUE_APP_OUT_OLD}/flow/create/${row.flow_mod_id}?auth_token=${this.$store.getters.oa_token}&out_contract_id=${
|
|
|
|
|
row.id
|
|
|
|
|
}&default_json=${JSON.stringify(baseInfo)}`;
|
|
|
|
|
console.log('url',url)
|
|
|
|
|
|