|
@@ -372,6 +372,7 @@ export default {
|
|
|
dataIndex: 'inventoryName',
|
|
|
width: 220,
|
|
|
className: 'replacecolor',
|
|
|
+ customRender: t => ellipsis(t),
|
|
|
ellipsis: true,
|
|
|
sorter:(a, b) => a.inventoryName - b.inventoryName,
|
|
|
},
|
|
@@ -380,7 +381,8 @@ export default {
|
|
|
dataIndex: 'declarationName',
|
|
|
width: 175,
|
|
|
className: 'replacecolor',
|
|
|
- ellipsis: true,
|
|
|
+ customRender: t => ellipsis(t),
|
|
|
+ ellipsis: true,
|
|
|
sorter:(a, b) => a.declarationName - b.declarationName,
|
|
|
},
|
|
|
{
|
|
@@ -427,7 +429,7 @@ export default {
|
|
|
dataIndex: 'customsDeclarationUnitPrice',
|
|
|
width: 80,
|
|
|
className: 'replacecolor',
|
|
|
- ellipsis: true,
|
|
|
+ ellipsis: true,
|
|
|
sorter:(a, b) => a.customsDeclarationUnitPrice - b.customsDeclarationUnitPrice,
|
|
|
|
|
|
},
|
|
@@ -452,7 +454,7 @@ export default {
|
|
|
{
|
|
|
title: '英文品名',
|
|
|
dataIndex: 'englishProductName',
|
|
|
- width: 110,
|
|
|
+ width: 180,
|
|
|
className: 'replacecolor',
|
|
|
customRender: t => ellipsis(t),
|
|
|
ellipsis: true,
|
|
@@ -582,13 +584,34 @@ export default {
|
|
|
columns: [
|
|
|
{field: "",key: "ju",type: "checkbox",title: "",width: 50, align: "center",fixed: "left",ellipsis: {showTitle: true,},},
|
|
|
{ field: "account", key: "a", title: "账套", align: "center", width: 85,sortBy: "",ellipsis: {showTitle: true,},},
|
|
|
- { field: "orderNumber", key: "b", title: "销售订单号", align: "center",width: 180,sortBy: "",ellipsis: {showTitle: true,}, },
|
|
|
+ { field: "orderNumber", key: "b", title: "销售订单号", align: "center",width: 180,sortBy: "",ellipsis: {showTitle: true,},
|
|
|
+ renderBodyCell: ({ row, column, rowIndex }, h) => {
|
|
|
+ const text = row[column.field];
|
|
|
+ if (text && text.length>16){
|
|
|
+ return text.substring(0,16)+'...';
|
|
|
+ }
|
|
|
+ return text;
|
|
|
+ },},
|
|
|
{ field: "itemNumber", key: "c", title: "款号", align: "center",width: 130,sortBy: "",ellipsis: {showTitle: true,}, },
|
|
|
{ field: "salesman", key: "d", title: "业务员", align: "center", width: 100,sortBy: "", ellipsis: {showTitle: true,},},
|
|
|
{ field: "distributionPoint", key: "e", title: "分销点", align: "center", width: 110,sortBy: "", ellipsis: {showTitle: true,},},
|
|
|
{ field: "smallPo", key: "f", title: "小po", align: "center", width: 200,sortBy: "", ellipsis: {showTitle: true,},},
|
|
|
- { field: "inventoryName", key: "g", title: "存货名称", align: "center", width: 220,sortBy: "", ellipsis: {showTitle: true,},},
|
|
|
- { field: "declarationName", key: "h", title: "报关品名", align: "center", width: 175,sortBy: "",ellipsis: {showTitle: true,}, },
|
|
|
+ { field: "inventoryName", key: "g", title: "存货名称", align: "center", width: 220,sortBy: "", ellipsis: {showTitle: true},
|
|
|
+ renderBodyCell: ({ row, column, rowIndex }, h) => {
|
|
|
+ const text = row[column.field];
|
|
|
+ if (text && text.length>18){
|
|
|
+ return text.substring(0,18)+'...';
|
|
|
+ }
|
|
|
+ return text;
|
|
|
+ },},
|
|
|
+ { field: "declarationName", key: "h", title: "报关品名", align: "center", width: 175,sortBy: "",ellipsis: {showTitle: true,},
|
|
|
+ renderBodyCell: ({ row, column, rowIndex }, h) => {
|
|
|
+ const text = row[column.field];
|
|
|
+ if (text && text.length>12){
|
|
|
+ return text.substring(0,12)+'...';
|
|
|
+ }
|
|
|
+ return text;
|
|
|
+ }},
|
|
|
{ field: "isTc", key: "i", title: "是否TC", align: "center", width: 110,sortBy: "", ellipsis: {showTitle: true,}, renderBodyCell: ({ row, column, rowIndex }, h) => {
|
|
|
const text = row[column.field];
|
|
|
if(text=='0'){
|
|
@@ -619,12 +642,20 @@ export default {
|
|
|
{ field: "englishProductName", key: "o", title: "英文品名", align: "center", width: 150,sortBy: "",ellipsis: {showTitle: true,},
|
|
|
renderBodyCell: ({ row, column, rowIndex }, h) => {
|
|
|
const text = row[column.field];
|
|
|
- if (text && text.length>25){
|
|
|
- return text.substring(0,25)+'...';
|
|
|
+ if (text && text.length>15){
|
|
|
+ return text.substring(0,15)+'...';
|
|
|
}
|
|
|
return text;
|
|
|
}},
|
|
|
- { field: "materialComposition", key: "p", title: "物料成分", align: "center", width: 180,sortBy: "",ellipsis: {showTitle: true,}, },
|
|
|
+ { field: "materialComposition", key: "p", title: "物料成分", align: "center", width: 180,sortBy: "",ellipsis: {showTitle: true,},
|
|
|
+ renderBodyCell: ({ row, column, rowIndex }, h) => {
|
|
|
+ const text = row[column.field];
|
|
|
+ if (text && text.length>15){
|
|
|
+ return text.substring(0,15)+'...';
|
|
|
+ }
|
|
|
+ return text;
|
|
|
+ }
|
|
|
+ },
|
|
|
{ field: "purOrSubOrder", key: "q", title: "采购/委外订单号", align: "center", width: 180,sortBy: "",ellipsis: {showTitle: true,}, },
|
|
|
{ field: "numberOfSets", key: "r", title: "套装件数", align: "center", width: 100,sortBy: "",ellipsis: {showTitle: true,}, },
|
|
|
{ field: "packId", key: "s", title: "pack id", align: "center", width: 110,sortBy: "",ellipsis: {showTitle: true,}, },
|
|
@@ -1084,6 +1115,7 @@ export default {
|
|
|
this.judageAdd()
|
|
|
this.$message.error(res.message)
|
|
|
}
|
|
|
+ this.searchQuery();
|
|
|
})
|
|
|
})
|
|
|
},
|
|
@@ -1117,6 +1149,7 @@ export default {
|
|
|
}else {
|
|
|
this.$message.error(res.message)
|
|
|
}
|
|
|
+ this.searchQuery();
|
|
|
})
|
|
|
})
|
|
|
},
|