|
|
|
|
@ -467,6 +467,7 @@
|
|
|
|
|
:rules="rules"
|
|
|
|
|
title="编辑"
|
|
|
|
|
type="form"
|
|
|
|
|
@submit="editorTable"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:name>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
@ -654,9 +655,9 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:footerContent>
|
|
|
|
|
<Button type="primary" @click="editorTable">确定</Button>
|
|
|
|
|
</template>
|
|
|
|
|
// <template v-slot:footerContent>
|
|
|
|
|
// <Button type="primary" @click="editorTable">确定</Button>
|
|
|
|
|
// </template>
|
|
|
|
|
</xy-dialog>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@ -1078,13 +1079,13 @@ export default {
|
|
|
|
|
department_id: item
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
console.log(this.form)
|
|
|
|
|
addBudget({
|
|
|
|
|
name: this.form.name,
|
|
|
|
|
type: this.form.type,
|
|
|
|
|
year: this.form.year,
|
|
|
|
|
content: this.form.content,
|
|
|
|
|
money: moneyRecovery(this.form.money),
|
|
|
|
|
money:this.form.money? moneyRecovery(this.form.money):'',
|
|
|
|
|
plan_department_id: this.form.department,
|
|
|
|
|
plan_department_links: plan_department_links,
|
|
|
|
|
remark: this.form.remark,
|
|
|
|
|
@ -1115,9 +1116,10 @@ export default {
|
|
|
|
|
|
|
|
|
|
// 修改
|
|
|
|
|
editorTable() {
|
|
|
|
|
this.$refs['editorDialog'].$refs['elForm']
|
|
|
|
|
.validate()
|
|
|
|
|
.then((res) => {
|
|
|
|
|
console.log(this.editorForm)
|
|
|
|
|
// this.$refs['editorDialog'].$refs['elForm']
|
|
|
|
|
// .validate()
|
|
|
|
|
// .then((res) => {
|
|
|
|
|
if (this.editorForm.plan_department_link_id.length == 0) {
|
|
|
|
|
Message({
|
|
|
|
|
message: '请选择可用部门',
|
|
|
|
|
@ -1137,8 +1139,8 @@ export default {
|
|
|
|
|
type: this.editorForm.type,
|
|
|
|
|
year: this.editorForm.year,
|
|
|
|
|
content: this.editorForm.content,
|
|
|
|
|
money: moneyRecovery(this.editorForm.money),
|
|
|
|
|
update_money: moneyRecovery(this.editorForm.update_money),
|
|
|
|
|
money: this.editorForm.money? moneyRecovery(this.editorForm.money):'',
|
|
|
|
|
update_money: this.editorForm.update_money? moneyRecovery(this.editorForm.update_money):'',
|
|
|
|
|
remark: this.editorForm.remark,
|
|
|
|
|
plan_department_id: this.editorForm.department,
|
|
|
|
|
plan_department_links: plan_department_links
|
|
|
|
|
@ -1150,13 +1152,13 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
this.getBudgets()
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
this.$message({
|
|
|
|
|
message: '请填写完整信息',
|
|
|
|
|
type: 'error'
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
// })
|
|
|
|
|
// .catch((err) => {
|
|
|
|
|
// this.$message({
|
|
|
|
|
// message: '请填写完整信息',
|
|
|
|
|
// type: 'error'
|
|
|
|
|
// })
|
|
|
|
|
// })
|
|
|
|
|
},
|
|
|
|
|
showEditor(row) {
|
|
|
|
|
this.checkArr = []
|
|
|
|
|
|