Просмотр исходного кода

fix: 将表单类型转换为数字,以确保数据一致性

xieyong 1 месяц назад
Родитель
Сommit
bf91831290
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/views/financialManage/invoiceManage/components/addOrEditDialogNew.vue

+ 1 - 0
src/views/financialManage/invoiceManage/components/addOrEditDialogNew.vue

@@ -1085,6 +1085,7 @@
       //获取详情
       //获取详情
       async getInfo(id) {
       async getInfo(id) {
         this.form = await invoiceApplyInfoV2API(id);
         this.form = await invoiceApplyInfoV2API(id);
+        this.form.type = Number(this.form.type);
         this.$nextTick(() => {
         this.$nextTick(() => {
           // 根据来源类型设置数据源:99 用 tableInfo(setValue),非 99 用 tableInfoNew(putValue)
           // 根据来源类型设置数据源:99 用 tableInfo(setValue),非 99 用 tableInfoNew(putValue)
           if (this.form.sourceType == 99) {
           if (this.form.sourceType == 99) {