|
@@ -644,6 +644,7 @@ export default {
|
|
|
addrForm: {
|
|
|
good_ladder: [],
|
|
|
},
|
|
|
+ good_ladder: [],
|
|
|
addrRules: {
|
|
|
min_num: [
|
|
|
{
|
|
@@ -883,6 +884,10 @@ export default {
|
|
|
? JSON.parse(JSON.stringify(ladderlist))
|
|
|
: [],
|
|
|
};
|
|
|
+ this.good_ladder =
|
|
|
+ ladderlist && ladderlist.length > 0
|
|
|
+ ? JSON.parse(JSON.stringify(ladderlist))
|
|
|
+ : [];
|
|
|
// console.log(this.ruleForm.proof_url);
|
|
|
switch (this.ruleForm.proof_type) {
|
|
|
case "1":
|
|
@@ -973,6 +978,13 @@ export default {
|
|
|
delete n["index"];
|
|
|
list2.push(n);
|
|
|
});
|
|
|
+ this.good_ladder.forEach((si, sii) => {
|
|
|
+ const index = list2.findIndex((ai, aii) => si.id === ai.id);
|
|
|
+ if (index === -1) {
|
|
|
+ si.is_del = "1";
|
|
|
+ list2.push(si);
|
|
|
+ }
|
|
|
+ });
|
|
|
model.good_ladder = list2;
|
|
|
model.skuCode = this.id;
|
|
|
model.exam_remark = model.remark;
|