|
@@ -209,7 +209,7 @@ $(document).ready(() => {
|
|
|
const choose = price.rela_cid.split(',');
|
|
|
for (const c of this.change) {
|
|
|
c.rela = choose.indexOf(c.cid + '') >= 0;
|
|
|
- c.valid = c.rela;
|
|
|
+ c.valid = !!c.rela;
|
|
|
}
|
|
|
} else {
|
|
|
const invalid = [];
|
|
@@ -225,14 +225,17 @@ $(document).ready(() => {
|
|
|
const exist = c.bills.find(x => {
|
|
|
return x.code === price.b_code && x.name === price.name && x.unit === price.unit && x.unit_price === price.org_price;
|
|
|
});
|
|
|
- c.valid = exist;
|
|
|
+ c.valid = !!exist;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
this.relaChange.length = 0;
|
|
|
|
|
|
for (const c of this.change) {
|
|
|
- if (c.valid) this.relaChange.push(c);
|
|
|
+ if (c.valid){
|
|
|
+ this.relaChange.push(c);
|
|
|
+ c.visible = true;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
refreshRela(price) {
|
|
@@ -957,6 +960,7 @@ $(document).ready(() => {
|
|
|
this.invalid.push(...cid);
|
|
|
}
|
|
|
for (const c of this.change) {
|
|
|
+ c.visible = true;
|
|
|
c.check = this.choose.indexOf(c.cid + '') >= 0;
|
|
|
c.invalid = this.invalid.indexOf(c.cid + '') >= 0;
|
|
|
if (!c.check && !c.invalid) {
|