diff --git a/src/api/delivery_service.ts b/src/api/delivery_service.ts new file mode 100644 index 000000000..1645b9a77 --- /dev/null +++ b/src/api/delivery_service.ts @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 配送员表列表 +export function apiDeliveryServiceLists(params: any) { + return request.get({ url: '/delivery_service/deliveryservice/lists', params }) +} + +// 添加配送员表 +export function apiDeliveryServiceAdd(params: any) { + return request.post({ url: '/delivery_service/deliveryservice/add', params }) +} + +// 编辑配送员表 +export function apiDeliveryServiceEdit(params: any) { + return request.post({ url: '/delivery_service/deliveryservice/edit', params }) +} + +// 删除配送员表 +export function apiDeliveryServiceDelete(params: any) { + return request.post({ url: '/delivery_service/deliveryservice/delete', params }) +} + +// 配送员表详情 +export function apiDeliveryServiceDetail(params: any) { + return request.get({ url: '/delivery_service/deliveryservice/detail', params }) +} \ No newline at end of file diff --git a/src/api/psi/psi_order.ts b/src/api/psi/psi_order.ts deleted file mode 100644 index 8cc21c79e..000000000 --- a/src/api/psi/psi_order.ts +++ /dev/null @@ -1,42 +0,0 @@ -import request from '@/utils/request' - -// 商品仓储订单列表 -export function apiWarehouseOrderLists(params: any) { - return request.get({ url: '/psi_order/psiorder/lists', params }, { urlPrefix: 'psi' }) -} - -// 添加商品仓储订单 -export function apiWarehouseOrderAdd(params: any) { - return request.post({ url: '/psi_order/psiorder/add', params }, { urlPrefix: 'psi' }) -} - -// 添加出库单 -export function apiWarehouseOrderOutbound(params: any) { - return request.post({ url: '/psi_order/psiorder/outbound', params }, { urlPrefix: 'psi' }) -} -// 编辑商品仓储订单 -export function apiWarehouseOrderEdit(params: any) { - return request.post({ url: '/psi_order/psiorder/edit', params }, { urlPrefix: 'psi' }) -} - -// 删除商品仓储订单 -export function apiWarehouseOrderDelete(params: any) { - return request.post({ url: '/psi_order/psiorder/delete', params }, { urlPrefix: 'psi' }) -} - -// 商品仓储订单详情 -export function apiWarehouseOrderDetail(params: any) { - return request.get({ url: '/psi_order/psiorder/detail', params }, { urlPrefix: 'psi' }) -} -// 导出商品仓储入库订单 -export function apiWarehouseOrderRentryExport(params: any) { - return request.post({ url: '/psi_order/psiorder/rentry_export', params }, { urlPrefix: 'psi' }) -} -// 导出商品仓储出库订单 -export function apiWarehouseOrderExport(params: any) { - return request.post({ url: '/psi_order/psiorder/export', params }, { urlPrefix: 'psi' }) -} -// 编辑商品仓储订单 -export function apiWarehouseOrderUpdateEdit(params: any) { - return request.post({ url: '/psi_order/psiorder/update_edit', params }, { urlPrefix: 'psi' }) -} diff --git a/src/api/psi/psi_product.ts b/src/api/psi/psi_product.ts deleted file mode 100644 index 7f0fabebf..000000000 --- a/src/api/psi/psi_product.ts +++ /dev/null @@ -1,43 +0,0 @@ -import request from '@/utils/request' - -// 商品仓储信息列表 -export function apiWarehouseProductLists(params: any) { - return request.get({ url: '/psi_product/psiproduct/lists', params }, { urlPrefix: 'psi' }) -} - -// 添加商品仓储信息 -export function apiWarehouseProductAdd(params: any) { - return request.post({ url: '/psi_product/psiproduct/add', params }, { urlPrefix: 'psi' }) -} - -// 编辑商品仓储信息 -export function apiWarehouseProductEdit(params: any) { - return request.post({ url: '/psi_product/psiproduct/edit', params }, { urlPrefix: 'psi' }) -} - -// 删除商品仓储信息 -export function apiWarehouseProductDelete(params: any) { - return request.post({ url: '/psi_product/psiproduct/delete', params }, { urlPrefix: 'psi' }) -} - -// 商品仓储信息详情 -export function apiWarehouseProductDetail(params: any) { - return request.get({ url: '/psi_product/psiproduct/detail', params }, { urlPrefix: 'psi' }) -} -// 商品仓储信息确认 -export function apiWarehouseProductEnter(params: any) { - return request.post({ url: '/psi_product/psiproduct/enter', params }, { urlPrefix: 'psi' }) -} -//商品结算 -export function apiWarehouseProductSettlement(params: any) { - return request.post({ url: '/psi_product/psiproduct/settlement', params }, { urlPrefix: 'psi' }) -} - -/** - * 重置出入库 - * @param params - * @returns - */ -export function apiWarehouseProductSetNums(params: any) { - return request.post({ url: '/psi_product/psiproduct/set_nums', params }, { urlPrefix: 'psi' }) -} diff --git a/src/api/psi/purchase_order.ts b/src/api/psi/purchase_order.ts new file mode 100644 index 000000000..bbc786e6e --- /dev/null +++ b/src/api/psi/purchase_order.ts @@ -0,0 +1,60 @@ +import request from '@/utils/request' + +// 商品仓储订单列表 +export function apiWarehouseOrderLists(params: any) { + return request.get({ url: '/purchase_order/purchaseorder/lists', params }, { urlPrefix: 'psi' }) +} + +// 添加商品仓储订单 +export function apiWarehouseOrderAdd(params: any) { + return request.post({ url: '/purchase_order/purchaseorder/add', params }, { urlPrefix: 'psi' }) +} + +// 添加出库单 +export function apiWarehouseOrderOutbound(params: any) { + return request.post( + { url: '/purchase_order/purchaseorder/outbound', params }, + { urlPrefix: 'psi' } + ) +} +// 编辑商品仓储订单 +export function apiWarehouseOrderEdit(params: any) { + return request.post({ url: '/purchase_order/purchaseorder/edit', params }, { urlPrefix: 'psi' }) +} + +// 删除商品仓储订单 +export function apiWarehouseOrderDelete(params: any) { + return request.post( + { url: '/purchase_order/purchaseorder/delete', params }, + { urlPrefix: 'psi' } + ) +} + +// 商品仓储订单详情 +export function apiWarehouseOrderDetail(params: any) { + return request.get( + { url: '/purchase_order/purchaseorder/detail', params }, + { urlPrefix: 'psi' } + ) +} +// 导出商品仓储入库订单 +export function apiWarehouseOrderRentryExport(params: any) { + return request.post( + { url: '/purchase_order/purchaseorder/rentry_export', params }, + { urlPrefix: 'psi' } + ) +} +// 导出商品仓储出库订单 +export function apiWarehouseOrderExport(params: any) { + return request.post( + { url: '/purchase_order/purchaseorder/export', params }, + { urlPrefix: 'psi' } + ) +} +// 编辑商品仓储订单 +export function apiWarehouseOrderUpdateEdit(params: any) { + return request.post( + { url: '/purchase_order/purchaseorder/update_edit', params }, + { urlPrefix: 'psi' } + ) +} diff --git a/src/api/psi/purchase_product.ts b/src/api/psi/purchase_product.ts new file mode 100644 index 000000000..8aac0f84b --- /dev/null +++ b/src/api/psi/purchase_product.ts @@ -0,0 +1,67 @@ +import request from '@/utils/request' + +// 商品仓储信息列表 +export function apiWarehouseProductLists(params: any) { + return request.get( + { url: '/purchase_product/purchaseproduct/lists', params }, + { urlPrefix: 'psi' } + ) +} + +// 添加商品仓储信息 +export function apiWarehouseProductAdd(params: any) { + return request.post( + { url: '/purchase_product/purchaseproduct/add', params }, + { urlPrefix: 'psi' } + ) +} + +// 编辑商品仓储信息 +export function apiWarehouseProductEdit(params: any) { + return request.post( + { url: '/purchase_product/purchaseproduct/edit', params }, + { urlPrefix: 'psi' } + ) +} + +// 删除商品仓储信息 +export function apiWarehouseProductDelete(params: any) { + return request.post( + { url: '/purchase_product/purchaseproduct/delete', params }, + { urlPrefix: 'psi' } + ) +} + +// 商品仓储信息详情 +export function apiWarehouseProductDetail(params: any) { + return request.get( + { url: '/purchase_product/purchaseproduct/detail', params }, + { urlPrefix: 'psi' } + ) +} +// 商品仓储信息确认 +export function apiWarehouseProductEnter(params: any) { + return request.post( + { url: '/purchase_product/purchaseproduct/enter', params }, + { urlPrefix: 'psi' } + ) +} +//商品结算 +export function apiWarehouseProductSettlement(params: any) { + return request.post( + { url: '/purchase_product/purchaseproduct/settlement', params }, + { urlPrefix: 'psi' } + ) +} + +/** + * 重置出入库 + * @param params + * @returns + */ +export function apiWarehouseProductSetNums(params: any) { + return request.post( + { url: '/purchase_product/purchaseproduct/set_nums', params }, + { urlPrefix: 'psi' } + ) +} diff --git a/src/api/store_product.ts b/src/api/store_product.ts new file mode 100644 index 000000000..9ac147ae4 --- /dev/null +++ b/src/api/store_product.ts @@ -0,0 +1,43 @@ +import request from '@/utils/request' + +// 商品表列表 +export function apiStoreProductLists(params: any) { + return request.get({ url: '/store_product/storeproduct/lists', params }) +} + +// 添加商品表 +export function apiStoreProductAdd(params: any) { + return request.post({ url: '/store_product/storeproduct/add', params }) +} + +// 编辑商品表 +export function apiStoreProductEdit(params: any) { + return request.post({ url: '/store_product/storeproduct/edit', params }) +} +// 商品状态 +export function apiStoreProductStatus(params: any) { + return request.post({ url: '/store_product/storeproduct/status', params }) +} + +// 删除商品表 +export function apiStoreProductDelete(params: any) { + return request.post({ url: '/store_product/storeproduct/delete', params }) +} + +export function apiStoreProductRestore(params: any) { + return request.post({ url: '/store_product/storeproduct/restore', params }) +} + +// 商品表详情 +export function apiStoreProductDetail(params: any) { + return request.get({ url: '/store_product/storeproduct/detail', params }) +} + +// 复制商品到门店 +export function apiStoreProductImport(params: any) { + return request.post({ url: '/store_product/storeproduct/import', params }) +} +// 复制商品到门店 +export function apiStoreProductCopy(params: any) { + return request.post({ url: '/store_product/storeproduct/copy', params }) +} diff --git a/src/components/productWarehousePop/index.vue b/src/components/productWarehousePop/index.vue index 3f7885dcb..cbeb798f0 100644 --- a/src/components/productWarehousePop/index.vue +++ b/src/components/productWarehousePop/index.vue @@ -10,18 +10,12 @@ placeholder="请输入商品名称" /> - - + 查询 重置 diff --git a/src/views/psi/purchase/lists.vue b/src/views/psi/purchase/lists.vue deleted file mode 100644 index bf1154545..000000000 --- a/src/views/psi/purchase/lists.vue +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/src/views/psi/purchase_order/add.vue b/src/views/psi/purchase_order/add.vue new file mode 100644 index 000000000..6aebfe609 --- /dev/null +++ b/src/views/psi/purchase_order/add.vue @@ -0,0 +1,431 @@ + + + diff --git a/src/views/psi/purchase_order/index.vue b/src/views/psi/purchase_order/index.vue index e6d495695..3cab7782f 100644 --- a/src/views/psi/purchase_order/index.vue +++ b/src/views/psi/purchase_order/index.vue @@ -72,13 +72,12 @@ - 入库 + 添加
@@ -139,7 +138,7 @@