Browse Source

部门修改 所有申请

master
陈薪名 9 months ago
parent
commit
c1d054c712
  1. 4
      src/views/wms/countManage/count/countRequestMain/countRequestMain.data.ts
  2. 5
      src/views/wms/countManage/count/countRequestMain/index.vue
  3. 4
      src/views/wms/countManage/countadjust/countadjustRequestMain/countadjustRequestMain.data.ts
  4. 5
      src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue
  5. 4
      src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/customerreceiptRequestMain.data.ts
  6. 5
      src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue
  7. 4
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts
  8. 5
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue
  9. 4
      src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/customersettleRequestMain.data.ts
  10. 5
      src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/index.vue
  11. 4
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts
  12. 6
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue
  13. 5
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue
  14. 4
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts
  15. 5
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue
  16. 4
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts
  17. 5
      src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/index.vue
  18. 4
      src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/transferissueRequestMain.data.ts
  19. 6
      src/views/wms/inventoryjobManage/transferreceipt/transferreceiptRequestMain/index.vue
  20. 4
      src/views/wms/inventoryjobManage/transferreceipt/transferreceiptRequestMain/transferreceiptRequestMain.data.ts
  21. 6
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue
  22. 4
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts
  23. 5
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue
  24. 4
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts
  25. 5
      src/views/wms/issueManage/issue/issueRequestMain/index.vue
  26. 4
      src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts
  27. 5
      src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/index.vue
  28. 4
      src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/onlinesettlementRequestMain.data.ts
  29. 5
      src/views/wms/issueManage/pick/pickRequestMain/index.vue
  30. 4
      src/views/wms/issueManage/pick/pickRequestMain/pickRequestMain.data.ts
  31. 5
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
  32. 4
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts
  33. 5
      src/views/wms/issueManage/repleinsh/repleinshRequestMain/index.vue
  34. 4
      src/views/wms/issueManage/repleinsh/repleinshRequestMain/repleinshRequestMain.data.ts
  35. 5
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue
  36. 4
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts
  37. 5
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue
  38. 4
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts
  39. 5
      src/views/wms/productionManage/offlinesettlement/offlinesettlementRequestMain/index.vue
  40. 4
      src/views/wms/productionManage/offlinesettlement/offlinesettlementRequestMain/offlinesettlementRequestMain.data.ts
  41. 5
      src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue
  42. 4
      src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts
  43. 5
      src/views/wms/productionManage/productputaway/productputawayRequestMain/index.vue
  44. 4
      src/views/wms/productionManage/productputaway/productputawayRequestMain/productputawayRequestMain.data.ts
  45. 5
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue
  46. 4
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts
  47. 5
      src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue
  48. 4
      src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts
  49. 5
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue
  50. 4
      src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts
  51. 5
      src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue
  52. 4
      src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/inspectRequestMain.data.ts
  53. 5
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
  54. 4
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts
  55. 5
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue
  56. 4
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts
  57. 5
      src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue
  58. 4
      src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/putawayRequestMain.data.ts
  59. 5
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
  60. 4
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts
  61. 5
      src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue
  62. 4
      src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/purchaseclaimRequestMain.data.ts
  63. 5
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
  64. 4
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

4
src/views/wms/countManage/count/countRequestMain/countRequestMain.data.ts

