From 8682c7c8b5c6e0b11734526950f1a7bf555dc622 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 21 Jun 2021 17:29:18 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 3 + ayanova/src/components/sign.vue | 4 +- ayanova/src/components/work-order-header.vue | 35 ++++- .../src/components/work-order-signature.vue | 126 ++++++++++++++++++ ayanova/src/views/svc-workorder.vue | 4 +- 5 files changed, 166 insertions(+), 6 deletions(-) create mode 100644 ayanova/src/components/work-order-signature.vue diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 8a9bd327..42e54cfb 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -391,6 +391,9 @@ todo 3: signature: report helper display signature and form ui control to captur case 3682 implies code to steal to make signatures better so look into that case 2052 is this one case 3673 also directly related + v7 import - must put in block at least if not code immediately to import v7 sigs into svg format for display + also, depending on ease, it might make sense to have v8 server check type of image i.e. does it start with svg or not and + then auto convert if necessary. 3720 3: BUMPABLE CASE I THINK prevent double booking a tech (some kind of warning) availability feature??? maybe bump as a new availablity feature where user picks from a popup schedule for that tech? diff --git a/ayanova/src/components/sign.vue b/ayanova/src/components/sign.vue index 440969c3..949cd8b3 100644 --- a/ayanova/src/components/sign.vue +++ b/ayanova/src/components/sign.vue @@ -8,7 +8,7 @@ :disabled="!enabled" :default-url="dataUrl" > - + @@ -70,7 +70,7 @@ export default { return { option: { penColor: "rgb(0, 0, 0)", - backgroundColor: "rgb(255,255,255)" + backgroundColor: "rgb(245,245,245)" }, dataUrl: null, //"https://avatars2.githubusercontent.com/u/17644818?s=460&v=4" diff --git a/ayanova/src/components/work-order-header.vue b/ayanova/src/components/work-order-header.vue index 8324c607..75d34907 100644 --- a/ayanova/src/components/work-order-header.vue +++ b/ayanova/src/components/work-order-header.vue @@ -64,6 +64,35 @@ /> + + + + + + + + +
+
+ {{ + $ay.t("CustomerSignature") + }} + {{ $ay.t("TechSignature") }} +
+ + + + + + + + {{ $ay.t("Signaturehere") }} + + + + + + + + + {{ + $ay.t("Clear") + }} + + {{ + $ay.t("Cancel") + }} + {{ $ay.t("OK") }} + + + + +
+ + diff --git a/ayanova/src/views/svc-workorder.vue b/ayanova/src/views/svc-workorder.vue index 3e8a245e..1f6fb720 100644 --- a/ayanova/src/views/svc-workorder.vue +++ b/ayanova/src/views/svc-workorder.vue @@ -2078,7 +2078,9 @@ async function fetchTranslatedText(vm) { "WorkOrderItemUnit", "WorkOrderItemTask", "WorkOrderItemLoan", - "WorkOrderItemOutsideService" + "WorkOrderItemOutsideService", + "CustomerSignature", + "TechSignature" ]); }