Procházet zdrojové kódy

托书-表格宽度修改

jbb před 2 roky
rodič
revize
f2827ea4dd
2 změnil soubory, kde provedl 18 přidání a 18 odebrání
  1. 11 11
      src/views/book/addBookDrawer.vue
  2. 7 7
      src/views/book/book-list.vue

+ 11 - 11
src/views/book/addBookDrawer.vue

@@ -252,7 +252,7 @@
               :data-source="addBookData"
               :loading="loading"
               :pagination="ipagination"
-              :scroll="{ x: 1500,y: 350 }"
+              :scroll="{ x: 1300,y: 350 }"
               @change="handleTableChange"
             >
              <!-- 自定义表头 -->
@@ -468,42 +468,42 @@ export default {
         {
           title: '款号',
           dataIndex: 'itemNumber',
-          width: 120,
+          width: 90,
           ellipsis: true,
           className: 'replacecolor'
         },
          {
           title: '小po',
           dataIndex: 'smallPo',
-          width: 120,
+          width: 100,
           ellipsis: true,
           className: 'replacecolor'
         },
         {
           title: '数量',
           dataIndex: 'number',
-          width: 120,
+          width: 90,
           ellipsis: true,
           className: 'replacecolor'
         },
          {
           title: '箱数',
           dataIndex: 'boxNumber',
-          width: 100,
+          width: 90,
           ellipsis: true,
           className: 'replacecolor'
         },
          {
           title: '毛重',
           dataIndex: 'grossWeight',
-          width: 120,
+          width: 90,
           ellipsis: true,
           className: 'replacecolor'
         },
         {
           title: '净重',
           dataIndex: 'netWeight',
-          width: 120,
+          width: 90,
           ellipsis: true,
           // scopedSlots: { customRender: 'containerCode' },
           className: 'replacecolor'
@@ -519,7 +519,7 @@ export default {
         {
           title: '分销点',
           dataIndex: 'distributionPoint',
-          width: 120,
+          width: 100,
           ellipsis: true,
           className: 'replacecolor'
         },
@@ -544,14 +544,14 @@ export default {
           {
           title: '单价',
           dataIndex: 'price',
-          width: 120,
+          width: 90,
           ellipsis: true,
           className: 'replacecolor'
         },
         {
           title: '金额',
           dataIndex: 'totalPrice',
-          width: 120,
+          width: 90,
           ellipsis: true,
           className: 'replacecolor'
         },
@@ -574,7 +574,7 @@ export default {
         {
           title: '英文名称',
           dataIndex: 'englishProductName',
-          width: 160,
+          width: 220,
           ellipsis: true,
           className: 'replacecolor'
         },

+ 7 - 7
src/views/book/book-list.vue

@@ -188,7 +188,7 @@ export default {
       // 表头
       bookListColumns: [
         { title: '托书号', width: 120, dataIndex: 'shippingOrderNumber',  className: 'replacecolor' , ellipsis: true,fixed: 'left'},
-        { title: '成衣工厂', width: 140, dataIndex: 'garmentFactory', className: 'replacecolor', ellipsis: true, },
+        { title: '成衣工厂', width: 110, dataIndex: 'garmentFactory', className: 'replacecolor', ellipsis: true, },
         { title: '外销发票号码', dataIndex: 'exportInvoiceNo', width: 120, className: 'replacecolor', ellipsis: true, },
         { title: '客户简称', dataIndex: 'clientAbbreviation', width: 120, className: 'replacecolor' , ellipsis: true,},
         {
@@ -201,18 +201,18 @@ export default {
         {
           title: '经营单位',
           dataIndex: 'unitInOperation',
-          width: 150,
+          width: 160,
            ellipsis: true,
           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: 'boxNumber', width: 80, className: 'replacecolor', ellipsis: true, },
+        { title: '总毛重', dataIndex: 'totalGrossWeight', width: 80, className: 'replacecolor', ellipsis: true, },
+        { title: '总体积', dataIndex: 'totalVolume', width: 80, className: 'replacecolor', ellipsis: true, },
         {
           title: '金额',
           dataIndex: 'money',
           // scopedSlots: { customRender: 'money' },
-          width: 140,
+          width: 100,
            ellipsis: true,
           className: 'replacecolor'
         },
@@ -221,7 +221,7 @@ export default {
           title: '实际船期',
           dataIndex: 'theFinalShippingDate',
            ellipsis: true,
-          width: 130,
+          width: 110,
           // customRender: text => { 有问题 显示当日日期
           //   return moment(text).format('YYYY-MM-DD')
           // },