HUGE REFACTOR / CLEANUP

if there is a issue it's probably something in here that was changed
This commit is contained in:
2021-09-28 20:19:44 +00:00
parent 51eddfede9
commit d0afdd9855
238 changed files with 3127 additions and 8614 deletions

View File

@@ -613,10 +613,6 @@
</div>
</template>
<script>
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* XXXeslint-disable */
////////////////////////////////////////////////////////////////////////////////////////////////////////////
import GzQuoteItemUnits from "../components/quote-item-units.vue";
import GzQuoteItemScheduledUsers from "../components/quote-item-scheduled-users.vue";
import GzQuoteItemLabors from "../components/quote-item-labors.vue";
@@ -674,7 +670,7 @@ export default {
watch: {
goto(val, oldVal) {
if (val != oldVal) {
let navto = { woitemindex: null, childindex: null };
const navto = { woitemindex: null, childindex: null };
//find the item in question then trigger the nav
let keepgoing = true;
this.value.items.forEach((z, itemindex) => {
@@ -822,7 +818,7 @@ export default {
},
methods: {
newItem() {
let newIndex = this.value.items.length;
const newIndex = this.value.items.length;
this.value.items.push({
id: 0,
@@ -861,7 +857,7 @@ export default {
},
newSubItem(atype) {
//new Id value to use (by convention goto negative will trigger create and then goto instead of simple goto)
let newId = -Math.abs(Date.now());
const newId = -Math.abs(Date.now());
switch (atype) {
case window.$gz.type.WorkOrderItemOutsideService:
this.gotoOutsideServiceIndex = newId;
@@ -968,7 +964,7 @@ export default {
return this.value.items[this.activeItemIndex].deleted === true;
},
headerList: function() {
let headers = [];
const headers = [];
if (this.form().showMe(this, "WorkOrderItemSequence")) {
headers.push({