often need to convert a value after encountering a circular array
let arr = res.data.orderinformation;
for (let i = 0; i < arr.length; iPP) {
if (arr[i].ctype == "11001") {
arr[i].ctype = "";
} else if (arr[i].ctype == "11008") {
arr[i].ctype = "";
} else if (arr[i].ctype == "11011") {
arr[i].ctype = "";
} else if (arr[i].ctype == "11012") {
arr[i].ctype = "";
} else if (arr[i].ctype == "11013") {
arr[i].ctype = "";
} else if (arr[i].ctype == "11014") {
arr[i].ctype = "";
}
// switch, , ?
// switch (arr[i].ctype) {
// case "11001":
// arr[i].ctype = "";
// break;
// case "11008":
// arr[i].ctype = "";
// break;
// case "11011":
// arr[i].ctype = "";
// break;
// case "11012":
// arr[i].ctype = "";
// break;
// case "11013":
// arr[i].ctype = "";
// break;
// case "11014":
// arr[i].ctype = "";
// break;
// default:
// break;
// }
//
arr[i].ctime = new Date(arr[i].ctime);
arr[i].ctime =
arr[i].ctime.toLocaleDateString().replace(/\//g, "-") +
" " +
arr[i].ctime.toTimeString().substr(0, 8);
}