@ -22,6 +22,8 @@ const queryParams = {
import { useUserStore } from '@/store/modules/user' import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -177,7 +179,7 @@ export const CountRequestMain = useCrudSchemas(<CrudSchema[]>([
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/countManage/count/countRequestMain/index.vue

@ -101,6 +101,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { import {
CountRequestMain, CountRequestMain,
CountRequestMainRules, CountRequestMainRules,
@ -447,9 +448,13 @@ const openForm = async (type: string, row?: number) => {
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { 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) detailRef.value.openDetail(row, titleName, titleValue)
} }

4
src/views/wms/countManage/countadjust/countadjustRequestMain/countadjustRequestMain.data.ts

@ -22,6 +22,8 @@ const queryParams = {
import { useUserStore } from '@/store/modules/user' import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -163,7 +165,7 @@ export const CountadjustRequestMain = useCrudSchemas(<CrudSchema[]>([
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue

@ -79,6 +79,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { CountadjustRequestMain,CountadjustRequestMainRules,CountadjustRequestDetail,CountadjustRequestDetailRules } from './countadjustRequestMain.data' import { CountadjustRequestMain,CountadjustRequestMainRules,CountadjustRequestDetail,CountadjustRequestDetailRules } from './countadjustRequestMain.data'
import * as CountadjustRequestMainApi from '@/api/wms/countadjustRequestMain' import * as CountadjustRequestMainApi from '@/api/wms/countadjustRequestMain'
import * as CountadjustRequestDetailApi from '@/api/wms/countadjustRequestDetail' import * as CountadjustRequestDetailApi from '@/api/wms/countadjustRequestDetail'
@ -276,9 +277,13 @@ const openForm =async (type: string, row?: number) => {
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { 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) detailRef.value.openDetail(row, titleName, titleValue)
} }

4
src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/customerreceiptRequestMain.data.ts

@ -18,6 +18,8 @@ const queryParams = {
import { useUserStore } from '@/store/modules/user' import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -228,7 +230,7 @@ export const CustomerreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue

@ -80,6 +80,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { CustomerreceiptRequestMain,CustomerreceiptRequestMainRules,CustomerreceiptRequestDetail,CustomerreceiptRequestDetailRules } from './customerreceiptRequestMain.data' import { CustomerreceiptRequestMain,CustomerreceiptRequestMainRules,CustomerreceiptRequestDetail,CustomerreceiptRequestDetailRules } from './customerreceiptRequestMain.data'
import * as CustomerreceiptRequestMainApi from '@/api/wms/customerreceiptRequestMain' import * as CustomerreceiptRequestMainApi from '@/api/wms/customerreceiptRequestMain'
import * as CustomerreceiptRequestDetailApi from '@/api/wms/customerreceiptRequestDetail' import * as CustomerreceiptRequestDetailApi from '@/api/wms/customerreceiptRequestDetail'
@ -284,9 +285,13 @@ const openForm =async (type: string, row?: number) => {
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { 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,'requestCustomerreceiptMain') detailRef.value.openDetail(row, titleName, titleValue,'requestCustomerreceiptMain')
} }

4
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts

@ -39,6 +39,8 @@ const queryParams = {
import { useUserStore } from '@/store/modules/user' import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -345,7 +347,7 @@ export const CustomerreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue

@ -80,6 +80,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { CustomerreturnRequestMain,CustomerreturnRequestMainRules,CustomerreturnRequestDetail,CustomerreturnRequestDetailRules } from './customerreturnRequestMain.data' import { CustomerreturnRequestMain,CustomerreturnRequestMainRules,CustomerreturnRequestDetail,CustomerreturnRequestDetailRules } from './customerreturnRequestMain.data'
import * as CustomerreturnRequestMainApi from '@/api/wms/customerreturnRequestMain' import * as CustomerreturnRequestMainApi from '@/api/wms/customerreturnRequestMain'
import * as CustomerreturnRequestDetailApi from '@/api/wms/customerreturnRequestDetail' import * as CustomerreturnRequestDetailApi from '@/api/wms/customerreturnRequestDetail'
@ -408,6 +409,8 @@ const detailOpenForm = (type) => {
} }
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
@ -416,6 +419,8 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
}else { }else {
trueFalse.value = true trueFalse.value = true
} }
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,'requestCustomerreturnMain') detailRef.value.openDetail(row, titleName, titleValue,'requestCustomerreturnMain')
} }

4
src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/customersettleRequestMain.data.ts

@ -23,6 +23,8 @@ const queryParams = {
import { useUserStore } from '@/store/modules/user' import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -174,7 +176,7 @@ export const CustomersettleRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/index.vue

@ -81,6 +81,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { CustomersettleRequestMain,CustomersettleRequestMainRules,CustomersettleRequestDetail,CustomersettleRequestDetailRules } from './customersettleRequestMain.data' import { CustomersettleRequestMain,CustomersettleRequestMainRules,CustomersettleRequestDetail,CustomersettleRequestDetailRules } from './customersettleRequestMain.data'
import * as CustomersettleRequestMainApi from '@/api/wms/customersettleRequestMain' import * as CustomersettleRequestMainApi from '@/api/wms/customersettleRequestMain'
import * as CustomersettleRequestDetailApi from '@/api/wms/customersettleRequestDetail' import * as CustomersettleRequestDetailApi from '@/api/wms/customersettleRequestDetail'
@ -295,9 +296,13 @@ const openForm =async (type: string, row?: number) => {
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { 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,'requestCustomersettleMain') detailRef.value.openDetail(row, titleName, titleValue,'requestCustomersettleMain')
} }

4
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts

@ -34,6 +34,8 @@ const queryParams = {
import { useUserStore } from '@/store/modules/user' import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -341,7 +343,7 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

6
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue

@ -84,6 +84,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { DeliverRequestMain,DeliverRequestMainRules,DeliverRequestDetail,DeliverRequestDetailRules } from './deliverRequestMain.data' import { DeliverRequestMain,DeliverRequestMainRules,DeliverRequestDetail,DeliverRequestDetailRules } from './deliverRequestMain.data'
import * as DeliverRequestMainApi from '@/api/wms/deliverRequestMain' import * as DeliverRequestMainApi from '@/api/wms/deliverRequestMain'
import * as DeliverRequestDetailApi from '@/api/wms/deliverRequestDetail' import * as DeliverRequestDetailApi from '@/api/wms/deliverRequestDetail'
@ -403,15 +404,18 @@ const openForm =async (type: string, row?: number) => {
} }
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
console.log(999,row.deliverPlanNumber);
if(row.deliverPlanNumber != null){ if(row.deliverPlanNumber != null){
trueFalse.value = false trueFalse.value = false
}else { }else {
trueFalse.value = true trueFalse.value = true
} }
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,'requestDeliverMain') detailRef.value.openDetail(row, titleName, titleValue,'requestDeliverMain')
} }

