lilei преди 1 година
родител
ревизия
b521b29782
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 1 1
      src/views/dealerManagement/rebateBinding/categoryList.vue
  2. 2 2
      src/views/dealerManagement/rebateBinding/priceDiffModal.vue

+ 1 - 1
src/views/dealerManagement/rebateBinding/categoryList.vue

@@ -95,7 +95,7 @@ export default {
       }
 
       const arr = [
-        { title: '序号', field: 'no', key: 'a', width: 60, align: 'center', operationColumn: false },
+        { title: '序号', field: 'no', key: 'a', width: 50, align: 'center', operationColumn: false },
         { title: '品牌', field: 'productBrandName', key: 'b', width: 100, align: 'center', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return row[column.field] || '--' } },
         { title: '一级分类', field: 'productTypeName1', key: 'e', width: 180, align: 'center', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return row[column.field] || '--' } },
         { title: '二级分类', field: 'productTypeName2', width: 180, key: 'i', align: 'center', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return row[column.field] || '--' } },

+ 2 - 2
src/views/dealerManagement/rebateBinding/priceDiffModal.vue

@@ -379,8 +379,8 @@ export default {
               delete item.id
             })
             console.log(formData)
-            console.log(pa)
-            if (pa != 1) {
+            console.log(Number(pa).toFixed(2))
+            if (Number(pa).toFixed(2) != 1) {
               _this.$message.error('差价比例之和必须是100%')
               return
             }