|
@@ -33,6 +33,12 @@
|
|
|
<el-tab-pane label="厂外-厂内内转报表" name="fifth"
|
|
|
><dilTable ref="excelDom" v-bind.sync="fifth"></dilTable
|
|
|
></el-tab-pane>
|
|
|
+ <el-tab-pane label="拼装车辆进厂统计" name="six"
|
|
|
+ ><dilTable ref="excelDom" v-bind.sync="six"></dilTable
|
|
|
+ ></el-tab-pane>
|
|
|
+ <el-tab-pane label="一焦化采购进厂" name="seven"
|
|
|
+ ><dilTable ref="excelDom" v-bind.sync="seven"></dilTable
|
|
|
+ ></el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -53,8 +59,14 @@ export default {
|
|
|
purInward: [],
|
|
|
//销售内转数据
|
|
|
saleReport: [],
|
|
|
+ //采购燃料统计报表
|
|
|
purReport: [],
|
|
|
+ //厂外-厂内统计报表
|
|
|
outFactory: [],
|
|
|
+ //拼装车辆统计报表
|
|
|
+ assembleReport: [],
|
|
|
+ //一焦化-厂内统计报表
|
|
|
+ oneCokeReport: [],
|
|
|
input: null,
|
|
|
activeName: "first",
|
|
|
startTime: null,
|
|
@@ -73,6 +85,12 @@ export default {
|
|
|
},
|
|
|
fifth: {
|
|
|
requestUrl: ""
|
|
|
+ },
|
|
|
+ six: {
|
|
|
+ requestUrl: ""
|
|
|
+ },
|
|
|
+ seven: {
|
|
|
+ requestUrl: ""
|
|
|
}
|
|
|
};
|
|
|
},
|
|
@@ -261,6 +279,54 @@ export default {
|
|
|
loading.close();
|
|
|
}, 2000);
|
|
|
});
|
|
|
+ } else if (this.activeName == "six") {
|
|
|
+ this.axios
|
|
|
+ .post(
|
|
|
+ "/api/v1/tms/getInwardReportForAssemble?apiId=486&isPage=yes&startTime=" +
|
|
|
+ startTime +
|
|
|
+ "&endTime=" +
|
|
|
+ endTime +
|
|
|
+ "&index=" +
|
|
|
+ this.input +
|
|
|
+ "&orgCode=" +
|
|
|
+ orgCode +
|
|
|
+ "&orderType=15"
|
|
|
+ )
|
|
|
+ .then(res => {
|
|
|
+ this.totalArr = [];
|
|
|
+ this.assembleReport = [];
|
|
|
+ this.tableTitle = "拼装车皮进厂统计报表";
|
|
|
+ this.assembleReport = res.data.data;
|
|
|
+ this.totalArr = this.totalArr.concat(this.assembleReport);
|
|
|
+ this.exportAllReportToExcel();
|
|
|
+ setTimeout(() => {
|
|
|
+ loading.close();
|
|
|
+ }, 2000);
|
|
|
+ });
|
|
|
+ } else if (this.activeName == "seven") {
|
|
|
+ this.axios
|
|
|
+ .post(
|
|
|
+ "/api/v1/tms/getInwardReportForAssemble?apiId=486&isPage=yes&startTime=" +
|
|
|
+ startTime +
|
|
|
+ "&endTime=" +
|
|
|
+ endTime +
|
|
|
+ "&index=" +
|
|
|
+ this.input +
|
|
|
+ "&orgCode=" +
|
|
|
+ orgCode +
|
|
|
+ "&orderType=16"
|
|
|
+ )
|
|
|
+ .then(res => {
|
|
|
+ this.totalArr = [];
|
|
|
+ this.oneCokeReport = [];
|
|
|
+ this.tableTitle = "一焦化-进厂统计报表";
|
|
|
+ this.oneCokeReport = res.data.data;
|
|
|
+ this.totalArr = this.totalArr.concat(this.oneCokeReport);
|
|
|
+ this.exportAllReportToExcel();
|
|
|
+ setTimeout(() => {
|
|
|
+ loading.close();
|
|
|
+ }, 2000);
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
openFullScreen() {
|
|
@@ -357,11 +423,49 @@ export default {
|
|
|
this.totalArr = this.totalArr.concat(
|
|
|
this.outFactory
|
|
|
);
|
|
|
- this.tableTitle = "全部内转车辆报表";
|
|
|
- this.exportAllReportToExcel();
|
|
|
- setTimeout(() => {
|
|
|
- loading.close();
|
|
|
- }, 2000);
|
|
|
+ this.axios
|
|
|
+ .post(
|
|
|
+ "/api/v1/tms/getInwardReportForAssemble?apiId=486&orgCode=null&isPage=yes&startTime=" +
|
|
|
+ startTime +
|
|
|
+ "&endTime=" +
|
|
|
+ endTime +
|
|
|
+ "&orderType=15" +
|
|
|
+ "&index=" +
|
|
|
+ this.input +
|
|
|
+ "&i=" +
|
|
|
+ new Date()
|
|
|
+ )
|
|
|
+ .then(res => {
|
|
|
+ this.assembleReport = [];
|
|
|
+ this.assembleReport = res.data.data;
|
|
|
+ this.totalArr = this.totalArr.concat(
|
|
|
+ this.assembleReport
|
|
|
+ );
|
|
|
+ this.axios
|
|
|
+ .post(
|
|
|
+ "/api/v1/tms/getInwardReportForAssemble?apiId=486&orgCode=null&isPage=yes&startTime=" +
|
|
|
+ startTime +
|
|
|
+ "&endTime=" +
|
|
|
+ endTime +
|
|
|
+ "&orderType=16" +
|
|
|
+ "&index=" +
|
|
|
+ this.input +
|
|
|
+ "&i=" +
|
|
|
+ new Date()
|
|
|
+ )
|
|
|
+ .then(res => {
|
|
|
+ this.oneCokeReport = [];
|
|
|
+ this.oneCokeReport = res.data.data;
|
|
|
+ this.totalArr = this.totalArr.concat(
|
|
|
+ this.oneCokeReport
|
|
|
+ );
|
|
|
+ this.tableTitle = "全部内转车辆报表";
|
|
|
+ this.exportAllReportToExcel();
|
|
|
+ setTimeout(() => {
|
|
|
+ loading.close();
|
|
|
+ }, 2000);
|
|
|
+ });
|
|
|
+ });
|
|
|
});
|
|
|
});
|
|
|
});
|
|
@@ -445,6 +549,18 @@ export default {
|
|
|
this.totalArr = this.totalArr.concat(
|
|
|
this.outFactory
|
|
|
);
|
|
|
+ this.axios
|
|
|
+ .post(
|
|
|
+ "/api/v1/tms/getInwardReportForAssemble?apiId=477&startTime=" +
|
|
|
+ startTime +
|
|
|
+ "&endTime=" +
|
|
|
+ endTime +
|
|
|
+ "&index=" +
|
|
|
+ this.input +
|
|
|
+ "&orgCode=" +
|
|
|
+ getCookie("orgCode")
|
|
|
+ )
|
|
|
+ .then(res => {});
|
|
|
this.tableTitle = "全部内转车辆报表";
|
|
|
this.exportAllReportToExcel();
|
|
|
setTimeout(() => {
|
|
@@ -512,6 +628,14 @@ export default {
|
|
|
null +
|
|
|
"&i=" +
|
|
|
new Date();
|
|
|
+ this.six.requestUrl =
|
|
|
+ "/api/v1/tms/getInwardReportForAssemble?apiId=486&startTime=null&endTime=null&i=" +
|
|
|
+ new Date() +
|
|
|
+ "&orderType=15";
|
|
|
+ this.seven.requestUrl =
|
|
|
+ "/api/v1/tms/getInwardReportForAssemble?apiId=486&startTime=null&endTime=null&i=" +
|
|
|
+ new Date() +
|
|
|
+ "&orderType=16";
|
|
|
} else {
|
|
|
this.first.requestUrl =
|
|
|
"/api/v1/tms/getInwardInFactory?apiId=486&orgCode=" +
|
|
@@ -538,6 +662,18 @@ export default {
|
|
|
getCookie("orgCode") +
|
|
|
"&i=" +
|
|
|
new Date();
|
|
|
+ this.six.requestUrl =
|
|
|
+ "/api/v1/tms/getInwardReportForAssemble?apiId=486&startTime=null&endTime=null&i=" +
|
|
|
+ new Date() +
|
|
|
+ "&orgCode=" +
|
|
|
+ getCookie("orgCode") +
|
|
|
+ "&orderType=15";
|
|
|
+ this.seven.requestUrl =
|
|
|
+ "/api/v1/tms/getInwardReportForAssemble?apiId=486&startTime=null&endTime=null&i=" +
|
|
|
+ new Date() +
|
|
|
+ "&orgCde=" +
|
|
|
+ getCookie("orgCode") +
|
|
|
+ "&orderType=16";
|
|
|
}
|
|
|
},
|
|
|
onClick() {
|
|
@@ -613,6 +749,28 @@ export default {
|
|
|
this.input +
|
|
|
"&i=" +
|
|
|
new Date();
|
|
|
+ } else if (this.activeName == "six") {
|
|
|
+ this.six.requestUrl =
|
|
|
+ "/api/v1/tms/getInwardReportForAssemble?apiId=486&startTime=" +
|
|
|
+ startTime +
|
|
|
+ "&endTime=" +
|
|
|
+ endTime +
|
|
|
+ "&input=" +
|
|
|
+ this.input +
|
|
|
+ "&i=" +
|
|
|
+ new Date() +
|
|
|
+ "&orderType=15";
|
|
|
+ } else if (this.activeName == "seven") {
|
|
|
+ this.seven.requestUrl =
|
|
|
+ "/api/v1/tms/getInwardReportForAssemble?apiId=486&startTime=" +
|
|
|
+ startTime +
|
|
|
+ "&endTime=" +
|
|
|
+ endTime +
|
|
|
+ "&input=" +
|
|
|
+ this.input +
|
|
|
+ "&i=" +
|
|
|
+ new Date() +
|
|
|
+ "&orderType=16";
|
|
|
}
|
|
|
} else {
|
|
|
if (this.activeName == "first") {
|
|
@@ -675,6 +833,32 @@ export default {
|
|
|
this.input +
|
|
|
"&i=" +
|
|
|
new Date();
|
|
|
+ } else if (thia.activeName == "six") {
|
|
|
+ this.six.requestUrl =
|
|
|
+ "/api/v1/tms/getInwardReportForAssemble?apiId=486&startTime=" +
|
|
|
+ startTime +
|
|
|
+ "&endTime=" +
|
|
|
+ endTime +
|
|
|
+ "&input=" +
|
|
|
+ this.input +
|
|
|
+ "&i=" +
|
|
|
+ new Date() +
|
|
|
+ "&orgCode=" +
|
|
|
+ getCookie("orgCode") +
|
|
|
+ "&orderType=15";
|
|
|
+ } else if (thia.activeName == "seven") {
|
|
|
+ this.seven.requestUrl =
|
|
|
+ "/api/v1/tms/getInwardReportForAssemble?apiId=486&startTime=" +
|
|
|
+ startTime +
|
|
|
+ "&endTime=" +
|
|
|
+ endTime +
|
|
|
+ "&input=" +
|
|
|
+ this.input +
|
|
|
+ "&i=" +
|
|
|
+ new Date() +
|
|
|
+ "&orgCode=" +
|
|
|
+ getCookie("orgCode") +
|
|
|
+ "&orderType=16";
|
|
|
}
|
|
|
}
|
|
|
},
|