5
src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue

@ -78,6 +78,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { InventoryinitRequestMain,InventoryinitRequestMainRules,InventoryinitRequestDetail,InventoryinitRequestDetailRules } from './inventoryinitRequestMain.data' import { InventoryinitRequestMain,InventoryinitRequestMainRules,InventoryinitRequestDetail,InventoryinitRequestDetailRules } from './inventoryinitRequestMain.data'
import * as InventoryinitRequestMainApi from '@/api/wms/inventoryinitRequestMain' import * as InventoryinitRequestMainApi from '@/api/wms/inventoryinitRequestMain'
import * as InventoryinitRequestDetailApi from '@/api/wms/inventoryinitRequestDetail' import * as InventoryinitRequestDetailApi from '@/api/wms/inventoryinitRequestDetail'
@ -302,9 +303,13 @@ const openForm =async (type: string, row?: number) => {
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { 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,'requestInventoryinitMain') detailRef.value.openDetail(row, titleName, titleValue,'requestInventoryinitMain')
} }

4
src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts

@ -30,6 +30,8 @@ import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -156,7 +158,7 @@ export const InventoryinitRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue

@ -79,6 +79,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { ScrapRequestMain,ScrapRequestMainRules,ScrapRequestDetail,ScrapRequestDetailRules } from './scrapRequestMain.data' import { ScrapRequestMain,ScrapRequestMainRules,ScrapRequestDetail,ScrapRequestDetailRules } from './scrapRequestMain.data'
import * as ScrapRequestMainApi from '@/api/wms/scrapRequestMain' import * as ScrapRequestMainApi from '@/api/wms/scrapRequestMain'
import * as ScrapRequestDetailApi from '@/api/wms/scrapRequestDetail' import * as ScrapRequestDetailApi from '@/api/wms/scrapRequestDetail'
@ -309,9 +310,13 @@ const openForm =async (type: string, row?: number) => {
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { 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,'requestScrapMain') detailRef.value.openDetail(row, titleName, titleValue,'requestScrapMain')
} }

4
src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts

@ -24,6 +24,8 @@ import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -185,7 +187,7 @@ export const ScrapRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/index.vue

@ -79,6 +79,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { TransferissueRequestMain,TransferissueRequestMainRules,TransferissueRequestDetail,TransferissueRequestDetailRules } from './transferissueRequestMain.data' import { TransferissueRequestMain,TransferissueRequestMainRules,TransferissueRequestDetail,TransferissueRequestDetailRules } from './transferissueRequestMain.data'
import * as TransferissueRequestMainApi from '@/api/wms/transferissueRequestMain' import * as TransferissueRequestMainApi from '@/api/wms/transferissueRequestMain'
import * as TransferissueRequestDetailApi from '@/api/wms/transferissueRequestDetail' import * as TransferissueRequestDetailApi from '@/api/wms/transferissueRequestDetail'
@ -323,9 +324,13 @@ const openForm =async (type: string, row?: number) => {
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { 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,'requestTransferissueMain') detailRef.value.openDetail(row, titleName, titleValue,'requestTransferissueMain')
} }

4
src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/transferissueRequestMain.data.ts

@ -33,6 +33,8 @@ import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
@ -313,7 +315,7 @@ export const TransferissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

6
src/views/wms/inventoryjobManage/transferreceipt/transferreceiptRequestMain/index.vue

@ -81,6 +81,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { TransferreceiptRequestMain,TransferreceiptRequestMainRules,TransferreceiptRequestDetail,TransferreceiptRequestDetailRules } from './transferreceiptRequestMain.data' import { TransferreceiptRequestMain,TransferreceiptRequestMainRules,TransferreceiptRequestDetail,TransferreceiptRequestDetailRules } from './transferreceiptRequestMain.data'
import * as TransferreceiptRequestMainApi from '@/api/wms/transferreceiptRequestMain' import * as TransferreceiptRequestMainApi from '@/api/wms/transferreceiptRequestMain'
import * as TransferreceiptRequestDetailApi from '@/api/wms/transferreceiptRequestDetail' import * as TransferreceiptRequestDetailApi from '@/api/wms/transferreceiptRequestDetail'
@ -315,10 +316,13 @@ const openForm =async (type: string, row?: number) => {
tableData.value = [] // tableData.value = [] //
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { 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,'requestTransferreceiptMain') detailRef.value.openDetail(row, titleName, titleValue,'requestTransferreceiptMain')
} }

4
src/views/wms/inventoryjobManage/transferreceipt/transferreceiptRequestMain/transferreceiptRequestMain.data.ts

@ -17,6 +17,8 @@ import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -202,7 +204,7 @@ export const TransferreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

6
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue

