|
@ -4,20 +4,6 @@ import * as getRequestsettingApi from '@/api/wms/requestsetting/index' |
|
|
|
|
|
|
|
|
import * as BalanceApi from '@/api/wms/balance' |
|
|
import * as BalanceApi from '@/api/wms/balance' |
|
|
import { Balance } from '@/views/wms/inventoryManage/balance/balance.data' |
|
|
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 {Workshop} from "@/views/wms/basicDataManage/factoryModeling/workshop/workshop.data"; |
|
|
import * as WorkshopApi from "@/api/wms/workshop"; |
|
|
import * as WorkshopApi from "@/api/wms/workshop"; |
|
|
import {Team} from "@/views/wms/basicDataManage/orderManage/team/team.data"; |
|
|
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 {Bom} from "@/views/wms/basicDataManage/itemManage/bom/bom.data"; |
|
|
import * as BomApi from "@/api/wms/bom"; |
|
|
import * as BomApi from "@/api/wms/bom"; |
|
|
|
|
|
|
|
|
|
|
|
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 userStore = useUserStore() |
|
|
const userDept = userStore.userSelfInfo.dept |
|
|
const userDept = userStore.userSelfInfo.dept |
|
|
|
|
|
const userDeptArray:any = [userDept] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 制品报废申请主表 |
|
|
* @returns {Array} 制品报废申请主表 |
|
@ -286,14 +288,22 @@ export const ProductscrapRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { |
|
|
|
|
|
return userDeptArray.find((account) => account.id === cellValue)?.name |
|
|
|
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
value: userDept.name, |
|
|
value: userDept.id, |
|
|
|
|
|
component: 'Select', |
|
|
|
|
|
api: () => userDeptArray, |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
disabled: true |
|
|
disabled: true, |
|
|
|
|
|
optionsAlias: { |
|
|
|
|
|
labelField: 'name', |
|
|
|
|
|
valueField: 'id' |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '最后更新时间', |
|
|
label: '最后更新时间', |
|
|
field: 'updateTime', |
|
|
field: 'updateTime', |
|
|