Browse Source

部门处理 前端显示名称 传入后端为id

master
陈薪名 10 months ago
parent
commit
fd01f64080
  1. 16
      src/views/wms/countManage/count/countRequestMain/countRequestMain.data.ts
  2. 16
      src/views/wms/countManage/countadjust/countadjustRequestMain/countadjustRequestMain.data.ts
  3. 16
      src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/customerreceiptRequestMain.data.ts
  4. 16
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts
  5. 16
      src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/customersettleRequestMain.data.ts
  6. 16
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts
  7. 15
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts
  8. 20
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts
  9. 22
      src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/transferissueRequestMain.data.ts
  10. 15
      src/views/wms/inventoryjobManage/transferreceipt/transferreceiptRequestMain/transferreceiptRequestMain.data.ts
  11. 15
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts
  12. 46
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts
  13. 30
      src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts
  14. 19
      src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/onlinesettlementRequestMain.data.ts
  15. 22
      src/views/wms/issueManage/pick/pickRequestMain/pickRequestMain.data.ts
  16. 21
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts
  17. 21
      src/views/wms/issueManage/repleinsh/repleinshRequestMain/repleinshRequestMain.data.ts
  18. 22
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts
  19. 21
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts
  20. 21
      src/views/wms/productionManage/offlinesettlement/offlinesettlementRequestMain/offlinesettlementRequestMain.data.ts
  21. 21
      src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts
  22. 16
      src/views/wms/productionManage/productputaway/productputawayRequestMain/productputawayRequestMain.data.ts
  23. 21
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts
  24. 27
      src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts
  25. 48
      src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts
  26. 36
      src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/inspectRequestMain.data.ts
  27. 23
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts
  28. 26
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts
  29. 24
      src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/putawayRequestMain.data.ts
  30. 21
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts
  31. 34
      src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/purchaseclaimRequestMain.data.ts
  32. 24
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

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

