diff --git a/src/api/erp/purchase/order/index.ts b/src/api/erp/purchase/order/index.ts
new file mode 100644
index 00000000..ad3222fa
--- /dev/null
+++ b/src/api/erp/purchase/order/index.ts
@@ -0,0 +1,64 @@
+import request from '@/config/axios'
+
+// ERP 采购订单 VO
+export interface PurchaseOrderVO {
+ id: number // 订单工单编号
+ no: string // 采购订单号
+ customerId: number // 客户编号
+ orderTime: Date // 订单时间
+ totalCount: number // 合计数量
+ totalPrice: number // 合计金额,单位:元
+ status: number // 状态
+ remark: string // 备注
+ outCount: number // 采购出库数量
+ returnCount: number // 采购退货数量
+}
+
+// ERP 采购订单 API
+export const PurchaseOrderApi = {
+ // 查询采购订单分页
+ getPurchaseOrderPage: async (params: any) => {
+ return await request.get({ url: `/erp/purchase-order/page`, params })
+ },
+
+ // 查询采购订单详情
+ getPurchaseOrder: async (id: number) => {
+ return await request.get({ url: `/erp/purchase-order/get?id=` + id })
+ },
+
+ // 新增采购订单
+ createPurchaseOrder: async (data: PurchaseOrderVO) => {
+ return await request.post({ url: `/erp/purchase-order/create`, data })
+ },
+
+ // 修改采购订单
+ updatePurchaseOrder: async (data: PurchaseOrderVO) => {
+ return await request.put({ url: `/erp/purchase-order/update`, data })
+ },
+
+ // 更新采购订单的状态
+ updatePurchaseOrderStatus: async (id: number, status: number) => {
+ return await request.put({
+ url: `/erp/purchase-order/update-status`,
+ params: {
+ id,
+ status
+ }
+ })
+ },
+
+ // 删除采购订单
+ deletePurchaseOrder: async (ids: number[]) => {
+ return await request.delete({
+ url: `/erp/purchase-order/delete`,
+ params: {
+ ids: ids.join(',')
+ }
+ })
+ },
+
+ // 导出采购订单 Excel
+ exportPurchaseOrder: async (params: any) => {
+ return await request.download({ url: `/erp/purchase-order/export-excel`, params })
+ }
+}
diff --git a/src/views/erp/purchase/order/SaleOrderForm.vue b/src/views/erp/purchase/order/SaleOrderForm.vue
new file mode 100644
index 00000000..30b2b302
--- /dev/null
+++ b/src/views/erp/purchase/order/SaleOrderForm.vue
@@ -0,0 +1,289 @@
+
+
+
+
diff --git a/src/views/erp/purchase/order/components/SaleOrderItemForm.vue b/src/views/erp/purchase/order/components/SaleOrderItemForm.vue
new file mode 100644
index 00000000..b94097a9
--- /dev/null
+++ b/src/views/erp/purchase/order/components/SaleOrderItemForm.vue
@@ -0,0 +1,271 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ —
+
+
+
+
+
+ + 添加入库产品
+
+
+
diff --git a/src/views/erp/purchase/order/components/SaleOrderOutEnableList.vue b/src/views/erp/purchase/order/components/SaleOrderOutEnableList.vue
new file mode 100644
index 00000000..b8fcd561
--- /dev/null
+++ b/src/views/erp/purchase/order/components/SaleOrderOutEnableList.vue
@@ -0,0 +1,206 @@
+
+
+
+
+
+
diff --git a/src/views/erp/purchase/order/components/SaleOrderReturnEnableList.vue b/src/views/erp/purchase/order/components/SaleOrderReturnEnableList.vue
new file mode 100644
index 00000000..c8037b86
--- /dev/null
+++ b/src/views/erp/purchase/order/components/SaleOrderReturnEnableList.vue
@@ -0,0 +1,212 @@
+
+
+
+
+
+
diff --git a/src/views/erp/purchase/order/index.vue b/src/views/erp/purchase/order/index.vue
new file mode 100644
index 00000000..b7bad791
--- /dev/null
+++ b/src/views/erp/purchase/order/index.vue
@@ -0,0 +1,405 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+ 新增
+
+
+ 导出
+
+ item.id))"
+ v-hasPermi="['erp:purchase-order:delete']"
+ :disabled="selectionList.length === 0"
+ >
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 详情
+
+
+ 编辑
+
+
+ 审批
+
+
+ 反审批
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/erp/sale/order/index.vue b/src/views/erp/sale/order/index.vue
index 01e977d6..e260896f 100644
--- a/src/views/erp/sale/order/index.vue
+++ b/src/views/erp/sale/order/index.vue
@@ -95,21 +95,21 @@
class="!w-240px"
/>
-
+
-
-
-
+
+
+
-
+