Browse Source

托书列表调整

jbb 2 năm trước cách đây
mục cha
commit
e275113126
1 tập tin đã thay đổi với 12 bổ sung9 xóa
  1. 12 9
      src/views/book/book-list.vue

+ 12 - 9
src/views/book/book-list.vue

@@ -159,38 +159,40 @@ export default {
     return {
       // 表头
       bookListColumns: [
-        { title: '托书号', width: 120, dataIndex: 'shippingOrderNumber', fixed: 'left', className: 'replacecolor' },
-        { title: '订单号', width: 140, dataIndex: 'orderNumber', fixed: 'left', className: 'replacecolor' },
-        { title: '外销发票号码', dataIndex: 'exportInvoiceNo', width: 120, className: 'replacecolor' },
-        { title: '客户简称', dataIndex: 'clientAbbreviation', width: 120, className: 'replacecolor' },
+        { title: '托书号', width: 120, dataIndex: 'shippingOrderNumber', fixed: 'left', className: 'replacecolor' , ellipsis: true,},
+        { title: '订单号', width: 140, dataIndex: 'orderNumber', fixed: 'left', className: 'replacecolor', ellipsis: true, },
+        { title: '外销发票号码', dataIndex: 'exportInvoiceNo', width: 120, className: 'replacecolor', ellipsis: true, },
+        { title: '客户简称', dataIndex: 'clientAbbreviation', width: 120, className: 'replacecolor' , ellipsis: true,},
         {
           title: '分销点',
           dataIndex: 'distributionPoint',
           width: 120,
-          customRender: t => ellipsis(t),
+           ellipsis: true,
           className: 'replacecolor'
         },
         {
           title: '经营单位',
           dataIndex: 'unitInOperation',
           width: 150,
-          customRender: t => ellipsis(t),
+           ellipsis: true,
           className: 'replacecolor'
         },
-        { title: '总箱数', dataIndex: 'boxNumber', width: 120, className: 'replacecolor' },
-        { title: '总毛重', dataIndex: 'totalGrossWeight', width: 120, className: 'replacecolor' },
-        { title: '总体积', dataIndex: 'totalVolume', width: 100, className: 'replacecolor' },
+        { title: '总箱数', dataIndex: 'boxNumber', width: 120, className: 'replacecolor', ellipsis: true, },
+        { title: '总毛重', dataIndex: 'totalGrossWeight', width: 120, className: 'replacecolor', ellipsis: true, },
+        { title: '总体积', dataIndex: 'totalVolume', width: 100, className: 'replacecolor', ellipsis: true, },
         {
           title: '金额',
           dataIndex: 'money',
           // scopedSlots: { customRender: 'money' },
           width: 140,
+           ellipsis: true,
           className: 'replacecolor'
         },
 
         {
           title: '实际船期',
           dataIndex: 'theActualShippingDate',
+           ellipsis: true,
           width: 130,
           // customRender: text => { 有问题 显示当日日期
           //   return moment(text).format('YYYY-MM-DD')
@@ -267,6 +269,7 @@ export default {
     //获取表格数据
     getBookList(){
       this.$nextTick(() => {
+        this.queryParam.pageSize = 20
         bookList(this.queryParam).then(res => {
           if (res.success) {
            this.bookListData = res.result.records