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

@@ -465,10 +465,6 @@
</div>
</template>
<script>
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* XXXeslint-disable */
////////////////////////////////////////////////////////////////////////////////////////////////////////////
export default {
created() {
this.setDefaultView();
@@ -561,7 +557,7 @@ export default {
if (!partId || partId == 0) {
return;
}
let res = await window.$gz.api.get(`part/serials/${partId}`);
const res = await window.$gz.api.get(`part/serials/${partId}`);
if (res.error) {
window.$gz.eventBus.$emit(
"notify-warning",
@@ -598,7 +594,7 @@ export default {
this.$emit("change");
},
async addPartAssembly() {
let res = await window.$gz.api.get(
const res = await window.$gz.api.get(
`part-assembly/${this.selectedPartAssembly}`
);
if (res.data && res.data.items) {
@@ -713,7 +709,7 @@ export default {
].taxCodeViz = newName;
},
newItem() {
let newIndex = this.value.items[this.activeWoItemIndex].parts.length;
const newIndex = this.value.items[this.activeWoItemIndex].parts.length;
this.value.items[this.activeWoItemIndex].parts.push({
id: 0,
@@ -861,11 +857,7 @@ export default {
},
headerList: function() {
/*
If the column is a text, left-align it
If the column is a number or number + unit, (or date) right-align it (like excel)
*/
let headers = [];
const headers = [];
if (this.form().showMe(this, "WorkOrderItemPartPartID")) {
headers.push({