|
@@ -108,7 +108,7 @@
|
|
|
:columns="columns"
|
|
|
:data-source="syShippingDetailsItemList"
|
|
|
:pagination="false"
|
|
|
- :scroll="{ x: 1500, y: 400 }"
|
|
|
+ :scroll="{ x: 2800, y: 400 }"
|
|
|
size="small"
|
|
|
>
|
|
|
<!-- 款号 输入框 :rules="rules.itemNumber" -->
|
|
@@ -329,12 +329,6 @@ export default {
|
|
|
width: 120,
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
- {
|
|
|
- title: '订单主表ID',
|
|
|
- dataIndex: 'syOrderDataId',
|
|
|
- width: 100,
|
|
|
- className: 'replacecolor'
|
|
|
- },
|
|
|
{
|
|
|
title: '客户订单',
|
|
|
dataIndex: 'customerOrder',
|
|
@@ -435,9 +429,10 @@ export default {
|
|
|
{
|
|
|
title: '客户名称',
|
|
|
dataIndex: 'customerName',
|
|
|
- width: 220,
|
|
|
+ width: 300,
|
|
|
align: 'left',
|
|
|
- className: 'replacecolor'
|
|
|
+ className: 'replacecolor',
|
|
|
+ customRender: t => ellipsis(t),
|
|
|
},
|
|
|
{
|
|
|
title: '汇率',
|
|
@@ -468,7 +463,7 @@ export default {
|
|
|
{
|
|
|
title: '品牌方',
|
|
|
dataIndex: 'brandSide',
|
|
|
- width: 120,
|
|
|
+ width: 180,
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
@@ -544,12 +539,6 @@ export default {
|
|
|
customRender: t => ellipsis(t),
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
- {
|
|
|
- title: '订单子表ID',
|
|
|
- dataIndex: 'syOrderDataItemId',
|
|
|
- width: 160,
|
|
|
- className: 'replacecolor'
|
|
|
- },
|
|
|
|
|
|
{
|
|
|
title: '处理方式',
|
|
@@ -561,7 +550,7 @@ export default {
|
|
|
{
|
|
|
title: '是否手册纱',
|
|
|
dataIndex: 'manualYarnFlag',
|
|
|
- width: 100,
|
|
|
+ width: 140,
|
|
|
scopedSlots: { customRender: 'manualYarnFlag' },
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
@@ -662,15 +651,13 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
- // 根据inventoryCode,colour,codingRules判断重复物料
|
|
|
+ // 根据syOrderDataItemId判断重复子表id
|
|
|
for (var i=0; i<newObj.syShippingDetailsItemList.length; i++){
|
|
|
var rowData = newObj.syShippingDetailsItemList[i];
|
|
|
for (var j=i+1;j<newObj.syShippingDetailsItemList.length; j++){
|
|
|
var nextData = newObj.syShippingDetailsItemList[j];
|
|
|
- if (rowData.inventoryCode == nextData.inventoryCode &&
|
|
|
- rowData.colour == nextData.colour &&
|
|
|
- rowData.codingRules == nextData.codingRules){
|
|
|
- this.$message.error('第'+(i+1)+'行和第'+(j+1)+'行物料重复,无法保存');
|
|
|
+ if (rowData.syOrderDataItemId == nextData.syOrderDataItemId){
|
|
|
+ this.$message.error('第'+(i+1)+'行和第'+(j+1)+'行物订单子表id重复,无法保存');
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
@@ -775,6 +762,8 @@ export default {
|
|
|
this.$refs.referOrderDataModal.queryParam.salesman="";
|
|
|
this.$refs.referOrderDataModal.queryParam.customerName="";
|
|
|
this.$refs.referOrderDataModal.queryParam.dateRange=[];
|
|
|
+ this.$refs.referOrderDataModal.queryParam.preDeliveryDate="";
|
|
|
+ this.$refs.referOrderDataModal.queryParam.flourOrGarment="";
|
|
|
}
|
|
|
}
|
|
|
}
|