This commit is contained in:
xuyucheng 2022-04-22 14:26:47 +08:00
parent dd75e22eda
commit 72a1d56e6e
2 changed files with 12 additions and 11 deletions

View File

@ -122,6 +122,7 @@ export default {
},
backData(val) {
var target = [];
var data = val.map((item) => {
return Object.keys(item).map((key) => {
if (key !== "报告期") {
@ -135,16 +136,16 @@ export default {
} else {
return { [key]: item[key] };
}
})
});
data.forEach((item,index)=>{
var obj = {}
item.forEach(child=>{
obj = {...obj, ...child}
})
this.data["财务填报"][this.prop][index] = obj
})
console.log(this.data["财务填报"]);
});
data.forEach((item, index) => {
var obj = {};
item.forEach((child) => {
obj = { ...obj, ...child };
});
target[index] = obj;
});
this.data["财务填报"][this.prop] = target;
},
isSuccess(val) {

View File

@ -148,7 +148,7 @@
>确定</el-button
>
</div>
<el-button slot="reference" type="primary" @click="save">
<el-button slot="reference" type="primary">
</el-button>
</el-popover>
@ -505,11 +505,11 @@ export default {
state.push(item[keys] !== null && item[keys] !== ""? true : false);
});
});
val[key]["其他类型问卷"].forEach((item) => {
state.push(item !== null && item !== "" &&item !==undefined ? true : false);
});
});
console.log(state)
this.submitStatus = state.every((item) => {
return item;
});