This commit is contained in:
@@ -128,10 +128,9 @@
|
|||||||
"
|
"
|
||||||
@update:name="unitChange"
|
@update:name="unitChange"
|
||||||
></gz-pick-list>
|
></gz-pick-list>
|
||||||
canopenmeter
|
|
||||||
{{ canOpenMeter() }}
|
<template v-if="canOpenMeter()">
|
||||||
<template v-slot:append v-if="canOpenMeter()">
|
<v-btn outlined color="primary" @click="openMeter">
|
||||||
<v-btn outlined small color="primary" @click="openMeter">
|
|
||||||
<v-icon>$ayiWeight</v-icon></v-btn
|
<v-icon>$ayiWeight</v-icon></v-btn
|
||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ const FORM_KEY = "meter-reading-list";
|
|||||||
export default {
|
export default {
|
||||||
created() {
|
created() {
|
||||||
this.unitId = parseInt(this.$route.params.unitid);
|
this.unitId = parseInt(this.$route.params.unitid);
|
||||||
|
this.workOrderItemUnitId = parseInt(this.$route.params.workorderitemunitid);
|
||||||
//REQUIRED NON-OPTIONAL FILTER
|
//REQUIRED NON-OPTIONAL FILTER
|
||||||
this.clientCriteria = this.unitId.toString();
|
this.clientCriteria = this.unitId.toString();
|
||||||
this.preFilterMode = {
|
this.preFilterMode = {
|
||||||
@@ -45,6 +46,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
unitId: undefined,
|
unitId: undefined,
|
||||||
|
workOrderItemUnitId: undefined,
|
||||||
// unitname: undefined,
|
// unitname: undefined,
|
||||||
clientCriteria: undefined,
|
clientCriteria: undefined,
|
||||||
preFilterMode: null,
|
preFilterMode: null,
|
||||||
@@ -75,7 +77,8 @@ async function clickHandler(menuItem) {
|
|||||||
name: "meter-reading",
|
name: "meter-reading",
|
||||||
params: {
|
params: {
|
||||||
recordid: 0,
|
recordid: 0,
|
||||||
unitid: m.vm.unitId
|
unitid: m.vm.unitId,
|
||||||
|
workorderitemunitid: m.vm.workOrderItemUnitId
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user