This commit is contained in:
2021-06-01 22:48:54 +00:00
parent 7253f9a39e
commit d8fd6d96cf

View File

@@ -391,12 +391,36 @@ export default {
].isDirty = true;
window.$gz.form.fieldValueChanged(this.pvm, ref);
// //set viz if applicable
// if(ref==""){
// let selectedPartWarehouse = vm.$refs.partWarehouseId.getFullSelectionValue();
// }
//Auto calculate dates / quantities / global defaults
if (ref.includes("startDate")) {
this.handleStartDateChange();
}
if (ref.includes("stopDate")) {
this.handleStopDateChange();
}
if (ref.includes("estimatedQuantity")) {
this.handleEstimatedQuantityChange();
}
}
},
handleStartDateChange: function() {
let val = this.value.items[this.activeWoItemIndex].scheduledUsers[
this.activeItemIndex
].startDate;
console.log("Start date value is now", val);
},
handleStopDateChange: function() {
let val = this.value.items[this.activeWoItemIndex].scheduledUsers[
this.activeItemIndex
].stopDate;
console.log("Stop date value is now", val);
},
handleEstimatedQuantityChange: function() {
let val = this.value.items[this.activeWoItemIndex].scheduledUsers[
this.activeItemIndex
].estimatedQuantity;
console.log("Estimated Quantity is now", val);
},
itemRowClasses: function(item) {
let ret = "";
const isDeleted =