@ -79,6 +79,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { UnplannedissueRequestMain,UnplannedissueRequestMainRules,UnplannedissueRequestDetail,UnplannedissueRequestDetailRules } from './unplannedissueRequestMain.data' import { UnplannedissueRequestMain,UnplannedissueRequestMainRules,UnplannedissueRequestDetail,UnplannedissueRequestDetailRules } from './unplannedissueRequestMain.data'
import * as UnplannedissueRequestMainApi from '@/api/wms/unplannedissueRequestMain' import * as UnplannedissueRequestMainApi from '@/api/wms/unplannedissueRequestMain'
import * as UnplannedissueRequestDetailApi from '@/api/wms/unplannedissueRequestDetail' import * as UnplannedissueRequestDetailApi from '@/api/wms/unplannedissueRequestDetail'
@ -304,10 +305,13 @@ const openForm =async (type: string, row?: number) => {
tableData.value = [] // tableData.value = [] //
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { 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,'requestUnplannedissueMain') detailRef.value.openDetail(row, titleName, titleValue,'requestUnplannedissueMain')
} }

4
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts

@ -21,6 +21,8 @@ import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -153,7 +155,7 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue

@ -97,6 +97,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { import {
UnplannedreceiptRequestMain, UnplannedreceiptRequestMain,
UnplannedreceiptRequestMainRules, UnplannedreceiptRequestMainRules,
@ -467,9 +468,13 @@ const openForm =async (type: string, row?: number) => {
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { 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,'requestUnplannedreceiptMain') detailRef.value.openDetail(row, titleName, titleValue,'requestUnplannedreceiptMain')
} }

4
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts

@ -37,6 +37,8 @@ const queryParams = {
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -193,7 +195,7 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/issueManage/issue/issueRequestMain/index.vue

@ -78,6 +78,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { IssueRequestMain,IssueRequestMainRules,IssueRequestDetail,IssueRequestDetailRules } from './issueRequestMain.data' import { IssueRequestMain,IssueRequestMainRules,IssueRequestDetail,IssueRequestDetailRules } from './issueRequestMain.data'
import * as IssueRequestMainApi from '@/api/wms/issueRequestMain' import * as IssueRequestMainApi from '@/api/wms/issueRequestMain'
import * as IssueRequestDetailApi from '@/api/wms/issueRequestDetail' import * as IssueRequestDetailApi from '@/api/wms/issueRequestDetail'
@ -307,9 +308,13 @@ const openForm =async (type: string, row?: number) => {
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { 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) detailRef.value.openDetail(row, titleName, titleValue)
} }

4
src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts

@ -36,6 +36,8 @@ const queryParams = {
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -240,7 +242,7 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/index.vue

@ -78,6 +78,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { OnlinesettlementRequestMain,OnlinesettlementRequestMainRules,OnlinesettlementRequestDetail,OnlinesettlementRequestDetailRules } from './onlinesettlementRequestMain.data' import { OnlinesettlementRequestMain,OnlinesettlementRequestMainRules,OnlinesettlementRequestDetail,OnlinesettlementRequestDetailRules } from './onlinesettlementRequestMain.data'
import * as OnlinesettlementRequestMainApi from '@/api/wms/onlinesettlementRequestMain' import * as OnlinesettlementRequestMainApi from '@/api/wms/onlinesettlementRequestMain'
import * as OnlinesettlementRequestDetailApi from '@/api/wms/onlinesettlementRequestDetail' import * as OnlinesettlementRequestDetailApi from '@/api/wms/onlinesettlementRequestDetail'
@ -245,9 +246,13 @@ const openForm =async (type: string, row?: number) => {
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { 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) detailRef.value.openDetail(row, titleName, titleValue)
} }

4
src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/onlinesettlementRequestMain.data.ts

@ -21,6 +21,8 @@ const queryParams = {
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -114,7 +116,7 @@ export const OnlinesettlementRequestMain = useCrudSchemas(reactive<CrudSchema[]>
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/issueManage/pick/pickRequestMain/index.vue

@ -78,6 +78,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { PickRequestMain,PickRequestMainRules,PickRequestDetail,PickRequestDetailRules } from './pickRequestMain.data' import { PickRequestMain,PickRequestMainRules,PickRequestDetail,PickRequestDetailRules } from './pickRequestMain.data'
import * as PickRequestMainApi from '@/api/wms/pickRequestMain' import * as PickRequestMainApi from '@/api/wms/pickRequestMain'
import * as PickRequestDetailApi from '@/api/wms/pickRequestDetail' import * as PickRequestDetailApi from '@/api/wms/pickRequestDetail'
@ -235,9 +236,13 @@ const openForm =async (type: string, row?: number) => {
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { 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) detailRef.value.openDetail(row, titleName, titleValue)
} }

4
src/views/wms/issueManage/pick/pickRequestMain/pickRequestMain.data.ts

@ -17,6 +17,8 @@ const queryParams = {
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
@ -192,7 +194,7 @@ export const PickRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue

@ -89,6 +89,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { ProductionreturnRequestMain,ProductionreturnRequestMainRules,ProductionreturnRequestDetail,ProductionreturnRequestDetailRules,ProductionreturnRequestDetailLabel,ProductionreturnRequestDetailLabelRules } from './productionreturnRequestMain.data' import { ProductionreturnRequestMain,ProductionreturnRequestMainRules,ProductionreturnRequestDetail,ProductionreturnRequestDetailRules,ProductionreturnRequestDetailLabel,ProductionreturnRequestDetailLabelRules } from './productionreturnRequestMain.data'
import * as ProductionreturnRequestMainApi from '@/api/wms/productionreturnRequestMain' import * as ProductionreturnRequestMainApi from '@/api/wms/productionreturnRequestMain'
import * as ProductionreturnRequestDetailApi from '@/api/wms/productionreturnRequestDetail' import * as ProductionreturnRequestDetailApi from '@/api/wms/productionreturnRequestDetail'
@ -477,9 +478,13 @@ const openForm =async (type: string, row?: number) => {
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { 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) detailRef.value.openDetail(row, titleName, titleValue)
} }
/** 详情操作——子表表单 */ /** 详情操作——子表表单 */

4
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts

@ -38,6 +38,8 @@ const queryParams = {
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -228,7 +230,7 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/issueManage/repleinsh/repleinshRequestMain/index.vue

@ -77,6 +77,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { RepleinshRequestMain,RepleinshRequestMainRules,RepleinshRequestDetail,RepleinshRequestDetailRules } from './repleinshRequestMain.data' import { RepleinshRequestMain,RepleinshRequestMainRules,RepleinshRequestDetail,RepleinshRequestDetailRules } from './repleinshRequestMain.data'
import * as RepleinshRequestMainApi from '@/api/wms/repleinshRequestMain' import * as RepleinshRequestMainApi from '@/api/wms/repleinshRequestMain'
import * as RepleinshRequestDetailApi from '@/api/wms/repleinshRequestDetail' import * as RepleinshRequestDetailApi from '@/api/wms/repleinshRequestDetail'
@ -288,9 +289,13 @@ const openForm =async (type: string, row?: number) => {
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { 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) detailRef.value.openDetail(row, titleName, titleValue)
} }

4
src/views/wms/issueManage/repleinsh/repleinshRequestMain/repleinshRequestMain.data.ts

@ -27,6 +27,8 @@ const queryParams = {
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -229,7 +231,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue

@ -77,6 +77,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { InventorychangeRequestMain,InventorychangeRequestMainRules,InventorychangeRequestDetail,InventorychangeRequestDetailRules } from './inventorychangeRequestMain.data' import { InventorychangeRequestMain,InventorychangeRequestMainRules,InventorychangeRequestDetail,InventorychangeRequestDetailRules } from './inventorychangeRequestMain.data'
import * as InventorychangeRequestMainApi from '@/api/wms/inventorychangeRequestMain' import * as InventorychangeRequestMainApi from '@/api/wms/inventorychangeRequestMain'
import * as InventorychangeRequestDetailApi from '@/api/wms/inventorychangeRequestDetail' import * as InventorychangeRequestDetailApi from '@/api/wms/inventorychangeRequestDetail'
@ -331,9 +332,13 @@ const openForm =async (type: string, row?: number) => {
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { 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) detailRef.value.openDetail(row, titleName, titleValue)
} }

4
src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts

@ -24,6 +24,8 @@ const queryParams = {
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
@ -129,7 +131,7 @@ export const InventorychangeRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

@ -78,6 +78,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { InventorymoveRequestMain,InventorymoveRequestMainRules,InventorymoveRequestDetail,InventorymoveRequestDetailRules } from './inventorymoveRequestMain.data' import { InventorymoveRequestMain,InventorymoveRequestMainRules,InventorymoveRequestDetail,InventorymoveRequestDetailRules } from './inventorymoveRequestMain.data'
import * as InventorymoveRequestMainApi from '@/api/wms/inventorymoveRequestMain' import * as InventorymoveRequestMainApi from '@/api/wms/inventorymoveRequestMain'
import * as InventorymoveRequestDetailApi from '@/api/wms/inventorymoveRequestDetail' import * as InventorymoveRequestDetailApi from '@/api/wms/inventorymoveRequestDetail'
@ -486,10 +487,14 @@ const detailOpenForm = (type, row) => {
const fromWarehouseCodeMain = ref() const fromWarehouseCodeMain = ref()
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
fromWarehouseCodeMain.value = row.fromWarehouseCode fromWarehouseCodeMain.value = row.fromWarehouseCode
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) detailRef.value.openDetail(row, titleName, titleValue)
} }

4
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts

@ -27,6 +27,8 @@ const queryParams = {
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -217,7 +219,7 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/productionManage/offlinesettlement/offlinesettlementRequestMain/index.vue

@ -79,6 +79,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { OfflinesettlementRequestMain,OfflinesettlementRequestMainRules,OfflinesettlementRequestDetail,OfflinesettlementRequestDetailRules } from './offlinesettlementRequestMain.data' import { OfflinesettlementRequestMain,OfflinesettlementRequestMainRules,OfflinesettlementRequestDetail,OfflinesettlementRequestDetailRules } from './offlinesettlementRequestMain.data'
import * as OfflinesettlementRequestMainApi from '@/api/wms/offlinesettlementRequestMain' import * as OfflinesettlementRequestMainApi from '@/api/wms/offlinesettlementRequestMain'
import * as OfflinesettlementRequestDetailApi from '@/api/wms/offlinesettlementRequestDetail' import * as OfflinesettlementRequestDetailApi from '@/api/wms/offlinesettlementRequestDetail'
@ -236,9 +237,13 @@ const openForm =async (type: string, row?: number) => {
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { 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,'requestOfflinesettlementMain') detailRef.value.openDetail(row, titleName, titleValue,'requestOfflinesettlementMain')
} }

4
src/views/wms/productionManage/offlinesettlement/offlinesettlementRequestMain/offlinesettlementRequestMain.data.ts

@ -17,6 +17,8 @@ const queryParams = {
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -146,7 +148,7 @@ export const OfflinesettlementRequestMain = useCrudSchemas(reactive<CrudSchema[]
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue

@ -99,6 +99,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { ProductdismantleRequestMain,ProductdismantleRequestMainRules,ProductdismantleRequestDetaila,ProductdismantleRequestDetailaRules,BomDismantle } from './productdismantleRequestMain.data' import { ProductdismantleRequestMain,ProductdismantleRequestMainRules,ProductdismantleRequestDetaila,ProductdismantleRequestDetailaRules,BomDismantle } from './productdismantleRequestMain.data'
import * as ProductdismantleRequestMainApi from '@/api/wms/productdismantleRequestMain' import * as ProductdismantleRequestMainApi from '@/api/wms/productdismantleRequestMain'
import * as ProductdismantleRequestDetailApi from '@/api/wms/productdismantleRequestDetaila' import * as ProductdismantleRequestDetailApi from '@/api/wms/productdismantleRequestDetaila'
@ -463,6 +464,8 @@ const openForm =async (type: string, row?: number) => {
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
@ -473,6 +476,8 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
defaultButtons.formSaveBtn({ hide : mainStatus.value != 1 }), // defaultButtons.formSaveBtn({ hide : mainStatus.value != 1 }), //
defaultButtons.formCloseBtn(null) // defaultButtons.formCloseBtn(null) //
] ]
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,'requestProductdismantleMain') detailRef.value.openDetail(row, titleName, titleValue,'requestProductdismantleMain')
} }

