Merge branch 'main' of http://27.223.88.102:33000/chenx/qhmes
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user