diff --git a/src/assets/api.js b/src/assets/api.js
index b4411ff8..5888b9be 100644
--- a/src/assets/api.js
+++ b/src/assets/api.js
@@ -981,4 +981,15 @@ export const dingTaskQuery = (id) => {
export const searchPendingOrderByObject = (data) => {
return req("get", baseurl + "/order/searchPendingOrderByObject", data);
};
+
+// 批量作废--文件上传
+export const searchPendingOrderByHash = (data) => {
+ return req("post", baseurl + "/order/searchPendingOrderByHash", data);
+};
+
+// 批量作废--列表check
+export const searchPendingOrderByKeys = (data) => {
+ return req("post", baseurl + "/order/searchPendingOrderByKeys", data);
+};
+
export { req };
diff --git a/src/components/UseUploadExcel/index.jsx b/src/components/UseUploadExcel/index.jsx
index bcb7e8e7..8a44c6b0 100644
--- a/src/components/UseUploadExcel/index.jsx
+++ b/src/components/UseUploadExcel/index.jsx
@@ -6,16 +6,16 @@ import "./style.less";
const columns = [
{
title: "行号",
- name: "id"
+ name: "id",
},
{
title: "key",
- name: "key"
+ name: "key",
},
{
title: "错误原因",
- name: "msg"
- }
+ name: "msg",
+ },
];
const UseUploadExcel = (props) => {
@@ -78,7 +78,7 @@ const UseUploadExcel = (props) => {
return {
key: item.key,
id: index + 1,
- msg: erObj(item.msg)
+ msg: erObj(item.msg),
};
});
setTableData(errArr);
@@ -176,23 +176,23 @@ const UseUploadExcel = (props) => {
const uploadTop = () => {
return (
-
-
-
1
-
上传文件
+
+
-
-
+
-
-
-
直接上传
-
+
+
直接上传
+
- 支持文件类型:xls,xlsx,csv
- 支持所有基础字段的导入,一次至多导入 100
@@ -210,12 +210,12 @@ const UseUploadExcel = (props) => {
*/
const uploadExcel = () => {
return (
-
+
(e.target.value = "")}
onChange={(e) => fileChange(e)}
/>
@@ -223,8 +223,9 @@ const UseUploadExcel = (props) => {
style={{
background: "#1890ff",
color: "#FFFFFF",
- border: "none"
- }}>
+ border: "none",
+ }}
+ >
上传文件
@@ -237,16 +238,16 @@ const UseUploadExcel = (props) => {
*/
const tipSuccess = () => {
return (
-
-
+
+
文件解析成功, 点击 "确定导入" 即可导入
);
};
const tipErr = () => {
return (
-
-
+
+
文件解析失败, 请查看导入规则并更新文件
);
@@ -258,21 +259,21 @@ const UseUploadExcel = (props) => {
*/
const upFilesExcel = () => {
return (
-
-
-
-
+
+
+
+
{filesName}
-
@@ -297,26 +298,27 @@ const UseUploadExcel = (props) => {
*/
const uploadFooter = () => {
return (
-
-
下载模板并填写后上传
-
+
+
下载模板并填写后上传
+
请先下载「数字世界营销管理系统_keys_模板」并按照模板填写后再上传。
-
-