소스 검색

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

xieyong 1 개월 전
부모
커밋
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) {
         this.form = await invoiceApplyInfoV2API(id);
+        this.form.type = Number(this.form.type);
         this.$nextTick(() => {
           // 根据来源类型设置数据源:99 用 tableInfo(setValue),非 99 用 tableInfoNew(putValue)
           if (this.form.sourceType == 99) {