编辑 预算计划

master
lion 2 weeks ago
parent 5e78e0029b
commit eb8f9cc3cb

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

@ -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;

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

Loading…
Cancel
Save