xy 2 years ago
parent fb722a8f83
commit 07772d540d

@ -174,6 +174,21 @@
</div> </div>
</template> </template>
<template v-slot:extraFormBottom> <template v-slot:extraFormBottom>
<el-select
placeholder="科室选择"
clearable
size="small"
v-model="plansSelect.plan_department_id"
style="width: 160px"
>
<el-option
v-for="item in departments"
:label="item.name"
:value="item.id"
:key="item.id"
>
</el-option>
</el-select>
<Input search enter-button=" " placeholder="搜索预算计划.." v-model="plansSelect.name" @on-search="getBudgets" /> <Input search enter-button=" " placeholder="搜索预算计划.." v-model="plansSelect.name" @on-search="getBudgets" />
<div class="contract-add-plan" style="min-width: 300px;"> <div class="contract-add-plan" style="min-width: 300px;">
<template v-if="paymentRegistrationForm.plan.length > 0"> <template v-if="paymentRegistrationForm.plan.length > 0">
@ -227,6 +242,7 @@ import {
export default { export default {
data() { data() {
return { return {
departments: [],
fileList: [], fileList: [],
planTotal: 0, planTotal: 0,
pageIndex: 1, pageIndex: 1,
@ -312,11 +328,12 @@ import {
plansSelect: { plansSelect: {
page: 1, page: 1,
page_size: 10, page_size: 10,
name: '' name: '',
plan_department_id: ""
}, },
planTable: [{ planTable: [{
sortable: false, sortable: false,
width: 36, width: 40,
type: 'selection' type: 'selection'
}, },
{ {
@ -621,6 +638,12 @@ import {
this.$refs.planTable.clearSelection() this.$refs.planTable.clearSelection()
} }
}, },
//
getDepartment() {
listdeptNoAuth().then((res) => {
this.departments = res;
});
},
}, },
computed: { computed: {
moneyFormat() { moneyFormat() {
@ -639,6 +662,9 @@ import {
} }
} }
}, },
created() {
this.getDepartment()
},
async mounted() { async mounted() {
//await this.getBudgets() //await this.getBudgets()
await this.getPlanTypes() await this.getPlanTypes()

Loading…
Cancel
Save