master
xy 3 years ago
parent 2fd0c24d7a
commit 346b909949

@ -84,7 +84,6 @@ const actions = {
}, },
clearLayout({ commit }) { clearLayout({ commit }) {
commit("SET_LAYOUT",{}) commit("SET_LAYOUT",{})
window.localStorage.removeItem('worker-layout')
} }
}; };

@ -212,7 +212,7 @@
</template> </template>
<template v-slot:footerContent> <template v-slot:footerContent>
<Button type="primary" @click="isShowPlan = false"></Button> <Button type="primary" @click="planSelect"></Button>
</template> </template>
</xy-dialog> </xy-dialog>
</div> </div>

@ -577,7 +577,7 @@ import detail from "./components/detailContract"
import paymentRegistration from "./components/paymentRegistration"; import paymentRegistration from "./components/paymentRegistration";
import contractSign from "@/views/contract/components/contractSign"; import contractSign from "@/views/contract/components/contractSign";
import contractPaymentRegistration from "@/views/contract/components/contractPaymentRegistration"; import contractPaymentRegistration from "@/views/contract/components/contractPaymentRegistration";
let iframe;
export default { export default {
components: { components: {
editor, editor,
@ -1158,7 +1158,7 @@ export default {
fundingChannels: [], fundingChannels: [],
isBudget: true, isBudget: true,
plan: [], plan: [],
is_substitute: 0, //is_substitute: 0,
is_framework: 0, is_framework: 0,
use_framework_buy: 0, use_framework_buy: 0,
contract_to_contracts: [], contract_to_contracts: [],
@ -1497,8 +1497,8 @@ export default {
// //
setNowContract(contract,tbname) { setNowContract(contract,tbname) {
this.nowContract = { this.nowContract = {
...contract, tbname,
tbname ...contract
} }
}, },
// //
@ -1556,15 +1556,17 @@ export default {
}, },
// //
async signProcess(row) { async signProcess(row) {
this.setNowContract(row,'hetong')
let baseInfo = { let baseInfo = {
"title": row?.name, "title": row?.name,
"执行部门": row?.carry_department, "执行部门": row?.carry_department,
"total": row?.money, "total": row?.money,
"out_contract_id": row.id,
//"\\":row.supply //"\\":row.supply
} }
// let res = await getOatoken() // let res = await getOatoken()
let url = let url =
`${process.env.VUE_APP_OUT_OLD}?s=/flow/add/modid/9&username=${this.$store.state.user.username}&out_contract_id=${row.id}&contract_json=${JSON.stringify(baseInfo)}` `${process.env.VUE_APP_OUT_OLD}?s=/flow/add/modid/9&id=${this.$store.state.user.userId}&username=${this.$store.state.user.username}&out_contract_id=${row.id}&contract_json=${JSON.stringify(baseInfo)}`
let signProcess = window.open(url, 'signProcess', let signProcess = window.open(url, 'signProcess',
`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`
) )
@ -1909,12 +1911,24 @@ export default {
// //
window.onfocus = async () => { window.onfocus = async () => {
if(this.nowContract?.tbname && this.nowContract?.id) { if(this.nowContract?.tbname && this.nowContract?.id) {
const res = await getOutDetail({tbname:this.nowContract.tbname,out_caigou_id:this.nowContract.id}) let select = {}
select['tbname'] = this.nowContract.tbname;
switch (this.nowContract.tbname){
case "caigou":
select['out_caigou_id'] = this.nowContract.id;
break;
case "hetong":
select['out_contract_id'] = this.nowContract.id;
break;
}
const res = await getOutDetail(select)
let flowIdMap = new Map([ let flowIdMap = new Map([
['caigou',8] ['caigou',8],
['hetong',9]
]) ])
let flowTypeMap = new Map([ let flowTypeMap = new Map([
['caigou',2] ['caigou',2],
['hetong',3]
]) ])
let getStatus = (status) => { let getStatus = (status) => {
if(status === 'end') { if(status === 'end') {
@ -1936,13 +1950,14 @@ export default {
} }
}, },
created() { created() {
let iframe = document.createElement('iframe'); 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.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' iframe.style.display = 'none'
document.body.appendChild(iframe); document.body.appendChild(iframe);
}, },
destroyed() { destroyed() {
window.onfocus = null window.onfocus = null
document.body.removeChild(iframe);
} }
} }
</script> </script>

Loading…
Cancel
Save