|
|
|
@ -718,7 +718,7 @@ import {
|
|
|
|
addContrant,
|
|
|
|
addContrant,
|
|
|
|
delContract,
|
|
|
|
delContract,
|
|
|
|
checkContractName,
|
|
|
|
checkContractName,
|
|
|
|
updateStatus,
|
|
|
|
updateStatus, detailContract,
|
|
|
|
} from "@/api/contract/contract";
|
|
|
|
} from "@/api/contract/contract";
|
|
|
|
import { getparameter } from "@/api/system/dictionary";
|
|
|
|
import { getparameter } from "@/api/system/dictionary";
|
|
|
|
import { listdeptNoAuth } from "@/api/system/department";
|
|
|
|
import { listdeptNoAuth } from "@/api/system/department";
|
|
|
|
@ -737,6 +737,7 @@ import contractPaymentRegistration from "@/views/contract/components/contractPay
|
|
|
|
import biddingUpload from "./components/biddingUpload.vue";
|
|
|
|
import biddingUpload from "./components/biddingUpload.vue";
|
|
|
|
import oaFiles from './components/oaFiles.vue';
|
|
|
|
import oaFiles from './components/oaFiles.vue';
|
|
|
|
import addContractLedger from '@/views/contract/components/addContractLedger.vue'
|
|
|
|
import addContractLedger from '@/views/contract/components/addContractLedger.vue'
|
|
|
|
|
|
|
|
import {show} from "@/api/away";
|
|
|
|
let iframe;
|
|
|
|
let iframe;
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
|
@ -1744,7 +1745,6 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async toOaDetail (tbname,row) {
|
|
|
|
async toOaDetail (tbname,row) {
|
|
|
|
let url = `${process.env.VUE_APP_OUT_URL}/#/flow/detail?auth_token=${window.encodeURIComponent(getToken())}&isSinglePage=1&flow_id=`
|
|
|
|
let url = `${process.env.VUE_APP_OUT_URL}/#/flow/detail?auth_token=${window.encodeURIComponent(getToken())}&isSinglePage=1&flow_id=`
|
|
|
|
//let url = `${process.env.VUE_APP_OUT_URL}?auth_token=${window.encodeURIComponent(getToken())}&module_name=oa&isSinglePage=1&`
|
|
|
|
|
|
|
|
switch (tbname) {
|
|
|
|
switch (tbname) {
|
|
|
|
case "caigou":
|
|
|
|
case "caigou":
|
|
|
|
let caigou = row.flow_list.find(i => i.tag === 'caigou')?.detail
|
|
|
|
let caigou = row.flow_list.find(i => i.tag === 'caigou')?.detail
|
|
|
|
@ -1910,11 +1910,6 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let url = `${process.env.VUE_APP_OUT_OLD}/#/flow/create?auth_token=${window.encodeURIComponent(getToken())}&module_name=oa&isSinglePage=1&module_id=${row.flow_mod_id}&out_contract_id=${row.id}&default_json=${JSON.stringify(baseInfo)}`;
|
|
|
|
let url = `${process.env.VUE_APP_OUT_OLD}/#/flow/create?auth_token=${window.encodeURIComponent(getToken())}&module_name=oa&isSinglePage=1&module_id=${row.flow_mod_id}&out_contract_id=${row.id}&default_json=${JSON.stringify(baseInfo)}`;
|
|
|
|
console.log('url',url)
|
|
|
|
console.log('url',url)
|
|
|
|
// let buyProcess = window.open(
|
|
|
|
|
|
|
|
// url,
|
|
|
|
|
|
|
|
// "buyProcess",
|
|
|
|
|
|
|
|
// `top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`
|
|
|
|
|
|
|
|
// );
|
|
|
|
|
|
|
|
this.oaUrl = url
|
|
|
|
this.oaUrl = url
|
|
|
|
this.isShowOaModal = true
|
|
|
|
this.isShowOaModal = true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -1937,38 +1932,32 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//付款流程
|
|
|
|
//付款流程
|
|
|
|
async paying(row) {
|
|
|
|
async paying(row) {
|
|
|
|
let typeMap = new Map([
|
|
|
|
// 75
|
|
|
|
['货物','货物采购'],
|
|
|
|
let contract;
|
|
|
|
['服务','服务采购'],
|
|
|
|
if (row.contract_id) {
|
|
|
|
['其他','其他项目']
|
|
|
|
contract = await detailContract({ id: row.contract_id });
|
|
|
|
])
|
|
|
|
} else {
|
|
|
|
|
|
|
|
contract = await show({ id: row.away_id });
|
|
|
|
|
|
|
|
}
|
|
|
|
let baseInfo = {
|
|
|
|
let baseInfo = {
|
|
|
|
"flow_title": row.name || "",
|
|
|
|
"flow_title": row.name || "",
|
|
|
|
title: row?.name,
|
|
|
|
title: row?.name,
|
|
|
|
xiangmuleibie: typeMap.get(this.type.find((item) => {
|
|
|
|
|
|
|
|
return item.value === row.type;
|
|
|
|
|
|
|
|
})?.label),
|
|
|
|
|
|
|
|
things: row?.name,
|
|
|
|
things: row?.name,
|
|
|
|
"658a6f87c4a75": row?.number,
|
|
|
|
"contractno": row?.number,
|
|
|
|
out_pay_id: row?.out_pay_id,
|
|
|
|
out_pay_id: row?.out_pay_id,
|
|
|
|
"658a70251f0f4": row?.reason,
|
|
|
|
"xiangxishuoming": row?.reason,
|
|
|
|
"658a71e9395b2": row?.yizhifucishu,
|
|
|
|
"cishu": row?.yizhifucishu,
|
|
|
|
"658a70750b3cf": row?.yizhifujine,
|
|
|
|
"yifujine": row?.yizhifujine,
|
|
|
|
"658a7036916f6": row?.zongjia,
|
|
|
|
"xiangmuzonge": row?.zongjia,
|
|
|
|
"658a7059b6531": row?.zhifucishu,
|
|
|
|
"zhifucishu": row?.zhifucishu,
|
|
|
|
total: row?.total,
|
|
|
|
"amt": row?.applyMoney,
|
|
|
|
"658a6fafb27ac": row?.applyMoney
|
|
|
|
"liezhiqudao": contract?.plans.map(i => i.name)?.toString()
|
|
|
|
//"承包商\\供应商":row.supply
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
let url = `${process.env.VUE_APP_OUT_OLD}/flow/create/18?auth_token=${this.$store.getters.oa_token}&out_pay_id=${
|
|
|
|
let url = `${process.env.VUE_APP_OUT_OLD}/#/flow/create?auth_token=${window.encodeURIComponent(getToken())}&module_name=oa&isSinglePage=1&module_id=75&out_away_id=${row.id}&default_json=${JSON.stringify(baseInfo)}`;
|
|
|
|
row?.out_pay_id
|
|
|
|
|
|
|
|
}&default_json=${JSON.stringify(baseInfo)}`;
|
|
|
|
this.oaUrl = url;
|
|
|
|
let signProcess = window.open(
|
|
|
|
this.isShowOaModal = true;
|
|
|
|
url,
|
|
|
|
this.$router.push('/contract/paymentRegistrationList_1')
|
|
|
|
"signProcess",
|
|
|
|
|
|
|
|
`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
this.$router.push('/contract/contract/paymentRegistrationList_1')
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//请示流程
|
|
|
|
//请示流程
|
|
|
|
async askProcess(row) {
|
|
|
|
async askProcess(row) {
|
|
|
|
|