|
@ -1,6 +1,8 @@ |
|
|
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 * as getRequestsettingApi from '@/api/wms/requestsetting/index.ts' |
|
|
|
|
|
|
|
|
|
|
|
// 获取当前操作人的部门
|
|
|
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 |
|
@ -12,8 +14,7 @@ const queryParams = { |
|
|
code:'PurchaseClaimRequest' |
|
|
code:'PurchaseClaimRequest' |
|
|
} |
|
|
} |
|
|
const data = await getRequestsettingApi.getRequestsettingPage(queryParams) |
|
|
const data = await getRequestsettingApi.getRequestsettingPage(queryParams) |
|
|
const requestsetting = data[0] |
|
|
const requestsettingData =data?.list[0]||{} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 基础物料信息 |
|
|
* @returns {Array} 基础物料信息 |
|
@ -10680,7 +10681,10 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
form:{ |
|
|
form:{ |
|
|
component:'Switch', |
|
|
component:'Switch', |
|
|
value:true, |
|
|
value:requestsettingData.autoCommit, |
|
|
|
|
|
componentProps:{ |
|
|
|
|
|
disabled:true, |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
@ -10689,7 +10693,14 @@ 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:requestsettingData.autoAgree, |
|
|
|
|
|
componentProps:{ |
|
|
|
|
|
disabled:true, |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '自动执行', |
|
|
label: '自动执行', |
|
@ -10697,7 +10708,14 @@ 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:requestsettingData.autoExecute, |
|
|
|
|
|
componentProps:{ |
|
|
|
|
|
disabled:true, |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '跳过任务直接删生成记录', |
|
|
label: '跳过任务直接删生成记录', |
|
@ -10705,7 +10723,14 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
isTable: true |
|
|
isTable: true, |
|
|
|
|
|
form:{ |
|
|
|
|
|
component:'Switch', |
|
|
|
|
|
componentProps:{ |
|
|
|
|
|
disabled:true, |
|
|
|
|
|
value:requestsettingData.available, |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
])) |
|
|
])) |
|
|
// 表单校验
|
|
|
// 表单校验
|
|
@ -10809,6 +10834,7 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
{ |
|
|
{ |
|
|
label: '创建者', |
|
|
label: '创建者', |
|
|
field: 'creator', |
|
|
field: 'creator', |
|
|
|
|
|
isTableForm:false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '创建时间', |
|
|
label: '创建时间', |
|
@ -10817,11 +10843,13 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
detail: { |
|
|
detail: { |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
} |
|
|
}, |
|
|
|
|
|
isTableForm:false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '最后更新者', |
|
|
label: '最后更新者', |
|
|
field: 'updater', |
|
|
field: 'updater', |
|
|
|
|
|
isTableForm:false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '最后更新时间', |
|
|
label: '最后更新时间', |
|
@ -10830,9 +10858,46 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
detail: { |
|
|
detail: { |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
} |
|
|
}, |
|
|
|
|
|
isTableForm:false |
|
|
}, |
|
|
}, |
|
|
])) |
|
|
])) |
|
|
|
|
|
// 表单校验
|
|
|
|
|
|
export const PurchaseclaimRequestDetailRules = reactive({ |
|
|
|
|
|
batch: [ |
|
|
|
|
|
{ required: true, message: '请输入批次', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
altBatch: [ |
|
|
|
|
|
{ required: true, message: '请输入替代批次', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
poNumber: [ |
|
|
|
|
|
{ required: true, message: '请输入订单号', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
poLine: [ |
|
|
|
|
|
{ required: true, message: '请输入订单行', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
singlePrice: [ |
|
|
|
|
|
{ required: true, message: '请输入单价', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
amount: [ |
|
|
|
|
|
{ required: true, message: '请输入金额', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
number: [ |
|
|
|
|
|
{ required: true, message: '请输入单据号', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
itemCode: [ |
|
|
|
|
|
{ required: true, message: '请输入物品代码', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
projectCode: [ |
|
|
|
|
|
{ required: true, message: '请输入项目代码', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
qty: [ |
|
|
|
|
|
{ required: true, message: '请输入数量', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
uom: [ |
|
|
|
|
|
{ required: true, message: '请输入计量单位', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 采购索赔记录主表 |
|
|
* @returns {Array} 采购索赔记录主表 |
|
|