Browse Source

表格宽度跳转

liuyanpeng 3 years ago
parent
commit
b493bcae1d
1 changed files with 2 additions and 7 deletions
  1. 2 7
      src/components/customer/InventoryDataProcessingStep4.vue

+ 2 - 7
src/components/customer/InventoryDataProcessingStep4.vue

@@ -31,11 +31,12 @@
                 record.processed === null ||
                 record.processed === false
             "
+            type="danger"
             @click="operate(record)"
           >
             关闭
           </a-button>
-          <a-button v-if="record.processed === true" @click="operate(record)">
+          <a-button v-if="record.processed === true" type="primary" @click="operate(record)">
             打开
           </a-button>
         </template>
@@ -70,7 +71,6 @@ const columns = reactive(
       title: '单位名称',
       key: 'cname',
       dataIndex: 'cname',
-      width:180,
     },
     {
       title: '单据号',
@@ -88,31 +88,26 @@ const columns = reactive(
       title: '盘点状态',
       key: 'inventoryStatus',
       dataIndex: 'inventoryStatus',
-      width:180,
     },
     {
       title: '盘点总数',
       key: 'totalCount',
       dataIndex: 'totalCount',
-      width:160,
     },
     {
       title: '已盘点数量',
       key: 'countedQuantity',
       dataIndex: 'countedQuantity',
-      width:160,
     },
     {
       title: '状态',
       key: 'processed',
       dataIndex: 'processed',
-      width:180,
     },
     {
       title: '操作',
       key: 'operation',
       dataIndex: 'operation',
-      width:180,
       fixed:'right',
     },
   ].map(item => ({ ...item, align: 'center' })),