This commit is contained in:
2021-05-24 22:20:04 +00:00
parent e1bc340c50
commit 19ae95de1d

View File

@@ -161,6 +161,7 @@
${activeItemIndex}
].status`)
"
@change="statusChange"
></v-select>
</v-col>
@@ -314,10 +315,23 @@ export default {
this.activeItemIndex
].completedByUserViz = newName;
},
statusChange(newName) {
statusChange(newStatusId) {
this.value.items[this.activeWoItemIndex].tasks[
this.activeItemIndex
].statusViz = newName;
].statusViz = this.pvm.selectLists.woItemTaskCompletionTypes.find(
s => s.id == newStatusId
).name;
//completed date auto set by status change if not a todo
if (newStatusId != 1) {
this.value.items[this.activeWoItemIndex].tasks[
this.activeItemIndex
].completedDate = window.$gz.locale.nowUTC8601String();
} else {
this.value.items[this.activeWoItemIndex].tasks[
this.activeItemIndex
].completedDate = null;
}
},
newItem() {
let newIndex = this.value.items[this.activeWoItemIndex].tasks.length;