This commit is contained in:
@@ -161,6 +161,7 @@
|
|||||||
${activeItemIndex}
|
${activeItemIndex}
|
||||||
].status`)
|
].status`)
|
||||||
"
|
"
|
||||||
|
@change="statusChange"
|
||||||
></v-select>
|
></v-select>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
@@ -314,10 +315,23 @@ export default {
|
|||||||
this.activeItemIndex
|
this.activeItemIndex
|
||||||
].completedByUserViz = newName;
|
].completedByUserViz = newName;
|
||||||
},
|
},
|
||||||
statusChange(newName) {
|
statusChange(newStatusId) {
|
||||||
this.value.items[this.activeWoItemIndex].tasks[
|
this.value.items[this.activeWoItemIndex].tasks[
|
||||||
this.activeItemIndex
|
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() {
|
newItem() {
|
||||||
let newIndex = this.value.items[this.activeWoItemIndex].tasks.length;
|
let newIndex = this.value.items[this.activeWoItemIndex].tasks.length;
|
||||||
|
|||||||
Reference in New Issue
Block a user