|
|
|
@ -330,6 +330,7 @@
|
|
|
|
<Input v-model="planSearch" search enter-button="搜 索" placeholder="搜索预算计划.." @on-search="getBudgets" />
|
|
|
|
<Input v-model="planSearch" search enter-button="搜 索" placeholder="搜索预算计划.." @on-search="getBudgets" />
|
|
|
|
|
|
|
|
|
|
|
|
<xy-table
|
|
|
|
<xy-table
|
|
|
|
|
|
|
|
:header-cell-class-name="cellClassName"
|
|
|
|
ref="editorPlanTable"
|
|
|
|
ref="editorPlanTable"
|
|
|
|
:list="plans"
|
|
|
|
:list="plans"
|
|
|
|
:show-index="false"
|
|
|
|
:show-index="false"
|
|
|
|
@ -339,7 +340,7 @@
|
|
|
|
row-key="id"
|
|
|
|
row-key="id"
|
|
|
|
border
|
|
|
|
border
|
|
|
|
default-expand-all
|
|
|
|
default-expand-all
|
|
|
|
:tree-props="{ children: 'notChildren', hasChildren: 'hasChildren' }"
|
|
|
|
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
|
|
|
|
@select="selectPlan"
|
|
|
|
@select="selectPlan"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<template v-slot:btns>
|
|
|
|
<template v-slot:btns>
|
|
|
|
@ -489,6 +490,7 @@ export default {
|
|
|
|
callback()
|
|
|
|
callback()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
flowConfig: [],
|
|
|
|
flowConfig: [],
|
|
|
|
flowStatus: new Map([
|
|
|
|
flowStatus: new Map([
|
|
|
|
@ -619,7 +621,7 @@ export default {
|
|
|
|
width: 44,
|
|
|
|
width: 44,
|
|
|
|
type: 'selection',
|
|
|
|
type: 'selection',
|
|
|
|
selectable: (row, index) => {
|
|
|
|
selectable: (row, index) => {
|
|
|
|
return row.pid === 0
|
|
|
|
return row.pid > 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -820,6 +822,11 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
cellClassName({ row, column, rowIndex, columnIndex }) {
|
|
|
|
|
|
|
|
if (columnIndex === 0) {
|
|
|
|
|
|
|
|
return "allSelect";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
// 获取预算计划
|
|
|
|
// 获取预算计划
|
|
|
|
async getBudgets() {
|
|
|
|
async getBudgets() {
|
|
|
|
const res = await getBudget({
|
|
|
|
const res = await getBudget({
|
|
|
|
@ -1011,6 +1018,9 @@ export default {
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
|
|
|
::v-deep .allSelect .cell {
|
|
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
}
|
|
|
|
.contract-add-plan {
|
|
|
|
.contract-add-plan {
|
|
|
|
min-height: 30px;
|
|
|
|
min-height: 30px;
|
|
|
|
border: 1px solid #dcdee2;
|
|
|
|
border: 1px solid #dcdee2;
|
|
|
|
|