zhengxin 5 лет назад
Родитель
Сommit
8d938fdfc5

+ 43 - 0
ghs/src/api/inventory/index.js

@@ -0,0 +1,43 @@
+import https from "@/plugins/luch-request_0.0.7/request";
+
+/** *
+ * 盘点列表
+ */
+export const getCheckOrderListApi = status => {
+	return https.get("/check-order/list", { status });
+};
+
+/** *
+ * 编辑草稿 ,保存入库
+ */
+export const updateCheckOrderApi = data => {
+	return https.post("/check-order/update-order", data);
+};
+
+/** *
+ * 编辑草稿 ,继续保存到草稿
+ */
+export const updateCheckOrderToDraftApi = data => {
+	return https.post("/check-order/update-draft", data);
+};
+
+/** *
+ * 盘点存草稿
+ */
+export const savaCheckOrderDraftApi = data => {
+	return https.post("/check-order/create-draft", data);
+};
+
+/** *
+ * 盘点订单详情
+ */
+export const getCheckOrderDetailApi = orderSn => {
+	return https.get("/check-order/detail", { orderSn });
+};
+
+/** *
+ * 盘点确认
+ */
+export const savaCheckOrderApi = data => {
+	return https.post("/check-order/create-order", data);
+};

+ 22 - 0
ghs/src/api/purchase/index.js

@@ -0,0 +1,22 @@
+import https from "@/plugins/luch-request_0.0.7/request";
+
+/** *
+ * 采购订单详情
+ */
+export const getPurchaseDetailApi = orderSn => {
+	return https.get("/purchase-order/detail", { orderSn });
+};
+
+/** *
+ * 采购列表
+ */
+export const getPurchaseListApi = data => {
+	return https.get("/purchase-order/list", data);
+};
+
+/** *
+ * 采购确认
+ */
+export const createPurchaseOrderApi = data => {
+	return https.post("/purchase-order/create-order", data);
+};

+ 61 - 0
ghs/src/api/storehouse/flower.js

@@ -0,0 +1,61 @@
+import https from "@/plugins/luch-request_0.0.7/request";
+/** *
+ * 平台花材列表
+ */
+export const getPlatformFlowerListApi = async data => {
+	return https.get("/item/platform-item", data);
+};
+/** *
+ * 花材列表
+ */
+export const getFlowerListApi = async data => {
+	return https.get("/item/list", data);
+};
+
+/** *
+ * 删除花材
+ */
+export const deleteFlowerApi = async id => {
+	return https.get("/item/delete", { id });
+};
+
+/** *
+ * 修改花材
+ */
+export const updateFlowerApi = async data => {
+	return https.post("/item/update", data);
+};
+
+/** *
+ * 新增花材
+ */
+export const addFlowerApi = async data => {
+	return https.post("/item/add", data);
+};
+
+/** *
+ * 花材分类列表
+ */
+export const getFlowerCategoryListApi = async data => {
+	return https.get("/item-class/list", data);
+};
+/** *
+ * 删除花材分类
+ */
+export const deleteFlowerCategoryApi = async id => {
+	return https.get("/item-class/delete", { id });
+};
+
+/** *
+ * 修改花材分类
+ */
+export const updateFlowerCategoryApi = async data => {
+	return https.post("/item-class/update", data);
+};
+
+/** *
+ * 新增花材分类
+ */
+export const addFlowerCategoryApi = async data => {
+	return https.post("/item-class/add", data);
+};

+ 8 - 0
ghs/src/api/storehouse/index.js

@@ -0,0 +1,8 @@
+import https from '@/plugins/luch-request_0.0.7/request'
+
+/** *
+ * 数据统计 b
+ */
+export const getStatList = data => {
+	return https.get('/stat/list', data)
+}

+ 64 - 0
ghs/src/api/storehouse/stock.js

@@ -0,0 +1,64 @@
+import https from "@/plugins/luch-request_0.0.7/request";
+
+/** *
+ * 库存明细
+ */
+export const getStockDetailApi = data => {
+	return https.get("/stock/detail", data);
+};
+
+/** *
+ * 确认入库
+ */
+export const confirmOrderApi = orderSn => {
+	return https.get("/stock-in/confirm-order", { orderSn });
+};
+
+/** *
+ * 入库详情
+ */
+export const getStockInDetailApi = orderSn => {
+	return https.get("/stock-in/detail", { orderSn });
+};
+
+/** *
+ * 入库列表
+ */
+export const getStockInDetailApi = status => {
+	return https.get("/stock-in/list", { status });
+};
+
+/** *
+ * 出库详情
+ */
+export const getStockOutDetailApi = async orderSn => {
+	return https.get("/stock-out/detail", { orderSn });
+};
+
+/** *
+ * 出库订单生成 (待出库/直接出库)
+ */
+export const createStockOutOrderApi = async data => {
+	return https.post("/stock-out/create-order", data);
+};
+
+/** *
+ * 出库列表
+ */
+export const getStockOutDetailApi = async status => {
+	return https.get("/stock-out/list", { status });
+};
+
+/** *
+ * 取消出库
+ */
+export const cancelStockOutOrderApi = async orderSn => {
+	return https.get("/stock-out/cancel-order", { orderSn });
+};
+
+/** *
+ * 确认出库
+ */
+export const confirmStockOutOrderApi = async orderSn => {
+	return https.get("/stock-out/confirm-order", { orderSn });
+};

+ 2 - 2
ghs/src/pages.json

@@ -123,7 +123,7 @@
 					"path": "pay",
 					"path": "pay",
 					"style": {
 					"style": {
 						"navigationBarTitleText": "付款"
 						"navigationBarTitleText": "付款"
-					}	
+					}
 				}
 				}
 			]
 			]
 		},
 		},
@@ -134,7 +134,7 @@
 					"path": "detail",
 					"path": "detail",
 					"style": {
 					"style": {
 						"navigationBarTitleText": "订单详情"
 						"navigationBarTitleText": "订单详情"
-					}	
+					}
 				}
 				}
 			]
 			]
 		},
 		},