|
|
@@ -329,10 +329,12 @@ const trimParam = () => {
|
|
329
|
329
|
...form.value
|
|
330
|
330
|
};
|
|
331
|
331
|
data.warehouseType = data.warehouseType ? JSON.stringify(data.warehouseType) : "[]";
|
|
332
|
|
- data.deptProvince = data.deptMergeAddress[0];
|
|
333
|
|
- data.deptCity = data.deptMergeAddress[1];
|
|
334
|
|
- data.deptArea = data.deptMergeAddress[2];
|
|
335
|
|
- data.deptMergeAddress = JSON.stringify(data.deptMergeAddress);
|
|
|
332
|
+ if (data.deptMergeAddress?.length > 0) {
|
|
|
333
|
+ data.deptProvince = data.deptMergeAddress[0];
|
|
|
334
|
+ data.deptCity = data.deptMergeAddress[1];
|
|
|
335
|
+ data.deptArea = data.deptMergeAddress[2];
|
|
|
336
|
+ data.deptMergeAddress = JSON.stringify(data.deptMergeAddress);
|
|
|
337
|
+ }
|
|
336
|
338
|
data.fileList = JSON.stringify(data.fileList);
|
|
337
|
339
|
return data;
|
|
338
|
340
|
};
|