diff --git a/src/api/detection/records/index.ts b/src/api/detection/records/index.ts
index fa0de3a..f903aca 100644
--- a/src/api/detection/records/index.ts
+++ b/src/api/detection/records/index.ts
@@ -56,6 +56,16 @@ export const exportRecords = async (params) => {
}
// 下载导入模板
-export const importTemplate = () => {
- return request.download({ url: '/detection/records/get-import-template' })
+export const importTemplate = (itemType:string) => {
+ return request.download({ url: '/detection/records/get-import-template?itemType='+itemType })
+}
+
+// 提交导入记录
+export const saveRecords = async (id: number) => {
+ return await request.get({ url: `/detection/records/saveRecords?id=` + id })
+}
+
+//每次导入前会传模版id后端会根据模版id和用户id把草稿状态的数据逻辑删除
+export const deleteStatus = async (templateId: number) => {
+ return await request.delete({ url: `/detection/records/deleteStatus?id=` + templateId })
}
\ No newline at end of file
diff --git a/src/api/spc/templateItemDetails/index.ts b/src/api/spc/templateItemDetails/index.ts
index ff1d75c..cdc594e 100644
--- a/src/api/spc/templateItemDetails/index.ts
+++ b/src/api/spc/templateItemDetails/index.ts
@@ -19,7 +19,9 @@ export interface TemplateItemDetailsVO {
deleterId: string
extraProperties: string
concurrencyStamp: string
- siteId: string
+ siteId: string,
+ recodeColumns?:number,
+ recodeLines?:number,
}
// 查询检测记录明细列表
export const getTemplateItemDetailsPage = async (params) => {
diff --git a/src/components/ImportForm/src/DetForm.vue b/src/components/ImportForm/src/DetForm.vue
new file mode 100644
index 0000000..ac672a3
--- /dev/null
+++ b/src/components/ImportForm/src/DetForm.vue
@@ -0,0 +1,548 @@
+
+
+
+
+
+
diff --git a/src/components/ImportForm/src/DetecImportForm.vue b/src/components/ImportForm/src/DetecImportForm.vue
index 6ef2ff9..96bf3fa 100644
--- a/src/components/ImportForm/src/DetecImportForm.vue
+++ b/src/components/ImportForm/src/DetecImportForm.vue
@@ -1,6 +1,6 @@
-