@ -1,4 +1,6 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { TableColumn } from '@/types/table'
import { dateFormatter } from '@/utils/formatTime'
import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
@ -20,6 +22,7 @@ const queryParams = {
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -173,10 +176,19 @@ export const CountRequestMain = useCrudSchemas(<CrudSchema[]>([
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -1,4 +1,6 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { TableColumn } from '@/types/table'
import { dateFormatter } from '@/utils/formatTime'
import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
@ -20,6 +22,7 @@ const queryParams = {
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -159,10 +162,19 @@ export const CountadjustRequestMain = useCrudSchemas(<CrudSchema[]>([
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -1,4 +1,6 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { TableColumn } from '@/types/table'
import { dateFormatter } from '@/utils/formatTime'
const { t } = useI18n() // 国际化
import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
@ -16,6 +18,7 @@ const queryParams = {
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -224,10 +227,19 @@ export const CustomerreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -1,4 +1,6 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { TableColumn } from '@/types/table'
import { dateFormatter, formatDate } from '@/utils/formatTime'
import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
@ -37,6 +39,7 @@ const queryParams = {
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array} 退
@ -341,10 +344,19 @@ export const CustomerreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -1,4 +1,6 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { TableColumn } from '@/types/table'
import { dateFormatter } from '@/utils/formatTime'
import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
@ -21,6 +23,7 @@ const queryParams = {
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -170,10 +173,19 @@ export const CustomersettleRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -1,4 +1,6 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { TableColumn } from '@/types/table'
import { dateFormatter } from '@/utils/formatTime'
import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
@ -32,6 +34,7 @@ const queryParams = {
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -337,10 +340,19 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -27,8 +27,10 @@ const queryParams = {
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -153,10 +155,19 @@ export const InventoryinitRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -5,6 +5,9 @@ import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
import * as BalanceApi from '@/api/wms/balance'
import { Balance } from '@/views/wms/inventoryManage/balance/balance.data'
import {Warehouse} from "@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data";
import * as WarehouseApi from "@/api/wms/warehouse";
const { t } = useI18n() // 国际化
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
@ -18,10 +21,10 @@ const queryParams = {
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
import {Warehouse} from "@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data";
import * as WarehouseApi from "@/api/wms/warehouse";
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -181,10 +184,19 @@ export const ScrapRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -14,6 +14,9 @@ import { Balance } from '@/views/wms/inventoryManage/balance/balance.data'
import * as LocationApi from '@/api/wms/location'
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data'
import {Warehouse} from "@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data";
import * as WarehouseApi from "@/api/wms/warehouse";
const { t } = useI18n() // 国际化
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
@ -27,11 +30,11 @@ const queryParams = {
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
import {Warehouse} from "@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data";
import * as WarehouseApi from "@/api/wms/warehouse";
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -309,10 +312,19 @@ export const TransferissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -14,8 +14,10 @@ const queryParams = {
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -199,10 +201,19 @@ export const TransferreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -18,8 +18,10 @@ const queryParams = {
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -150,10 +152,19 @@ export const UnplannedissueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -8,7 +8,18 @@ import { Balance } from '@/views/wms/inventoryManage/balance/balance.data'
import * as ItembasicApi from '@/api/wms/itembasic'
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data'
import {Warehouse} from "@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data";
import * as WarehouseApi from "@/api/wms/warehouse";
import {Location} from "@/views/wms/basicDataManage/factoryModeling/location/location.data";
import * as LocationApi from "@/api/wms/location";
import {
Productionlineitem
} from "@/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data";
import * as ProductionlineitemApi from "@/api/wms/productionlineitem";
import {
Supplieritem
} from "@/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data";
import * as SupplieritemApi from "@/api/wms/supplieritem";
const { t } = useI18n() // 国际化
@ -22,21 +33,11 @@ const queryParams = {
const requestsettingData =data?.list[0]||{}
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
import {Warehouse} from "@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data";
import * as WarehouseApi from "@/api/wms/warehouse";
import {Location} from "@/views/wms/basicDataManage/factoryModeling/location/location.data";
import * as LocationApi from "@/api/wms/location";
import {
Productionlineitem
} from "@/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data";
import * as ProductionlineitemApi from "@/api/wms/productionlineitem";
import {
Supplieritem
} from "@/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data";
import * as SupplieritemApi from "@/api/wms/supplieritem";
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -191,10 +192,19 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -32,9 +32,11 @@ const queryParams = {
const requestsettingData =data?.list[0]||{}
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -237,13 +239,21 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
isForm: false,
// form: {
// value: userDept.name,
// componentProps: {
// disabled: true
// }
// }
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},
{
label: '备注',

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

@ -17,9 +17,11 @@ const queryParams = {
const requestsettingData =data?.list[0]||{}
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array} 线
@ -111,10 +113,19 @@ export const OnlinesettlementRequestMain = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -13,9 +13,12 @@ const queryParams = {
const requestsettingData =data?.list[0]||{}
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -188,10 +191,19 @@ export const PickRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -34,9 +34,11 @@ const queryParams = {
console.log(34, requestsettingData)
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array} 退
@ -225,10 +227,19 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -23,9 +23,11 @@ const queryParams = {
const requestsettingData =data?.list[0]||{}
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -226,10 +228,19 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -20,9 +20,12 @@ const queryParams = {
const requestsettingData =data?.list[0]||{}
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -125,10 +128,19 @@ export const InventorychangeRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -23,9 +23,11 @@ const queryParams = {
const requestsettingData =data?.list[0]||{}
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -214,10 +216,19 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -13,9 +13,11 @@ const queryParams = {
const requestsettingData =data?.list[0]||{}
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array} 线
@ -143,10 +145,19 @@ export const OfflinesettlementRequestMain = useCrudSchemas(reactive<CrudSchema[]
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -38,9 +38,11 @@ const queryParams = {
const requestsettingData =data?.list[0]||{}
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -265,10 +267,19 @@ export const ProductdismantleRequestMain = useCrudSchemas(reactive<CrudSchema[]>
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -5,6 +5,8 @@ import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
import * as BalanceApi from '@/api/wms/balance'
import { Balance } from '@/views/wms/inventoryManage/balance/balance.data'
import { TableColumn } from '@/types/table'
const { t } = useI18n() // 国际化
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
@ -20,6 +22,7 @@ const queryParams = {
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -179,10 +182,19 @@ export const ProductputawayRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -38,9 +38,11 @@ const queryParams = {
const requestsettingData =data?.list[0]||{}
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -275,10 +277,19 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -22,6 +22,9 @@ import { Process } from '@/views/wms/basicDataManage/factoryModeling/process/pro
import * as BalanceApi from '@/api/wms/balance'
import { Balance } from '@/views/wms/inventoryManage/balance/balance.data'
import {Bom} from "@/views/wms/basicDataManage/itemManage/bom/bom.data";
import * as BomApi from "@/api/wms/bom";
import {getBalanceItemPage} from "@/api/wms/balance";
const { t } = useI18n() // 国际化
@ -35,12 +38,11 @@ const queryParams = {
const requestsettingData =data?.list[0]||{}
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
import {Bom} from "@/views/wms/basicDataManage/itemManage/bom/bom.data";
import * as BomApi from "@/api/wms/bom";
import {getBalanceItemPage} from "@/api/wms/balance";
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -265,10 +267,19 @@ export const ProductrepairRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -4,20 +4,6 @@ import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
import * as BalanceApi from '@/api/wms/balance'
import { Balance } from '@/views/wms/inventoryManage/balance/balance.data'
const { t } = useI18n() // 国际化
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
const queryParams = {
pageSize:10,
pageNo:1,
code:'ProductScrapRequest'
}
const data = await getRequestsettingApi.getRequestsettingPage(queryParams)
const requestsettingData =data?.list[0]||{}
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
import {Workshop} from "@/views/wms/basicDataManage/factoryModeling/workshop/workshop.data";
import * as WorkshopApi from "@/api/wms/workshop";
import {Team} from "@/views/wms/basicDataManage/orderManage/team/team.data";
@ -39,8 +25,24 @@ import { Productionlineitem } from '@/views/wms/basicDataManage/itemManage/produ
import {Bom} from "@/views/wms/basicDataManage/itemManage/bom/bom.data";
import * as BomApi from "@/api/wms/bom";
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const { t } = useI18n() // 国际化
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
const queryParams = {
pageSize:10,
pageNo:1,
code:'ProductScrapRequest'
}
const data = await getRequestsettingApi.getRequestsettingPage(queryParams)
const requestsettingData =data?.list[0]||{}
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -286,14 +288,22 @@ export const ProductscrapRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},
{
label: '最后更新时间',
field: 'updateTime',

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

@ -11,6 +11,9 @@ import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/su
import { Warehouse } from "@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data";
import * as WarehouseApi from "@/api/wms/warehouse";
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data'
import * as LocationApi from '@/api/wms/location'
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
const queryParams = {
pageSize: 10,
@ -20,20 +23,12 @@ const queryParams = {
const data = await getRequestsettingApi.getRequestsettingPage(queryParams)
const requestsettingData = data?.list[0] || {}
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
import * as PurchaseMainApi from '@/api/wms/purchaseMain'
import * as PurchaseDetailApi from '@/api/wms/purchaseDetail'
import * as PurchasereceiptRecordMainApi from '@/api/wms/purchasereceiptRecordMain'
import { PurchasereceiptRecordMain } from '../../purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data'
import * as ItembasicApi from '@/api/wms/itembasic'
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data'
import { PurchaseDetail, PurchaseMain } from '../../supplierdeliver/purchaseMain/purchaseMain.data'
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data'
import * as LocationApi from '@/api/wms/location'
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -302,10 +297,19 @@ export const InspectRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -17,12 +17,16 @@ const queryParams = {
const data = await getRequestsettingApi.getRequestsettingPage(queryParams)
const requestsettingData =data?.list[0]||{}
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data'
import { PurchaseDetail, PurchaseMain } from '../../supplierdeliver/purchaseMain/purchaseMain.data'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -276,10 +280,19 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -24,14 +24,11 @@ const queryParams = {
const requestsettingData =data?.list[0]||{}
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
import {
PurchaseDetail
} from "@/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data";
import * as PurchaseDetailApi from "@/api/wms/purchaseDetail";
import {getPurchasereceiptRecordDetailPage} from "@/api/wms/purchasereceiptRecordDetail";
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array} 退
@ -272,10 +269,19 @@ export const PurchasereturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -33,11 +33,12 @@ const queryParams = {
const data = await getRequestsettingApi.getRequestsettingPage(queryParams)
const requestsettingData = data?.list[0] || {}
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
import { PurchaseDetail, PurchaseMain } from '../../supplierdeliver/purchaseMain/purchaseMain.data'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -271,10 +272,19 @@ export const PutawayRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -24,10 +24,12 @@ const queryParams = {
const data = await getRequestsettingApi.getRequestsettingPage(queryParams)
const requestsettingData = data?.list[0] || {}
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -325,10 +327,19 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},

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

@ -8,13 +8,15 @@ import { SupplierdeliverRecordMain, SupplierdeliverRecordDetail } from '@/views/
const { t } = useI18n() // 国际化
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
const queryParams = {
@ -145,14 +147,24 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '部门',
field: 'departmentCode',
sort: 'custom',
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value:userDept.name,
componentProps:{
disabled:true,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
},
table: {
width: 100
}
},
{

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

@ -17,10 +17,13 @@ const queryParams = {
const data = await getRequestsettingApi.getRequestsettingPage(queryParams)
const requestsettingData = data?.list[0] || {}
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
const userDeptArray:any = [userDept]
/**
* @returns {Array}
@ -129,12 +132,21 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id === cellValue)?.name
},
form: {
value: userDept.name,
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},
},
{
label: '状态',

Loading…
Cancel
Save