|
@@ -204,18 +204,18 @@
|
|
|
fileFlow.type = data.type;
|
|
|
fileFlow.cameraType = data.cameraType;
|
|
|
if (data.status == 20) {
|
|
|
- let res = await checkRegisterInfo({repairId:data.repairId})
|
|
|
- console.log('repairId',res)
|
|
|
- let index = n.value
|
|
|
- res.partList.map((ele,b) => {
|
|
|
- backfill[`partId${index+b}`] = ele.partId
|
|
|
- backfill[`partCount${index+b}`] = ele.partCount
|
|
|
- add()
|
|
|
- })
|
|
|
- backfill.faultIds = res.faultIds
|
|
|
- backfill.defineDamage = res.defineDamage
|
|
|
- backfill.checkResult = res.checkResult
|
|
|
- backfill.checkImg = res.checkImg
|
|
|
+ let res = await checkRegisterInfo({ repairId: data.repairId });
|
|
|
+ console.log('repairId', res);
|
|
|
+ let index = n.value;
|
|
|
+ res.partList.map((ele, b) => {
|
|
|
+ backfill[`partId${index + b}`] = ele.partId;
|
|
|
+ backfill[`partCount${index + b}`] = ele.partCount;
|
|
|
+ add();
|
|
|
+ });
|
|
|
+ backfill.faultIds = res.faultIds;
|
|
|
+ backfill.defineDamage = res.defineDamage;
|
|
|
+ backfill.checkResult = res.checkResult;
|
|
|
+ backfill.checkImg = res.checkImg;
|
|
|
}
|
|
|
updateSchema([
|
|
|
{
|
|
@@ -232,9 +232,7 @@
|
|
|
setFieldsValue({
|
|
|
...data,
|
|
|
...backfill,
|
|
|
- warrantyExpirationDateText: `${data.warrantyDate} (${
|
|
|
- data.warrantyType == 0 ? '保内维修' : data.warrantyType == 1 ? '保内转保外' : '保外维修'
|
|
|
- })`,
|
|
|
+ warrantyExpirationDateText: data.warrantyDate + '(' + t(`routes.spares.warrantyType.${data.warrantyType}`) + ')',
|
|
|
deviceInfo: t(`routes.scene.tableType.${data.cameraType}`) + data.cameraSnCode,
|
|
|
});
|
|
|
}
|