|
@@ -80,7 +80,7 @@
|
|
},
|
|
},
|
|
],
|
|
],
|
|
colProps: {
|
|
colProps: {
|
|
- span: 16,
|
|
|
|
|
|
+ span: 19,
|
|
},
|
|
},
|
|
},{
|
|
},{
|
|
field: 'incrementTypeId',
|
|
field: 'incrementTypeId',
|
|
@@ -89,6 +89,7 @@
|
|
required: true,
|
|
required: true,
|
|
componentProps: {
|
|
componentProps: {
|
|
maxLength: 50,
|
|
maxLength: 50,
|
|
|
|
+ style:'width:200px',
|
|
api: async function () {
|
|
api: async function () {
|
|
const list = await dincrementList();
|
|
const list = await dincrementList();
|
|
return list.map(ele => {
|
|
return list.map(ele => {
|
|
@@ -104,6 +105,9 @@
|
|
},
|
|
},
|
|
onChange:(value)=>{
|
|
onChange:(value)=>{
|
|
updateSchema([{
|
|
updateSchema([{
|
|
|
|
+ field: 'incrementTypeId',
|
|
|
|
+ suffix:`${t('routes.equity.syks')} ${value == 3?agent.value.highSubNum:agent.value.majorSubNum} ${value == 3?t('routes.equity.unit.-2'):t('routes.equity.unit.-1')}`,
|
|
|
|
+ },{
|
|
field: 'count',
|
|
field: 'count',
|
|
componentProps: {
|
|
componentProps: {
|
|
max:value == 3?agent.value.highSubNum:agent.value.majorSubNum,
|
|
max:value == 3?agent.value.highSubNum:agent.value.majorSubNum,
|
|
@@ -111,7 +115,6 @@
|
|
},
|
|
},
|
|
},{
|
|
},{
|
|
field: 'totalTime',
|
|
field: 'totalTime',
|
|
- suffix:`${t('routes.equity.syks')} ${value == 3?agent.value.highSubNum:agent.value.majorSubNum} ${value == 3?t('routes.equity.unit.-2'):t('routes.equity.unit.-1')}`,
|
|
|
|
componentProps: {
|
|
componentProps: {
|
|
options: timeOption(value)
|
|
options: timeOption(value)
|
|
},
|
|
},
|
|
@@ -123,7 +126,7 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
colProps: {
|
|
colProps: {
|
|
- span: 16,
|
|
|
|
|
|
+ span: 21,
|
|
},
|
|
},
|
|
},{
|
|
},{
|
|
field: 'count',
|
|
field: 'count',
|
|
@@ -138,36 +141,43 @@
|
|
componentProps: {
|
|
componentProps: {
|
|
max:agent.value.majorSubNum,
|
|
max:agent.value.majorSubNum,
|
|
min:1,
|
|
min:1,
|
|
- // onChange:(value)=>{
|
|
|
|
- // setFieldsValue({
|
|
|
|
- // incrementEndTime:dayjs(fileFlow.incrementEndTime || new Date()).add(value,fileFlow.validTimeType == 0?'year':'month').format('YYYY-MM-DD')
|
|
|
|
- // });
|
|
|
|
- // }
|
|
|
|
|
|
+ onChange:(value)=>{
|
|
|
|
+ let { incrementTypeId, totalTime } = getFieldsValue()
|
|
|
|
+ console.log('totalTime',totalTime)
|
|
|
|
+ updateSchema([{
|
|
|
|
+ field: 'totalTime',
|
|
|
|
+ suffix:totalTime?`${t('routes.equity.jjxs')} ${value * totalTime} ${t('routes.equity.unit.1')}`:'',
|
|
|
|
+ }]);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
colProps: {
|
|
colProps: {
|
|
- span: 19,
|
|
|
|
|
|
+ span: 24,
|
|
},
|
|
},
|
|
},{
|
|
},{
|
|
field: 'totalTime',
|
|
field: 'totalTime',
|
|
component: 'Select',
|
|
component: 'Select',
|
|
label: t('routes.equity.totalTime'),
|
|
label: t('routes.equity.totalTime'),
|
|
required: true,
|
|
required: true,
|
|
- // suffix:`${t('routes.equity.syks')} ${agent.value.majorSubNum} ${t('routes.equity.unit.1')}`,
|
|
|
|
itemProps: {
|
|
itemProps: {
|
|
validateTrigger: 'onBlur',
|
|
validateTrigger: 'onBlur',
|
|
},
|
|
},
|
|
componentProps: {
|
|
componentProps: {
|
|
options:[],
|
|
options:[],
|
|
listHeight:150,
|
|
listHeight:150,
|
|
|
|
+ style:'width:200px',
|
|
onChange:(value)=>{
|
|
onChange:(value)=>{
|
|
- let { incrementTypeId } = getFieldsValue()
|
|
|
|
|
|
+ let { incrementTypeId ,count = 1 } = getFieldsValue()
|
|
|
|
+ updateSchema([{
|
|
|
|
+ field: 'totalTime',
|
|
|
|
+ suffix:`${t('routes.equity.jjxs')} ${value * count} ${t('routes.equity.unit.1')}`,
|
|
|
|
+ }]);
|
|
setFieldsValue({
|
|
setFieldsValue({
|
|
incrementEndTime:dayjs(fileFlow.incrementEndTime || new Date()).add(value,incrementTypeId != 3?'year':'month').format('YYYY-MM-DD')
|
|
incrementEndTime:dayjs(fileFlow.incrementEndTime || new Date()).add(value,incrementTypeId != 3?'year':'month').format('YYYY-MM-DD')
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
colProps: {
|
|
colProps: {
|
|
- span: 19,
|
|
|
|
|
|
+ span: 21,
|
|
},
|
|
},
|
|
},{
|
|
},{
|
|
field: 'incrementEndTime',
|
|
field: 'incrementEndTime',
|
|
@@ -213,7 +223,7 @@
|
|
{field: 'shipNum',ifShow:fileFlow.type == 3,},
|
|
{field: 'shipNum',ifShow:fileFlow.type == 3,},
|
|
{field: 'email',ifShow:fileFlow.type == 2,},
|
|
{field: 'email',ifShow:fileFlow.type == 2,},
|
|
{field: 'file',ifShow:fileFlow.type == 2,},
|
|
{field: 'file',ifShow:fileFlow.type == 2,},
|
|
- {field: 'totalTime',suffix:`${t('routes.equity.syks')} ${agent.value.majorSubNum} ${t('routes.equity.unit.1')}`,},
|
|
|
|
|
|
+ {field: 'totalTime' },
|
|
{field: 'count',componentProps:{
|
|
{field: 'count',componentProps:{
|
|
max:agent.value.majorSubNum,
|
|
max:agent.value.majorSubNum,
|
|
min:1,
|
|
min:1,
|