浏览代码

fix: 修复获取发票类别时的类型转换问题,确保为无效值时返回空字符串

xieyong 1 天之前
父节点
当前提交
03bbe76bfe

+ 1 - 0
src/views/bpm/handleTask/components/financialManage/invoiceManage/components/detailDialog.vue

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