|
|
|
@ -355,6 +355,30 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template #flow_mod_id>
|
|
|
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
|
|
|
|
事前流程
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
|
|
|
<el-select
|
|
|
|
|
|
|
|
placeholder="事前流程"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
v-model="form.flow_mod_id"
|
|
|
|
|
|
|
|
style="width: 300px"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in flowIds"
|
|
|
|
|
|
|
|
:label="item.name"
|
|
|
|
|
|
|
|
:value="item.id"
|
|
|
|
|
|
|
|
:key="item.id"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
<template v-slot:department>
|
|
|
|
<template v-slot:department>
|
|
|
|
<div class="xy-table-item">
|
|
|
|
<div class="xy-table-item">
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
@ -516,6 +540,30 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template #flow_mod_id>
|
|
|
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
|
|
|
|
事前流程
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
|
|
|
<el-select
|
|
|
|
|
|
|
|
placeholder="事前流程"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
v-model="editorForm.flow_mod_id"
|
|
|
|
|
|
|
|
style="width: 300px"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in flowIds"
|
|
|
|
|
|
|
|
:label="item.name"
|
|
|
|
|
|
|
|
:value="item.id"
|
|
|
|
|
|
|
|
:key="item.id"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
<template v-slot:year>
|
|
|
|
<template v-slot:year>
|
|
|
|
<div class="xy-table-item">
|
|
|
|
<div class="xy-table-item">
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
@ -684,7 +732,7 @@ import {
|
|
|
|
} from "@/api/budget/budget";
|
|
|
|
} from "@/api/budget/budget";
|
|
|
|
import { listdeptNoAuth } from "@/api/system/department";
|
|
|
|
import { listdeptNoAuth } from "@/api/system/department";
|
|
|
|
import { Message } from "element-ui";
|
|
|
|
import { Message } from "element-ui";
|
|
|
|
import { parseTime, moneyFormatter, moneyRecovery } from "@/utils";
|
|
|
|
import {parseTime, moneyFormatter, moneyRecovery, deepCopy} from "@/utils";
|
|
|
|
import { getparameter, getparameterTree } from "@/api/system/dictionary";
|
|
|
|
import { getparameter, getparameterTree } from "@/api/system/dictionary";
|
|
|
|
import { mergeTableRow } from "@/utils/mergeTableRow";
|
|
|
|
import { mergeTableRow } from "@/utils/mergeTableRow";
|
|
|
|
|
|
|
|
|
|
|
|
@ -697,6 +745,45 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
//事前流程
|
|
|
|
|
|
|
|
flowIds: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 5,
|
|
|
|
|
|
|
|
name: "办公用品采购",
|
|
|
|
|
|
|
|
type: 1 //是否需要形式等
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 12,
|
|
|
|
|
|
|
|
name: "物资购置",
|
|
|
|
|
|
|
|
type: 1
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 19,
|
|
|
|
|
|
|
|
name: "政府采购流转",
|
|
|
|
|
|
|
|
type: 2
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 29,
|
|
|
|
|
|
|
|
name: "政府小额采购",
|
|
|
|
|
|
|
|
type: 2
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 22,
|
|
|
|
|
|
|
|
name: "公务接待",
|
|
|
|
|
|
|
|
type: 1
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 23,
|
|
|
|
|
|
|
|
name: "会议费用",
|
|
|
|
|
|
|
|
type: 1
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 28,
|
|
|
|
|
|
|
|
name: "培训费",
|
|
|
|
|
|
|
|
type: 1
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
tableHeight: 0,
|
|
|
|
tableHeight: 0,
|
|
|
|
isShowAdd: false,
|
|
|
|
isShowAdd: false,
|
|
|
|
types: [],
|
|
|
|
types: [],
|
|
|
|
@ -706,6 +793,7 @@ export default {
|
|
|
|
pid: "0",
|
|
|
|
pid: "0",
|
|
|
|
name: "",
|
|
|
|
name: "",
|
|
|
|
type: "",
|
|
|
|
type: "",
|
|
|
|
|
|
|
|
flow_mod_id: "",
|
|
|
|
year: "",
|
|
|
|
year: "",
|
|
|
|
department: "",
|
|
|
|
department: "",
|
|
|
|
money: "",
|
|
|
|
money: "",
|
|
|
|
@ -988,6 +1076,25 @@ export default {
|
|
|
|
this.departments = res;
|
|
|
|
this.departments = res;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
//事前流程
|
|
|
|
|
|
|
|
async getFlowIds () {
|
|
|
|
|
|
|
|
let copy = deepCopy(this.flowIds)
|
|
|
|
|
|
|
|
const res = await getparameter({
|
|
|
|
|
|
|
|
number: "flow_ids"
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
this.flowIds = res?.detail?.map(i => {
|
|
|
|
|
|
|
|
let data = JSON.parse(i.remark)
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
name: i.value,
|
|
|
|
|
|
|
|
...data
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
this.flowIds = copy
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log(this.flowIds)
|
|
|
|
|
|
|
|
},
|
|
|
|
//查询计划列表
|
|
|
|
//查询计划列表
|
|
|
|
getBudgets() {
|
|
|
|
getBudgets() {
|
|
|
|
getBudget({
|
|
|
|
getBudget({
|
|
|
|
@ -1044,6 +1151,7 @@ export default {
|
|
|
|
plan_department_links: plan_department_links,
|
|
|
|
plan_department_links: plan_department_links,
|
|
|
|
remark: this.form.remark,
|
|
|
|
remark: this.form.remark,
|
|
|
|
pid: this.form.pid,
|
|
|
|
pid: this.form.pid,
|
|
|
|
|
|
|
|
flow_mod_id: this.form.flow_mod_id
|
|
|
|
}).then((res) => {
|
|
|
|
}).then((res) => {
|
|
|
|
Message({
|
|
|
|
Message({
|
|
|
|
message: "操作成功",
|
|
|
|
message: "操作成功",
|
|
|
|
@ -1096,6 +1204,8 @@ export default {
|
|
|
|
remark: this.editorForm.remark,
|
|
|
|
remark: this.editorForm.remark,
|
|
|
|
plan_department_id: this.editorForm.department,
|
|
|
|
plan_department_id: this.editorForm.department,
|
|
|
|
plan_department_links: plan_department_links,
|
|
|
|
plan_department_links: plan_department_links,
|
|
|
|
|
|
|
|
pid: this.editorForm.pid,
|
|
|
|
|
|
|
|
flow_mod_id: this.editorForm.flow_mod_id
|
|
|
|
}).then((res) => {
|
|
|
|
}).then((res) => {
|
|
|
|
this.isShowEditor = false;
|
|
|
|
this.isShowEditor = false;
|
|
|
|
Message({
|
|
|
|
Message({
|
|
|
|
@ -1121,6 +1231,7 @@ export default {
|
|
|
|
id: res.id,
|
|
|
|
id: res.id,
|
|
|
|
name: res.name,
|
|
|
|
name: res.name,
|
|
|
|
type: res.type,
|
|
|
|
type: res.type,
|
|
|
|
|
|
|
|
flow_mod_id: res.flow_mod_id,
|
|
|
|
department: res.plan_department_id,
|
|
|
|
department: res.plan_department_id,
|
|
|
|
money: moneyFormatter(res.money),
|
|
|
|
money: moneyFormatter(res.money),
|
|
|
|
update_money: moneyFormatter(res.update_money),
|
|
|
|
update_money: moneyFormatter(res.update_money),
|
|
|
|
@ -1143,6 +1254,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
|
|
|
|
this.getFlowIds();
|
|
|
|
this.table = this.tableItem;
|
|
|
|
this.table = this.tableItem;
|
|
|
|
this.initLoad();
|
|
|
|
this.initLoad();
|
|
|
|
|
|
|
|
|
|
|
|
|