feat: mostrar error
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
77340c8459
commit
0ba95bd163
|
@ -1,4 +1,4 @@
|
|||
<vn-card class="vn-w-lg">
|
||||
<vn-card class="vn-w-lg vn-ma-md">
|
||||
<h5 ng-if="$ctrl.packageInvoicing" translate text-center class="vn-pa-md">{{'Calculating packages to invoice...'}}</h5>
|
||||
<vn-vertical ng-if="$ctrl.clients.length" text-center class="vn-pa-md">
|
||||
<h5 translate>Invoicing</h5>
|
||||
|
@ -19,7 +19,7 @@
|
|||
<vn-th field="nickname">Nickname</vn-th>
|
||||
<vn-th field="addressId" number>Address id</vn-th>
|
||||
<vn-th field="street" expand>Street</vn-th>
|
||||
<vn-th shrink></vn-th>
|
||||
<vn-th field="error" expand>Error</vn-th>
|
||||
</vn-tr>
|
||||
</vn-thead>
|
||||
<vn-tbody>
|
||||
|
@ -41,20 +41,12 @@
|
|||
<vn-td expand>
|
||||
{{::client.address.street}}
|
||||
</vn-td>
|
||||
<vn-td shrink>
|
||||
<vn-td expand>
|
||||
<vn-spinner
|
||||
ng-if="client.status == 'waiting'"
|
||||
enable="true">
|
||||
</vn-spinner>
|
||||
<vn-icon
|
||||
ng-if="client.status == 'ok'"
|
||||
icon="check">
|
||||
</vn-icon>
|
||||
<vn-icon
|
||||
vn-tooltip={{::client.error}}
|
||||
ng-if="client.status == 'error'"
|
||||
icon="clear">
|
||||
</vn-icon>
|
||||
{{::client.error}}
|
||||
</vn-td>
|
||||
</vn-tr>
|
||||
</vn-tbody>
|
||||
|
|
|
@ -10,10 +10,6 @@ class Controller extends Section {
|
|||
maxShipped: new Date(),
|
||||
companyFk: this.vnConfig.companyFk
|
||||
};
|
||||
|
||||
this.invoice.invoiceDate = new Date();
|
||||
this.invoice.companyFk = 442;
|
||||
this.invoice.printerFk = 1;
|
||||
}
|
||||
|
||||
$onInit() {
|
||||
|
@ -84,7 +80,6 @@ class Controller extends Section {
|
|||
|
||||
return this.$http.post(`InvoiceOuts/invoiceClient`, params)
|
||||
.then(() => {
|
||||
this.$.data[index].status = 'ok';
|
||||
this.$.data.shift();
|
||||
}).catch(res => {
|
||||
this.$.data[index].status = 'error';
|
||||
|
|
|
@ -2,17 +2,14 @@
|
|||
|
||||
vn-invoice-out-global-invoicing{
|
||||
|
||||
vn-td {
|
||||
vn-icon[icon=clear] {
|
||||
color: $color-alert;
|
||||
}
|
||||
vn-icon[icon=check] {
|
||||
color: $color-success;
|
||||
}
|
||||
}
|
||||
|
||||
h5{
|
||||
color: $color-primary;
|
||||
}
|
||||
|
||||
.vn-table vn-tbody > * > vn-td {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue