case 4049

This commit is contained in:
2021-12-30 21:13:30 +00:00
parent 1f4f591a15
commit 40afd60b29
2 changed files with 11 additions and 2 deletions

View File

@@ -878,6 +878,9 @@ BUILD 8.0.0-beta.0.8 CHANGES OF NOTE
- case 4044 fixed - case 4044 fixed
- case 4045 fixed - case 4045 fixed
- case 4046 fixed - case 4046 fixed
- case 4047 fixed
- case 4048 see notes
- case 4049 fixed

View File

@@ -172,7 +172,7 @@
<v-card-title> </v-card-title> <v-card-title> </v-card-title>
<v-card-text> <v-card-text>
<v-row> <v-row>
<v-col <!-- <v-col
v-if="$store.state.userType == 4" v-if="$store.state.userType == 4"
cols="12" cols="12"
sm="6" sm="6"
@@ -190,7 +190,7 @@
variant="ho" variant="ho"
template="[{'fld':'customername'}]" template="[{'fld':'customername'}]"
></gz-pick-list> ></gz-pick-list>
</v-col> </v-col> -->
<v-col cols="12" sm="6" lg="4" xl="3"> <v-col cols="12" sm="6" lg="4" xl="3">
<v-text-field <v-text-field
v-model="unitObj.serial" v-model="unitObj.serial"
@@ -200,6 +200,7 @@
:error-messages="form().serverErrors(this, 'serial')" :error-messages="form().serverErrors(this, 'serial')"
ref="serial" ref="serial"
data-cy="serial" data-cy="serial"
@input="fieldValueChanged('serial')"
></v-text-field> ></v-text-field>
</v-col> </v-col>
<v-col cols="12" sm="6" lg="4" xl="3"> <v-col cols="12" sm="6" lg="4" xl="3">
@@ -400,10 +401,14 @@ export default {
}, },
methods: { methods: {
showAddUnitDialog: function() { showAddUnitDialog: function() {
this.unitObj.customerId = this.obj.customerId;
this.addUnitDialog = true; this.addUnitDialog = true;
}, },
async addUnit() { async addUnit() {
const vm = this; const vm = this;
if (!vm.unitObj.serial) {
return;
}
try { try {
const res = await window.$gz.api.upsert( const res = await window.$gz.api.upsert(
"unit/customerunit/", "unit/customerunit/",
@@ -416,6 +421,7 @@ export default {
if (res.data) { if (res.data) {
if (vm.obj.unitId == null) { if (vm.obj.unitId == null) {
vm.obj.unitId = res.data; vm.obj.unitId = res.data;
// this.formState.dirty = true;
} }
//SUCCESS //SUCCESS
this.addUnitDialog = false; this.addUnitDialog = false;