release
YCC 1 year ago
parent b82984ca01
commit d4ebc7ab7f

@ -1,7 +1,7 @@
import React from "react"; import React from "react";
import dayjs from "dayjs"; import dayjs from "dayjs";
export const HT_HOST = process.env.NODE_ENV == "production" ? "https://p9axztuwd7x8a7.mycht.cn" : "http://202.103.68.144:890"; export const HT_HOST = process.env.NODE_ENV == "production" ? "https://p9axztuwd7x8a7.mycht.cn" :"http://202.103.68.231:889"; //"http://202.103.68.144:890";
export const DATE_FORMAT = "YYYY-MM-DD"; export const DATE_FORMAT = "YYYY-MM-DD";
export const DATE_FORMAT_MONTH = "YYYY-MM"; export const DATE_FORMAT_MONTH = "YYYY-MM";
export const DATE_PRESETS = [ export const DATE_PRESETS = [

@ -34,23 +34,12 @@ class Report {
this.search_date_end = dates==null? null: dates[1]; this.search_date_end = dates==null? null: dates[1];
}; };
fetchInvoiceList(VEI_SN, GroupNo, DateStart, DateEnd,OrderType) { getHWVendorScores(VEI_SN, StartDate, EndDate) {
this.loading = true; this.loading = true;
const fetchUrl = prepareUrl(HT_HOST + "/service-cusservice/PTSearchGMBPageList") const fetchUrl = prepareUrl(HT_HOST + "/service-cusservice/PTGetHWProductScores")
.append("VEI_SN", VEI_SN) .append("VEI_SN", VEI_SN)
.append("OrderType", 0) .append("StartDate", StartDate)
.append("GroupNo", GroupNo.trim()) .append("EndDate", EndDate)
.append("DateStart", DateStart)
.append("DateEnd", DateEnd)
.append("Orderbytype", 1)
.append("TimeType", 0)
.append("limitmarket", "")
.append("mddgroup", "")
.append("SecuryGroup", "")
.append("TotalNum", 0)
.append("PageSize", 2000)
.append("PageIndex", 1)
.append("PayState",OrderType)
.append("token",this.root.authStore.login.token) .append("token",this.root.authStore.login.token)
.build(); .build();

@ -39,28 +39,28 @@ function Index() {
}, },
{ {
title: "Number of People", title: "Number of People",
dataIndex: "Number of People", dataIndex: "PersonNum",
key: "Number of People", key: "PersonNum",
}, },
{ {
title: "Transaction AmountUSD)", title: "Transaction AmountUSD)",
dataIndex: "Transaction AmountUSD)", dataIndex: "AmountUSD",
key: "Transaction AmountUSD)", key: "AmountUSD",
}, },
{ {
title: "Evaluation Score", title: "Evaluation Score",
dataIndex: "Evaluation Score", dataIndex: "EvaluationScore",
key: "Evaluation Score", key: "EvaluationScore",
}, },
{ {
title: "TP Reviews", title: "TP Reviews",
dataIndex: "TP Reviews", dataIndex: "TPReviews",
key: "TP Reviews", key: "TPReviews",
}, },
{ {
title: "TP Reviews Rate", title: "TP Reviews Rate",
dataIndex: "TP Reviews Rate", dataIndex: "TPReviewRate",
key: "TP Reviews Rate", key: "TPReviewRate",
}, },
{ {
title: "Complaints", title: "Complaints",
@ -69,46 +69,46 @@ function Index() {
}, },
{ {
title: "Complaint Rate", title: "Complaint Rate",
dataIndex: "Complaint Rate", dataIndex: "ComplaintRate",
key: "Complaint Rate", key: "ComplaintRate",
}, },
]; ];
const columns_month = [ const columns_month = [
{ {
title: "Date", title: "Date",
dataIndex: "Date", dataIndex: "VMonth",
key: "Date", key: "VMonth",
}, },
{ {
title: "Groups", title: "Groups",
dataIndex: "Groups", dataIndex: "GroupsNum",
key: "Groups", key: "GroupsNum",
}, },
{ {
title: "Number of People", title: "Number of People",
dataIndex: "Number of People", dataIndex: "PersonNum",
key: "Number of People", key: "PersonNum",
}, },
{ {
title: "Transaction AmountUSD)", title: "Transaction AmountUSD)",
dataIndex: "Transaction AmountUSD)", dataIndex: "AmountUSD",
key: "Transaction AmountUSD)", key: "AmountUSD",
}, },
{ {
title: "Evaluation Score", title: "Evaluation Score",
dataIndex: "Evaluation Score", dataIndex: "EvaluationScore",
key: "Evaluation Score", key: "EvaluationScore",
}, },
{ {
title: "TP Reviews", title: "TP Reviews",
dataIndex: "TP Reviews", dataIndex: "TPReviews",
key: "TP Reviews", key: "TPReviews",
}, },
{ {
title: "TP Reviews Rate", title: "TP Reviews Rate",
dataIndex: "TP Reviews Rate", dataIndex: "TPReviewRate",
key: "TP Reviews Rate", key: "TPReviewRate",
}, },
{ {
title: "Complaints", title: "Complaints",
@ -117,8 +117,8 @@ function Index() {
}, },
{ {
title: "Complaint Rate", title: "Complaint Rate",
dataIndex: "Complaint Rate", dataIndex: "ComplaintRate",
key: "Complaint Rate", key: "ComplaintRate",
}, },
]; ];
@ -130,7 +130,14 @@ function Index() {
onCell: (_, index) => { onCell: (_, index) => {
if (index === 0) { if (index === 0) {
return { return {
rowSpan: 2, rowSpan: 3,
//colSpan:0,
};
}
if (index >= 1 && index <= 2) {
return {
rowSpan: 0,
colSpan: 0,
}; };
} }
}, },
@ -149,44 +156,57 @@ function Index() {
title: "Final Scores", title: "Final Scores",
dataIndex: "Final Scores", dataIndex: "Final Scores",
key: "Final Scores", key: "Final Scores",
onCell: (_, index) => {
if (index === 0) {
return {
rowSpan: 5, //
//colSpan: 5,
};
} else {
return {
rowSpan: 0, //
colSpan: 0,
};
}
},
}, },
]; ];
const dataSource_dmc = [ const dataSource_dmc = [
{ {
key: "1", key: "1",
Category: "Category", Category: "Category1",
Item: "Item", Item: "Item1",
"Your Scores": "Your Scores", "Your Scores": "Your Scores1",
"Final Scores": "Final Scores", "Final Scores": "Final Scores1",
}, },
{ {
key: "2", key: "2",
Category: "Category", Category: "Category2",
Item: "Item", Item: "Item2",
"Your Scores": "Your Scores", "Your Scores": "Your Scores2",
"Final Scores": "Final Scores", "Final Scores": "Final Scores2",
}, },
{ {
key: "3", key: "3",
Category: "Category", Category: "Category3",
Item: "Item", Item: "Item3",
"Your Scores": "Your Scores", "Your Scores": "Your Scores3",
"Final Scores": "Final Scores", "Final Scores": "Final Scores3",
}, },
{ {
key: "4", key: "4",
Category: "Category", Category: "Category4",
Item: "Item", Item: "Item4",
"Your Scores": "Your Scores", "Your Scores": "Your Scores4",
"Final Scores": "Final Scores", "Final Scores": "Final Scores4",
}, },
{ {
key: "5", key: "5",
Category: "Category", Category: "Category5",
Item: "Item", Item: "Item5",
"Your Scores": "Your Scores", "Your Scores": "Your Scores5",
"Final Scores": "Final Scores", "Final Scores": "Final Scores5",
}, },
]; ];

Loading…
Cancel
Save