Преглед изворни кода

fix: 1. 给selectStockLedgerDialog组件新增cacheKeyUrl props并调整默认缓存key的使用方式
2. 修复税率表单校验规则的布尔值逻辑问题

liujt пре 4 дана
родитељ
комит
2f0c525bef

+ 1 - 0
src/BIZComponents/inventoryTable.vue

@@ -999,6 +999,7 @@
       @changeParent="replaceTable"
       :isSupplier="isSupplier"
       :showSaleCount="showSaleCount"
+      :cacheKeyUrl="cacheKeyUrl+'saleOrders'"
     ></selectStockLedgerDialog>
     <commodityPriceListDialog
       ref="commodityPriceListDialogRef"

+ 5 - 1
src/BIZComponents/selectStockLedger/selectStockLedgerDialog.vue

@@ -108,6 +108,10 @@
       showSaleCount: {
         type: Boolean,
         default: false
+      },
+      cacheKeyUrl: {
+        type: String,
+        default: 'eom-sales-selectStockLedgerDialog-202605131603'
       }
     },
 
@@ -127,7 +131,7 @@
         },
         treeList: [],
         treeLoading: false,
-        cacheKeyUrl: 'eom-sales-selectStockLedgerDialog-202605131603',
+        // cacheKeyUrl: '',
         columnsVersion: 1
       };
     },

+ 2 - 1
src/views/purchasingManage/inquiryManage/components/inquiryTable.vue

@@ -102,9 +102,10 @@
       </template>
       <template v-slot:taxRate="{ row, $index }">
         <el-form-item
+          :prop="'resultList.' + $index + '.taxRate'"
           v-if="status !== 'Detail'"
           :rules="{
-            required: isTaxRate == 1 ? true : '',
+            required: isTaxRate == 1 ? true : false,
             message: '请输入税率',
             trigger: 'change'
           }"