|
|
@ -152,12 +152,12 @@ const UserModal = (props) => { |
|
|
|
if (Object.values(values).length > 0) { |
|
|
|
if (rewkeys === 'transportation') { |
|
|
|
|
|
|
|
if (typecard == '111') { |
|
|
|
if (typecard == 'compile') { |
|
|
|
setDelet(values) |
|
|
|
const query = { ...values, level: whichofits, roadId: records?.[0]?.value || '' } |
|
|
|
dispatch(putRoadway(query)).then((res) => { |
|
|
|
return true |
|
|
|
}) |
|
|
|
return true |
|
|
|
} else { |
|
|
|
setDelet(values) |
|
|
|
const query = { ...values, level: whichofits } |
|
|
@ -169,7 +169,7 @@ const UserModal = (props) => { |
|
|
|
|
|
|
|
} |
|
|
|
if (rewkeys === 'bridge') { |
|
|
|
if (typecard == '111') { |
|
|
|
if (typecard == 'compile') { |
|
|
|
setDelet(values) |
|
|
|
const query = { ...values, bridgeId: records?.[0]?.value || '' } |
|
|
|
dispatch(putBridge(query)).then((res) => { |
|
|
@ -186,7 +186,7 @@ const UserModal = (props) => { |
|
|
|
} |
|
|
|
} |
|
|
|
if (rewkeys === 'weihuo') { |
|
|
|
if (typecard == '111') { |
|
|
|
if (typecard == 'compile') { |
|
|
|
|
|
|
|
setDelet(values) |
|
|
|
const query = { ...values, vehicleId: records?.[0]?.value || '', type: '危货' } |
|
|
@ -205,7 +205,7 @@ const UserModal = (props) => { |
|
|
|
} |
|
|
|
} |
|
|
|
if (rewkeys === 'chuzu') { |
|
|
|
if (typecard == '111') { |
|
|
|
if (typecard == 'compile') { |
|
|
|
|
|
|
|
setDelet(values) |
|
|
|
const query = { ...values, vehicleId: records?.[0]?.value || '', type: '出租车' } |
|
|
@ -224,7 +224,7 @@ const UserModal = (props) => { |
|
|
|
} |
|
|
|
} |
|
|
|
if (rewkeys === 'yehu') { |
|
|
|
if (typecard == '111') { |
|
|
|
if (typecard == 'compile') { |
|
|
|
setDelet(values) |
|
|
|
const query = { ...values, businessId: records?.[0]?.value, type: values.type } |
|
|
|
dispatch(putHouseholds(query)).then((res) => { |
|
|
@ -240,7 +240,7 @@ const UserModal = (props) => { |
|
|
|
return true |
|
|
|
} |
|
|
|
} if (rewkeys === 'xianlu') { |
|
|
|
if (typecard == '111') { |
|
|
|
if (typecard == 'compile') { |
|
|
|
setDelet(values) |
|
|
|
const query = { ...values, lineId: records?.[0]?.value || '' } |
|
|
|
dispatch(putCircuit(query)).then((res) => { |
|
|
@ -257,7 +257,7 @@ const UserModal = (props) => { |
|
|
|
} |
|
|
|
} |
|
|
|
if (rewkeys === 'cheliang') { |
|
|
|
if (typecard == '111') { |
|
|
|
if (typecard == 'compile') { |
|
|
|
setDelet(values) |
|
|
|
const query = { ...values, carId: records?.[0]?.value || '' } |
|
|
|
dispatch(putVehicle(query)).then((res) => { |
|
|
@ -274,7 +274,7 @@ const UserModal = (props) => { |
|
|
|
} |
|
|
|
} |
|
|
|
if (rewkeys === 'zhichao') { |
|
|
|
if (typecard == '111') { |
|
|
|
if (typecard == 'compile') { |
|
|
|
setDelet(values) |
|
|
|
const query = { ...values, overspeedId: records?.[0]?.value || '' } |
|
|
|
dispatch(putPurchase(query)).then((res) => { |
|
|
@ -297,7 +297,7 @@ const UserModal = (props) => { |
|
|
|
}} |
|
|
|
initialValues={recortd} |
|
|
|
> |
|
|
|
{typecard == '111' ? |
|
|
|
{typecard == 'compile' ? |
|
|
|
<ProForm.Group |
|
|
|
> |
|
|
|
<ProFormText |
|
|
|