From 83bcede53ce3266ed3c6cbf05f05d177ca95867d Mon Sep 17 00:00:00 2001 From: chenfang Date: Thu, 21 Mar 2024 19:40:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=20=E9=83=A8=E9=97=A8?= =?UTF-8?q?=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wms/countManage/count/countJobMain/index.vue | 7 +++++-- src/views/wms/countManage/count/countRecordMain/index.vue | 7 +++++-- .../countadjust/countadjustRecordMain/index.vue | 7 +++++-- .../customerreceipt/customerreceiptRecordMain/index.vue | 7 +++++-- .../customerreturn/customerreturnJobMain/index.vue | 7 +++++-- .../customerreturn/customerreturnRecordMain/index.vue | 7 +++++-- .../customersettle/customersettleRecordMain/index.vue | 7 +++++-- .../deliver/deliverJobMain/index.vue | 7 +++++-- .../deliver/deliverRecordMain/index.vue | 7 +++++-- .../inventoryinitial/inventoryinitRecordMain/index.vue | 7 +++++-- .../packageoverMain/packageoverJobMain/index.vue | 7 +++++-- .../wms/inventoryjobManage/scrap/scrapJobMain/index.vue | 7 +++++-- .../wms/inventoryjobManage/scrap/scrapRecordMain/index.vue | 7 +++++-- .../transferissue/transferissueJobMain/index.vue | 6 +++++- .../transferissue/transferissueRecordMain/index.vue | 7 +++++-- .../transferreceipt/transferreceiptJobMain/index.vue | 7 +++++-- .../transferreceipt/transferreceiptRecordMain/index.vue | 7 +++++-- .../unplannedissue/unplannedissueJobMain/index.vue | 7 +++++-- .../unplannedissue/unplannedissueRecordMain/index.vue | 7 +++++-- .../unplannedreceipt/unplannedreceiptJobMain/index.vue | 7 +++++-- .../unplannedreceipt/unplannedreceiptRecordMain/index.vue | 7 +++++-- .../inventorychange/inventorychangeRecordMain/index.vue | 7 +++++-- .../inventorymove/inventorymoveJobMain/index.vue | 7 +++++-- .../inventorymove/inventorymoveRecordMain/index.vue | 7 +++++-- .../offlinesettlementRecordMain/index.vue | 7 +++++-- .../productdismantle/productdismantleJobMain/index.vue | 7 +++++-- .../productdismantle/productdismantleRecordMain/index.vue | 7 +++++-- .../productputaway/productputawayJobMain/index.vue | 7 +++++-- .../productputaway/productputawayRecordMain/index.vue | 7 +++++-- .../productreceipt/productreceiptJobMain/index.vue | 7 +++++-- .../productreceipt/productreceiptRecordMain/index.vue | 7 +++++-- .../productrepair/productrepairRecordMain/index.vue | 7 +++++-- .../productscrap/productscrapJobMain/index.vue | 7 +++++-- .../productscrap/productscrapRecordMain/index.vue | 7 +++++-- 34 files changed, 170 insertions(+), 67 deletions(-) diff --git a/src/views/wms/countManage/count/countJobMain/index.vue b/src/views/wms/countManage/count/countJobMain/index.vue index 0be479c28..79a78d5cb 100644 --- a/src/views/wms/countManage/count/countJobMain/index.vue +++ b/src/views/wms/countManage/count/countJobMain/index.vue @@ -71,7 +71,7 @@ import { CountJobMain,CountJobMainRules,CountJobDetail,CountJobDetailRules } fro import * as CountJobMainApi from '@/api/wms/countJobMain' import * as CountJobDetailApi from '@/api/wms/countJobDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 盘点任务主 defineOptions({ name: 'CountJobMain' }) @@ -209,10 +209,13 @@ const handleClose = async (id: number) => { await getList() } catch {} } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue) } diff --git a/src/views/wms/countManage/count/countRecordMain/index.vue b/src/views/wms/countManage/count/countRecordMain/index.vue index 7916f6a69..1ad95828b 100644 --- a/src/views/wms/countManage/count/countRecordMain/index.vue +++ b/src/views/wms/countManage/count/countRecordMain/index.vue @@ -66,7 +66,7 @@ import { CountRecordMain,CountRecordMainRules,CountRecordDetail,CountRecordDetai import * as CountRecordMainApi from '@/api/wms/countRecordMain' import * as CountRecordDetailApi from '@/api/wms/countRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 盘点记录主 defineOptions({ name: 'CountRecordMain' }) @@ -147,10 +147,13 @@ const buttonTableClick = async (val, row) => { }) } } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue) } diff --git a/src/views/wms/countManage/countadjust/countadjustRecordMain/index.vue b/src/views/wms/countManage/countadjust/countadjustRecordMain/index.vue index f9d58320c..bb6fa391e 100644 --- a/src/views/wms/countManage/countadjust/countadjustRecordMain/index.vue +++ b/src/views/wms/countManage/countadjust/countadjustRecordMain/index.vue @@ -66,7 +66,7 @@ import { CountadjustRecordMain,CountadjustRecordMainRules,CountadjustRecordDetai import * as CountadjustRecordMainApi from '@/api/wms/countadjustRecordMain' import * as CountadjustRecordDetailApi from '@/api/wms/countadjustRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 盘点调整记录主 defineOptions({ name: 'CountadjustRecordMain' }) @@ -132,10 +132,13 @@ const butttondata = (row) => { // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue) } diff --git a/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/index.vue b/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/index.vue index 049df1d5f..4964594aa 100644 --- a/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/index.vue +++ b/src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/index.vue @@ -66,7 +66,7 @@ import { CustomerreceiptRecordMain,CustomerreceiptRecordMainRules,Customerreceip import * as CustomerreceiptRecordMainApi from '@/api/wms/customerreceiptRecordMain' import * as CustomerreceiptRecordDetailApi from '@/api/wms/customerreceiptRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 客户收货记录主 defineOptions({ name: 'CustomerreceiptRecordMain' }) @@ -132,10 +132,13 @@ const butttondata = (row) => { // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'recordCustomerreceiptMain') } diff --git a/src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue b/src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue index e6470c66e..69ca394c1 100644 --- a/src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue +++ b/src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue @@ -71,7 +71,7 @@ import { CustomerreturnJobMain,CustomerreturnJobMainRules,CustomerreturnJobDetai import * as CustomerreturnJobMainApi from '@/api/wms/customerreturnJobMain' import * as CustomerreturnJobDetailApi from '@/api/wms/customerreturnJobDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 客户退货任务主 defineOptions({ name: 'CustomerreturnJobMain' }) @@ -327,10 +327,13 @@ const buttonTableClick = async (val, row) => { }) } } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'jobCustomerreturnMain') } diff --git a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/index.vue b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/index.vue index ad56e650d..57d4645c8 100644 --- a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/index.vue +++ b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/index.vue @@ -67,7 +67,7 @@ import { CustomerreturnRecordMain,CustomerreturnRecordMainRules,CustomerreturnRe import * as CustomerreturnRecordMainApi from '@/api/wms/customerreturnRecordMain' import * as CustomerreturnRecordDetailApi from '@/api/wms/customerreturnRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 客户退货记录主 defineOptions({ name: 'CustomerreturnRecordMain' }) @@ -136,10 +136,13 @@ const buttonTableClick = async (val, row) => { handlePoint(row) } } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'recordCustomerreturnMain') } diff --git a/src/views/wms/deliversettlementManage/customersettle/customersettleRecordMain/index.vue b/src/views/wms/deliversettlementManage/customersettle/customersettleRecordMain/index.vue index d61d9c871..cbec73363 100644 --- a/src/views/wms/deliversettlementManage/customersettle/customersettleRecordMain/index.vue +++ b/src/views/wms/deliversettlementManage/customersettle/customersettleRecordMain/index.vue @@ -66,7 +66,7 @@ import { CustomersettleRecordMain,CustomersettleRecordMainRules,CustomersettleRe import * as CustomersettleRecordMainApi from '@/api/wms/customersettleRecordMain' import * as CustomersettleRecordDetailApi from '@/api/wms/customersettleRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 客户结算记录主 defineOptions({ name: 'CustomersettleRecordMain' }) @@ -132,10 +132,13 @@ const butttondata = (row) => { // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'recordCustomersettleMain') } diff --git a/src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue b/src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue index b013abb1d..a1bdacece 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue +++ b/src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue @@ -71,7 +71,7 @@ import { DeliverJobMain,DeliverJobMainRules,DeliverJobDetail,DeliverJobDetailRul import * as DeliverJobMainApi from '@/api/wms/deliverJobMain' import * as DeliverJobDetailApi from '@/api/wms/deliverJobDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 发货任务主 defineOptions({ name: 'DeliverJobMain' }) @@ -297,10 +297,13 @@ const buttonTableClick = async (val, row) => { DeliverJobMainApi.acceptDeliverJobMain(row.id) } } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'jobDeliverMain') } diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue b/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue index b30a36e8c..1677d269a 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue +++ b/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue @@ -67,7 +67,7 @@ import { DeliverRecordMain,DeliverRecordMainRules,DeliverRecordDetail,DeliverRec import * as DeliverRecordMainApi from '@/api/wms/deliverRecordMain' import * as DeliverRecordDetailApi from '@/api/wms/deliverRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 发货记录主 defineOptions({ name: 'DeliverRecordMain' }) @@ -136,10 +136,13 @@ const buttonTableClick = async (val, row) => { handlePoint(row) } } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'recordDeliverMain') } diff --git a/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRecordMain/index.vue b/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRecordMain/index.vue index 9536bc4eb..d3f4a0c1f 100644 --- a/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRecordMain/index.vue @@ -66,7 +66,7 @@ import { InventoryinitRecordMain,InventoryinitRecordMainRules,InventoryinitRecor import * as InventoryinitRecordMainApi from '@/api/wms/inventoryinitRecordMain' import * as InventoryinitRecordDetailApi from '@/api/wms/inventoryinitRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 库存初始化记录主 defineOptions({ name: 'InventoryinitRecordMain' }) @@ -132,10 +132,13 @@ const butttondata = (row) => { // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'recordInventoryinitMain') } diff --git a/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverJobMain/index.vue b/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverJobMain/index.vue index 014d06d9f..7bb7eb81b 100644 --- a/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverJobMain/index.vue +++ b/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverJobMain/index.vue @@ -72,7 +72,7 @@ import * as PackageoverJobDetailApi from '@/api/wms/packageoverJobDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import Detail from '@/components/Detail/src/Detail.vue' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' defineOptions({ name: 'PackageoverJobMain' }) const message = useMessage() // 消息弹窗 @@ -182,10 +182,13 @@ const formsSuccess = async (formType,data) => { basicFormRef.value.dialogVisible = false getList() } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue, 'basicPackageoverJobMain') } diff --git a/src/views/wms/inventoryjobManage/scrap/scrapJobMain/index.vue b/src/views/wms/inventoryjobManage/scrap/scrapJobMain/index.vue index 71f0a1869..428ccc3a4 100644 --- a/src/views/wms/inventoryjobManage/scrap/scrapJobMain/index.vue +++ b/src/views/wms/inventoryjobManage/scrap/scrapJobMain/index.vue @@ -71,7 +71,7 @@ import { ScrapJobMain,ScrapJobMainRules,ScrapJobDetail,ScrapJobDetailRules } fro import * as ScrapJobMainApi from '@/api/wms/scrapJobMain' import * as ScrapJobDetailApi from '@/api/wms/scrapJobDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 报废出库任务主 defineOptions({ name: 'ScrapJobMain' }) @@ -199,10 +199,13 @@ const buttonTableClick = async (val, row) => { console.log('列表-操作按钮事件-承接') } } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'jobScrapMain') } diff --git a/src/views/wms/inventoryjobManage/scrap/scrapRecordMain/index.vue b/src/views/wms/inventoryjobManage/scrap/scrapRecordMain/index.vue index 8536ada02..a0754c892 100644 --- a/src/views/wms/inventoryjobManage/scrap/scrapRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/scrap/scrapRecordMain/index.vue @@ -66,7 +66,7 @@ import { ScrapRecordMain,ScrapRecordMainRules,ScrapRecordDetail,ScrapRecordDetai import * as ScrapRecordMainApi from '@/api/wms/scrapRecordMain' import * as ScrapRecordDetailApi from '@/api/wms/scrapRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 报废出库记录主 defineOptions({ name: 'ScrapRecordMain' }) @@ -132,10 +132,13 @@ const butttondata = (row) => { // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'recordScrapMain') } diff --git a/src/views/wms/inventoryjobManage/transferissue/transferissueJobMain/index.vue b/src/views/wms/inventoryjobManage/transferissue/transferissueJobMain/index.vue index 5ee014895..cab328190 100644 --- a/src/views/wms/inventoryjobManage/transferissue/transferissueJobMain/index.vue +++ b/src/views/wms/inventoryjobManage/transferissue/transferissueJobMain/index.vue @@ -73,6 +73,7 @@ import * as TransferissueJobDetailApi from '@/api/wms/transferissueJobDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as PurchasereceiptJobMainApi from "@/api/wms/purchasereceiptJobMain"; import {acceptTransferissueJobMain} from "@/api/wms/transferissueJobMain"; +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 调拨出库任务主 defineOptions({ name: 'TransferissueJobMain' }) @@ -240,10 +241,13 @@ const handleAccept = async (id: number) => { await getList() } catch {} } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'jobTransferissueMain') } diff --git a/src/views/wms/inventoryjobManage/transferissue/transferissueRecordMain/index.vue b/src/views/wms/inventoryjobManage/transferissue/transferissueRecordMain/index.vue index d70453032..f988040a9 100644 --- a/src/views/wms/inventoryjobManage/transferissue/transferissueRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/transferissue/transferissueRecordMain/index.vue @@ -66,7 +66,7 @@ import { TransferissueRecordMain,TransferissueRecordMainRules,TransferissueRecor import * as TransferissueRecordMainApi from '@/api/wms/transferissueRecordMain' import * as TransferissueRecordDetailApi from '@/api/wms/transferissueRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 调拨出库记录主 defineOptions({ name: 'TransferissueRecordMain' }) @@ -132,10 +132,13 @@ const butttondata = (row) => { // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'recordTransferissueMain') } diff --git a/src/views/wms/inventoryjobManage/transferreceipt/transferreceiptJobMain/index.vue b/src/views/wms/inventoryjobManage/transferreceipt/transferreceiptJobMain/index.vue index 1c70f815a..69c3480a6 100644 --- a/src/views/wms/inventoryjobManage/transferreceipt/transferreceiptJobMain/index.vue +++ b/src/views/wms/inventoryjobManage/transferreceipt/transferreceiptJobMain/index.vue @@ -71,7 +71,7 @@ import { TransferreceiptJobMain,TransferreceiptJobMainRules,TransferreceiptJobDe import * as TransferreceiptJobMainApi from '@/api/wms/transferreceiptJobMain' import * as TransferreceiptJobDetailApi from '@/api/wms/transferreceiptJobDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 调拨入库任务主 defineOptions({ name: 'TransferreceiptJobMain' }) @@ -199,10 +199,13 @@ const buttonTableClick = async (val, row) => { console.log('列表-操作按钮事件-承接') } } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'jobTransferreceiptMain') } diff --git a/src/views/wms/inventoryjobManage/transferreceipt/transferreceiptRecordMain/index.vue b/src/views/wms/inventoryjobManage/transferreceipt/transferreceiptRecordMain/index.vue index 2d7a2c1b7..b2b72f479 100644 --- a/src/views/wms/inventoryjobManage/transferreceipt/transferreceiptRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/transferreceipt/transferreceiptRecordMain/index.vue @@ -66,7 +66,7 @@ import { TransferreceiptRecordMain,TransferreceiptRecordMainRules,Transferreceip import * as TransferreceiptRecordMainApi from '@/api/wms/transferreceiptRecordMain' import * as TransferreceiptRecordDetailApi from '@/api/wms/transferreceiptRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 调拨入库记录主 defineOptions({ name: 'TransferreceiptRecordMain' }) @@ -132,10 +132,13 @@ const butttondata = (row) => { // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'recordTransferreceiptMain') } diff --git a/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueJobMain/index.vue b/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueJobMain/index.vue index b2ea08566..5ee4577e8 100644 --- a/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueJobMain/index.vue +++ b/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueJobMain/index.vue @@ -71,7 +71,7 @@ import { UnplannedissueJobMain,UnplannedissueJobMainRules,UnplannedissueJobDetai import * as UnplannedissueJobMainApi from '@/api/wms/unplannedissueJobMain' import * as UnplannedissueJobDetailApi from '@/api/wms/unplannedissueJobDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 计划外出库任务主 defineOptions({ name: 'UnplannedissueJobMain' }) @@ -199,10 +199,13 @@ const buttonTableClick = async (val, row) => { console.log('列表-操作按钮事件-承接') } } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'jobUnplannedissueMain') } diff --git a/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRecordMain/index.vue b/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRecordMain/index.vue index 7d2685fca..d12357f4e 100644 --- a/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRecordMain/index.vue @@ -66,7 +66,7 @@ import { UnplannedissueRecordMain,UnplannedissueRecordMainRules,UnplannedissueRe import * as UnplannedissueRecordMainApi from '@/api/wms/unplannedissueRecordMain' import * as UnplannedissueRecordDetailApi from '@/api/wms/unplannedissueRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 计划外出库记录主 defineOptions({ name: 'UnplannedissueRecordMain' }) @@ -132,10 +132,13 @@ const butttondata = (row) => { // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'recordUnplannedissueMain') } diff --git a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptJobMain/index.vue b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptJobMain/index.vue index fbd2ba120..421138d93 100644 --- a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptJobMain/index.vue +++ b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptJobMain/index.vue @@ -71,7 +71,7 @@ import { UnplannedreceiptJobMain,UnplannedreceiptJobMainRules,UnplannedreceiptJo import * as UnplannedreceiptJobMainApi from '@/api/wms/unplannedreceiptJobMain' import * as UnplannedreceiptJobDetailApi from '@/api/wms/unplannedreceiptJobDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 计划外入库任务主 defineOptions({ name: 'UnplannedreceiptJobMain' }) @@ -199,10 +199,13 @@ const buttonTableClick = async (val, row) => { console.log('列表-操作按钮事件-承接') } } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'jobUnplannedreceiptMain') } diff --git a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRecordMain/index.vue b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRecordMain/index.vue index 399ff529d..f368e8a5f 100644 --- a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRecordMain/index.vue @@ -66,7 +66,7 @@ import { UnplannedreceiptRecordMain,UnplannedreceiptRecordMainRules,Unplannedrec import * as UnplannedreceiptRecordMainApi from '@/api/wms/unplannedreceiptRecordMain' import * as UnplannedreceiptRecordDetailApi from '@/api/wms/unplannedreceiptRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 调拨入库记录主 defineOptions({ name: 'UnplannedreceiptRecordMain' }) @@ -132,10 +132,13 @@ const butttondata = (row) => { // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'recordUnplannedreceiptMain') } diff --git a/src/views/wms/moveManage/inventorychange/inventorychangeRecordMain/index.vue b/src/views/wms/moveManage/inventorychange/inventorychangeRecordMain/index.vue index c12678a18..310727855 100644 --- a/src/views/wms/moveManage/inventorychange/inventorychangeRecordMain/index.vue +++ b/src/views/wms/moveManage/inventorychange/inventorychangeRecordMain/index.vue @@ -66,7 +66,7 @@ import { InventorychangeRecordMain,InventorychangeRecordMainRules,Inventorychang import * as InventorychangeRecordMainApi from '@/api/wms/inventorychangeRecordMain' import * as InventorychangeRecordDetailApi from '@/api/wms/inventorychangeRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 库存修改记录主 defineOptions({ name: 'InventorychangeRecordMain' }) @@ -178,10 +178,13 @@ const butttondata = (row) => { // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue) } diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveJobMain/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveJobMain/index.vue index 2722e95a9..13ebfa2b4 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveJobMain/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveJobMain/index.vue @@ -71,7 +71,7 @@ import { InventorymoveJobMain,InventorymoveJobMainRules,InventorymoveJobDetail,I import * as InventorymoveJobMainApi from '@/api/wms/inventorymoveJobMain' import * as InventorymoveJobDetailApi from '@/api/wms/inventorymoveJobDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 库存转移任务主 defineOptions({ name: 'InventorymoveJobMain' }) @@ -252,10 +252,13 @@ const buttonTableClick = async (val, row) => { InventorymoveJobMainApi.acceptInventorymoveMain(row.id) } } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue) } diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/index.vue index ec381e60a..bff1e39f2 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/index.vue @@ -66,7 +66,7 @@ import { InventorymoveRecordMain,InventorymoveRecordMainRules,InventorymoveRecor import * as InventorymoveRecordMainApi from '@/api/wms/inventorymoveRecordMain' import * as InventorymoveRecordDetailApi from '@/api/wms/inventorymoveRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 库存转移记录主 defineOptions({ name: 'InventorymoveRecordMain' }) @@ -187,10 +187,13 @@ const butttondata = (row) => { // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue) } diff --git a/src/views/wms/productionManage/offlinesettlement/offlinesettlementRecordMain/index.vue b/src/views/wms/productionManage/offlinesettlement/offlinesettlementRecordMain/index.vue index e214dc716..0b705e2a4 100644 --- a/src/views/wms/productionManage/offlinesettlement/offlinesettlementRecordMain/index.vue +++ b/src/views/wms/productionManage/offlinesettlement/offlinesettlementRecordMain/index.vue @@ -66,7 +66,7 @@ import { OfflinesettlementRecordMain,OfflinesettlementRecordMainRules,Offlineset import * as OfflinesettlementRecordMainApi from '@/api/wms/offlinesettlementRecordMain' import * as OfflinesettlementRecordDetailApi from '@/api/wms/offlinesettlementRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 下线结算记录主 defineOptions({ name: 'OfflinesettlementRecordMain' }) @@ -132,10 +132,13 @@ const butttondata = (row) => { // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'recordOfflinesettlementMain') } diff --git a/src/views/wms/productionManage/productdismantle/productdismantleJobMain/index.vue b/src/views/wms/productionManage/productdismantle/productdismantleJobMain/index.vue index f52e91bb8..2a3b4d72b 100644 --- a/src/views/wms/productionManage/productdismantle/productdismantleJobMain/index.vue +++ b/src/views/wms/productionManage/productdismantle/productdismantleJobMain/index.vue @@ -71,7 +71,7 @@ import { ProductdismantleJobMain,ProductdismantleJobMainRules,ProductdismantleJo import * as ProductdismantleJobMainApi from '@/api/wms/productdismantleJobMain' import * as ProductdismantleJobDetailApi from '@/api/wms/productdismantleJobDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 制品拆解任务主 defineOptions({ name: 'ProductdismantleJobMain' }) @@ -199,10 +199,13 @@ const buttonTableClick = async (val, row) => { console.log('列表-操作按钮事件-承接') } } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'jobProductdismantleMain') } diff --git a/src/views/wms/productionManage/productdismantle/productdismantleRecordMain/index.vue b/src/views/wms/productionManage/productdismantle/productdismantleRecordMain/index.vue index bf2ec862d..54daffa22 100644 --- a/src/views/wms/productionManage/productdismantle/productdismantleRecordMain/index.vue +++ b/src/views/wms/productionManage/productdismantle/productdismantleRecordMain/index.vue @@ -91,7 +91,7 @@ import * as ProductdismantleRecordMainApi from '@/api/wms/productdismantleRecord import * as ProductdismantleRecordDetailApi from '@/api/wms/productdismantleRecordDetaila' import * as DismantleRecordDetailbApi from '@/api/wms/dismantleRecordDetailb' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 制品拆解记录主 defineOptions({ name: 'ProductdismantleRecordMain' }) @@ -202,10 +202,13 @@ const butttondata = (row) => { // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'recordProductdismantleMain') } diff --git a/src/views/wms/productionManage/productputaway/productputawayJobMain/index.vue b/src/views/wms/productionManage/productputaway/productputawayJobMain/index.vue index c519832a2..083052113 100644 --- a/src/views/wms/productionManage/productputaway/productputawayJobMain/index.vue +++ b/src/views/wms/productionManage/productputaway/productputawayJobMain/index.vue @@ -71,7 +71,7 @@ import { ProductputawayJobMain,ProductputawayJobMainRules,ProductputawayJobDetai import * as ProductputawayJobMainApi from '@/api/wms/productputawayJobMain' import * as ProductputawayJobDetailApi from '@/api/wms/productputawayJobDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 制品上架任务主 defineOptions({ name: 'ProductputawayJobMain' }) @@ -238,10 +238,13 @@ const buttonTableClick = async (val, row) => { ProductputawayJobMainApi.acceptProductputawayMain(row.id) } } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'jobProductputawayMain') } diff --git a/src/views/wms/productionManage/productputaway/productputawayRecordMain/index.vue b/src/views/wms/productionManage/productputaway/productputawayRecordMain/index.vue index fc4433325..6b3c98003 100644 --- a/src/views/wms/productionManage/productputaway/productputawayRecordMain/index.vue +++ b/src/views/wms/productionManage/productputaway/productputawayRecordMain/index.vue @@ -66,7 +66,7 @@ import { ProductputawayRecordMain,ProductputawayRecordMainRules,ProductputawayRe import * as ProductputawayRecordMainApi from '@/api/wms/productputawayRecordMain' import * as ProductputawayRecordDetailApi from '@/api/wms/productputawayRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 制品上架记录主 defineOptions({ name: 'ProductputawayRecordMain' }) @@ -132,10 +132,13 @@ const butttondata = (row) => { // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'recordProductputawayMain') } diff --git a/src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue b/src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue index 9d1068068..77a975dbc 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue +++ b/src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue @@ -71,7 +71,7 @@ import { ProductreceiptJobMain,ProductreceiptJobMainRules,ProductreceiptJobDetai import * as ProductreceiptJobMainApi from '@/api/wms/productreceiptJobMain' import * as ProductreceiptJobDetailApi from '@/api/wms/productreceiptJobDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 制品收货任务主 defineOptions({ name: 'ProductreceiptJobMain' }) @@ -259,10 +259,13 @@ const buttonTableClick = async (val, row) => { ProductreceiptJobMainApi.acceptProductreceiptMain(row.id) } } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'jobProductreceiptMain') } diff --git a/src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue b/src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue index 64e1ae91f..fbdb61db4 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue +++ b/src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue @@ -90,7 +90,7 @@ import * as ProductreceiptRecordMainApi from '@/api/wms/productreceiptRecordMain import * as ProductreceiptRecordDetailApi from '@/api/wms/productreceiptRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as BackflushRecordDetailbApi from '@/api/wms/backflushRecordDetailb' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 制品收货记录主 defineOptions({ name: 'ProductreceiptRecordMain' }) @@ -175,10 +175,13 @@ const butttondata = (row) => { // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'recordProductreceiptMain') } diff --git a/src/views/wms/productionManage/productrepair/productrepairRecordMain/index.vue b/src/views/wms/productionManage/productrepair/productrepairRecordMain/index.vue index f49c19b3a..5a9d88c7f 100644 --- a/src/views/wms/productionManage/productrepair/productrepairRecordMain/index.vue +++ b/src/views/wms/productionManage/productrepair/productrepairRecordMain/index.vue @@ -94,7 +94,7 @@ import * as ProductrepairRecordDetailApi from '@/api/wms/productrepairRecordDeta import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as BomDismantleApi from "@/api/wms/bomDismantle"; import {getBomDismantleRecordPage} from "@/api/wms/bomDismantle"; - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 制品返修记录主 defineOptions({ name: 'ProductrepairRecordMain' }) @@ -241,10 +241,13 @@ const butttondata = (row) => { // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'recordProductrepairMain') } diff --git a/src/views/wms/productionManage/productscrap/productscrapJobMain/index.vue b/src/views/wms/productionManage/productscrap/productscrapJobMain/index.vue index 7e92a4e1d..197bf7cf8 100644 --- a/src/views/wms/productionManage/productscrap/productscrapJobMain/index.vue +++ b/src/views/wms/productionManage/productscrap/productscrapJobMain/index.vue @@ -71,7 +71,7 @@ import { ProductscrapJobMain,ProductscrapJobMainRules,ProductscrapJobDetail,Prod import * as ProductscrapJobMainApi from '@/api/wms/productscrapJobMain' import * as ProductscrapJobDetailApi from '@/api/wms/productscrapJobDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 制品报废任务主 defineOptions({ name: 'ProductscrapJobMain' }) @@ -199,10 +199,13 @@ const buttonTableClick = async (val, row) => { console.log('列表-操作按钮事件-承接') } } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'jobProductscrapMain') } diff --git a/src/views/wms/productionManage/productscrap/productscrapRecordMain/index.vue b/src/views/wms/productionManage/productscrap/productscrapRecordMain/index.vue index 7ae91324a..6b16ba8f9 100644 --- a/src/views/wms/productionManage/productscrap/productscrapRecordMain/index.vue +++ b/src/views/wms/productionManage/productscrap/productscrapRecordMain/index.vue @@ -93,7 +93,7 @@ import * as ProductscrapRecordDetailApi from '@/api/wms/productscrapRecordDetail import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as BomDismantleApi from "@/api/wms/bomDismantle"; import {getProductscrapBomDismantleRecordPage} from "@/api/wms/bomDismantle"; - +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' // 制品报废记录主 defineOptions({ name: 'ProductscrapRecordMain' }) @@ -240,10 +240,13 @@ const butttondata = (row) => { // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { } - +// 获取部门 用于详情 部门回显 +const { wsCache } = useCache() /** 详情操作 */ const detailRef = ref() const openDetail = (row: any, titleName: any, titleValue: any) => { + const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name + if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) detailRef.value.openDetail(row, titleName, titleValue,'recordProductscrapMain') }