4
src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts

@ -42,6 +42,8 @@ const queryParams = {
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -268,7 +270,7 @@ export const ProductdismantleRequestMain = useCrudSchemas(reactive<CrudSchema[]>
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/productionManage/productputaway/productputawayRequestMain/index.vue

@ -78,6 +78,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { ProductputawayRequestMain,ProductputawayRequestMainRules,ProductputawayRequestDetail,ProductputawayRequestDetailRules } from './productputawayRequestMain.data' import { ProductputawayRequestMain,ProductputawayRequestMainRules,ProductputawayRequestDetail,ProductputawayRequestDetailRules } from './productputawayRequestMain.data'
import * as ProductputawayRequestMainApi from '@/api/wms/productputawayRequestMain' import * as ProductputawayRequestMainApi from '@/api/wms/productputawayRequestMain'
import * as ProductputawayRequestDetailApi from '@/api/wms/productputawayRequestDetail' import * as ProductputawayRequestDetailApi from '@/api/wms/productputawayRequestDetail'
@ -289,9 +290,13 @@ const openForm =async (type: string, row?: number) => {
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { 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,'requestProductputawayMain') detailRef.value.openDetail(row, titleName, titleValue,'requestProductputawayMain')
} }

4
src/views/wms/productionManage/productputaway/productputawayRequestMain/productputawayRequestMain.data.ts

@ -22,6 +22,8 @@ const queryParams = {
import { useUserStore } from '@/store/modules/user' import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -183,7 +185,7 @@ export const ProductputawayRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue

@ -116,6 +116,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { ProductreceiptRequestMain,ProductreceiptRequestMainRules,ProductreceiptRequestDetail,ProductreceiptRequestDetailRules, BackflushDetailRequest } from './productreceiptRequestMain.data' import { ProductreceiptRequestMain,ProductreceiptRequestMainRules,ProductreceiptRequestDetail,ProductreceiptRequestDetailRules, BackflushDetailRequest } from './productreceiptRequestMain.data'
import {ProductionreturnRequestDetailLabel,ProductionreturnRequestDetailLabelRules} from '../../../issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data' import {ProductionreturnRequestDetailLabel,ProductionreturnRequestDetailLabelRules} from '../../../issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data'
import * as ProductreceiptRequestMainApi from '@/api/wms/productreceiptRequestMain' import * as ProductreceiptRequestMainApi from '@/api/wms/productreceiptRequestMain'
@ -461,9 +462,13 @@ const openForm =async (type: string, row?: number) => {
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { 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,'requestProductreceiptMain') detailRef.value.openDetail(row, titleName, titleValue,'requestProductreceiptMain')
} }

4
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts

@ -42,6 +42,8 @@ const queryParams = {
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -278,7 +280,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue

@ -103,6 +103,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { ProductrepairRequestMain,ProductrepairRequestMainRules,ProductrepairRequestDetaila,ProductrepairRequestDetailaRules, ConsumereRequestDetailb, BomDismantle,ProductrepairBomDismantleRules } from './productrepairRequestMain.data' import { ProductrepairRequestMain,ProductrepairRequestMainRules,ProductrepairRequestDetaila,ProductrepairRequestDetailaRules, ConsumereRequestDetailb, BomDismantle,ProductrepairBomDismantleRules } from './productrepairRequestMain.data'
import * as ProductrepairRequestMainApi from '@/api/wms/productrepairRequestMain' import * as ProductrepairRequestMainApi from '@/api/wms/productrepairRequestMain'
import * as ProductrepairRequestDetailApi from '@/api/wms/productrepairRequestDetaila' import * as ProductrepairRequestDetailApi from '@/api/wms/productrepairRequestDetaila'
@ -474,6 +475,8 @@ const openForm =async (type: string, row?: number) => {
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const mainStatus = ref() const mainStatus = ref()
@ -486,6 +489,8 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
defaultButtons.formCloseBtn(null) // defaultButtons.formCloseBtn(null) //
] ]
lsBomSave.value = false lsBomSave.value = false
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,'requestProductrepairMain') detailRef.value.openDetail(row, titleName, titleValue,'requestProductrepairMain')
} }

