|
@ -1,5 +1,20 @@ |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
|
|
import * as getRequestsettingApi from '@/api/wms/requestsetting/index.ts' |
|
|
|
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
|
|
|
const userStore = useUserStore() |
|
|
|
|
|
const userDept = userStore.userSelfInfo.dept |
|
|
|
|
|
|
|
|
|
|
|
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
|
|
|
|
|
|
const queryParams = { |
|
|
|
|
|
pageSize:10, |
|
|
|
|
|
pageNo:1, |
|
|
|
|
|
code:'PurchaseClaimRequest' |
|
|
|
|
|
} |
|
|
|
|
|
const data = await getRequestsettingApi.getRequestsettingPage(queryParams) |
|
|
|
|
|
const requestsetting = data[0] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 基础物料信息 |
|
|
* @returns {Array} 基础物料信息 |
|
|
*/ |
|
|
*/ |
|
@ -10556,16 +10571,30 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '单据号', |
|
|
label: '单据号', |
|
|
field: 'number' |
|
|
field: 'number', |
|
|
|
|
|
isForm:false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '业务类型', |
|
|
label: '业务类型', |
|
|
field: 'businessType' |
|
|
field: 'businessType', |
|
|
|
|
|
form:{ |
|
|
|
|
|
value:'PurchaseClaim', |
|
|
|
|
|
componentProps:{ |
|
|
|
|
|
disabled:true, |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '申请时间', |
|
|
label: '申请时间', |
|
|
field: 'requestTime', |
|
|
field: 'requestTime', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
|
|
|
form: { |
|
|
|
|
|
value: new Date(), |
|
|
|
|
|
component: 'DatePicker', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
type: 'datetime', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
detail: { |
|
|
detail: { |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
} |
|
|
} |
|
@ -10574,13 +10603,25 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '截止时间', |
|
|
label: '截止时间', |
|
|
field: 'dueTime', |
|
|
field: 'dueTime', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'DatePicker', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
type: 'datetime', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
detail: { |
|
|
detail: { |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '部门', |
|
|
label: '部门', |
|
|
field: 'departmentCode' |
|
|
field: 'departmentCode', |
|
|
|
|
|
form: { |
|
|
|
|
|
value:userDept.name, |
|
|
|
|
|
componentProps:{ |
|
|
|
|
|
disabled:true, |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '状态', |
|
|
label: '状态', |
|
@ -10588,7 +10629,13 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
dictType: DICT_TYPE.REQUEST_STATUS, |
|
|
dictType: DICT_TYPE.REQUEST_STATUS, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
isTable: true |
|
|
isTable: true, |
|
|
|
|
|
form: { |
|
|
|
|
|
value:'NEW', |
|
|
|
|
|
componentProps:{ |
|
|
|
|
|
disabled:true, |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '备注', |
|
|
label: '备注', |
|
@ -10597,12 +10644,14 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '创建者', |
|
|
label: '创建者', |
|
|
field: 'creator', |
|
|
field: 'creator', |
|
|
|
|
|
isForm:false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '创建时间', |
|
|
label: '创建时间', |
|
|
field: 'createTime', |
|
|
field: 'createTime', |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
|
|
|
isForm:false, |
|
|
detail: { |
|
|
detail: { |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
} |
|
|
} |
|
@ -10610,12 +10659,14 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '最后更新者', |
|
|
label: '最后更新者', |
|
|
field: 'updater', |
|
|
field: 'updater', |
|
|
|
|
|
isForm:false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '最后更新时间', |
|
|
label: '最后更新时间', |
|
|
field: 'updateTime', |
|
|
field: 'updateTime', |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
|
|
|
isForm:false, |
|
|
detail: { |
|
|
detail: { |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
} |
|
|
} |
|
@ -10626,7 +10677,11 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
isTable: true |
|
|
isTable: true, |
|
|
|
|
|
form:{ |
|
|
|
|
|
component:'Switch', |
|
|
|
|
|
value:true, |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '自动通过', |
|
|
label: '自动通过', |
|
@ -10649,13 +10704,36 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'directCreateRecord', |
|
|
field: 'directCreateRecord', |
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
isTable: true |
|
|
isTable: true |
|
|
} |
|
|
} |
|
|
])) |
|
|
])) |
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
// 表单校验
|
|
|
export const PurchaseclaimRequestMainRules = reactive({ |
|
|
export const PurchaseclaimRequestMainRules = reactive({ |
|
|
|
|
|
asnNumber: [ |
|
|
|
|
|
{ required: true, message: '请输入发货单号', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
ppNumber: [ |
|
|
|
|
|
{ required: true, message: '请输入要货计划单号', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
supplierCode: [ |
|
|
|
|
|
{ required: true, message: '请输入供应商代码', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
businessType: [ |
|
|
|
|
|
{ required: true, message: '请输入业务类型', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
requestTime: [ |
|
|
|
|
|
{ required: true, message: '请选择申请时间', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
dueTime: [ |
|
|
|
|
|
{ required: true, message: '请选择截止时间', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
departmentCode: [ |
|
|
|
|
|
{ required: true, message: '请选择部门', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
status: [ |
|
|
|
|
|
{ required: true, message: '请选择状态', trigger: 'change' } |
|
|
|
|
|
], |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|