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