master
lion 5 months ago
parent 5a8f09f930
commit c0318b5d08

@ -144,9 +144,11 @@ export default {
submit() {
this.form.id = this.id
if (this.type === 1) {
this.form.year_middle_audit = (this.form.year_middle_audit && this.form.year_middle_audit < 0) ? Math.abs(this.form.year_middle_audit) : 0
// this.form.year_middle_audit = (this.form.year_middle_audit && this.form.year_middle_audit < 0) ? Math.abs(this.form.year_middle_audit) : 0
this.form.year_middle_audit = 0
} else {
this.form.year_end_audit = (this.form.year_end_audit && this.form.year_end_audit < 0) ? Math.abs(this.form.year_end_audit) : 0
// this.form.year_end_audit = (this.form.year_end_audit && this.form.year_end_audit < 0) ? Math.abs(this.form.year_end_audit) : 0
this.form.year_end_audit = 0
}
editorBudget({
...this.form,

Loading…
Cancel
Save