This commit is contained in:
@@ -391,12 +391,36 @@ export default {
|
|||||||
].isDirty = true;
|
].isDirty = true;
|
||||||
window.$gz.form.fieldValueChanged(this.pvm, ref);
|
window.$gz.form.fieldValueChanged(this.pvm, ref);
|
||||||
|
|
||||||
// //set viz if applicable
|
//Auto calculate dates / quantities / global defaults
|
||||||
// if(ref==""){
|
if (ref.includes("startDate")) {
|
||||||
// let selectedPartWarehouse = vm.$refs.partWarehouseId.getFullSelectionValue();
|
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) {
|
itemRowClasses: function(item) {
|
||||||
let ret = "";
|
let ret = "";
|
||||||
const isDeleted =
|
const isDeleted =
|
||||||
|
|||||||
Reference in New Issue
Block a user