diff --git a/.env.development b/.env.development
index 4e87e58..1f20bb3 100644
--- a/.env.development
+++ b/.env.development
@@ -1,3 +1,8 @@
# 后台服务地址
-VITE_HTTP_PROXY_TARGET=http://localhost:10086
+# VITE_HTTP_PROXY_TARGET=http://localhost:10086
+# VITE_HTTP_PROXY_TARGET=http://192.168.2.124:10086
+VITE_HTTP_PROXY_TARGET=http://192.168.2.2:8808
+
+# VITE_HTTP_PROXY_TARGET=https://s2.njzscloud.com/api/
+# VITE_HTTP_PROXY_TARGET=https://chengdu.njzscloud.com/api
VITE_WS_PROXY_TARGET=ws://localhost:10086
diff --git a/plugin.zip b/plugin.zip
new file mode 100644
index 0000000..f7eb408
Binary files /dev/null and b/plugin.zip differ
diff --git a/src/components/a-select/ASelect.vue b/src/components/a-select/ASelect.vue
new file mode 100644
index 0000000..b84f17a
--- /dev/null
+++ b/src/components/a-select/ASelect.vue
@@ -0,0 +1,103 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/dts/components.d.ts b/src/dts/components.d.ts
index 7d80095..2243684 100644
--- a/src/dts/components.d.ts
+++ b/src/dts/components.d.ts
@@ -5,6 +5,7 @@
// ------
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
+import { GlobalComponents } from 'vue'
export {}
@@ -109,4 +110,4 @@ declare global {
const ElUpload: typeof import('element-plus/es')['ElUpload']
const RouterLink: typeof import('vue-router')['RouterLink']
const RouterView: typeof import('vue-router')['RouterView']
-}
+}
\ No newline at end of file
diff --git a/src/pages/cst/org/Org.vue b/src/pages/cst/org/Org.vue
index d0e9498..a7a37bc 100644
--- a/src/pages/cst/org/Org.vue
+++ b/src/pages/cst/org/Org.vue
@@ -111,7 +111,7 @@ const searchForm = Utils.resetAble(
const searching = ref(false);
const deling = ref(false);
const showSearchForm = ref(true);
-const orgFormIns = useTemplateRef>("orgForm");
+// const orgFormIns = useTemplateRef>("orgForm");
// function showDialog(data?: OrgTypes.SearchOrgResult) {
// orgFormIns.value?.open(data);
diff --git a/src/pages/gds/goods/GoodsForm.vue b/src/pages/gds/goods/GoodsForm.vue
index 15022d7..e31a5f0 100644
--- a/src/pages/gds/goods/GoodsForm.vue
+++ b/src/pages/gds/goods/GoodsForm.vue
@@ -106,7 +106,6 @@ function submitHandler() {
}
const category = ref([]);
-
const loading = ref(false);
const remoteMethod = (query: string) => {
console.log(query, "query");
diff --git a/src/pages/home/.editorconfig b/src/pages/home/.editorconfig
new file mode 100644
index 0000000..88bf97c
--- /dev/null
+++ b/src/pages/home/.editorconfig
@@ -0,0 +1,12 @@
+# EditorConfig is awesome: https://EditorConfig.org
+
+# top-most EditorConfig file
+root = true
+
+[*]
+indent_style = space
+indent_size = 2
+end_of_line = crlf
+charset = utf-8
+trim_trailing_whitespace = false
+insert_final_newline = false
\ No newline at end of file
diff --git a/src/pages/order/book-order/Order.vue b/src/pages/order/book-order/Order.vue
new file mode 100644
index 0000000..7f2ef26
--- /dev/null
+++ b/src/pages/order/book-order/Order.vue
@@ -0,0 +1,337 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+ 新建
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 指派清运公司
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/order/book-order/OrderDetail.vue b/src/pages/order/book-order/OrderDetail.vue
new file mode 100644
index 0000000..d9c7937
--- /dev/null
+++ b/src/pages/order/book-order/OrderDetail.vue
@@ -0,0 +1,123 @@
+
+
+
+
+ {{ detailData.id }}
+
+
+ {{ detailData.sn }}
+
+
+ {{ detailData.projectId }}
+
+
+ {{ detailData.userId }}
+
+
+ {{ detailData.customerId }}
+
+
+ {{ detailData.contacts }}
+
+
+ {{ detailData.phone }}
+
+
+ {{ detailData.orderTime }}
+
+
+ {{ detailData.orderCategory }}
+
+
+ {{ detailData.orderStatus }}
+
+
+ {{ detailData.finishTime }}
+
+
+ {{ detailData.transOrgId }}
+
+
+ {{ detailData.transCustomerId }}
+
+
+ {{ detailData.assignmentTransTime }}
+
+
+ {{ detailData.stationId }}
+
+
+ {{ detailData.stationName }}
+
+
+ {{ detailData.transDistance }}
+
+
+ {{ detailData.estimatedQuantity }}
+
+
+ {{ detailData.estimatedTrainNum }}
+
+
+ {{ detailData.goodsId }}
+
+
+ {{ detailData.goodsName }}
+
+
+ {{ detailData.unit }}
+
+
+ {{ detailData.customerMemo }}
+
+
+ {{ detailData.creatorId }}
+
+
+ {{ detailData.modifierId }}
+
+
+ {{ detailData.createTime }}
+
+
+ {{ detailData.modifyTime }}
+
+
+ {{ detailData.deleted }}
+
+
+
+ 关闭
+
+
+
+
+
+
+
diff --git a/src/pages/order/book-order/OrderForm.vue b/src/pages/order/book-order/OrderForm.vue
new file mode 100644
index 0000000..ce23a39
--- /dev/null
+++ b/src/pages/order/book-order/OrderForm.vue
@@ -0,0 +1,289 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ status === 'view' ? '关闭' : '取消' }}
+ 提交
+
+
+
+
+
+
+
diff --git a/src/pages/order/book-order/order-api.ts b/src/pages/order/book-order/order-api.ts
new file mode 100644
index 0000000..1b0829a
--- /dev/null
+++ b/src/pages/order/book-order/order-api.ts
@@ -0,0 +1,25 @@
+import { get, post } from "@/common/utils/http-util.ts";
+
+export default {
+ paging(data: OrderTypes.SearchOrderParam) {
+ return get>("/order/paging", data);
+ },
+ detail(id: string) {
+ return get("/order/detail", { id });
+ },
+ add(data: OrderTypes.AddOrderParam) {
+ return post("/order/add", data);
+ },
+ modify(data: OrderTypes.ModifyOrderParam) {
+ return post("/order/modify", data);
+ },
+ del(ids: string[]) {
+ return post("/order/del", ids);
+ },
+ assignmentOrg(data: any) {
+ return post("/order/assignmentOrg", data);
+ },
+ orderTrans(data: OrderTypes.SearchOrderParam) {
+ return get>("/order_trans/paging", data);
+ },
+};
diff --git a/src/pages/order/book-order/order.d.ts b/src/pages/order/book-order/order.d.ts
new file mode 100644
index 0000000..5672070
--- /dev/null
+++ b/src/pages/order/book-order/order.d.ts
@@ -0,0 +1,241 @@
+export {}
+
+declare global {
+ namespace OrderTypes {
+ interface SearchOrderParam extends G.PageParam {
+ // Id
+ id?: string
+ // 订单编号
+ sn?: string
+ // 项目 Id
+ projectId?: string
+ // 下单人 Id;sys_user.id
+ userId?: string
+ // 下单人客户 Id;cst_customer.id
+ customerId?: string
+ // 下单人姓名
+ contacts?: string
+ // 下单人联系方式
+ phone?: string
+ // 下单时间
+ orderTime?: string
+ // 订单类型;字典代码:order_category,HuiShouYuYue-->回收预约单、XiaoShouYuYue-->销售预约单、DuanBoRu-->短驳入、DuanBoChu-->短驳出
+ orderCategory?: string
+ // 订单状态;字典代码:order_status,YiYuYue-->已预约、JinXingZhong-->进行中、YiWanCheng-->已完成、YiQuXiao-->已取消
+ orderStatus?: string
+ // 完结时间
+ finishTime?: string
+ // 运输组织 Id;cst_org.id
+ transOrgId?: string
+ // 运输方客户 Id
+ transCustomerId?: string
+ // 指派清运公司时间
+ assignmentTransTime?: string
+ // 站点 Id;cst_station.id
+ stationId?: string
+ // 站点名称;cst_station.station.name
+ stationName?: string
+ // 运距;单位:米
+ transDistance?: number
+ // 预估量
+ estimatedQuantity?: number
+ // 预估车数
+ estimatedTrainNum?: number
+ // 产品 Id
+ goodsId?: string
+ // 产品名称
+ goodsName?: string
+ // 计量单位;字典代码:unit
+ unit?: string
+ // 客户备注
+ customerMemo?: string
+ // 创建人 Id; sys_user.id
+ creatorId?: string
+ // 修改人 Id; sys_user.id
+ modifierId?: string
+ // 创建时间
+ createTime?: string
+ // 修改时间
+ modifyTime?: string
+ // 是否删除; 0-->未删除、1-->已删除
+ deleted?: boolean
+ }
+
+ interface SearchOrderResult {
+ // Id
+ id?: string
+ // 订单编号
+ sn?: string
+ // 项目 Id
+ projectId?: string
+ // 下单人 Id;sys_user.id
+ userId?: string
+ // 下单人客户 Id;cst_customer.id
+ customerId?: string
+ // 下单人姓名
+ contacts?: string
+ // 下单人联系方式
+ phone?: string
+ // 下单时间
+ orderTime?: string
+ // 订单类型;字典代码:order_category,HuiShouYuYue-->回收预约单、XiaoShouYuYue-->销售预约单、DuanBoRu-->短驳入、DuanBoChu-->短驳出
+ orderCategory?: string
+ // 订单状态;字典代码:order_status,YiYuYue-->已预约、JinXingZhong-->进行中、YiWanCheng-->已完成、YiQuXiao-->已取消
+ orderStatus?: string
+ // 完结时间
+ finishTime?: string
+ // 运输组织 Id;cst_org.id
+ transOrgId?: string
+ // 运输方客户 Id
+ transCustomerId?: string
+ // 指派清运公司时间
+ assignmentTransTime?: string
+ // 站点 Id;cst_station.id
+ stationId?: string
+ // 站点名称;cst_station.station.name
+ stationName?: string
+ // 运距;单位:米
+ transDistance?: number
+ // 预估量
+ estimatedQuantity?: number
+ // 预估车数
+ estimatedTrainNum?: number
+ // 产品 Id
+ goodsId?: string
+ // 产品名称
+ goodsName?: string
+ // 计量单位;字典代码:unit
+ unit?: string
+ // 客户备注
+ customerMemo?: string
+ // 创建人 Id; sys_user.id
+ creatorId?: string
+ // 修改人 Id; sys_user.id
+ modifierId?: string
+ // 创建时间
+ createTime?: string
+ // 修改时间
+ modifyTime?: string
+ // 是否删除; 0-->未删除、1-->已删除
+ deleted?: boolean
+ }
+
+ interface AddOrderParam {
+ // Id
+ id?: string
+ // 订单编号
+ sn?: string
+ // 项目 Id
+ projectId?: string
+ // 下单人 Id;sys_user.id
+ userId?: string
+ // 下单人客户 Id;cst_customer.id
+ customerId?: string
+ // 下单人姓名
+ contacts?: string
+ // 下单人联系方式
+ phone?: string
+ // 下单时间
+ orderTime?: string
+ // 订单类型;字典代码:order_category,HuiShouYuYue-->回收预约单、XiaoShouYuYue-->销售预约单、DuanBoRu-->短驳入、DuanBoChu-->短驳出
+ orderCategory?: string
+ // 订单状态;字典代码:order_status,YiYuYue-->已预约、JinXingZhong-->进行中、YiWanCheng-->已完成、YiQuXiao-->已取消
+ orderStatus?: string
+ // 完结时间
+ finishTime?: string
+ // 运输组织 Id;cst_org.id
+ transOrgId?: string
+ // 运输方客户 Id
+ transCustomerId?: string
+ // 指派清运公司时间
+ assignmentTransTime?: string
+ // 站点 Id;cst_station.id
+ stationId?: string
+ // 站点名称;cst_station.station.name
+ stationName?: string
+ // 运距;单位:米
+ transDistance?: number
+ // 预估量
+ estimatedQuantity?: number
+ // 预估车数
+ estimatedTrainNum?: number
+ // 产品 Id
+ goodsId?: string
+ // 产品名称
+ goodsName?: string
+ // 计量单位;字典代码:unit
+ unit?: string
+ // 客户备注
+ customerMemo?: string
+ // 创建人 Id; sys_user.id
+ creatorId?: string
+ // 修改人 Id; sys_user.id
+ modifierId?: string
+ // 创建时间
+ createTime?: string
+ // 修改时间
+ modifyTime?: string
+ // 是否删除; 0-->未删除、1-->已删除
+ deleted?: boolean
+ }
+
+ interface ModifyOrderParam {
+ // Id
+ id?: string
+ // 订单编号
+ sn?: string
+ // 项目 Id
+ projectId?: string
+ // 下单人 Id;sys_user.id
+ userId?: string
+ // 下单人客户 Id;cst_customer.id
+ customerId?: string
+ // 下单人姓名
+ contacts?: string
+ // 下单人联系方式
+ phone?: string
+ // 下单时间
+ orderTime?: string
+ // 订单类型;字典代码:order_category,HuiShouYuYue-->回收预约单、XiaoShouYuYue-->销售预约单、DuanBoRu-->短驳入、DuanBoChu-->短驳出
+ orderCategory?: string
+ // 订单状态;字典代码:order_status,YiYuYue-->已预约、JinXingZhong-->进行中、YiWanCheng-->已完成、YiQuXiao-->已取消
+ orderStatus?: string
+ // 完结时间
+ finishTime?: string
+ // 运输组织 Id;cst_org.id
+ transOrgId?: string
+ // 运输方客户 Id
+ transCustomerId?: string
+ // 指派清运公司时间
+ assignmentTransTime?: string
+ // 站点 Id;cst_station.id
+ stationId?: string
+ // 站点名称;cst_station.station.name
+ stationName?: string
+ // 运距;单位:米
+ transDistance?: number
+ // 预估量
+ estimatedQuantity?: number
+ // 预估车数
+ estimatedTrainNum?: number
+ // 产品 Id
+ goodsId?: string
+ // 产品名称
+ goodsName?: string
+ // 计量单位;字典代码:unit
+ unit?: string
+ // 客户备注
+ customerMemo?: string
+ // 创建人 Id; sys_user.id
+ creatorId?: string
+ // 修改人 Id; sys_user.id
+ modifierId?: string
+ // 创建时间
+ createTime?: string
+ // 修改时间
+ modifyTime?: string
+ // 是否删除; 0-->未删除、1-->已删除
+ deleted?: boolean
+ }
+ }
+}
diff --git a/src/pages/order/book-order/page.ts b/src/pages/order/book-order/page.ts
new file mode 100644
index 0000000..192e3b1
--- /dev/null
+++ b/src/pages/order/book-order/page.ts
@@ -0,0 +1,3 @@
+export default {
+ component: () => import('@/pages/order/book-order/Order.vue'),
+} as RouterTypes.RouteConfig
\ No newline at end of file
diff --git a/src/pages/wh/inventory/Inventory.vue b/src/pages/wh/inventory/Inventory.vue
new file mode 100644
index 0000000..a4d87f4
--- /dev/null
+++ b/src/pages/wh/inventory/Inventory.vue
@@ -0,0 +1,255 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+ 新建
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+ 修改
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/wh/inventory/InventoryDetail.vue b/src/pages/wh/inventory/InventoryDetail.vue
new file mode 100644
index 0000000..64facad
--- /dev/null
+++ b/src/pages/wh/inventory/InventoryDetail.vue
@@ -0,0 +1,81 @@
+
+
+
+
+ {{ detailData.id }}
+
+
+ {{ detailData.warehouseId }}
+
+
+ {{ detailData.goodsId }}
+
+
+ {{ detailData.location }}
+
+
+ {{ detailData.stockQuantity }}
+
+
+ {{ detailData.lockQuantity }}
+
+
+ {{ detailData.totalQuantity }}
+
+
+ {{ detailData.remainingQuantity }}
+
+
+ {{ detailData.unit }}
+
+
+ {{ detailData.creatorId }}
+
+
+ {{ detailData.modifierId }}
+
+
+ {{ detailData.createTime }}
+
+
+ {{ detailData.modifyTime }}
+
+
+ {{ detailData.deleted }}
+
+
+
+ 关闭
+
+
+
+
+
+
+
diff --git a/src/pages/wh/inventory/InventoryForm.vue b/src/pages/wh/inventory/InventoryForm.vue
new file mode 100644
index 0000000..91d0cda
--- /dev/null
+++ b/src/pages/wh/inventory/InventoryForm.vue
@@ -0,0 +1,191 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ status === 'view' ? '关闭' : '取消' }}
+ 提交
+
+
+
+
+
+
+
diff --git a/src/pages/wh/inventory/inventory-api.ts b/src/pages/wh/inventory/inventory-api.ts
new file mode 100644
index 0000000..4fc8189
--- /dev/null
+++ b/src/pages/wh/inventory/inventory-api.ts
@@ -0,0 +1,22 @@
+import {
+ get,
+ post
+} from '@/common/utils/http-util.ts'
+
+export default {
+ paging(data: InventoryTypes.SearchInventoryParam) {
+ return get>('/inventory/paging', data)
+ },
+ detail(id: string) {
+ return get('/inventory/detail', {id})
+ },
+ add(data: InventoryTypes.AddInventoryParam) {
+ return post('/inventory/add', data)
+ },
+ modify(data: InventoryTypes.ModifyInventoryParam) {
+ return post('/inventory/modify', data)
+ },
+ del(ids: string[]) {
+ return post('/inventory/del', ids)
+ },
+}
diff --git a/src/pages/wh/inventory/inventory.d.ts b/src/pages/wh/inventory/inventory.d.ts
new file mode 100644
index 0000000..025f6a2
--- /dev/null
+++ b/src/pages/wh/inventory/inventory.d.ts
@@ -0,0 +1,129 @@
+export {}
+
+declare global {
+ namespace InventoryTypes {
+ interface SearchInventoryParam extends G.PageParam {
+ // Id
+ id?: string
+ // 仓库 Id
+ warehouseId?: string
+ // 产品 Id
+ goodsId?: string
+ // 存放位置
+ location?: string
+ // 当前库存数量
+ stockQuantity?: number
+ // 锁定数量
+ lockQuantity?: number
+ // 总量
+ totalQuantity?: number
+ // 剩余量
+ remainingQuantity?: number
+ // 计量单位;字典代码:unit
+ unit?: string
+ // 创建人 Id; sys_user.id
+ creatorId?: string
+ // 修改人 Id; sys_user.id
+ modifierId?: string
+ // 创建时间
+ createTime?: string
+ // 修改时间
+ modifyTime?: string
+ // 是否删除; 0-->未删除、1-->已删除
+ deleted?: boolean
+ }
+
+ interface SearchInventoryResult {
+ // Id
+ id?: string
+ // 仓库 Id
+ warehouseId?: string
+ // 产品 Id
+ goodsId?: string
+ // 存放位置
+ location?: string
+ // 当前库存数量
+ stockQuantity?: number
+ // 锁定数量
+ lockQuantity?: number
+ // 总量
+ totalQuantity?: number
+ // 剩余量
+ remainingQuantity?: number
+ // 计量单位;字典代码:unit
+ unit?: string
+ // 创建人 Id; sys_user.id
+ creatorId?: string
+ // 修改人 Id; sys_user.id
+ modifierId?: string
+ // 创建时间
+ createTime?: string
+ // 修改时间
+ modifyTime?: string
+ // 是否删除; 0-->未删除、1-->已删除
+ deleted?: boolean
+ }
+
+ interface AddInventoryParam {
+ // Id
+ id?: string
+ // 仓库 Id
+ warehouseId?: string
+ // 产品 Id
+ goodsId?: string
+ // 存放位置
+ location?: string
+ // 当前库存数量
+ stockQuantity?: number
+ // 锁定数量
+ lockQuantity?: number
+ // 总量
+ totalQuantity?: number
+ // 剩余量
+ remainingQuantity?: number
+ // 计量单位;字典代码:unit
+ unit?: string
+ // 创建人 Id; sys_user.id
+ creatorId?: string
+ // 修改人 Id; sys_user.id
+ modifierId?: string
+ // 创建时间
+ createTime?: string
+ // 修改时间
+ modifyTime?: string
+ // 是否删除; 0-->未删除、1-->已删除
+ deleted?: boolean
+ }
+
+ interface ModifyInventoryParam {
+ // Id
+ id?: string
+ // 仓库 Id
+ warehouseId?: string
+ // 产品 Id
+ goodsId?: string
+ // 存放位置
+ location?: string
+ // 当前库存数量
+ stockQuantity?: number
+ // 锁定数量
+ lockQuantity?: number
+ // 总量
+ totalQuantity?: number
+ // 剩余量
+ remainingQuantity?: number
+ // 计量单位;字典代码:unit
+ unit?: string
+ // 创建人 Id; sys_user.id
+ creatorId?: string
+ // 修改人 Id; sys_user.id
+ modifierId?: string
+ // 创建时间
+ createTime?: string
+ // 修改时间
+ modifyTime?: string
+ // 是否删除; 0-->未删除、1-->已删除
+ deleted?: boolean
+ }
+ }
+}
diff --git a/src/pages/wh/inventory/page.ts b/src/pages/wh/inventory/page.ts
new file mode 100644
index 0000000..7468724
--- /dev/null
+++ b/src/pages/wh/inventory/page.ts
@@ -0,0 +1,3 @@
+export default {
+ component: () => import('@/pages/wh/inventory/Inventory.vue'),
+} as RouterTypes.RouteConfig
\ No newline at end of file
diff --git a/src/pages/wh/purchase-order/PurchaseOrder.vue b/src/pages/wh/purchase-order/PurchaseOrder.vue
new file mode 100644
index 0000000..4b149e6
--- /dev/null
+++ b/src/pages/wh/purchase-order/PurchaseOrder.vue
@@ -0,0 +1,213 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+ 新建
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+ 修改
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/wh/purchase-order/PurchaseOrderDetail.vue b/src/pages/wh/purchase-order/PurchaseOrderDetail.vue
new file mode 100644
index 0000000..04b493d
--- /dev/null
+++ b/src/pages/wh/purchase-order/PurchaseOrderDetail.vue
@@ -0,0 +1,99 @@
+
+
+
+
+ {{ detailData.id }}
+
+
+ {{ detailData.sn }}
+
+
+ {{ detailData.purchaseOrderStatus }}
+
+
+ {{ detailData.customerId }}
+
+
+ {{ detailData.purchaseDate }}
+
+
+ {{ detailData.arrivalDate }}
+
+
+ {{ detailData.goodsCategoryId }}
+
+
+ {{ detailData.goodsCategoryName }}
+
+
+ {{ detailData.goodsId }}
+
+
+ {{ detailData.goodsName }}
+
+
+ {{ detailData.goodSn }}
+
+
+ {{ detailData.quantity }}
+
+
+ {{ detailData.unit }}
+
+
+ {{ detailData.totalMoney }}
+
+
+ {{ detailData.memo }}
+
+
+ {{ detailData.creatorId }}
+
+
+ {{ detailData.modifierId }}
+
+
+ {{ detailData.createTime }}
+
+
+ {{ detailData.modifyTime }}
+
+
+ {{ detailData.deleted }}
+
+
+
+ 关闭
+
+
+
+
+
+
+
diff --git a/src/pages/wh/purchase-order/PurchaseOrderForm.vue b/src/pages/wh/purchase-order/PurchaseOrderForm.vue
new file mode 100644
index 0000000..7b18862
--- /dev/null
+++ b/src/pages/wh/purchase-order/PurchaseOrderForm.vue
@@ -0,0 +1,208 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ status === "view" ? "关闭" : "取消" }}
+ 提交
+
+
+
+
+
+
+
diff --git a/src/pages/wh/purchase-order/page.ts b/src/pages/wh/purchase-order/page.ts
new file mode 100644
index 0000000..14cc470
--- /dev/null
+++ b/src/pages/wh/purchase-order/page.ts
@@ -0,0 +1,3 @@
+export default {
+ component: () => import('@/pages/wh/purchase-order/PurchaseOrder.vue'),
+} as RouterTypes.RouteConfig
\ No newline at end of file
diff --git a/src/pages/wh/purchase-order/purchase-order-api.ts b/src/pages/wh/purchase-order/purchase-order-api.ts
new file mode 100644
index 0000000..45a14e6
--- /dev/null
+++ b/src/pages/wh/purchase-order/purchase-order-api.ts
@@ -0,0 +1,22 @@
+import {
+ get,
+ post
+} from '@/common/utils/http-util.ts'
+
+export default {
+ paging(data: PurchaseOrderTypes.SearchPurchaseOrderParam) {
+ return get>('/purchase_order/paging', data)
+ },
+ detail(id: string) {
+ return get('/purchase_order/detail', {id})
+ },
+ add(data: PurchaseOrderTypes.AddPurchaseOrderParam) {
+ return post('/purchase_order/add', data)
+ },
+ modify(data: PurchaseOrderTypes.ModifyPurchaseOrderParam) {
+ return post('/purchase_order/modify', data)
+ },
+ del(ids: string[]) {
+ return post('/purchase_order/del', ids)
+ },
+}
diff --git a/src/pages/wh/purchase-order/purchase-order.d.ts b/src/pages/wh/purchase-order/purchase-order.d.ts
new file mode 100644
index 0000000..3984453
--- /dev/null
+++ b/src/pages/wh/purchase-order/purchase-order.d.ts
@@ -0,0 +1,177 @@
+export {}
+
+declare global {
+ namespace PurchaseOrderTypes {
+ interface SearchPurchaseOrderParam extends G.PageParam {
+ // Id
+ id?: string
+ // 编号
+ sn?: string
+ // 状态,JinXingZhong-->进行中、YiDaoHuo-->已到货、YiRuKu-->已入库、YiQuXiao-->已取消
+ purchaseOrderStatus?: string
+ // 供货客户 Id
+ customerId?: string
+ // 采购日期
+ purchaseDate?: string
+ // 到货日期
+ arrivalDate?: string
+ // 产品分类 Id
+ goodsCategoryId?: string
+ // 分类名称
+ goodsCategoryName?: string
+ // 产品 Id
+ goodsId?: string
+ // 产品名称
+ goodsName?: string
+ // 商品编码
+ goodSn?: string
+ // 数量
+ quantity?: number
+ // 计量单位;字典代码:unit
+ unit?: string
+ // 总金额;单位:元
+ totalMoney?: string
+ // 备注
+ memo?: string
+ // 创建人 Id; sys_user.id
+ creatorId?: string
+ // 修改人 Id; sys_user.id
+ modifierId?: string
+ // 创建时间
+ createTime?: string
+ // 修改时间
+ modifyTime?: string
+ // 是否删除; 0-->未删除、1-->已删除
+ deleted?: boolean
+ }
+
+ interface SearchPurchaseOrderResult {
+ // Id
+ id?: string
+ // 编号
+ sn?: string
+ // 状态,JinXingZhong-->进行中、YiDaoHuo-->已到货、YiRuKu-->已入库、YiQuXiao-->已取消
+ purchaseOrderStatus?: string
+ // 供货客户 Id
+ customerId?: string
+ // 采购日期
+ purchaseDate?: string
+ // 到货日期
+ arrivalDate?: string
+ // 产品分类 Id
+ goodsCategoryId?: string
+ // 分类名称
+ goodsCategoryName?: string
+ // 产品 Id
+ goodsId?: string
+ // 产品名称
+ goodsName?: string
+ // 商品编码
+ goodSn?: string
+ // 数量
+ quantity?: number
+ // 计量单位;字典代码:unit
+ unit?: string
+ // 总金额;单位:元
+ totalMoney?: string
+ // 备注
+ memo?: string
+ // 创建人 Id; sys_user.id
+ creatorId?: string
+ // 修改人 Id; sys_user.id
+ modifierId?: string
+ // 创建时间
+ createTime?: string
+ // 修改时间
+ modifyTime?: string
+ // 是否删除; 0-->未删除、1-->已删除
+ deleted?: boolean
+ }
+
+ interface AddPurchaseOrderParam {
+ // Id
+ id?: string
+ // 编号
+ sn?: string
+ // 状态,JinXingZhong-->进行中、YiDaoHuo-->已到货、YiRuKu-->已入库、YiQuXiao-->已取消
+ purchaseOrderStatus?: string
+ // 供货客户 Id
+ customerId?: string
+ // 采购日期
+ purchaseDate?: string
+ // 到货日期
+ arrivalDate?: string
+ // 产品分类 Id
+ goodsCategoryId?: string
+ // 分类名称
+ goodsCategoryName?: string
+ // 产品 Id
+ goodsId?: string
+ // 产品名称
+ goodsName?: string
+ // 商品编码
+ goodSn?: string
+ // 数量
+ quantity?: number
+ // 计量单位;字典代码:unit
+ unit?: string
+ // 总金额;单位:元
+ totalMoney?: string
+ // 备注
+ memo?: string
+ // 创建人 Id; sys_user.id
+ creatorId?: string
+ // 修改人 Id; sys_user.id
+ modifierId?: string
+ // 创建时间
+ createTime?: string
+ // 修改时间
+ modifyTime?: string
+ // 是否删除; 0-->未删除、1-->已删除
+ deleted?: boolean
+ }
+
+ interface ModifyPurchaseOrderParam {
+ // Id
+ id?: string
+ // 编号
+ sn?: string
+ // 状态,JinXingZhong-->进行中、YiDaoHuo-->已到货、YiRuKu-->已入库、YiQuXiao-->已取消
+ purchaseOrderStatus?: string
+ // 供货客户 Id
+ customerId?: string
+ // 采购日期
+ purchaseDate?: string
+ // 到货日期
+ arrivalDate?: string
+ // 产品分类 Id
+ goodsCategoryId?: string
+ // 分类名称
+ goodsCategoryName?: string
+ // 产品 Id
+ goodsId?: string
+ // 产品名称
+ goodsName?: string
+ // 商品编码
+ goodSn?: string
+ // 数量
+ quantity?: number
+ // 计量单位;字典代码:unit
+ unit?: string
+ // 总金额;单位:元
+ totalMoney?: string
+ // 备注
+ memo?: string
+ // 创建人 Id; sys_user.id
+ creatorId?: string
+ // 修改人 Id; sys_user.id
+ modifierId?: string
+ // 创建时间
+ createTime?: string
+ // 修改时间
+ modifyTime?: string
+ // 是否删除; 0-->未删除、1-->已删除
+ deleted?: boolean
+ }
+ }
+}
diff --git a/src/pages/wh/sales-order/SalesOrder.vue b/src/pages/wh/sales-order/SalesOrder.vue
new file mode 100644
index 0000000..09513c1
--- /dev/null
+++ b/src/pages/wh/sales-order/SalesOrder.vue
@@ -0,0 +1,231 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+ 新建
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+ 修改
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/wh/sales-order/SalesOrderDetail.vue b/src/pages/wh/sales-order/SalesOrderDetail.vue
new file mode 100644
index 0000000..3e9ea64
--- /dev/null
+++ b/src/pages/wh/sales-order/SalesOrderDetail.vue
@@ -0,0 +1,99 @@
+
+
+
+
+ {{ detailData.id }}
+
+
+ {{ detailData.sn }}
+
+
+ {{ detailData.salesOrderStatus }}
+
+
+ {{ detailData.customerId }}
+
+
+ {{ detailData.orderDate }}
+
+
+ {{ detailData.shipmentDate }}
+
+
+ {{ detailData.goodsCategoryId }}
+
+
+ {{ detailData.goodsCategoryName }}
+
+
+ {{ detailData.goodsId }}
+
+
+ {{ detailData.goodsName }}
+
+
+ {{ detailData.goodSn }}
+
+
+ {{ detailData.quantity }}
+
+
+ {{ detailData.unit }}
+
+
+ {{ detailData.totalMoney }}
+
+
+ {{ detailData.memo }}
+
+
+ {{ detailData.creatorId }}
+
+
+ {{ detailData.modifierId }}
+
+
+ {{ detailData.createTime }}
+
+
+ {{ detailData.modifyTime }}
+
+
+ {{ detailData.deleted }}
+
+
+
+ 关闭
+
+
+
+
+
+
+
diff --git a/src/pages/wh/sales-order/SalesOrderForm.vue b/src/pages/wh/sales-order/SalesOrderForm.vue
new file mode 100644
index 0000000..8540cab
--- /dev/null
+++ b/src/pages/wh/sales-order/SalesOrderForm.vue
@@ -0,0 +1,228 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ status === 'view' ? '关闭' : '取消' }}
+ 提交
+
+
+
+
+
+
+
diff --git a/src/pages/wh/sales-order/page.ts b/src/pages/wh/sales-order/page.ts
new file mode 100644
index 0000000..d273162
--- /dev/null
+++ b/src/pages/wh/sales-order/page.ts
@@ -0,0 +1,3 @@
+export default {
+ component: () => import('@/pages/wh/sales-order/SalesOrder.vue'),
+} as RouterTypes.RouteConfig
\ No newline at end of file
diff --git a/src/pages/wh/sales-order/sales-order-api.ts b/src/pages/wh/sales-order/sales-order-api.ts
new file mode 100644
index 0000000..8c4555e
--- /dev/null
+++ b/src/pages/wh/sales-order/sales-order-api.ts
@@ -0,0 +1,22 @@
+import {
+ get,
+ post
+} from '@/common/utils/http-util.ts'
+
+export default {
+ paging(data: SalesOrderTypes.SearchSalesOrderParam) {
+ return get>('/sales_order/paging', data)
+ },
+ detail(id: string) {
+ return get('/sales_order/detail', {id})
+ },
+ add(data: SalesOrderTypes.AddSalesOrderParam) {
+ return post('/sales_order/add', data)
+ },
+ modify(data: SalesOrderTypes.ModifySalesOrderParam) {
+ return post('/sales_order/modify', data)
+ },
+ del(ids: string[]) {
+ return post('/sales_order/del', ids)
+ },
+}
diff --git a/src/pages/wh/sales-order/sales-order.d.ts b/src/pages/wh/sales-order/sales-order.d.ts
new file mode 100644
index 0000000..8e3ddf9
--- /dev/null
+++ b/src/pages/wh/sales-order/sales-order.d.ts
@@ -0,0 +1,177 @@
+export {}
+
+declare global {
+ namespace SalesOrderTypes {
+ interface SearchSalesOrderParam extends G.PageParam {
+ // Id
+ id?: string
+ // 编号
+ sn?: string
+ // 状态,JinXingZhong-->进行中、YiFaHuo-->已发货、YiChuKu-->已出库、YiQuXiao-->已取消
+ salesOrderStatus?: string
+ // 购买方客户 Id
+ customerId?: string
+ // 下单日期
+ orderDate?: string
+ // 发货日期
+ shipmentDate?: string
+ // 产品分类 Id
+ goodsCategoryId?: string
+ // 分类名称
+ goodsCategoryName?: string
+ // 产品 Id
+ goodsId?: string
+ // 产品名称
+ goodsName?: string
+ // 商品编码
+ goodSn?: string
+ // 数量
+ quantity?: number
+ // 计量单位;字典代码:unit
+ unit?: string
+ // 总金额;单位:元
+ totalMoney?: string
+ // 备注
+ memo?: string
+ // 创建人 Id; sys_user.id
+ creatorId?: string
+ // 修改人 Id; sys_user.id
+ modifierId?: string
+ // 创建时间
+ createTime?: string
+ // 修改时间
+ modifyTime?: string
+ // 是否删除; 0-->未删除、1-->已删除
+ deleted?: boolean
+ }
+
+ interface SearchSalesOrderResult {
+ // Id
+ id?: string
+ // 编号
+ sn?: string
+ // 状态,JinXingZhong-->进行中、YiFaHuo-->已发货、YiChuKu-->已出库、YiQuXiao-->已取消
+ salesOrderStatus?: string
+ // 购买方客户 Id
+ customerId?: string
+ // 下单日期
+ orderDate?: string
+ // 发货日期
+ shipmentDate?: string
+ // 产品分类 Id
+ goodsCategoryId?: string
+ // 分类名称
+ goodsCategoryName?: string
+ // 产品 Id
+ goodsId?: string
+ // 产品名称
+ goodsName?: string
+ // 商品编码
+ goodSn?: string
+ // 数量
+ quantity?: number
+ // 计量单位;字典代码:unit
+ unit?: string
+ // 总金额;单位:元
+ totalMoney?: string
+ // 备注
+ memo?: string
+ // 创建人 Id; sys_user.id
+ creatorId?: string
+ // 修改人 Id; sys_user.id
+ modifierId?: string
+ // 创建时间
+ createTime?: string
+ // 修改时间
+ modifyTime?: string
+ // 是否删除; 0-->未删除、1-->已删除
+ deleted?: boolean
+ }
+
+ interface AddSalesOrderParam {
+ // Id
+ id?: string
+ // 编号
+ sn?: string
+ // 状态,JinXingZhong-->进行中、YiFaHuo-->已发货、YiChuKu-->已出库、YiQuXiao-->已取消
+ salesOrderStatus?: string
+ // 购买方客户 Id
+ customerId?: string
+ // 下单日期
+ orderDate?: string
+ // 发货日期
+ shipmentDate?: string
+ // 产品分类 Id
+ goodsCategoryId?: string
+ // 分类名称
+ goodsCategoryName?: string
+ // 产品 Id
+ goodsId?: string
+ // 产品名称
+ goodsName?: string
+ // 商品编码
+ goodSn?: string
+ // 数量
+ quantity?: number
+ // 计量单位;字典代码:unit
+ unit?: string
+ // 总金额;单位:元
+ totalMoney?: string
+ // 备注
+ memo?: string
+ // 创建人 Id; sys_user.id
+ creatorId?: string
+ // 修改人 Id; sys_user.id
+ modifierId?: string
+ // 创建时间
+ createTime?: string
+ // 修改时间
+ modifyTime?: string
+ // 是否删除; 0-->未删除、1-->已删除
+ deleted?: boolean
+ }
+
+ interface ModifySalesOrderParam {
+ // Id
+ id?: string
+ // 编号
+ sn?: string
+ // 状态,JinXingZhong-->进行中、YiFaHuo-->已发货、YiChuKu-->已出库、YiQuXiao-->已取消
+ salesOrderStatus?: string
+ // 购买方客户 Id
+ customerId?: string
+ // 下单日期
+ orderDate?: string
+ // 发货日期
+ shipmentDate?: string
+ // 产品分类 Id
+ goodsCategoryId?: string
+ // 分类名称
+ goodsCategoryName?: string
+ // 产品 Id
+ goodsId?: string
+ // 产品名称
+ goodsName?: string
+ // 商品编码
+ goodSn?: string
+ // 数量
+ quantity?: number
+ // 计量单位;字典代码:unit
+ unit?: string
+ // 总金额;单位:元
+ totalMoney?: string
+ // 备注
+ memo?: string
+ // 创建人 Id; sys_user.id
+ creatorId?: string
+ // 修改人 Id; sys_user.id
+ modifierId?: string
+ // 创建时间
+ createTime?: string
+ // 修改时间
+ modifyTime?: string
+ // 是否删除; 0-->未删除、1-->已删除
+ deleted?: boolean
+ }
+ }
+}
diff --git a/tsconfig.node.zip b/tsconfig.node.zip
new file mode 100644
index 0000000..dcdc155
Binary files /dev/null and b/tsconfig.node.zip differ
diff --git a/vite.config.ts b/vite.config.ts
index 25dc08d..7a87133 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -15,10 +15,16 @@ import ElementPlus from 'unplugin-element-plus/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
import { fileWatcher } from './plugin/file-watcher.ts'
import IconfontProcess from './plugin/iconfont-process.ts'
+// import * as https from "node:https";
// https://vite.dev/config/
export default defineConfig((configEnv) => {
- const env = loadEnv(configEnv.mode, process.cwd(), '')
+ const env = loadEnv(configEnv.mode, process.cwd(), "");
+ // const Agent = https.Agent;
+ // const agent = new Agent({
+ // keepAlive: true,
+ // // host: 'https://supervisory.njzscloud.com' // 显式指定请求的主机名为目标域名
+ // });
return {
base: env.VITE_APP_BASE_URL,
build: {
@@ -28,7 +34,7 @@ export default defineConfig((configEnv) => {
},
css: {
modules: {
- localsConvention: 'camelCase',
+ localsConvention: "camelCase",
},
},
plugins: [
@@ -36,48 +42,51 @@ export default defineConfig((configEnv) => {
vueJsx(),
VueDevTools(),
ElementPlus({
- defaultLocale: 'zh-cn',
+ defaultLocale: "zh-cn",
}),
AutoImport({
- imports: [ 'vue', 'vue-router', 'pinia' ],
- dts: './src/dts/auto-imports.d.ts',
- resolvers: [ ElementPlusResolver() ],
+ imports: ["vue", "vue-router", "pinia"],
+ dts: "./src/dts/auto-imports.d.ts",
+ resolvers: [ElementPlusResolver()],
}),
Components({
- dts: './src/dts/components.d.ts',
- dirs: [ './src/widgets' ],
- resolvers: [ ElementPlusResolver() ],
+ dts: "./src/dts/components.d.ts",
+ dirs: ["./src/widgets"],
+ resolvers: [ElementPlusResolver()],
}),
processHtml(env.VITE_APP_NAME),
fileWatcher(IconfontProcess),
zipDist(),
],
resolve: {
- extensions: [ '.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json' ],
+ extensions: [".mjs", ".js", ".mts", ".ts", ".jsx", ".tsx", ".json"],
alias: [
{
- find: '@',
- replacement: path.resolve(__dirname, 'src'),
+ find: "@",
+ replacement: path.resolve(__dirname, "src"),
},
],
},
server: {
- host: '0.0.0.0',
+ host: "0.0.0.0",
port: 5173,
proxy: {
[env.VITE_HTTP_SERVER_BASE_URL]: {
proxyTimeout: 10000,
target: env.VITE_HTTP_PROXY_TARGET,
secure: false,
+
+ // agent,
+
changeOrigin: true,
- rewrite: path => env.VITE_HTTP_SERVER_BASE_URL == null || env.VITE_HTTP_SERVER_BASE_URL == '/' ? path : path.replace(new RegExp(env.VITE_HTTP_SERVER_BASE_URL), ''),
+ rewrite: (path) => (env.VITE_HTTP_SERVER_BASE_URL == null || env.VITE_HTTP_SERVER_BASE_URL == "/" ? path : path.replace(new RegExp(env.VITE_HTTP_SERVER_BASE_URL), "")),
} as ProxyOptions,
[env.VITE_WS_SERVER_BASE_URL]: {
ws: true,
target: env.VITE_WS_PROXY_TARGET,
- rewrite: (path) => (env.VITE_WS_SERVER_BASE_URL == null || env.VITE_WS_SERVER_BASE_URL == '/' ? path : path.replace(new RegExp(env.VITE_WS_SERVER_BASE_URL), '')),
+ rewrite: (path) => (env.VITE_WS_SERVER_BASE_URL == null || env.VITE_WS_SERVER_BASE_URL == "/" ? path : path.replace(new RegExp(env.VITE_WS_SERVER_BASE_URL), "")),
} as ProxyOptions,
},
},
- }
-})
+ };
+});