Forráskód Böngészése

feat: 发票管理新增是否冲红列并修复应收账款搜索空字符串参数问题

lucw 1 hete
szülő
commit
6eae62c613

+ 8 - 0
src/views/financialManage/invoiceManage/index.vue

@@ -350,6 +350,14 @@
             slot: 'ifRedReversalInvoice',
             align: 'center',
           },
+          {
+            minWidth: 100,
+            prop: 'ifRedReversalInvoice',
+            label: '是否冲红',
+            slot: 'ifRedReversalInvoice',
+            align: 'center',
+            showOverflowTooltip: true
+          },
           {
             minWidth: 100,
             prop: 'accountingSubjectName',

+ 5 - 2
src/views/financialManage/receivableManage/searchTable.vue

@@ -115,9 +115,12 @@ export default {
     },
     /* 搜索 */
     search(e) {
-      this.$emit('search', {
-        ...e
+      const where = { ...e };
+      // 清理空字符串参数,避免金额等数值/精确匹配字段绑定空串报错
+      Object.keys(where).forEach((k) => {
+        if (where[k] === '') delete where[k];
       });
+      this.$emit('search', where);
     }
   }
 };