This commit is contained in:
@@ -234,7 +234,7 @@ TODO: 1 BETA DOCS:
|
|||||||
\_____|______|_____|______|_| \_| |_|
|
\_____|______|_____|______|_| \_| |_|
|
||||||
|
|
||||||
|
|
||||||
- 1 todo: update all front end dependencies
|
- 1 todo: signature image control in main wo form now has border and gray color, stands out, looks weird, sb hidden maybe if no sig or...?
|
||||||
|
|
||||||
|
|
||||||
- 1 bugbug?:open vendor, print report, go back it shows as savable all of a sudden despite no changes made in UI, also does not give dirty save prompt when leave it even though save icon is showing enabled bold
|
- 1 bugbug?:open vendor, print report, go back it shows as savable all of a sudden despite no changes made in UI, also does not give dirty save prompt when leave it even though save icon is showing enabled bold
|
||||||
|
|||||||
@@ -14,6 +14,8 @@
|
|||||||
<v-icon>$ayiEdit</v-icon>
|
<v-icon>$ayiEdit</v-icon>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<img
|
<img
|
||||||
|
v-if="hasSignature"
|
||||||
|
data-cy="sigImage"
|
||||||
class="grey lighten-5"
|
class="grey lighten-5"
|
||||||
width="100px"
|
width="100px"
|
||||||
height="50px"
|
height="50px"
|
||||||
@@ -59,9 +61,15 @@
|
|||||||
}}</span>
|
}}</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<v-sheet v-if="$vuetify.breakpoint.xs" width="275px" height="137px">
|
<v-sheet
|
||||||
|
v-if="$vuetify.breakpoint.xs"
|
||||||
|
data-cy="sigSheet"
|
||||||
|
width="275px"
|
||||||
|
height="137px"
|
||||||
|
>
|
||||||
<vueSignature
|
<vueSignature
|
||||||
ref="sigCtrl"
|
ref="sigCtrl"
|
||||||
|
data-cy="sigCtrl"
|
||||||
:sig-option="sigOption"
|
:sig-option="sigOption"
|
||||||
:disabled="disabled || imgUrl != null"
|
:disabled="disabled || imgUrl != null"
|
||||||
:default-url="imgUrl"
|
:default-url="imgUrl"
|
||||||
@@ -69,9 +77,10 @@
|
|||||||
:h="'137px'"
|
:h="'137px'"
|
||||||
></vueSignature>
|
></vueSignature>
|
||||||
</v-sheet>
|
</v-sheet>
|
||||||
<v-sheet v-else width="500px" height="250px">
|
<v-sheet v-else data-cy="sigSheet" width="500px" height="250px">
|
||||||
<vueSignature
|
<vueSignature
|
||||||
ref="sigCtrl"
|
ref="sigCtrl"
|
||||||
|
data-cy="sigCtrl"
|
||||||
:sig-option="sigOption"
|
:sig-option="sigOption"
|
||||||
:disabled="disabled || imgUrl != null"
|
:disabled="disabled || imgUrl != null"
|
||||||
:default-url="imgUrl"
|
:default-url="imgUrl"
|
||||||
@@ -120,6 +129,7 @@
|
|||||||
color="blue darken-1"
|
color="blue darken-1"
|
||||||
text
|
text
|
||||||
@click="save()"
|
@click="save()"
|
||||||
|
data-cy="sigOK"
|
||||||
>{{ $ay.t("OK") }}</v-btn
|
>{{ $ay.t("OK") }}</v-btn
|
||||||
>
|
>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
@@ -235,6 +245,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
hasSignature: function() {
|
||||||
|
return this.imgUrl != null;
|
||||||
|
},
|
||||||
imgUrl: function() {
|
imgUrl: function() {
|
||||||
let sig = null;
|
let sig = null;
|
||||||
if (this.variant == "customer") {
|
if (this.variant == "customer") {
|
||||||
|
|||||||
Reference in New Issue
Block a user