This commit is contained in:
2021-08-23 20:22:57 +00:00
parent 028caf66a7
commit 4f46e641a6

View File

@@ -128,6 +128,8 @@
"
@update:name="unitChange"
></gz-pick-list>
canopenmeter
{{ canOpenMeter() }}
<template v-slot:append v-if="canOpenMeter()">
<v-btn outlined small color="primary" @click="openMeter">
<v-icon>$ayiWeight</v-icon></v-btn
@@ -360,8 +362,7 @@ export default {
availableBulkUnits: [],
selectedBulkUnits: [],
selectedBulkUnitTags: [],
bulkUnitTableHeaders: [],
isMetered: false
bulkUnitTableHeaders: []
};
},
props: {
@@ -413,7 +414,8 @@ export default {
methods: {
canOpenMeter: function() {
return (
this.isMetered == true &&
this.value.items[this.activeWoItemIndex].units[this.activeItemIndex]
.unitMeteredViz == true &&
this.value.items[this.activeWoItemIndex].units[this.activeItemIndex]
.id != 0
);
@@ -434,14 +436,6 @@ export default {
].unitViz
}
});
// this.$router.push({
// name: "meter-readings",
// params: {
// aType: window.$gz.type.Unit,
// objectId: this.$route.params.recordid
// }
// });
}
},
async handleUnitChange() {
@@ -459,7 +453,9 @@ export default {
);
} else {
//METER READING
this.isMetered = res.data.isMetered;
this.value.items[this.activeWoItemIndex].units[
this.activeItemIndex
].unitMeteredViz = res.data.isMetered;
//CONTRACT
if (res.data.contract.id != 0) {