This commit is contained in:
43
ayanova/src/components/tax-picker.vue
Normal file
43
ayanova/src/components/tax-picker.vue
Normal 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>
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user