From 9c92441f47583f4da10eba04e99e655d6271d817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=B0=8F=E6=9E=97?= <320730042@qq.com> Date: Wed, 19 Jun 2024 16:20:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B7=A5=E5=8D=95=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/order/index.ts | 50 ++- src/api/order/types.ts | 52 +++ src/router/index.ts | 22 + .../operate/order/components/ModifyOrder.vue | 201 +++++++++ .../order/components/OrderInfoEdit.vue | 409 ++++++++++++++++++ src/views/family/operate/order/index.vue | 17 +- 6 files changed, 748 insertions(+), 3 deletions(-) create mode 100644 src/views/family/operate/order/components/ModifyOrder.vue create mode 100644 src/views/family/operate/order/components/OrderInfoEdit.vue diff --git a/src/api/order/index.ts b/src/api/order/index.ts index 503a0f8..95b5e10 100644 --- a/src/api/order/index.ts +++ b/src/api/order/index.ts @@ -1,5 +1,10 @@ import { AxiosPromise } from "axios"; -import { OrderPageResult } from "@/api/order/types"; +import { + ModifyOrderForm, + OrderInfoServicePageResult, + OrderInfoVO, + OrderPageResult +} from "@/api/order/types"; import request from "@/utils/request"; export function oderTablePage(data: SelectForm): AxiosPromise { @@ -9,3 +14,46 @@ export function oderTablePage(data: SelectForm): AxiosPromise { data, }); } +export function findOrderInfoById(orderId: number): AxiosPromise { + return request({ + url: `/api/order/v1/info/${orderId}`, + method: "GET", + }); +} + +export function findOrderInfoServicePage( + orderId: number, + data: PageQuery +): AxiosPromise { + return request({ + url: `/api/order-service/v1/order-info-service/${orderId}`, + method: "POST", + data, + }); +} + +export function updateOrderStatus(orderId: number, orderStatus?: string) { + return request({ + url: `/api/order/v1/update-order-status/${orderId}/${orderStatus}`, + method: "PUT", + }); +} +export function executeOrder(orderId: number) { + return request({ + url: `/api/order/v1/execute-order/${orderId}`, + method: "PUT", + }); +} +export function getModifyForm(orderId: number): AxiosPromise { + return request({ + url: `/api/order/v1/modify-form/${orderId}`, + method: "GET", + }); +} +export function ModifyForm(data: ModifyOrderForm) { + return request({ + url: `/api/order/v1/update-form`, + method: "POST", + data, + }); +} diff --git a/src/api/order/types.ts b/src/api/order/types.ts index a465467..a17bfb9 100644 --- a/src/api/order/types.ts +++ b/src/api/order/types.ts @@ -32,3 +32,55 @@ export interface OrderTableVO { devOnLineStatus?: string; } export type OrderPageResult = PageResult; + +export interface OrderInfoVO { + orderId?: number; + receivedOrderId?: string; + receivedOrderLhs?: string; + orderRemark?: string; + orderServiceType?: string; + orderDate?: string; + receiveDate?: string; + orderDealDate?: string; + orderDeadline?: string; + adNo?: string; + orderStatus?: string; + pppoeAccount?: string; + bandAccess?: string; + iptvAccess?: string; + userSnNo?: string; + remark?: string; + devOnlineStatus?: string; + userSnKey?: string; + devAccessType?: string; + + domain?: string; + orderCustomerKind?: string; + orderDoneFlag?: string; + orderDoneDate?: string; + dummyFlag?: string; +} + +export interface OrderInfoServiceVO { + orderId?: number; + + service?: string; + + serviceFlag?: string; +} +export type OrderInfoServicePageResult = PageResult; +export interface ModifyOrderForm { + orderId?: number; + + receivedOrderId?: string; + + orderDate?: string; + + adNo?: string; + + orderServiceType?: string; + + pppoeAccount?: string; + + orderCustomerKind?: string; +} diff --git a/src/router/index.ts b/src/router/index.ts index 920a2ca..2d832fa 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -195,6 +195,28 @@ export const constantRoutes: RouteRecordRaw[] = [ title: "新增操作组件", }, }, + { + path: "/resources/order-info-edit/:orderId", + name: "OrderInfoEdit", + component: () => + import("@/views/family/operate/order/components/OrderInfoEdit.vue"), + meta: { + hidden: true, + keepAlive: true, + title: "工单操作", + }, + }, + { + path: "/resources/modify-order/:orderId", + name: "ModifyOrder", + component: () => + import("@/views/family/operate/order/components/ModifyOrder.vue"), + meta: { + hidden: true, + keepAlive: true, + title: "修改工单", + }, + }, ], }, ]; diff --git a/src/views/family/operate/order/components/ModifyOrder.vue b/src/views/family/operate/order/components/ModifyOrder.vue new file mode 100644 index 0000000..9216984 --- /dev/null +++ b/src/views/family/operate/order/components/ModifyOrder.vue @@ -0,0 +1,201 @@ + + + + + diff --git a/src/views/family/operate/order/components/OrderInfoEdit.vue b/src/views/family/operate/order/components/OrderInfoEdit.vue new file mode 100644 index 0000000..3a3af1b --- /dev/null +++ b/src/views/family/operate/order/components/OrderInfoEdit.vue @@ -0,0 +1,409 @@ + + + + + diff --git a/src/views/family/operate/order/index.vue b/src/views/family/operate/order/index.vue index c30957f..c806b7b 100644 --- a/src/views/family/operate/order/index.vue +++ b/src/views/family/operate/order/index.vue @@ -55,7 +55,7 @@
- + + > + + ({ pageNum: 1, pageSize: 10, }); +const router = useRouter(); const total = ref(0); const tableData = ref([]); const options = ref([ @@ -248,6 +258,9 @@ const handleQuery = () => { loading.value = false; }); }; +const skipOrderEdit = (orderId: number) => { + router.push({ path: `/resources/order-info-edit/${orderId}` }); +};