Merge branch 'dev' of https://git.verdnatura.es/salix into dev
This commit is contained in:
commit
595d878f93
|
@ -196,7 +196,7 @@ export default class DropDown extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
let where = {};
|
let where = {};
|
||||||
where[this.showField] = {regexp: search};
|
where[this.showField] = {like: `%${search}%`};
|
||||||
return where;
|
return where;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
"description": "Tax",
|
"description": "Tax",
|
||||||
"icon": "icon-tax"
|
"icon": "icon-tax"
|
||||||
},
|
},
|
||||||
"acl": ["administrative","salesAssistant"]
|
"acl": ["administrative","buyer"]
|
||||||
}, {
|
}, {
|
||||||
"url" : "/history",
|
"url" : "/history",
|
||||||
"state": "item.card.history",
|
"state": "item.card.history",
|
||||||
|
|
|
@ -51,6 +51,7 @@
|
||||||
field="$ctrl.item.expenceFk"
|
field="$ctrl.item.expenceFk"
|
||||||
initial-data="$ctrl.item.expence">
|
initial-data="$ctrl.item.expence">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
|
<vn-textfield vn-one label="Reference" field="$ctrl.item.description"></vn-textfield>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
</vn-card>
|
</vn-card>
|
||||||
<vn-button-bar>
|
<vn-button-bar>
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Reference: Referencia
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
/* {
|
||||||
"module": "locator",
|
"module": "locator",
|
||||||
"name": "Locator",
|
"name": "Locator",
|
||||||
"icon": "add_location",
|
"icon": "add_location",
|
||||||
|
@ -11,4 +11,4 @@
|
||||||
"acl": ["developer"]
|
"acl": ["developer"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
} */
|
|
@ -2,9 +2,9 @@ auth: []
|
||||||
client: []
|
client: []
|
||||||
core: []
|
core: []
|
||||||
item: []
|
item: []
|
||||||
locator: []
|
#locator: []
|
||||||
production: []
|
#production: []
|
||||||
salix: []
|
salix: []
|
||||||
route: []
|
#route: []
|
||||||
ticket: [item]
|
ticket: [item]
|
||||||
order: []
|
order: []
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
/* {
|
||||||
"module": "production",
|
"module": "production",
|
||||||
"name": "Production",
|
"name": "Production",
|
||||||
"icon": "local_florist",
|
"icon": "local_florist",
|
||||||
|
@ -11,4 +11,4 @@
|
||||||
"acl": ["developer"]
|
"acl": ["developer"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
} */
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
/* {
|
||||||
"module": "route",
|
"module": "route",
|
||||||
"name": "Routes",
|
"name": "Routes",
|
||||||
"icon" : "local_shipping",
|
"icon" : "local_shipping",
|
||||||
|
@ -65,4 +65,4 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
} */
|
|
@ -3,20 +3,21 @@
|
||||||
<vn-title>Basic data</vn-title>
|
<vn-title>Basic data</vn-title>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
|
vn-id="client"
|
||||||
url="/api/Clients"
|
url="/api/Clients"
|
||||||
label="Client"
|
label="Client"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
field="$ctrl.ticket.clientFk"
|
field="$ctrl.ticket.clientFk"
|
||||||
initial-data="$ctrl.ticket.clientFk">
|
initial-data="$ctrl.ticket.clientFk"
|
||||||
|
on-change="$ctrl.onChange()">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
url="/api/Addresses"
|
url="{{$ctrl.getAddresses()}}"
|
||||||
label="Address"
|
label="Address"
|
||||||
show-field="nickname"
|
show-field="nickname"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
field="$ctrl.ticket.addressFk"
|
field="$ctrl.ticket.addressFk">
|
||||||
initial-data="$ctrl.ticket.addressFk">
|
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
url="/api/AgencyModes"
|
url="/api/AgencyModes"
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
import ngModule from '../../module';
|
import ngModule from '../../module';
|
||||||
|
|
||||||
class Controller {
|
class Controller {
|
||||||
constructor($scope, $http, $translate, vnApp) {
|
constructor($scope, $http, $element, $translate, vnApp) {
|
||||||
this.$scope = $scope;
|
this.$scope = $scope;
|
||||||
this.$http = $http;
|
this.$http = $http;
|
||||||
|
this.$element = $element;
|
||||||
this.$translate = $translate;
|
this.$translate = $translate;
|
||||||
this.vnApp = vnApp;
|
this.vnApp = vnApp;
|
||||||
}
|
}
|
||||||
|
@ -12,6 +13,16 @@ class Controller {
|
||||||
this.data.registerChild(this);
|
this.data.registerChild(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onChange() {
|
||||||
|
if(this.ticket)
|
||||||
|
this.ticket.addressFk = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
getAddresses() {
|
||||||
|
if (this.ticket)
|
||||||
|
return `/api/Clients/${this.ticket.clientFk}/addresses`;
|
||||||
|
}
|
||||||
|
|
||||||
async onStepChange(state) {
|
async onStepChange(state) {
|
||||||
if (this.isFormInvalid())
|
if (this.isFormInvalid())
|
||||||
return this.vnApp.showError(
|
return this.vnApp.showError(
|
||||||
|
@ -44,7 +55,7 @@ class Controller {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Controller.$inject = ['$scope', '$http', '$translate', 'vnApp'];
|
Controller.$inject = ['$scope', '$http', '$element', '$translate', 'vnApp'];
|
||||||
|
|
||||||
ngModule.component('vnTicketDataStepOne', {
|
ngModule.component('vnTicketDataStepOne', {
|
||||||
template: require('./step-one.html'),
|
template: require('./step-one.html'),
|
||||||
|
|
|
@ -234,7 +234,7 @@ export default {
|
||||||
itemBarcodes: {
|
itemBarcodes: {
|
||||||
barcodeButton: `${components.vnMenuItem}[ui-sref="item.card.itemBarcode"]`,
|
barcodeButton: `${components.vnMenuItem}[ui-sref="item.card.itemBarcode"]`,
|
||||||
addBarcodeButton: `${components.vnIcon}[icon="add_circle"]`,
|
addBarcodeButton: `${components.vnIcon}[icon="add_circle"]`,
|
||||||
thirdCodeInput: `vn-horizontal:nth-child(4) > ${components.vnTextfield}`,
|
thirdCodeInput: `vn-item-barcode vn-horizontal:nth-child(4) > ${components.vnTextfield}`,
|
||||||
submitBarcodesButton: `${components.vnSubmit}`,
|
submitBarcodesButton: `${components.vnSubmit}`,
|
||||||
firstCodeRemoveButton: `vn-horizontal:nth-child(2) > ${components.vnIcon}[icon="remove_circle_outline"]`
|
firstCodeRemoveButton: `vn-horizontal:nth-child(2) > ${components.vnIcon}[icon="remove_circle_outline"]`
|
||||||
},
|
},
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
UPDATE `salix`.`ACL` SET `accessType`='READ' WHERE `id`='20';
|
||||||
|
UPDATE `salix`.`ACL` SET `principalId`='production' WHERE `id`='67';
|
||||||
|
INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES ('78', 'TicketTracking', '*', 'WRITE', 'ALLOW', 'ROLE', 'production');
|
||||||
|
INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `permission`, `principalType`, `principalId`) VALUES ('79', 'TicketTracking', 'changeState', 'ALLOW', 'ROLE', 'employe');
|
||||||
|
|
|
@ -37,6 +37,7 @@ module.exports = Self => {
|
||||||
|
|
||||||
delete copy.id;
|
delete copy.id;
|
||||||
delete copy.itemTag;
|
delete copy.itemTag;
|
||||||
|
delete copy.description;
|
||||||
|
|
||||||
let newItem = await Self.create(copy);
|
let newItem = await Self.create(copy);
|
||||||
let promises = [];
|
let promises = [];
|
||||||
|
|
|
@ -12,7 +12,8 @@
|
||||||
"nodemailer": "^4.0.1",
|
"nodemailer": "^4.0.1",
|
||||||
"path": "^0.12.7",
|
"path": "^0.12.7",
|
||||||
"request": "^2.83.0",
|
"request": "^2.83.0",
|
||||||
"require-yaml": "0.0.1"
|
"require-yaml": "0.0.1",
|
||||||
|
"fs-extra": "^5.0.0"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -10,7 +10,9 @@
|
||||||
"inline-css": "^2.2.2",
|
"inline-css": "^2.2.2",
|
||||||
"mustache": "^2.3.0",
|
"mustache": "^2.3.0",
|
||||||
"mysql": "^2.13.0",
|
"mysql": "^2.13.0",
|
||||||
"path": "^0.12.7"
|
"path": "^0.12.7",
|
||||||
|
"require-yaml": "0.0.1",
|
||||||
|
"fs-extra": "^5.0.0"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
Loading…
Reference in New Issue