feat: add radio button
gitea/salix/pipeline/head Build queued...
Details
gitea/salix/pipeline/head Build queued...
Details
This commit is contained in:
parent
15ba6681af
commit
6924b05c8a
|
@ -36,7 +36,7 @@ module.exports = Self => {
|
|||
arg: 'toClientId',
|
||||
type: 'number',
|
||||
description: 'The maximum client id',
|
||||
required: false
|
||||
required: true
|
||||
},
|
||||
{
|
||||
arg: 'companyFk',
|
||||
|
|
|
@ -37,6 +37,18 @@
|
|||
</vn-date-picker>
|
||||
</vn-horizontal>
|
||||
<vn-horizontal>
|
||||
<vn-radio
|
||||
label="All clients"
|
||||
val="allClients"
|
||||
ng-model="$ctrl.clientsNumber">
|
||||
</vn-radio>
|
||||
<vn-radio
|
||||
label="Clients range"
|
||||
val="clientsRange"
|
||||
ng-model="$ctrl.clientsNumber">
|
||||
</vn-radio>
|
||||
</vn-horizontal>
|
||||
<vn-horizontal ng-show="$ctrl.clientsNumber == 'clientsRange'">
|
||||
<vn-autocomplete
|
||||
url="Clients"
|
||||
label="From client"
|
||||
|
|
|
@ -8,6 +8,7 @@ class Controller extends Dialog {
|
|||
this.invoice = {
|
||||
maxShipped: new Date()
|
||||
};
|
||||
this.clientsNumber = 'allClients';
|
||||
}
|
||||
|
||||
$onInit() {
|
||||
|
@ -66,6 +67,8 @@ class Controller extends Dialog {
|
|||
});
|
||||
|
||||
this.$.invoiceButton.disabled = true;
|
||||
if (this.clientsNumber == 'allClients') this.getMaxClientId();
|
||||
|
||||
return this.$http.post(`InvoiceOuts/clientToInvoice`, this.invoice)
|
||||
.then(async res => {
|
||||
const clientsAndAddresses = res.data.clientsAndAddresses;
|
||||
|
|
|
@ -8,4 +8,6 @@ To client: Hasta el cliente
|
|||
Invoice date and the max date should be filled: La fecha de factura y la fecha límite deben rellenarse
|
||||
Choose a valid clients range: Selecciona un rango válido de clientes
|
||||
of: de
|
||||
Id Client: Id Cliente
|
||||
Id Client: Id Cliente
|
||||
All clients: Todos los clientes
|
||||
Clients range: Rango de clientes
|
Loading…
Reference in New Issue