This commit is contained in:
2021-05-20 17:49:46 +00:00
parent 1ce5449e51
commit 800c0ec50c
3 changed files with 72 additions and 46 deletions

View File

@@ -0,0 +1,43 @@
<template>
<div>
barebones template
</div>
</template>
<script>
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* XXXeslint-disable */
////////////////////////////////////////////////////////////////////////////////////////////////////////////
export default {
data() {
return {};
},
props: {
value: {
default: null,
type: Object
},
pvm: {
default: null,
type: Object
},
formKey: { type: String, default: "" }, //used to grab template from store
readonly: Boolean,
disabled: Boolean
},
methods: {
form() {
return window.$gz.form;
},
fieldValueChanged(ref) {
if (!this.pvm.formState.loading && !this.pvm.formState.readonly) {
window.$gz.form.fieldValueChanged(this.pvm, ref);
}
}
},
computed: {}
};
</script>

View File

@@ -850,32 +850,32 @@ export default {
this.pvm.rights.change &&
this.pvm.subRights.labors.delete
);
},
laborTaxRateSaleHint: function() {
if (this.activeItemIndex == null || this.activeWoItemIndex == null) {
return null;
}
console.log(
"laborTaxRateSaleHint",
this.value.items[this.activeWoItemIndex].labors[this.activeItemIndex]
.taxCodeSaleId
);
if (
this.value.items[this.activeWoItemIndex].labors[this.activeItemIndex]
.taxCodeSaleId == null &&
this.value.items[this.activeWoItemIndex].labors[this.activeItemIndex]
.taxName != null
) {
return (
'"' +
this.value.items[this.activeWoItemIndex].labors[this.activeItemIndex]
.taxName +
'"'
);
} else {
return null;
}
}
// , laborTaxRateSaleHint: function() {
// if (this.activeItemIndex == null || this.activeWoItemIndex == null) {
// return null;
// }
// // console.log(
// // "laborTaxRateSaleHint",
// // this.value.items[this.activeWoItemIndex].labors[this.activeItemIndex]
// // .taxCodeSaleId
// // );
// if (
// this.value.items[this.activeWoItemIndex].labors[this.activeItemIndex]
// .taxCodeSaleId == null &&
// this.value.items[this.activeWoItemIndex].labors[this.activeItemIndex]
// .taxName != null
// ) {
// return (
// '"' +
// this.value.items[this.activeWoItemIndex].labors[this.activeItemIndex]
// .taxName +
// '"'
// );
// } else {
// return null;
// }
// }
}
};
</script>