Prechádzať zdrojové kódy

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

xieyong 1 mesiac pred
rodič
commit
bf91831290

+ 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) {