master
xy 3 years ago
parent 3d36f985e4
commit 701c12bdec

@ -14,3 +14,21 @@ export function getOutDetail({ tbname,out_caigou_id,out_contract_id,out_pay_id,o
} }
}) })
} }
export function httpCurl({ tbname,out_caigou_id,out_contract_id,out_pay_id,out_zhaobiao_id }) {
return request({
method: 'post',
url: '/api/admin/other/http-curl',
data: {
url: 'http://hjjc-szemcold-test.ali251.langye.net',
params: {
s: "/Api/flowDetail",
tbname,
out_caigou_id,
out_contract_id,
out_pay_id,
out_zhaobiao_id
}
}
})
}

@ -219,7 +219,7 @@
parseTime, parseTime,
moneyFormatter moneyFormatter
} from "@/utils" } from "@/utils"
import { getOutDetail } from "@/api/out/index" import { getOutDetail, httpCurl } from '@/api/out'
import { getparameter } from "@/api/system/dictionary" import { getparameter } from "@/api/system/dictionary"
import detailContractSign from "@/views/contract/components/detailContractSign"; import detailContractSign from "@/views/contract/components/detailContractSign";
@ -511,7 +511,7 @@
}, },
async getOutContract() { async getOutContract() {
const res = await getOutDetail({ tbname: 'hetong', out_contract_id: this.contract.id }) const res = await httpCurl({ tbname: 'hetong', out_contract_id: this.contract.id })
console.log(res) console.log(res)
this.form.number = res.flow?.serial this.form.number = res.flow?.serial
this.form.money = Number(res.flow_detail?.total) this.form.money = Number(res.flow_detail?.total)

@ -272,7 +272,7 @@ import { getOatoken } from "@/api/oatoken";
import { Message } from "element-ui"; import { Message } from "element-ui";
import { moneyFormatter } from "@/utils"; import { moneyFormatter } from "@/utils";
import { getparameter } from "@/api/system/dictionary"; import { getparameter } from "@/api/system/dictionary";
import { getOutDetail } from "@/api/out"; import { getOutDetail, httpCurl } from "@/api/out";
import detailContractSign from "./detailContractSign"; import detailContractSign from "./detailContractSign";
export default { export default {
@ -590,17 +590,17 @@ export default {
watch: { watch: {
isShowDetail(val) { isShowDetail(val) {
if (val) { if (val) {
getOutDetail({ tbname: "hetong", out_contract_id: this.id }).then( httpCurl({ tbname: "hetong", out_contract_id: this.id }).then(
(res) => { (res) => {
this.outContractDetail = res; this.outContractDetail = res;
} }
); );
getOutDetail({ tbname: "caigou", out_caigou_id: this.id }).then( httpCurl({ tbname: "caigou", out_caigou_id: this.id }).then(
(res) => { (res) => {
this.outCaigouDetail = res; this.outCaigouDetail = res;
} }
); );
getOutDetail({ tbname: "pay", out_pay_id: this.id }).then((res) => { httpCurl({ tbname: "pay", out_pay_id: this.id }).then((res) => {
this.outPayDetail = res; this.outPayDetail = res;
}); });
} }

@ -580,7 +580,7 @@ import {
import { import {
getToken getToken
} from '@/utils/auth' } from '@/utils/auth'
import { getOutDetail } from "@/api/out" import { getOutDetail, httpCurl } from "@/api/out"
import editor from "./components/editorContract" import editor from "./components/editorContract"
import detail from "./components/detailContract" import detail from "./components/detailContract"
import paymentRegistration from "./components/paymentRegistration"; import paymentRegistration from "./components/paymentRegistration";
@ -1995,7 +1995,7 @@ export default {
select['out_zhaobiao_id'] = this.nowContract.id; select['out_zhaobiao_id'] = this.nowContract.id;
break; break;
} }
const res = await getOutDetail(select) const res = await httpCurl(select)
let flowIdMap = new Map([ let flowIdMap = new Map([
['caigou',8], ['caigou',8],
['hetong',9], ['hetong',9],

Loading…
Cancel
Save