|
|
|
@ -76,6 +76,12 @@ |
|
|
|
<el-form-item label=" "> |
|
|
|
<el-button @click="exportImportExportSummary()" type="primary" style="margin-left: 2px">{{'导出进出口总表'}}</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label=" "> |
|
|
|
<el-button @click="exportFscSalesSummary()" type="primary" style="margin-left: 2px">{{'导出FSC产品销售统计表'}}</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label=" "> |
|
|
|
<el-button @click="exportFscAnnualBalance()" type="primary" style="margin-left: 2px">{{'导出FSC年度购销平衡表'}}</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label=" "> |
|
|
|
<el-button @click="openCustomerInfoDialog()" type="primary" style="margin-left: 2px">{{'客户信息'}}</el-button> |
|
|
|
</el-form-item> |
|
|
|
@ -3031,6 +3037,50 @@ |
|
|
|
const fname = '进出口总表_' + ts.getFullYear() + pad(ts.getMonth() + 1) + pad(ts.getDate()) + pad(ts.getHours()) + pad(ts.getMinutes()) + pad(ts.getSeconds()) + '.xlsx' |
|
|
|
ExportUtil.export('/ecss/coDel/downloadImportExportSummary', param, fname) |
|
|
|
}, |
|
|
|
/** FSC产品销售统计表导出:按ReadyDate区间统计,按CMC Invoice+CustomerPO分组 */ |
|
|
|
exportFscSalesSummary() { |
|
|
|
if (!this.searchData.startDate || !this.searchData.endDate) { |
|
|
|
this.$alert('请选择ReadyDate开始和结束日期!', '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
if (new Date(this.searchData.startDate).getTime() > new Date(this.searchData.endDate).getTime()) { |
|
|
|
this.$alert('ReadyDate开始日期不能大于结束日期!', '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
const param = Object.assign({}, this.searchData, { |
|
|
|
username: this.$store.state.user.name |
|
|
|
}) |
|
|
|
const ts = new Date() |
|
|
|
const pad = n => (n < 10 ? '0' + n : '' + n) |
|
|
|
const fname = 'FSC产品销售统计表_' + ts.getFullYear() + pad(ts.getMonth() + 1) + pad(ts.getDate()) + '.xlsx' |
|
|
|
ExportUtil.export('/ecss/coDel/downloadFscSalesSummary', param, fname) |
|
|
|
}, |
|
|
|
/** FSC年度购销平衡表导出:按ReadyDate区间,按分类代码(Part.spec)分组 */ |
|
|
|
exportFscAnnualBalance() { |
|
|
|
if (!this.searchData.startDate || !this.searchData.endDate) { |
|
|
|
this.$alert('请选择ReadyDate开始和结束日期!', '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
if (new Date(this.searchData.startDate).getTime() > new Date(this.searchData.endDate).getTime()) { |
|
|
|
this.$alert('ReadyDate开始日期不能大于结束日期!', '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
const param = Object.assign({}, this.searchData, { |
|
|
|
username: this.$store.state.user.name |
|
|
|
}) |
|
|
|
const ts = new Date() |
|
|
|
const pad = n => (n < 10 ? '0' + n : '' + n) |
|
|
|
const fname = 'FSC年度购销平衡表_' + ts.getFullYear() + pad(ts.getMonth() + 1) + pad(ts.getDate()) + '.xlsx' |
|
|
|
ExportUtil.export('/ecss/coDel/downloadFscAnnualBalance', param, fname) |
|
|
|
}, |
|
|
|
getSummaries(param) { |
|
|
|
const { columns } = param; |
|
|
|
const sums = []; |
|
|
|
|