4
src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts

@ -42,6 +42,8 @@ const queryParams = {
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -268,7 +270,7 @@ export const ProductrepairRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

@ -103,6 +103,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { ProductscrapRequestMain,ProductscrapRequestMainRules,ProductscrapRequestDetail,ProductscrapRequestDetailRules,ProdcutscrapBomDismantle } from './productscrapRequestMain.data' import { ProductscrapRequestMain,ProductscrapRequestMainRules,ProductscrapRequestDetail,ProductscrapRequestDetailRules,ProdcutscrapBomDismantle } from './productscrapRequestMain.data'
import * as ProductscrapRequestMainApi from '@/api/wms/productscrapRequestMain' import * as ProductscrapRequestMainApi from '@/api/wms/productscrapRequestMain'
import * as ProductscrapRequestDetailApi from '@/api/wms/productscrapRequestDetail' import * as ProductscrapRequestDetailApi from '@/api/wms/productscrapRequestDetail'
@ -483,6 +484,8 @@ const openForm =async (type: string, row?: number) => {
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const mainStatus = ref() const mainStatus = ref()
@ -494,6 +497,8 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
defaultButtons.formSaveBtn({ hide : mainStatus.value != 1 }), // defaultButtons.formSaveBtn({ hide : mainStatus.value != 1 }), //
defaultButtons.formCloseBtn(null) // defaultButtons.formCloseBtn(null) //
] ]
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,'requestProductscrapMain') detailRef.value.openDetail(row, titleName, titleValue,'requestProductscrapMain')
} }

