|
@@ -183,6 +183,13 @@ export const formSchema: FormSchema[] = [
|
|
|
required: true,
|
|
|
colProps: { span: 12 },
|
|
|
},
|
|
|
+ {
|
|
|
+ label: '版次',
|
|
|
+ field: 'version',
|
|
|
+ component: 'Input',
|
|
|
+ required: true,
|
|
|
+ colProps: { span: 12 },
|
|
|
+ },
|
|
|
{
|
|
|
label: '作者(主编)',
|
|
|
field: 'editorInChief',
|
|
@@ -254,6 +261,7 @@ export const formSchema: FormSchema[] = [
|
|
|
defaultValue: 0,
|
|
|
required: true,
|
|
|
colProps: { span: 12 },
|
|
|
+ dynamicDisabled: true,
|
|
|
componentProps: ({ formModel }) => {
|
|
|
return {
|
|
|
min: 0,
|
|
@@ -283,13 +291,14 @@ export const formSchema: FormSchema[] = [
|
|
|
if (e > 10) {
|
|
|
e = 10;
|
|
|
}
|
|
|
- if (formModel.price && formModel.subtotal) {
|
|
|
- formModel.subtotal = (formModel.price * e).toFixed(2);
|
|
|
- }
|
|
|
+ formModel.subtotal = (((formModel.price || 0) * e) / 10).toFixed(2);
|
|
|
+ // if (formModel.price && formModel.subtotal) {
|
|
|
+ // formModel.subtotal = (formModel.price * e).toFixed(2);
|
|
|
+ // }
|
|
|
},
|
|
|
};
|
|
|
},
|
|
|
- dynamicDisabled: true,
|
|
|
+ // dynamicDisabled: true,
|
|
|
colProps: { span: 12 },
|
|
|
},
|
|
|
{
|