|
|
|
@ -142,6 +142,7 @@ export default class ProductionQtyInsplist extends BasePage {
|
|
|
|
|
console.log(bool);
|
|
|
|
|
if (!bool) {
|
|
|
|
|
this.rowdata.spareQuantity = this.number1;
|
|
|
|
|
this.rowdata.totalPrice = this.number1 * parseInt(this.rowdata.unitPrice);
|
|
|
|
|
this.model.rowdata.push(this.rowdata);
|
|
|
|
|
// uni.navigateTo({
|
|
|
|
|
// url: `/pages/equipment/Repair/repairing?listitem=` + encodeURIComponent(JSON.stringify(this.detailsinfo)),
|
|
|
|
@ -164,6 +165,7 @@ export default class ProductionQtyInsplist extends BasePage {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
item.spareQuantity = parseInt(item.spareQuantity) + parseInt(this.number1);
|
|
|
|
|
item.totalPrice = item.spareQuantity * parseInt(item.unitPrice);
|
|
|
|
|
// console.log(this.detailsinfo)
|
|
|
|
|
// uni.navigateTo({
|
|
|
|
|
// url: `/pages/equipment/Repair/repairing?listitem=` + encodeURIComponent(JSON.stringify(this.detailsinfo)),
|
|
|
|
@ -181,6 +183,7 @@ export default class ProductionQtyInsplist extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.rowdata.spareQuantity = this.number1;
|
|
|
|
|
this.rowdata.totalPrice = this.number1 * parseInt(this.rowdata.unitPrice);
|
|
|
|
|
this.model.rowdata.push(this.rowdata);
|
|
|
|
|
// uni.navigateTo({
|
|
|
|
|
// url: `/pages/equipment/Repair/repairing?listitem=` + encodeURIComponent(JSON.stringify(this.detailsinfo)),
|
|
|
|
|