lilei 7 ヶ月 前
コミット
abb0e20e73

+ 26 - 39
src/views/salesManagement/salesQueryNew/comps/activeStatisticsList.vue

@@ -77,7 +77,7 @@ export default {
           field: '',
           key: 'a',
           title: '序号',
-          width: 40,
+          width: 30,
           align: 'center',
           fixed: 'left',
           renderBodyCell: ({ row, column, rowIndex }, h) => {
@@ -85,7 +85,7 @@ export default {
           }
         },
         { field: 'promotionRuleType', key: 'ruletype', width: 100, title: '活动类型', align: 'center', fixed: 'left' },
-        { field: 'promotionRuleDesc', key: 'ruledesc', width: 150, title: '规则简称', align: 'center', fixed: 'left' },
+        { field: 'promotionRuleDesc', key: 'ruledesc', width: 100, title: '规则简称', align: 'center', fixed: 'left' },
         {
           title: '门槛产品(数量/金额)',
           children: [
@@ -93,28 +93,21 @@ export default {
               field: 'col2',
               key: 'b',
               title: '已选',
-              width: 100,
+              width: 50,
               align: 'center'
             },
             {
               field: 'col3',
               key: 'c',
               title: '已关联',
-              width: 100,
-              align: 'center'
-            },
-            {
-              field: 'col4',
-              key: 'd',
-              title: '合计',
-              width: 100,
+              width: 50,
               align: 'center'
             },
             {
               field: 'col5',
               key: 'e',
               title: '差额',
-              width: 100,
+              width: 50,
               align: 'center'
             }
           ]
@@ -126,35 +119,28 @@ export default {
               field: 'col6',
               key: 'f',
               title: '配额',
-              width: 100,
+              width: 50,
               align: 'center'
             },
             {
               field: 'col7',
               key: 'g',
               title: '已选',
-              width: 100,
+              width: 50,
               align: 'center'
             },
             {
               field: 'col8',
               key: 'k',
               title: '已关联',
-              width: 100,
-              align: 'center'
-            },
-            {
-              field: 'col9',
-              key: 'j',
-              title: '合计',
-              width: 100,
+              width: 50,
               align: 'center'
             },
             {
               field: 'col10',
               key: 'l',
               title: '差额',
-              width: 100,
+              width: 50,
               align: 'center'
             }
           ]
@@ -166,21 +152,21 @@ export default {
               field: 'col11',
               key: 'z',
               title: '额度',
-              width: 100,
+              width: 50,
               align: 'center'
             },
             {
               field: 'col12',
               key: 'x',
               title: '已选',
-              width: 100,
+              width: 50,
               align: 'center'
             },
             {
               field: 'col13',
               key: 'v',
               title: '差额',
-              width: 100,
+              width: 50,
               align: 'center'
             }
           ]
@@ -192,28 +178,28 @@ export default {
               field: 'col14',
               key: 'm',
               title: '额度',
-              width: 100,
+              width: 50,
               align: 'center'
             },
             {
               field: 'col15',
               key: 'n',
               title: '已选',
-              width: 100,
+              width: 50,
               align: 'center'
             },
             {
               field: 'col16',
               key: 'kq',
               title: '结余',
-              width: 100,
+              width: 50,
               align: 'center'
             },
             {
               field: 'col17',
               key: 'jw',
               title: '超支',
-              width: 100,
+              width: 50,
               align: 'center'
             }
           ]
@@ -225,34 +211,34 @@ export default {
               field: 'col18',
               key: 'mpe',
               title: '配额',
-              width: 100,
+              width: 50,
               align: 'center'
             },
             {
               field: 'col19',
               key: 'nyx',
               title: '已选',
-              width: 100,
+              width: 50,
               align: 'center'
             },
             {
               field: 'col20',
               key: 'jce',
               title: '差额',
-              width: 100,
+              width: 50,
               align: 'center'
             }
           ]
         },
-        { field: 'totalCategory', key: 'ks', title: '款数', width: 100, align: 'center', fixed: 'right' },
-        { field: 'totalQty', key: 'dsl', title: '数量', width: 100, align: 'center', fixed: 'right' },
-        { field: 'totalAmount', key: 'dje', title: '总金额', width: 100, align: 'center', fixed: 'right' },
-        { field: 'lossAmount', key: 'dyhje', title: '优惠金额', width: 100, align: 'center', fixed: 'right' },
+        { field: 'totalCategory', key: 'ks', title: '款数', width: 50, align: 'center', fixed: 'right' },
+        { field: 'totalQty', key: 'dsl', title: '数量', width: 50, align: 'center', fixed: 'right' },
+        { field: 'totalAmount', key: 'dje', title: '总金额', width: 60, align: 'center', fixed: 'right' },
+        { field: 'lossAmount', key: 'dyhje', title: '优惠金额', width: 60, align: 'center', fixed: 'right' },
         {
           field: '',
           key: 'action',
           title: '操作',
-          width: 250,
+          width: 180,
           center: 'center',
           fixed: 'right',
           renderBodyCell: ({ row, column, rowIndex }, h) => {
@@ -278,7 +264,7 @@ export default {
                   class={row.disabled ? 'button-success' : 'button-error'}
                   on-click={() => this.enableRow(row)}
                 >
-                  {row.disabled ? '启用' : '禁用'}规则
+                  {row.disabled ? '启用' : '禁用'}
                 </a-button>
                 {!row.disabled ? <a-dropdown>
                   <a-menu slot="overlay" on-click={(e) => this.handleImportClick(e, row)} id={'salesEdit-menu-import-' + row.id}>
@@ -292,6 +278,7 @@ export default {
                     id={'salesEdit-menu-import-plaction-' + row.id}
                     type="link"
                     class="button-primary"
+                    size="small"
                   >
                     导入产品 <a-icon type="down" />
                   </a-button>