Browse Source

托书页面修改

jbb 2 years ago
parent
commit
3484ca6175

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

@@ -484,7 +484,7 @@ export default {
          {
           title: '箱数',
           dataIndex: 'boxNumber',
-          width: 160,
+          width: 100,
           ellipsis: true,
           className: 'replacecolor'
         },

+ 21 - 11
src/views/book/detailsBookDrawer.vue

@@ -69,14 +69,14 @@
 
                <a-col :md="6" :sm="8">
                 <a-form-model-item label="收货人" prop="consignee">
-                  {{addBook.consignee}}
+                  {{addBook.consignee | ellipsis}}
                 
                 </a-form-model-item>
               </a-col>
 
               <a-col :md="6" :sm="8">
                 <a-form-model-item label="收货人地址" prop="consigneeAddress">
-                  {{addBook.consigneeAddress}}
+                  {{addBook.consigneeAddress | ellipsis}}
                 </a-form-model-item>
               </a-col>
 
@@ -296,28 +296,28 @@ export default {
         {
           title: '数量',
           dataIndex: 'number',
-          width: 120,
+          width: 100,
           ellipsis: true,
           className: 'replacecolor'
         },
          {
           title: '箱数',
           dataIndex: 'boxNumber',
-          width: 160,
+          width: 100,
           ellipsis: true,
           className: 'replacecolor'
         },
          {
           title: '毛重',
           dataIndex: 'grossWeight',
-          width: 120,
+          width: 100,
           ellipsis: true,
           className: 'replacecolor'
         },
         {
           title: '净重',
           dataIndex: 'netWeight',
-          width: 120,
+          width: 100,
           ellipsis: true,
           // scopedSlots: { customRender: 'containerCode' },
           className: 'replacecolor'
@@ -325,7 +325,7 @@ export default {
         {
           title: '体积',
           dataIndex: 'volume',
-          width: 120,
+          width: 100,
           ellipsis: true,
           // scopedSlots: { customRender: 'containerNo' },
           // className: 'replacecolor'
@@ -333,7 +333,7 @@ export default {
         {
           title: '分销点',
           dataIndex: 'distributionPoint',
-          width: 120,
+          width: 100,
           ellipsis: true,
           className: 'replacecolor'
         },
@@ -342,7 +342,7 @@ export default {
           dataIndex: 'containerNumber',
           ellipsis: true,
           scopedSlots: { customRender: 'containerNumber' },
-          width: 120,
+          width: 100,
           // fixed: 'left',
           className: 'replacecolor'
         },
@@ -357,14 +357,14 @@ export default {
           {
           title: '单价',
           dataIndex: 'unitPrice',
-          width: 120,
+          width: 100,
           ellipsis: true,
           className: 'replacecolor'
         },
         {
           title: '金额',
           dataIndex: 'totalPrice',
-          width: 120,
+          width: 100,
           ellipsis: true,
           className: 'replacecolor'
         },
@@ -454,6 +454,16 @@ export default {
     }
   },
   created() {},
+   filters: {
+                //文字数超出时,超出部分使用...
+                ellipsis(value) {
+                    if (!value) return ''
+                    if (value.length > 20) {
+                        return value.slice(0, 20) + '...'
+                    }
+                    return value
+                }
+            },
   methods: {
 
     //  // 新增托书 子表合计

+ 1 - 1
src/views/book/packingListModal.vue

@@ -98,7 +98,7 @@
           @change="handleTableChange"
           bottom='kkk'
           bordered
-          :scroll="{ x: 1500 }"
+          :scroll="{ x: 1500 ,y:500}"
           size="small"
         >
         </a-table>

+ 1 - 1
src/views/book/packingListModalFabrics.vue

@@ -70,7 +70,7 @@
           :rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
           @change="handleTableChange"
           bordered
-          :scroll="{ x: 1500 }"
+          :scroll="{ x: 1500 ,y:500}"
           size="small"
         >
         </a-table>