From 828cf4ad0942a1cd894593f2290621eae94e13dd Mon Sep 17 00:00:00 2001 From: tzy <1042411602@qq.com> Date: Sat, 8 Aug 2026 09:10:31 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=85=A5=E5=BA=93=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/stockIn.ts | 92 +++++ src/router/index.ts | 2 +- src/views/biz/stockIn/index.vue | 641 ++++++++++++++++++++++++++++++++ 3 files changed, 734 insertions(+), 1 deletion(-) create mode 100644 src/api/stockIn.ts create mode 100644 src/views/biz/stockIn/index.vue diff --git a/src/api/stockIn.ts b/src/api/stockIn.ts new file mode 100644 index 0000000..5969e1a --- /dev/null +++ b/src/api/stockIn.ts @@ -0,0 +1,92 @@ +import { request } from '@/utils/request' + +/** 入库申请单 */ +export interface StockIn { + id?: number + inboundCode?: string + subjectName?: string + /** 1生产入库 2委外收货 3采购入库 */ + inboundType?: number + sourceOrderNo?: string + orderItemId?: number + workOrderCode?: string + processPlanId?: number + qcId?: number + materialCode?: string + materialName?: string + quantity?: number | string + progress?: number + warehouseId?: number + warehouseName?: string + /** 0草稿 1待确认 2上架入库 3已撤回 */ + status?: number + /** 金蝶入库单编码 */ + kingdeeInboundNo?: string + remark?: string + createTime?: string + createBy?: string + updateTime?: string + updateBy?: string +} + +export type StockInSave = Omit + +export const STOCK_IN_TYPE_MAP: Record = { + 1: { label: '生产入库', type: 'success' }, + 2: { label: '委外收货', type: 'warning' }, + 3: { label: '采购入库', type: 'info' }, +} + +export const STOCK_IN_STATUS_MAP: Record = { + 0: { label: '草稿', type: 'default' }, + 1: { label: '待确认', type: 'info' }, + 2: { label: '上架入库', type: 'success' }, + 3: { label: '已撤回', type: 'warning' }, +} + +export const stockInApi = { + page(params: { + page: number + pageSize: number + inboundCode?: string + sourceOrderNo?: string + inboundType?: number + status?: number + warehouseName?: string + kingdeeInboundNo?: string + }) { + return request<{ list: StockIn[]; total: number; page: number; pageSize: number }>({ + url: '/biz/stockIn/page', + method: 'get', + params, + }) + }, + + detail(id: number | string) { + return request({ url: `/biz/stockIn/${id}`, method: 'get' }) + }, + + create(data: StockInSave) { + return request({ url: '/biz/stockIn', method: 'post', data }) + }, + + update(data: StockInSave) { + return request({ url: '/biz/stockIn', method: 'put', data }) + }, + + delete(ids: number[]) { + return request({ url: `/biz/stockIn/${ids.join(',')}`, method: 'delete' }) + }, + + confirm(id: number, kingdeeInboundNo?: string | null) { + return request({ + url: `/biz/stockIn/confirm/${id}`, + method: 'post', + data: kingdeeInboundNo ? { kingdeeInboundNo } : {}, + }) + }, + + revoke(id: number) { + return request({ url: `/biz/stockIn/revoke/${id}`, method: 'post' }) + }, +} diff --git a/src/router/index.ts b/src/router/index.ts index d11005d..b732d77 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -215,7 +215,7 @@ const routes: RouteRecordRaw[] = [ component: () => import('@/views/biz/device/board.vue'), meta: { title: '设备状态监控', icon: 'PulseOutline' } }, - // 入库管理 + // 入库 管理 { path: 'biz/stockIn', name: 'BizStockIn', diff --git a/src/views/biz/stockIn/index.vue b/src/views/biz/stockIn/index.vue new file mode 100644 index 0000000..30948e0 --- /dev/null +++ b/src/views/biz/stockIn/index.vue @@ -0,0 +1,641 @@ + + + + + From 73828f64d99e6d0e20debc9a7983255f79ccd20c Mon Sep 17 00:00:00 2001 From: andy <1042025947@qq.com> Date: Sat, 8 Aug 2026 13:53:05 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=9D=83=E9=99=90=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/biz/permissionConfig/index.vue | 97 +++++++++++++++++++----- 1 file changed, 80 insertions(+), 17 deletions(-) diff --git a/src/views/biz/permissionConfig/index.vue b/src/views/biz/permissionConfig/index.vue index 44a3874..550e57e 100644 --- a/src/views/biz/permissionConfig/index.vue +++ b/src/views/biz/permissionConfig/index.vue @@ -67,12 +67,23 @@ - - - - + + + + + + + + + + + + + diff --git a/src/views/biz/device/index.vue b/src/views/biz/device/index.vue index ef9804e..abaea83 100644 --- a/src/views/biz/device/index.vue +++ b/src/views/biz/device/index.vue @@ -243,11 +243,57 @@ + + + + + + + 全选当前筛选文档 + + 已勾选 {{ selectedDocumentIds.length }} 道文档 + + + + +
+ + + +
+ + +
+
+ + diff --git a/src/views/biz/qualityItem/index.vue b/src/views/biz/qualityItem/index.vue index 99f94f6..5206d7c 100644 --- a/src/views/biz/qualityItem/index.vue +++ b/src/views/biz/qualityItem/index.vue @@ -499,16 +499,15 @@ async function handleSubmit() { if (typeof submitData.updateTime === 'number') { submitData.updateTime = new Date(submitData.updateTime).toISOString().slice(0, 19).replace('T', ' ') } - console.log(submitData) - // if (submitData.id) { - // await qcItemApi.update(submitData) - // message.success('修改成功') - // } else { - // await qcItemApi.create(submitData) - // message.success('新增成功') - // } - // modalVisible.value = false - // loadData() + if (submitData.id) { + await qcItemApi.update(submitData) + message.success('修改成功') + } else { + await qcItemApi.create(submitData) + message.success('新增成功') + } + modalVisible.value = false + loadData() } catch (error) { // 错误已在拦截器处理 } diff --git a/src/views/biz/stationHandover/index.vue b/src/views/biz/stationHandover/index.vue index c90fbfb..9a4ac02 100644 --- a/src/views/biz/stationHandover/index.vue +++ b/src/views/biz/stationHandover/index.vue @@ -15,23 +15,31 @@ /> - + /> - + 搜索 - + 重置 @@ -43,7 +51,11 @@
- + 新增 @@ -51,11 +63,11 @@
- + - + - + diff --git a/src/views/production/componets/AssingWorkTreeTable.vue b/src/views/production/componets/AssingWorkTreeTable.vue index 144c4e4..9a84a36 100644 --- a/src/views/production/componets/AssingWorkTreeTable.vue +++ b/src/views/production/componets/AssingWorkTreeTable.vue @@ -319,8 +319,7 @@ const AssingWorkColumns :DataTableColumns = [ const showQcReport = ref(false) const reportTitle = ref() -//懒加载子级 -const loadingRowIds = ref>(new Set()) + const AssingWorkDetailColums:DataTableColumns = [ {