|
|
@@ -326,6 +326,15 @@ export default {
|
|
|
},
|
|
|
open(row) {
|
|
|
this.form = _.cloneDeep(row);
|
|
|
+ // 兼容后端附件字段名为 file 或 files
|
|
|
+ const adoptList = this.form?.valueJson?.blank_adopzrdd;
|
|
|
+ if (Array.isArray(adoptList)) {
|
|
|
+ adoptList.forEach((item) => {
|
|
|
+ if (item && item.file == null && item.files != null) {
|
|
|
+ item.file = item.files;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
if (this.form.id) {
|
|
|
storageApi.getInfoBySourceBizNo(this.form.id).then((res) => {
|
|
|
this.outgoingData = res;
|
|
|
@@ -487,6 +496,15 @@ export default {
|
|
|
const row = rows[i];
|
|
|
// 复用 open 的数据装配逻辑(同步部分)
|
|
|
this.form = _.cloneDeep(row);
|
|
|
+ // 兼容后端附件字段名为 file 或 files
|
|
|
+ const adoptList = this.form?.valueJson?.blank_adopzrdd;
|
|
|
+ if (Array.isArray(adoptList)) {
|
|
|
+ adoptList.forEach((item) => {
|
|
|
+ if (item && item.file == null && item.files != null) {
|
|
|
+ item.file = item.files;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
if (this.form.id) {
|
|
|
storageApi.getInfoBySourceBizNo(this.form.id).then((res) => {
|
|
|
this.outgoingData = res;
|