4
src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts

@ -41,6 +41,8 @@ const queryParams = {
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
@ -289,7 +291,7 @@ export const ProductscrapRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue

@ -47,6 +47,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { InspectRequestMain, InspectRequestMainRules, InspectRequestDetail, InspectRequestDetailRules } from './inspectRequestMain.data' import { InspectRequestMain, InspectRequestMainRules, InspectRequestDetail, InspectRequestDetailRules } from './inspectRequestMain.data'
import * as InspectRequestMainApi from '@/api/wms/inspectRequestMain' import * as InspectRequestMainApi from '@/api/wms/inspectRequestMain'
import * as InspectRequestDetailApi from '@/api/wms/inspectRequestDetail' import * as InspectRequestDetailApi from '@/api/wms/inspectRequestDetail'
@ -263,9 +264,13 @@
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row : any, titleName : any, titleValue : any) => { 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,'requestInspectMain') detailRef.value.openDetail(row, titleName, titleValue,'requestInspectMain')
} }

4
src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/inspectRequestMain.data.ts

@ -28,6 +28,8 @@ const requestsettingData = data?.list[0] || {}
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -298,7 +300,7 @@ export const InspectRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

@ -78,6 +78,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { PurchasereceiptRequestMain,PurchasereceiptRequestMainRules,PurchasereceiptRequestDetail,PurchasereceiptRequestDetailRules } from './purchasereceiptRequestMain.data' import { PurchasereceiptRequestMain,PurchasereceiptRequestMainRules,PurchasereceiptRequestDetail,PurchasereceiptRequestDetailRules } from './purchasereceiptRequestMain.data'
import * as PurchasereceiptRequestMainApi from '@/api/wms/purchasereceiptRequestMain' import * as PurchasereceiptRequestMainApi from '@/api/wms/purchasereceiptRequestMain'
import * as PurchasereceiptRequestDetailApi from '@/api/wms/purchasereceiptRequestDetail' import * as PurchasereceiptRequestDetailApi from '@/api/wms/purchasereceiptRequestDetail'
@ -222,9 +223,13 @@ const openForm =async (type: string, row?: number) => {
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { 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,'requestPurchasereceiptMain') detailRef.value.openDetail(row, titleName, titleValue,'requestPurchasereceiptMain')
} }

4
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts

