Commit fb7e4aba authored by XieZhiXiong's avatar XieZhiXiong

fixbug

parent 414a679b
......@@ -339,7 +339,7 @@ const ExchangeForm: React.FC<BillsFormProps> = ({
},
proofFileList: proofFileList.filter(item => item.status === 'done').map(item => ({
fileName: item.name,
filePath: item.data,
filePath: item.data.url,
})),
replaceGoodsList: replaceGoodsList.map(({
id,
......
......@@ -193,7 +193,7 @@ const RepairForm: React.FC<BillsFormProps> = ({
repairAddress: repairAddress ? JSON.stringify(repairAddress) : '',
faultFileList: faultFileList.filter(item => item.status === 'done').map(item => ({
fileName: item.name,
filePath: item.data,
filePath: item.data.url,
})),
repairGoodsList: repairGoodsList.map(({
id,
......
......@@ -112,7 +112,7 @@
&-main {
position: relative;
width: 128px;
width: 328px;
height: 38px;
padding-bottom: 8px;
......
......@@ -80,7 +80,16 @@ const QuotaApplicationInfo: React.FC<QuotaApplicationInfo> = ({
applyQuota: +applyQuota,
billDay: +billDay,
repayPeriod: +repayPeriod,
fileList: fileList.filter(item => item.status === 'done'),
fileList:
fileList
.filter(item => item.status === 'done')
.map(item => {
const { data, ...rest } = item;
return {
data: data.url,
...rest,
}
}),
...rest,
});
setModalVisible(false);
......
......@@ -274,7 +274,7 @@ class IntroduceRow extends React.Component<IntroduceRowProps, IntroduceRowState>
...repaymentValues,
payProveList: payProveList.map(item => ({
name: item.name,
proveUrl: item.data,
proveUrl: item.data.url,
})),
}).then(res => {
if (res.code === 1000) {
......
......@@ -142,7 +142,10 @@ const QuotaMenage: React.FC = () => {
record.quota === 0 &&
record.status === CREDIT_STATUS_NOT_APPLIED
) ||
!!record.isCanApply
(
!!record.isCanApply &&
record.status === CREDIT_STATUS_NORMAL
)
) && (
<Button
type="link"
......
......@@ -15,7 +15,7 @@ import { createFormActions, FormEffectHooks, FormPath } from '@formily/antd';
import { usePageStatus, PageStatus } from '@/hooks/usePageStatus';
import { PublicApi } from '@/services/api';
import { GetOrderPurchaseOrderDetailsResponse } from '@/services/OrderApi';
import { normalizeFiledata, isJSONStr } from '@/utils';
import { normalizeFiledata, FileData, isJSONStr } from '@/utils';
import AvatarWrap from '@/components/AvatarWrap';
import NiceForm from '@/components/NiceForm';
import { normalizeUnevaluatedList } from '../../utils';
......@@ -35,7 +35,7 @@ interface Unevaluated {
};
star: number;
comment: string;
picture: string[];
picture: FileData[];
smile: number;
};
......
......@@ -103,7 +103,7 @@ const EvaluateOrder: React.FC = () => {
dealCount: good.purchaseCount,
price: good.price,
totalPrice: orderInfo.sumPrice,
pics: picture.map(item => item.status === 'done' && item.data).filter(Boolean),
pics: picture.map(item => item.status === 'done' && item.data.url).filter(Boolean),
};
});
......
......@@ -15,7 +15,7 @@ import { createFormActions, FormEffectHooks, FormPath } from '@formily/antd';
import { usePageStatus, PageStatus } from '@/hooks/usePageStatus';
import { PublicApi } from '@/services/api';
import { GetOrderPurchaseOrderDetailsResponse } from '@/services/OrderApi';
import { normalizeFiledata, isJSONStr } from '@/utils';
import { normalizeFiledata, FileData, isJSONStr } from '@/utils';
import AvatarWrap from '@/components/AvatarWrap';
import NiceForm from '@/components/NiceForm';
import { normalizeUnevaluatedList } from '../../utils';
......@@ -35,7 +35,7 @@ interface Unevaluated {
};
star: number;
comment: string;
picture: string[];
picture: FileData[];
smile: number;
};
......
......@@ -103,7 +103,7 @@ const EvaluateOrder: React.FC = () => {
dealCount: good.purchaseCount,
price: good.price,
totalPrice: orderInfo.sumPrice,
pics: picture.map(item => item.status === 'done' && item.data).filter(Boolean),
pics: picture.map(item => item.status === 'done' && item.data.url).filter(Boolean),
};
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment