From 1e64e776ce367f466320f0d925cc374652612e98 Mon Sep 17 00:00:00 2001 From: zc Date: Wed, 4 Mar 2026 16:46:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=BF=BD=E6=BA=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/workOrder/workOrder.ts | 60 ++++++++++ src/types/components.d.ts | 4 + src/views/system/user/index.vue | 1 + src/views/workOrder/index.vue | 198 ++++++++++++++++++++++++++++++++ 4 files changed, 263 insertions(+) create mode 100644 src/apis/workOrder/workOrder.ts create mode 100644 src/views/workOrder/index.vue diff --git a/src/apis/workOrder/workOrder.ts b/src/apis/workOrder/workOrder.ts new file mode 100644 index 0000000..90d9807 --- /dev/null +++ b/src/apis/workOrder/workOrder.ts @@ -0,0 +1,60 @@ +import http from '@/utils/http' + +const BASE_URL = '/weighManage/workOrder' + +export interface WorkOrderResp { + id: string + title: string + materialName: string + encoding: string + unitWeight: string + materialSpec: string + photoUrl: string + totalWeight: string + totalCount: string + workOrderInfos: Array + createUserString: string + updateUserString: string +} + +export interface WorkOrderInfoResp { + id: string + workOrderId: string + materialId: string + weightTime: string + quantity: string + weight: string + calculatedWeight: string +} + +export interface WorkOrderQuery { + orderNo: string | undefined + materialName: string | undefined + encoding: string | undefined + userName: string | undefined + carNo: string | undefined + startDate: string | undefined + endDate: string | undefined + sort: Array +} +export interface WorkOrderPageQuery extends WorkOrderQuery, PageQuery {} + +/** @desc 查询工作订单列表 */ +export function listWorkOrder(query: WorkOrderPageQuery) { + return http.get>(`${BASE_URL}`, query) +} + +/** @desc 查询工作订单详情 */ +export function getWorkOrder(id: string) { + return http.get(`${BASE_URL}/${id}`) +} + +/** @desc 删除工作订单 */ +export function deleteWorkOrder(ids: string | Array) { + return http.del(`${BASE_URL}/${ids}`) +} + +/** @desc 导出工作订单 */ +export function exportWorkOrder(query: WorkOrderQuery) { + return http.download(`${BASE_URL}/export`, query) +} diff --git a/src/types/components.d.ts b/src/types/components.d.ts index 1ec4a2c..90198bb 100644 --- a/src/types/components.d.ts +++ b/src/types/components.d.ts @@ -15,8 +15,10 @@ declare module 'vue' { AButton: typeof import('@arco-design/web-vue')['Button'] ACard: typeof import('@arco-design/web-vue')['Card'] ACheckbox: typeof import('@arco-design/web-vue')['Checkbox'] + ACheckboxGroup: typeof import('@arco-design/web-vue')['CheckboxGroup'] ACol: typeof import('@arco-design/web-vue')['Col'] AConfigProvider: typeof import('@arco-design/web-vue')['ConfigProvider'] + ADatePicker: typeof import('@arco-design/web-vue')['DatePicker'] ADescriptions: typeof import('@arco-design/web-vue')['Descriptions'] ADescriptionsItem: typeof import('@arco-design/web-vue')['DescriptionsItem'] ADivider: typeof import('@arco-design/web-vue')['Divider'] @@ -62,9 +64,11 @@ declare module 'vue' { ATabPane: typeof import('@arco-design/web-vue')['TabPane'] ATabs: typeof import('@arco-design/web-vue')['Tabs'] ATag: typeof import('@arco-design/web-vue')['Tag'] + ATextarea: typeof import('@arco-design/web-vue')['Textarea'] ATooltip: typeof import('@arco-design/web-vue')['Tooltip'] ATree: typeof import('@arco-design/web-vue')['Tree'] ATreeSelect: typeof import('@arco-design/web-vue')['TreeSelect'] + ATrigger: typeof import('@arco-design/web-vue')['Trigger'] ATypographyParagraph: typeof import('@arco-design/web-vue')['TypographyParagraph'] ATypographyTitle: typeof import('@arco-design/web-vue')['TypographyTitle'] AUpload: typeof import('@arco-design/web-vue')['Upload'] diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index af8873b..437eac4 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -102,6 +102,7 @@ import { DisEnableStatusList } from '@/constant/common' import { useDownload, useResetReactive, useTable } from '@/hooks' import { isMobile } from '@/utils' import has from '@/utils/has' +import type {ColumnItem} from "@/components/GiForm"; defineOptions({ name: 'SystemUser' }) diff --git a/src/views/workOrder/index.vue b/src/views/workOrder/index.vue new file mode 100644 index 0000000..d87cba4 --- /dev/null +++ b/src/views/workOrder/index.vue @@ -0,0 +1,198 @@ + + + + + \ No newline at end of file