|
|
|
|
@ -955,6 +955,10 @@
|
|
|
|
|
:show-index="false"
|
|
|
|
|
:table-item="planTable"
|
|
|
|
|
style="margin-top: 10px"
|
|
|
|
|
row-key="id"
|
|
|
|
|
border
|
|
|
|
|
default-expand-all
|
|
|
|
|
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
|
|
|
|
|
@select="selectPlan"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:btns>
|
|
|
|
|
@ -965,7 +969,7 @@
|
|
|
|
|
width="140"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<Input
|
|
|
|
|
<Input v-if="scope.row.pid !== 0"
|
|
|
|
|
:value="scope.row.useMoney"
|
|
|
|
|
@input="planInput($event, scope.row)"
|
|
|
|
|
/>
|
|
|
|
|
@ -1763,10 +1767,13 @@ export default {
|
|
|
|
|
],
|
|
|
|
|
planTable: [
|
|
|
|
|
{
|
|
|
|
|
width: 40,
|
|
|
|
|
width: 44,
|
|
|
|
|
sortable: false,
|
|
|
|
|
type: "selection",
|
|
|
|
|
fixed: "left",
|
|
|
|
|
selectable: (row, index) => {
|
|
|
|
|
return row.pid !== 0
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "分类",
|
|
|
|
|
@ -2266,6 +2273,9 @@ export default {
|
|
|
|
|
|
|
|
|
|
//采购流程
|
|
|
|
|
async buyProcess(row) {
|
|
|
|
|
let zijinlaiyuanjuti = row.plans?.map(plan => {
|
|
|
|
|
return this.plans.find(p => p.id === plan.pid)?.name
|
|
|
|
|
})
|
|
|
|
|
this.setNowContract(row, "caigou");
|
|
|
|
|
let baseInfo = {
|
|
|
|
|
title: row?.name,
|
|
|
|
|
@ -2284,6 +2294,7 @@ export default {
|
|
|
|
|
return prev + "," + cur?.value;
|
|
|
|
|
}
|
|
|
|
|
}, ""),
|
|
|
|
|
zijinlaiyuanjuti: zijinlaiyuanjuti.toString()
|
|
|
|
|
};
|
|
|
|
|
// let res = await getOatoken()
|
|
|
|
|
let url = `${process.env.VUE_APP_OUT_OLD}?s=/flow/add/modid/8&auth_token=${this.$store.getters.oa_token}&out_caigou_id=${
|
|
|
|
|
@ -2374,11 +2385,12 @@ export default {
|
|
|
|
|
page_size: 10,
|
|
|
|
|
page: this.plansPageIndex,
|
|
|
|
|
plan_department_id: this.planSearch.plan_department_id,
|
|
|
|
|
top_pid: 1,
|
|
|
|
|
top_pid: '',
|
|
|
|
|
is_tree: 1
|
|
|
|
|
});
|
|
|
|
|
this.plans = res.list.data;
|
|
|
|
|
this.plans = res.list;
|
|
|
|
|
|
|
|
|
|
this.planTotal = res.list.total;
|
|
|
|
|
this.planTotal = res.list.total || 0;
|
|
|
|
|
|
|
|
|
|
this.toggleSelection(
|
|
|
|
|
this.plan.map((item) => {
|
|
|
|
|
@ -2754,15 +2766,16 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getBudgets();
|
|
|
|
|
this.select.keyword = this.$route.query.keyword;
|
|
|
|
|
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.style.display = "none";
|
|
|
|
|
document.body.appendChild(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.style.display = "none";
|
|
|
|
|
// document.body.appendChild(iframe);
|
|
|
|
|
},
|
|
|
|
|
destroyed() {
|
|
|
|
|
window.onfocus = null;
|
|
|
|
|
document.body.removeChild(iframe);
|
|
|
|
|
//document.body.removeChild(iframe);
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|