diff --git a/src/views/modules/ecss/codelnotify.vue b/src/views/modules/ecss/codelnotify.vue
index 6135e64..6b6e248 100644
--- a/src/views/modules/ecss/codelnotify.vue
+++ b/src/views/modules/ecss/codelnotify.vue
@@ -76,6 +76,12 @@
{{'导出进出口总表'}}
+
+ {{'导出FSC产品销售统计表'}}
+
+
+ {{'导出FSC年度购销平衡表'}}
+
{{'客户信息'}}
@@ -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 = [];