编辑 预算计划

master
lion 2 weeks ago
parent 5e78e0029b
commit eb8f9cc3cb

@ -479,6 +479,7 @@
<xy-table
ref="PlanTable"
:header-cell-class-name="cellClassName"
:list="plans"
:show-index="false"
:table-item="planTable"
@ -487,7 +488,7 @@
row-key="id"
border
default-expand-all
:tree-props="{ children: 'notChildren', hasChildren: 'hasChildren' }"
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
@selection-change="planPick"
>
<template v-slot:btns>
@ -747,7 +748,7 @@ export default {
reserveSelection: true,
type: 'selection',
selectable: (row, index) => {
return row.pid === 0
return row.pid > 0
}
},
{
@ -1108,6 +1109,11 @@ export default {
(value instanceof Array ? value.length > 0 : true)
)
},
cellClassName({ row, column, rowIndex, columnIndex }) {
if (columnIndex === 0) {
return "allSelect";
}
},
planPick(selection) {
this.form.contract_plan_links = selection.map(i => ({
id: i._linkId,
@ -1257,6 +1263,9 @@ export default {
</script>
<style scoped lang="scss">
::v-deep .allSelect .cell {
display: none;
}
.plan-pick {
min-height: 30px;
border: 1px solid #dcdee2;

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

@ -615,10 +615,10 @@
>
流程附件
</Button>
// <!--
// ($refs['editor'].isShowEditor = true,
// $refs['editor'].getDetail(scope.row.id))
// -->
<!--
($refs['editor'].isShowEditor = true,
$refs['editor'].getDetail(scope.row.id))
-->
<template v-if="scope.row.status != 2 || hasEdit">
<Button
class="slot-btns-item"

Loading…
Cancel
Save