|
|
|
|
@ -199,7 +199,8 @@
|
|
|
|
|
import {
|
|
|
|
|
addContractSign,
|
|
|
|
|
getContractSign,
|
|
|
|
|
delContractSign
|
|
|
|
|
delContractSign,
|
|
|
|
|
httpCurl
|
|
|
|
|
} from "@/api/contractSign/contractSign";
|
|
|
|
|
import {
|
|
|
|
|
detailContract,
|
|
|
|
|
@ -440,14 +441,30 @@
|
|
|
|
|
//获取oa合同信息
|
|
|
|
|
async getOaContractInfo() {
|
|
|
|
|
try {
|
|
|
|
|
let res = await getOatoken()
|
|
|
|
|
let resToken = await getOatoken();
|
|
|
|
|
let ourl =`/oa/admin/flow/view/${this.contract.join_last_flow_id}?oatoken=${resToken.oatoken}&get_raw=1`
|
|
|
|
|
|
|
|
|
|
console.log(ourl)
|
|
|
|
|
let url =
|
|
|
|
|
`${process.env.VUE_APP_OUT_URL}/admin/flow/view/${this.contract.join_last_flow_id}?oatoken=${res.oatoken}&get_raw=1`
|
|
|
|
|
const oaInfo = await axios.get(url)
|
|
|
|
|
this.form.money = Number(oaInfo.data.flow['合同金额(元)'])
|
|
|
|
|
this.form.number = oaInfo.data.flow['合同编号']
|
|
|
|
|
this.form.supply = oaInfo.data.flow['承包商\\供应商']
|
|
|
|
|
this.form.carryDepartment = oaInfo.data.flow['执行部门']
|
|
|
|
|
`${process.env.VUE_APP_OUT_URL}/admin/flow/view/${this.contract.join_last_flow_id}`
|
|
|
|
|
//?oatoken=${res.oatoken}&get_raw=1
|
|
|
|
|
let paras={oatoken:resToken.oatoken,get_raw:1};
|
|
|
|
|
const res = await httpCurl(paras,true,'/Api/flowDetail','GET',url);
|
|
|
|
|
console.log(res)
|
|
|
|
|
this.form.money = Number(res.flow['合同金额(元)'])
|
|
|
|
|
this.form.number = res.flow['合同编号']
|
|
|
|
|
this.form.supply = res.flow['承包商\\供应商']
|
|
|
|
|
this.form.carryDepartment = res.flow['执行部门']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// let res = await getOatoken()
|
|
|
|
|
// let url =
|
|
|
|
|
// `/oa/admin/flow/view/${this.contract.join_last_flow_id}?oatoken=${res.oatoken}&get_raw=1`
|
|
|
|
|
// const oaInfo = await axios.get(url)
|
|
|
|
|
// this.form.money = Number(oaInfo.data.flow['合同金额(元)'])
|
|
|
|
|
// this.form.number = oaInfo.data.flow['合同编号']
|
|
|
|
|
// this.form.supply = oaInfo.data.flow['承包商\\供应商']
|
|
|
|
|
// this.form.carryDepartment = oaInfo.data.flow['执行部门']
|
|
|
|
|
} catch {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|