|
@@ -229,12 +229,12 @@ export default {
|
|
|
width: 130,
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
- {
|
|
|
- title: '价格',
|
|
|
- dataIndex: 'price',
|
|
|
- width: 120,
|
|
|
- className: 'replacecolor'
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // title: '价格',
|
|
|
+ // dataIndex: 'price',
|
|
|
+ // width: 120,
|
|
|
+ // className: 'replacecolor'
|
|
|
+ // },
|
|
|
{
|
|
|
title: '克重/G',
|
|
|
dataIndex: 'gramWeight',
|
|
@@ -244,17 +244,20 @@ export default {
|
|
|
{
|
|
|
title: '供应商编码(染厂)',
|
|
|
dataIndex: 'supplierCodeDyeingPlant',
|
|
|
+ // scopedSlots: { customRender: 'supplierCodeDyeingPlant' },
|
|
|
width: 120,
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
title: '供应商(染厂)',
|
|
|
dataIndex: 'supplierDyeingPlant',
|
|
|
+ // scopedSlots: { customRender: 'supplierDyeingPlant' },
|
|
|
width: 120,
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
title: '供应商编码(印厂)',
|
|
|
+ // scopedSlots: { customRender: 'supplierCodePrintingPlant' },
|
|
|
dataIndex: 'supplierCodePrintingPlant',
|
|
|
width: 120,
|
|
|
className: 'replacecolor'
|
|
@@ -302,19 +305,20 @@ export default {
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
|
|
|
- {
|
|
|
- title: '备注',
|
|
|
- dataIndex: 'memo',
|
|
|
- width: 160,
|
|
|
- customRender: t => ellipsis(t),
|
|
|
- className: 'replacecolor'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '入库数量',
|
|
|
- dataIndex: 'inventoryQuantity',
|
|
|
- width: 120,
|
|
|
- className: 'replacecolor'
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // title: '备注',
|
|
|
+ // dataIndex: 'memo',
|
|
|
+ // width: 160,
|
|
|
+ // customRender: t => ellipsis(t),
|
|
|
+ // className: 'replacecolor'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title: '入库数量',
|
|
|
+ // dataIndex: 'inventoryQuantity',
|
|
|
+ // scopedSlots: { customRender: 'inventoryQuantity' },
|
|
|
+ // width: 120,
|
|
|
+ // className: 'replacecolor'
|
|
|
+ // },
|
|
|
{
|
|
|
title: '规格型号',
|
|
|
dataIndex: 'specificationAndModel',
|
|
@@ -344,7 +348,7 @@ export default {
|
|
|
dataIndex: 'remarks2',
|
|
|
width: 160,
|
|
|
fixed: 'right',
|
|
|
- customRender: t => ellipsis(t),
|
|
|
+ customRender: t => ellipsis(t),
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
],
|
|
@@ -365,6 +369,20 @@ export default {
|
|
|
console.log('点击抽屉取消')
|
|
|
this.close()
|
|
|
},
|
|
|
+ judageCloumn(){
|
|
|
+ this.addFabricColumns.map(item => {
|
|
|
+ if(item.title == "匹数/Rolls"){
|
|
|
+ item.title = '箱数'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ var obj = {
|
|
|
+ title: '尺码',
|
|
|
+ dataIndex: 'size',
|
|
|
+ width: 120,
|
|
|
+ className: 'replacecolor'
|
|
|
+ }
|
|
|
+ this.addFabricColumns.splice(30,0,obj)
|
|
|
+ },
|
|
|
|
|
|
|
|
|
// -------------------------------------
|
|
@@ -373,6 +391,12 @@ export default {
|
|
|
this.visible = false
|
|
|
this.addFabric = {}
|
|
|
this.addFabricData = []
|
|
|
+ this.addFabricColumns = this.addFabricColumns.filter(item => item.title !== '尺码')
|
|
|
+ this.addFabricColumns.map(item => {
|
|
|
+ if(item.title == "箱数"){
|
|
|
+ item.title = '匹数/Rolls'
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
|
|
|
// 分页、排序、筛选变化时触发
|