增加维修单导入

This commit is contained in:
龙运模
2025-05-29 16:42:06 +08:00
parent da33f75322
commit fd8f5488bf
4 changed files with 58 additions and 8 deletions
+15 -1
View File
@@ -124,7 +124,21 @@ export default {
post: async function (params) {
return await http.post(this.url,params);
}
}
},
template:{
url: `${config.API_URL}/repair.order.import.template`,
name: "维修工单导入模版",
post: async function (params) {
return await http.get(this.url,params,{responseType: 'arraybuffer'});
}
},
import:{
url: `${config.API_URL}/repair.order.import`,
name: "维修工单导入",
post: async function (params) {
return await http.post(this.url,params,{'Content-Type': 'multipart/form-data'});
}
},
},
maintenance:{
list:{