lilei 6 місяців тому
батько
коміт
edb4b70aa2

+ 1 - 1
src/components/VTable/index.vue

@@ -289,7 +289,7 @@ export default {
       const hasCheckbox = ret.find(item => item.type == 'checkbox')
       // 兼容老版本表格
       if (!hasCheckbox && this.rowSelection) {
-        ret.unshift({ title: '', field: 'checkbox', key: 'checkbox', width: 30, type: 'checkbox', align: 'center' })
+        ret.unshift({ title: '', field: 'checkbox', key: 'checkbox', width: 20, type: 'checkbox', align: 'center' })
       }
       return ret
     },

+ 9 - 0
src/components/newThem.less

@@ -39,4 +39,13 @@
 .ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content thead.ve-table-header .ve-table-header-tr .ve-table-header-th .ve-table-sort .ve-table-sort-icon.ve-table-sort-icon-bottom{
   font-size: 12px;
   top: 7px;
+}
+.ve-checkbox-label{
+  margin:0;
+}
+.ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content tbody.ve-table-body .ve-table-body-tr .ve-table-body-td .ve-table-checkbox-wrapper{
+  width:16px;
+}
+.ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content thead.ve-table-header .ve-table-header-tr .ve-table-header-th .ve-table-checkbox-wrapper{
+  width:16px;
 }

+ 7 - 7
src/views/salesManagement/salesQueryNew/comps/productNormalList.vue

@@ -46,7 +46,7 @@
 
     <div class="table-page-search-wrapper">
       <a-row :gutter="15" type="flex" justify="space-between" align="middle">
-        <a-col :md="8" :sm="24" style="text-align:left;">
+        <a-col :md="12" :sm="24" style="text-align:left;">
           <a-dropdown>
             <a-menu slot="overlay" @click="handleMenuClick">
               <a-menu-item key="0" id="salesEdit-pl-0">
@@ -86,7 +86,7 @@
             @click="handleMenuClick({key:2})"
           ><a-icon type="delete"/> 全部删除</a-button>
         </a-col>
-        <a-col :md="16" :sm="24" style="text-align:right;">
+        <a-col :md="12" :sm="24" style="text-align:right;">
           <a-button
             type="link"
             class="button-info"
@@ -327,20 +327,20 @@ export default {
         { title: '序号', dataIndex: 'no', width: '40px', align: 'center' },
         { title: '产品编码', dataIndex: 'productEntity.code', scopedSlots: { customRender: 'productCode' }, width: '100px', align: 'left' },
         { title: '产品名称', dataIndex: 'productEntity.name', width: '150px', align: 'left', ellipsis: true },
-        { title: '销售数量', scopedSlots: { customRender: 'salesNums' }, width: '100px', align: 'center' },
+        { title: '销售数量', scopedSlots: { customRender: 'salesNums' }, width: '80px', align: 'center' },
         { title: '库存', dataIndex: 'stockQty', scopedSlots: { customRender: 'stockQty' }, width: '100px', align: 'center' },
         { title: '出库仓库', scopedSlots: { customRender: 'warehouseBox' }, width: '100px', align: 'center' },
         { title: '单位', dataIndex: 'productEntity.unit', width: '60px', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '操作', scopedSlots: { customRender: 'action' }, width: '100px', align: 'center' }
       ]
       if (this.showStockCol) {
-        arr.splice(5, 0, { title: '第三方库存', dataIndex: 'thirdStockQty', width: '100px', align: 'center', customRender: text => ((text || text == 0) ? text : '--') })
+        arr.splice(5, 0, { title: '第三方库存', dataIndex: 'thirdStockQty', width: '80px', align: 'center', customRender: text => ((text || text == 0) ? text : '--') })
       }
       // 售价权限
       if (this.$hasPermissions('B_salesEdit_salesPrice')) {
-        arr.splice(3, 0, { title: '售价', dataIndex: 'price', width: '100px', align: 'right', customRender: text => ((text || text == 0) ? this.toThousands(text) : '--') })
-        arr.splice(4, 0, { title: '价格级别', dataIndex: 'priceLevelDictValue', width: '100px', align: 'center', customRender: function (text) { return text || '--' } })
-        arr.splice(this.showStockCol ? 8 : 7, 0, { title: '售价小计', dataIndex: 'totalAmount', width: '100px', align: 'right', customRender: text => ((text || text == 0) ? this.toThousands(text) : '--') })
+        arr.splice(3, 0, { title: '售价', dataIndex: 'price', width: '80px', align: 'right', customRender: text => ((text || text == 0) ? this.toThousands(text) : '--') })
+        arr.splice(4, 0, { title: '价格级别', dataIndex: 'priceLevelDictValue', width: '80px', align: 'center', customRender: function (text) { return text || '--' } })
+        arr.splice(this.showStockCol ? 8 : 7, 0, { title: '售价小计', dataIndex: 'totalAmount', width: '80px', align: 'right', customRender: text => ((text || text == 0) ? this.toThousands(text) : '--') })
       }
       return arr
     }