0
1
Fork 0
hedera-web-mindshore/forms/ecomerce/ticket/ui.xml

132 lines
3.4 KiB
XML
Raw Normal View History

2015-03-06 23:33:54 +00:00
<vn>
2022-05-30 01:30:33 +00:00
<vn-lot-query id="params">
<vn-spec name="ticket" type="Number"/>
</vn-lot-query>
2022-06-18 21:04:34 +00:00
<db-lot id="ticket-form" lot="params" v-model="ticket">
2022-05-30 01:30:33 +00:00
CALL myTicket_get(#ticket)
</db-lot>
<div id="title">
<h1><t>OrderDetail</t></h1>
</div>
<div id="actions" class="action-bar">
2016-09-19 06:40:18 +00:00
<htk-bar-button
icon="print"
2015-11-19 13:57:23 +00:00
tip="_Print delivery note"
2022-05-30 01:30:33 +00:00
on-click="this.onPrintClick()"/>
</div>
2015-03-06 23:33:54 +00:00
<div id="form" class="ticket">
2022-05-26 06:08:31 +00:00
<div class="box vn-w-sm vn-pa-lg">
2022-06-18 21:04:34 +00:00
<htk-loader class="head" form="ticket-form">
<h5>#{{ticket.id}}</h5>
<div>
2022-05-26 06:08:31 +00:00
<h6><t>ShippingInformation</t></h6>
2015-12-10 13:48:43 +00:00
<p>
2022-06-18 21:04:34 +00:00
<t>Preparation</t> {{Vn.Value.format(ticket.shipped, '%D')}}
</p>
<p>
2022-06-18 21:04:34 +00:00
<t>Delivery</t> {{Vn.Value.format(ticket.landed, '%D')}}
2015-12-10 13:48:43 +00:00
</p>
<p>
2022-06-18 21:04:34 +00:00
{{_(ticket.method != 'PICKUP' ? 'Agency' : 'Warehouse')}} {{ticket.agency}}
</p>
2018-02-06 08:57:05 +00:00
</div>
<div class="address">
2022-05-26 06:08:31 +00:00
<h6><t>DeliveryAddress</t></h6>
2022-06-18 21:04:34 +00:00
<p>{{ticket.nickname}}</p>
<p>{{ticket.street}}</p>
<p>{{ticket.postalCode}} {{ticket.city}} ({{ticket.province}})</p>
</div>
2018-02-06 08:57:05 +00:00
<div class="total">
<p class="important total">
2022-06-18 21:04:34 +00:00
<t>Total</t> {{Vn.Value.format(ticket.taxBase, '%.2d€')}}
2018-01-02 13:16:41 +00:00
</p>
<p class="important total">
2022-06-18 21:04:34 +00:00
<t>Total + tax</t> {{Vn.Value.format(ticket.total, '%.2d€')}}
</p>
</div>
2018-01-16 16:26:37 +00:00
</htk-loader>
<htk-repeater form-id="iter" renderer="repeaterFunc">
2018-01-05 12:57:35 +00:00
<db-model
property="model"
id="movements"
2022-05-30 01:30:33 +00:00
lot="params">
2019-06-28 07:24:18 +00:00
CALL myTicket_getRows(#ticket)
</db-model>
<custom>
<div class="line">
2018-01-05 12:57:35 +00:00
<htk-image
2022-06-18 21:04:34 +00:00
value="{{iter.image}}"
2019-05-27 13:38:06 +00:00
stamp-column="updated"
2018-01-05 12:57:35 +00:00
class="photo"
directory="catalog"
subdir="200x200"
full-dir="1600x900"/>
2018-03-27 15:26:17 +00:00
<div class="info">
2022-06-18 21:04:34 +00:00
<h2>{{iter.concept}}</h2>
2018-03-27 15:26:17 +00:00
<p class="tags">
2022-06-18 21:04:34 +00:00
{{iter.value5}} {{iter.value6}} {{iter.value7}}
2018-03-27 15:26:17 +00:00
</p>
<p class="subtotal">
2018-08-30 13:26:05 +00:00
<span class="discount" id="discount">
2022-06-18 21:04:34 +00:00
{{Vn.Value.format(this.discountSubtotal(iter), '%.2d€')}} -
{{Vn.Value.format(iter.discount, '%.0d%')}} =
2018-08-30 13:26:05 +00:00
</span>
2022-06-18 21:04:34 +00:00
{{Vn.Value.format(this.subtotal(iter), '%.2d€')}}
2018-03-27 15:26:17 +00:00
</p>
2022-11-15 21:26:48 +00:00
<p class="amount">
{{iter.quantity}} x {{Vn.Value.format(iter.price, '%.2d€')}}
</p>
2018-03-27 15:26:17 +00:00
</div>
</div>
</custom>
</htk-repeater>
2022-06-18 21:04:34 +00:00
<htk-repeater form-id="iter" id="services" class="packages">
<db-model
property="model"
on-status-changed="onServicesChanged"
2022-05-30 01:30:33 +00:00
lot="params">
CALL myTicket_getServices(#ticket)
</db-model>
<custom>
<div class="line">
<div class="info">
2022-06-18 21:04:34 +00:00
<h2>{{iter.description}}</h2>
<p class="amount">
2022-06-18 21:04:34 +00:00
{{iter.quantity}} x {{Vn.Value.format(iter.price, '%.2d€')}}
</p>
<p class="subtotal">
2022-06-18 21:04:34 +00:00
{{Vn.Value.format(iter.quantity * iter.price, '%.2d€')}}
</p>
</div>
<div class="clear"/>
</div>
</custom>
</htk-repeater>
2018-01-05 12:57:35 +00:00
<htk-repeater form-id="iter" id="packages" class="packages">
<db-model
property="model"
on-status-changed="onPackagesChanged"
2022-05-30 01:30:33 +00:00
lot="params">
2019-06-28 07:24:18 +00:00
CALL myTicket_getPackages(#ticket)
2018-01-05 12:57:35 +00:00
</db-model>
<custom>
<div class="line">
<htk-image
2022-06-18 21:04:34 +00:00
value="{{iter.image}}"
2018-01-05 12:57:35 +00:00
class="photo"
directory="catalog"
subdir="200x200"
full-dir="1600x900"/>
2019-06-28 07:24:18 +00:00
<div class="info">
2022-06-18 21:04:34 +00:00
<h2>{{iter.name}}</h2>
<p>#{{iter.id}}</p>
<p class="amount">{{iter.quantity}}</p>
2019-06-28 07:24:18 +00:00
</div>
2018-01-05 12:57:35 +00:00
<div class="clear"/>
</div>
</custom>
</htk-repeater>
2015-03-06 23:33:54 +00:00
</div>
</div>
</vn>