Browse Source

网页端:修改现场开支新增项的排序

余思翰 4 months ago
parent
commit
f2548b576a
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      oa-ui/src/views/flowable/form/budget/siteExpenses.vue

+ 3
- 1
oa-ui/src/views/flowable/form/budget/siteExpenses.vue View File

171
     submitNewExpense() {
171
     submitNewExpense() {
172
       this.$refs["newExpenseForm"].validate(valid => {
172
       this.$refs["newExpenseForm"].validate(valid => {
173
         if (valid) {
173
         if (valid) {
174
+          let length = this.dict.type.cmc_borrow_expense.length;
174
           this.newExpenseForm.dictType = 'cmc_borrow_expense';
175
           this.newExpenseForm.dictType = 'cmc_borrow_expense';
175
           this.newExpenseForm.dictLabel = this.newExpenseForm.name;
176
           this.newExpenseForm.dictLabel = this.newExpenseForm.name;
176
           this.newExpenseForm.dictValue = this.newExpenseForm.name;
177
           this.newExpenseForm.dictValue = this.newExpenseForm.name;
177
-          this.newExpenseForm.listClass = 'default'
178
+          this.newExpenseForm.listClass = 'default';
179
+          this.newExpenseForm.dictSort = length;
178
           addData(this.newExpenseForm).then(response => {
180
           addData(this.newExpenseForm).then(response => {
179
             this.$modal.msgSuccess("新增成功");
181
             this.$modal.msgSuccess("新增成功");
180
             this.open = false;
182
             this.open = false;

Loading…
Cancel
Save