feat: review photo or video in Revisão (front 2)
All checks were successful
Build and deploy / Validate source (push) Successful in 8s
Build and deploy / Integration suite on a real stack (push) Successful in 6m4s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Successful in 1m6s
All checks were successful
Build and deploy / Validate source (push) Successful in 8s
Build and deploy / Integration suite on a real stack (push) Successful in 6m4s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Successful in 1m6s
In Revisão the card gets "Revisar": a photo or a video of up to 30 s of the printed sheet, from the computer's or the phone's camera in the browser, or a file already recorded. It is attached to the order as DTF-<n>-revisao-<seq> with when and who, kept 180 days, and copied by the computers with the order folders to Kanban/Revisões/. A photo needs 1600 px on its longer side. An order above 1 m cannot reach Finalizado without one. In Finalizado the customer's order page shows the photo. The Revisor, Gestão and the administrators take it (capability "inspect"). Dialogs opened from a card's face or the board (Revisar, Editar tempos) now show over the page when the order panel is closed; inside the closed panel they were invisible. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -246,6 +246,18 @@ async function details(id,container,criado){
|
||||
}
|
||||
container.append(arq);
|
||||
}
|
||||
if(order.state==='fin'&&order.reviews?.length){
|
||||
const sec=node('div',null,'secao fotoPedSec');sec.append(node('h4','Foto do seu pedido'));
|
||||
for(const review of order.reviews){
|
||||
const view=await api('/customer/orders/'+id+'/reviews/'+review.id+'/view');
|
||||
const row=node('div',null,'fotoPed');
|
||||
const img=node('img');img.alt='Foto da folha impressa do pedido #'+order.number;
|
||||
img.loading='lazy';img.src=view.url;
|
||||
const link=node('a','Baixar foto','bSec');link.href=view.url;link.download=view.name;link.target='_blank';link.rel='noopener noreferrer';
|
||||
row.append(img,link);sec.append(row);
|
||||
}
|
||||
container.append(sec);
|
||||
}
|
||||
if(order.state==='cor'){
|
||||
const form=node('form',null,'secao correcaoForm');form.append(node('h4','Enviar arte corrigida'));
|
||||
const inputs=order.snapshot.items.map((item,index)=>{
|
||||
|
||||
Reference in New Issue
Block a user