|
@@ -124,29 +124,30 @@ export default {
|
|
dyeLossRateColumns: [
|
|
dyeLossRateColumns: [
|
|
{
|
|
{
|
|
title: '物料编码',
|
|
title: '物料编码',
|
|
- width: 120,
|
|
|
|
|
|
+ width: 100,
|
|
dataIndex: 'cinvCode',
|
|
dataIndex: 'cinvCode',
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
|
|
|
|
{
|
|
{
|
|
title: '物料名称',
|
|
title: '物料名称',
|
|
- width: 160,
|
|
|
|
|
|
+ width: 320,
|
|
|
|
+ align: 'left',
|
|
dataIndex: 'cinvName',
|
|
dataIndex: 'cinvName',
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
{ title: '颜色', width: 160, dataIndex: 'color', customRender: t => ellipsis(t), className: 'replacecolor' },
|
|
{ title: '颜色', width: 160, dataIndex: 'color', customRender: t => ellipsis(t), className: 'replacecolor' },
|
|
- { title: '供应商', width: 120, dataIndex: 'cvenName', className: 'replacecolor' },
|
|
|
|
|
|
+ { title: '供应商', width: 160, dataIndex: 'cvenName', className: 'replacecolor' },
|
|
{
|
|
{
|
|
title: '订单号',
|
|
title: '订单号',
|
|
- width: 160,
|
|
|
|
|
|
+ width: 120,
|
|
dataIndex: 'ccode',
|
|
dataIndex: 'ccode',
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
- { title: '订单数量', width: 100, dataIndex: 'iquantity', className: 'replacecolor' },
|
|
|
|
- { title: '采购入库数', width: 100, dataIndex: 'iquantity2', className: 'replacecolor' },
|
|
|
|
- { title: '材料出库数', width: 100, dataIndex: 'iquantity3', className: 'replacecolor' },
|
|
|
|
- { title: '核销数量', width: 100, dataIndex: 'imsquantity', className: 'replacecolor' },
|
|
|
|
|
|
+ { title: '订单数量', width: 90, dataIndex: 'iquantity', className: 'replacecolor' },
|
|
|
|
+ { title: '采购入库数', width: 90, dataIndex: 'iquantity2', className: 'replacecolor' },
|
|
|
|
+ { title: '材料出库数', width: 90, dataIndex: 'iquantity3', className: 'replacecolor' },
|
|
|
|
+ { title: '核销数量', width: 90, dataIndex: 'imsquantity', className: 'replacecolor' },
|
|
{ title: '染损', width: 120, dataIndex: 'dyeLossRate', className: 'replacecolor' }
|
|
{ title: '染损', width: 120, dataIndex: 'dyeLossRate', className: 'replacecolor' }
|
|
],
|
|
],
|
|
dyeLossRateData: [], //染损数据
|
|
dyeLossRateData: [], //染损数据
|
|
@@ -232,7 +233,7 @@ export default {
|
|
const params = this.dyeLossRateData
|
|
const params = this.dyeLossRateData
|
|
console.log('导出参数', params)
|
|
console.log('导出参数', params)
|
|
downFile('/scas/dyeLoss/excel', params).then(data => {
|
|
downFile('/scas/dyeLoss/excel', params).then(data => {
|
|
- console.log('888');
|
|
|
|
|
|
+ console.log('888')
|
|
if (!data) {
|
|
if (!data) {
|
|
this.$message.warning('文件下载失败')
|
|
this.$message.warning('文件下载失败')
|
|
return
|
|
return
|