@ -25,6 +25,8 @@ import { PurchaseDetail, PurchaseMain } from '../../supplierdeliver/purchaseMain
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
@ -281,7 +283,7 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

@ -95,6 +95,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { import {
PurchasereturnRequestMain, PurchasereturnRequestMain,
PurchasereturnRequestMainRules, PurchasereturnRequestMainRules,
@ -440,11 +441,15 @@ const openForm = async (type: string, row?: number) => {
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const purchaseReceiptRecordNumberRef = ref() const purchaseReceiptRecordNumberRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
purchaseReceiptRecordNumberRef.value = row.purchaseReceiptRecordNumber; purchaseReceiptRecordNumberRef.value = row.purchaseReceiptRecordNumber;
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,'requestPurchasereturnMain') detailRef.value.openDetail(row, titleName, titleValue,'requestPurchasereturnMain')
} }

4
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts

@ -28,6 +28,8 @@ const queryParams = {
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -270,7 +272,7 @@ export const PurchasereturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue

@ -79,6 +79,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { PutawayRequestMain,PutawayRequestMainRules,PutawayRequestDetail,PutawayRequestDetailRules } from './putawayRequestMain.data' import { PutawayRequestMain,PutawayRequestMainRules,PutawayRequestDetail,PutawayRequestDetailRules } from './putawayRequestMain.data'
import * as PutawayRequestMainApi from '@/api/wms/putawayRequestMain' import * as PutawayRequestMainApi from '@/api/wms/putawayRequestMain'
import * as PutawayRequestDetailApi from '@/api/wms/putawayRequestDetail' import * as PutawayRequestDetailApi from '@/api/wms/putawayRequestDetail'
@ -289,9 +290,13 @@ const handleSubmit = async (id: number) => {
await getList() await getList()
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { 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,'requestPutawayMain') detailRef.value.openDetail(row, titleName, titleValue,'requestPutawayMain')
} }

4
src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/putawayRequestMain.data.ts

@ -38,6 +38,8 @@ const requestsettingData = data?.list[0] || {}
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -273,7 +275,7 @@ export const PutawayRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -109,6 +109,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { getAccessToken } from '@/utils/auth' import { getAccessToken } from '@/utils/auth'
import { import {
SupplierdeliverRequestMain, SupplierdeliverRequestMain,
@ -320,9 +321,13 @@ const buttonTableClick = async (val, row) => {
} }
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { 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,'requestSupplierdeliverMain') detailRef.value.openDetail(row, titleName, titleValue,'requestSupplierdeliverMain')
} }
/// ///

4
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts

@ -29,6 +29,8 @@ const requestsettingData = data?.list[0] || {}
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
@ -328,7 +330,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue

@ -54,6 +54,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { getAccessToken } from '@/utils/auth' import { getAccessToken } from '@/utils/auth'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import download from '@/utils/download' import download from '@/utils/download'
import * as PurchaseclaimRequestMainApi from '@/api/wms/purchaseclaimRequestMain' import * as PurchaseclaimRequestMainApi from '@/api/wms/purchaseclaimRequestMain'
import * as SupplierdeliverRecordDetailApi from '@/api/wms/supplierdeliverRecordDetail' import * as SupplierdeliverRecordDetailApi from '@/api/wms/supplierdeliverRecordDetail'
@ -258,9 +259,13 @@
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row : any, titleName : any, titleValue : any) => { 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) detailRef.value.openDetail(row, titleName, titleValue)
} }

4
src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/purchaseclaimRequestMain.data.ts

@ -15,6 +15,8 @@ const { t } = useI18n() // 国际化
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
@ -152,7 +154,7 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

5
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -48,6 +48,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { SupplierinvoiceRequestMain, SupplierinvoiceRequestMainRules, SupplierinvoiceRequestDetail, SupplierinvoiceRequestDetailRules } from './supplierinvoiceRequestMain.data' import { SupplierinvoiceRequestMain, SupplierinvoiceRequestMainRules, SupplierinvoiceRequestDetail, SupplierinvoiceRequestDetailRules } from './supplierinvoiceRequestMain.data'
import * as SupplierinvoiceRequestMainApi from '@/api/wms/supplierinvoiceRequestMain' import * as SupplierinvoiceRequestMainApi from '@/api/wms/supplierinvoiceRequestMain'
import * as SupplierinvoiceRequestDetailApi from '@/api/wms/supplierinvoiceRequestDetail' import * as SupplierinvoiceRequestDetailApi from '@/api/wms/supplierinvoiceRequestDetail'
@ -215,9 +216,13 @@
formRef.value.open(type, row) formRef.value.open(type, row)
} }
//
const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row : any, titleName : any, titleValue : any) => { 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) detailRef.value.openDetail(row, titleName, titleValue)
} }

4
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

@ -22,6 +22,8 @@ const requestsettingData = data?.list[0] || {}
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
@ -133,7 +135,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
width: 150 width: 150
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name return userDeptArray.find((account) => account.id == cellValue)?.name
}, },
form: { form: {
value: userDept.id, value: userDept.id,

Loading…
Cancel
Save