|
@@ -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: {
|
|
|
|
|
|
// // 新增托书 子表合计
|