This commit is contained in:
@@ -423,9 +423,6 @@ todo: many biz objects are not using new PUT methodology
|
||||
CURRENTLY DOING:
|
||||
|
||||
|
||||
todo: how to directly open a workorder quickly when you know the wo number??
|
||||
should be supported, otherwise you need to scroll around a list to find it which is fucked
|
||||
|
||||
todo: picking from part assembly to populate a bunch of parts??
|
||||
|
||||
todo: picking from existing serial numbers for parts on workorder??
|
||||
@@ -1295,6 +1292,8 @@ Build 111
|
||||
- WorkOrder main table lists for all workorder descendants implemented
|
||||
i.e. Workorder list menu now has an "Items" item which takes to workorderitems list which in turn now has a menu item for each child of woitem etc
|
||||
|
||||
- Direct open work order by manually entering serial number surfaced in work order list form in menu "Open" item
|
||||
|
||||
- Global settings Customer signature widget title, header, footer text fields added and implemented
|
||||
|
||||
- Signatures on work order implemented
|
||||
|
||||
@@ -21,6 +21,12 @@
|
||||
</v-list-item-icon>
|
||||
<v-list-item-title>{{ $ay.t("New") }}</v-list-item-title>
|
||||
</v-list-item>
|
||||
<v-list-item v-if="canAdd" @click="partAssemblyDialog = true">
|
||||
<v-list-item-icon>
|
||||
<v-icon>$ayiObjectGroup</v-icon>
|
||||
</v-list-item-icon>
|
||||
<v-list-item-title>{{ $ay.t("PartAssembly") }}</v-list-item-title>
|
||||
</v-list-item>
|
||||
<v-list-item v-if="canDelete && isDeleted" @click="unDeleteItem">
|
||||
<v-list-item-icon>
|
||||
<v-icon>$ayiTrashRestoreAlt</v-icon>
|
||||
@@ -350,6 +356,42 @@
|
||||
</v-col>
|
||||
</template>
|
||||
</v-row>
|
||||
<!-- ################################################################################-->
|
||||
<!-- ########################## ASSEMBLY SELECTOR FORM ###############################-->
|
||||
<!-- ################################################################################-->
|
||||
<template>
|
||||
<v-row justify="center">
|
||||
<v-dialog max-width="600px" v-model="partAssemblyDialog">
|
||||
<v-card>
|
||||
<v-card-title> </v-card-title>
|
||||
<v-card-text>
|
||||
<gz-pick-list
|
||||
:aya-type="$ay.ayt().PartAssembly"
|
||||
:show-edit-icon="true"
|
||||
v-model="selectedPartAssembly"
|
||||
:label="$ay.t('PartAssemblyList')"
|
||||
ref="selectedPartAssembly"
|
||||
data-cy="selectedPartAssembly"
|
||||
></gz-pick-list>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-btn text @click="partAssemblyDialog = false" color="primary">{{
|
||||
$ay.t("Cancel")
|
||||
}}</v-btn>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn
|
||||
:disabled="selectedPartAssembly == null"
|
||||
color="primary"
|
||||
text
|
||||
@click="addPartAssembly()"
|
||||
class="ml-4"
|
||||
>{{ $ay.t("Add") }}</v-btn
|
||||
>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
</v-row>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@@ -364,7 +406,9 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
activeItemIndex: null,
|
||||
selectedRow: []
|
||||
selectedRow: [],
|
||||
partAssemblyDialog: false,
|
||||
selectedPartAssembly: null
|
||||
};
|
||||
},
|
||||
props: {
|
||||
@@ -410,6 +454,38 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async addPartAssembly() {
|
||||
let res = await window.$gz.api.get(
|
||||
`task-group/${this.selectedTaskGroup}`
|
||||
);
|
||||
if (res.data && res.data.items) {
|
||||
let newIndex = this.value.items[this.activeWoItemIndex].parts.length;
|
||||
|
||||
res.data.items.forEach(z => {
|
||||
newIndex++;
|
||||
|
||||
this.value.items[this.activeWoItemIndex].parts.push({
|
||||
id: 0,
|
||||
concurrency: 0,
|
||||
sequence: newIndex,
|
||||
task: z.task,
|
||||
status: 1, //incomplete==1
|
||||
statusViz: incompleteViz,
|
||||
completedByUserId: null,
|
||||
completedDate: null,
|
||||
isDirty: true,
|
||||
workOrderItemId: this.value.items[this.activeWoItemIndex].id,
|
||||
uid: Date.now(),
|
||||
completedByUserViz: null
|
||||
});
|
||||
});
|
||||
this.$emit("change");
|
||||
this.selectedRow = [{ index: newIndex }];
|
||||
this.activeItemIndex = newIndex;
|
||||
}
|
||||
|
||||
this.taskGroupDialog = false;
|
||||
},
|
||||
doRequest() {
|
||||
const requestQuantity = this.value.items[this.activeWoItemIndex].parts[
|
||||
this.activeItemIndex
|
||||
|
||||
@@ -2134,7 +2134,9 @@ async function fetchTranslatedText(vm) {
|
||||
"WorkOrderItemOutsideService",
|
||||
"CustomerSignature",
|
||||
"TechSignature",
|
||||
"Name"
|
||||
"Name",
|
||||
"PartAssemblyList",
|
||||
"PartAssembly"
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user