This commit is contained in:
2026-06-17 15:47:59 +08:00
47 changed files with 2687 additions and 17 deletions

View File

@@ -18,6 +18,8 @@
/** 密炼PS类型原材料检验标准 */
const PS_TYPE_RAW_INSPECT_STD = 'raw_inspect_std';
/** 密炼PS状态编制 */
const COMPILE_STATUS = 'compile';
const selectSearchSchema: FormSchema[] = [
{ label: 'PS编码', field: 'psCode', component: 'JInput', colProps: { span: 8 } },
@@ -42,6 +44,7 @@
beforeFetch: (params) => ({
...params,
psType: PS_TYPE_RAW_INSPECT_STD,
status: COMPILE_STATUS,
}),
rowSelection: {
type: 'radio',
@@ -85,7 +88,11 @@
}
}
if (!row?.id) {
createMessage.warning('请选择一条密炼PS');
createMessage.warning('请选择一条编制状态的密炼PS');
return;
}
if (row.status && row.status !== COMPILE_STATUS) {
createMessage.warning('仅可选择编制状态的密炼PS');
return;
}
if (row.psType && row.psType !== PS_TYPE_RAW_INSPECT_STD) {