|
@@ -55,4 +55,22 @@ export async function categoryVehicleList (id) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// 干燥区 库位
|
|
|
|
|
+
|
|
|
|
|
+export async function aridRegion (data) {
|
|
|
|
|
+ const res = await request.post(`/main/aridregion/save`, data);
|
|
|
|
|
+ if (res.data.code == 0) {
|
|
|
|
|
+ return res.data.data;
|
|
|
|
|
+ }
|
|
|
|
|
+ return Promise.reject(new Error(res.data.message));
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export async function aridRegionList (id) {
|
|
|
|
|
+ const res = await request.get(`/main/aridregion/getByCategoryId/${id}`);
|
|
|
|
|
+ if (res.data.code == 0) {
|
|
|
|
|
+ return res.data.data;
|
|
|
|
|
+ }
|
|
|
|
|
+ return Promise.reject(new Error(res.data.message));
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
|