|
@@ -1,16 +1,10 @@
|
|
|
<ion-header>
|
|
|
<ion-navbar color="primary">
|
|
|
- <ion-buttons start>
|
|
|
- <button ion-button>
|
|
|
- <ion-icon name="close" (click)="dismiss()"></ion-icon>
|
|
|
- </button>
|
|
|
- </ion-buttons>
|
|
|
-
|
|
|
<ion-title>Producto</ion-title>
|
|
|
|
|
|
<ion-buttons end>
|
|
|
- <button ion-button>
|
|
|
- <ion-icon name="more"></ion-icon>
|
|
|
+ <button ion-button (click)="save()">
|
|
|
+ <ion-icon color="ligth" name="document"></ion-icon>
|
|
|
</button>
|
|
|
</ion-buttons>
|
|
|
</ion-navbar>
|
|
@@ -19,25 +13,66 @@
|
|
|
|
|
|
<ion-content>
|
|
|
<ion-card>
|
|
|
- <img src="./assets/images/no_product.png" />
|
|
|
+ <div style="position: relative">
|
|
|
+ <img src="./assets/images/product.png" />
|
|
|
|
|
|
- <ion-fab right top>
|
|
|
- <button ion-fab color="yellow">
|
|
|
- <ion-icon name="camera" color="light"></ion-icon>
|
|
|
- </button>
|
|
|
- </ion-fab>
|
|
|
+ <ion-fab left bottom>
|
|
|
+ <button ion-fab color="yellow" class="fab-picture">
|
|
|
+ <ion-icon name="camera" color="light"></ion-icon>
|
|
|
+ </button>
|
|
|
+ </ion-fab>
|
|
|
+ </div>
|
|
|
</ion-card>
|
|
|
|
|
|
<ion-list>
|
|
|
+ <ion-list-header color="light">Información</ion-list-header>
|
|
|
+
|
|
|
+ <ion-item>
|
|
|
+ <ion-label stacked>Nombre del producto</ion-label>
|
|
|
+ <ion-input type="text" [(ngModel)]="product.name" required></ion-input>
|
|
|
+ </ion-item>
|
|
|
+
|
|
|
+ <ion-item>
|
|
|
+ <ion-label stacked>Tipo de producto</ion-label>
|
|
|
+ <ion-select [(ngModel)]="product.type">
|
|
|
+ <ion-option value="0">Almacenable</ion-option>
|
|
|
+ <ion-option value="1">Consumible</ion-option>
|
|
|
+ <ion-option value="2">Servicio</ion-option>
|
|
|
+ </ion-select>
|
|
|
+ </ion-item>
|
|
|
+
|
|
|
+ <ion-item>
|
|
|
+ <ion-label stacked>Precio de venta</ion-label>
|
|
|
+ <ion-input type="number" [(ngModel)]="product.salePrice"></ion-input>
|
|
|
+ </ion-item>
|
|
|
+
|
|
|
+ <ion-item>
|
|
|
+ <ion-label stacked>Código EAN13</ion-label>
|
|
|
+ <ion-input type="text" [(ngModel)]="product.ean13"></ion-input>
|
|
|
+ </ion-item>
|
|
|
+
|
|
|
+ <ion-item>
|
|
|
+ <ion-label stacked>Referencia Interna</ion-label>
|
|
|
+ <ion-input type="text" [(ngModel)]="product.reference"></ion-input>
|
|
|
+ </ion-item>
|
|
|
+
|
|
|
+ <ion-list-header color="light">Abastecimientos e inventario</ion-list-header>
|
|
|
+
|
|
|
+ <ion-item>
|
|
|
+ <ion-label stacked>Precio de costo</ion-label>
|
|
|
+ <ion-input type="number" [(ngModel)]="product.costPrice"></ion-input>
|
|
|
+ </ion-item>
|
|
|
+
|
|
|
<ion-item>
|
|
|
- <ion-label floating>Nombre</ion-label>
|
|
|
- <ion-input type="text"></ion-input>
|
|
|
+ <ion-label stacked>Cantidad a mano</ion-label>
|
|
|
+ <ion-input type="number" [(ngModel)]="product.quantity"></ion-input>
|
|
|
</ion-item>
|
|
|
|
|
|
<ion-item>
|
|
|
- <ion-label floating>Precio</ion-label>
|
|
|
- <ion-input type="number"></ion-input>
|
|
|
+ <ion-label stacked>Activo</ion-label>
|
|
|
+ <ion-toggle [(ngModel)]="product.active"></ion-toggle>
|
|
|
</ion-item>
|
|
|
+
|
|
|
</ion-list>
|
|
|
|
|
|
</ion-content>
|