diff --git a/front/core/components/searchbar/searchbar.js b/front/core/components/searchbar/searchbar.js index dff4836dbd..10ec1f6085 100644 --- a/front/core/components/searchbar/searchbar.js +++ b/front/core/components/searchbar/searchbar.js @@ -290,7 +290,7 @@ export default class Searchbar extends Component { } let where = null; - let params = null; + let params = {}; if (this.exprBuilder) { where = buildFilter(filter, diff --git a/front/core/components/smart-table/index.js b/front/core/components/smart-table/index.js index 31541143cc..8d2c3c1531 100644 --- a/front/core/components/smart-table/index.js +++ b/front/core/components/smart-table/index.js @@ -19,9 +19,11 @@ export default class SmartTable extends Component { this.transclude(); } - $onInit() { - if (this.model) + $onChanges() { + if (this.model) { this.defaultFilter(); + this.defaultOrder(); + } } $onDestroy() { @@ -53,11 +55,8 @@ export default class SmartTable extends Component { set model(value) { this._model = value; - if (value) { + if (value) this.$.model = value; - this.defaultFilter(); - this.defaultOrder(); - } } getDefaultViewConfig() { @@ -168,7 +167,8 @@ export default class SmartTable extends Component { } defaultFilter() { - if (!this.$params.q) return; + if (this.disabledTableFilter || !this.$params.q) return; + const stateFilter = JSON.parse(this.$params.q).tableQ; if (!stateFilter || !this.exprBuilder) return; @@ -188,6 +188,8 @@ export default class SmartTable extends Component { } defaultOrder() { + if (this.disabledTableOrder) return; + let stateOrder; if (this.$params.q) stateOrder = JSON.parse(this.$params.q).tableOrder; @@ -607,6 +609,8 @@ ngModule.vnComponent('smartTable', { autoSave: '', exprBuilder: '&?', defaultNewData: '&?', - options: '' + options: '', + disabledTableFilter: '', + disabledTableOrder: '', } }); diff --git a/modules/claim/front/routes.json b/modules/claim/front/routes.json index d02ea6f6c8..a8b958c5f2 100644 --- a/modules/claim/front/routes.json +++ b/modules/claim/front/routes.json @@ -73,7 +73,7 @@ { "url": "/note", "state": "claim.card.note", - "component": "ui-view", + "component": "ui-view", "abstract": true, "acl": ["salesPerson"] }, @@ -105,7 +105,7 @@ "acl": ["claimManager"] }, { - "url": "/action", + "url": "/action?q", "state": "claim.card.action", "component": "vn-claim-action", "description": "Action", @@ -131,4 +131,4 @@ "acl": ["claimManager"] } ] -} \ No newline at end of file +} diff --git a/modules/client/front/routes.json b/modules/client/front/routes.json index c7462e46c1..406ca07d7e 100644 --- a/modules/client/front/routes.json +++ b/modules/client/front/routes.json @@ -20,7 +20,7 @@ {"state": "client.card.credit.index", "icon": "credit_card"}, {"state": "client.card.greuge.index", "icon": "work"}, {"state": "client.card.balance.index", "icon": "icon-invoice"}, - {"state": "client.card.recovery.index", "icon": "icon-recovery"}, + {"state": "client.card.recovery.index", "icon": "icon-recovery"}, {"state": "client.card.webAccess", "icon": "cloud"}, {"state": "client.card.log", "icon": "history"}, { @@ -37,7 +37,7 @@ {"state": "client.card.unpaid", "icon": "icon-defaulter"} ] } - ] + ] }, "keybindings": [ {"key": "c", "state": "client.index"} @@ -147,7 +147,7 @@ { "url": "/note", "state": "client.card.note", - "component": "ui-view", + "component": "ui-view", "abstract": true }, { @@ -236,7 +236,7 @@ "client": "$ctrl.client" } }, - { + { "url": "/create?payed&companyFk&bankFk&payedAmount", "state": "client.card.balance.create", "component": "vn-client-balance-create", @@ -406,13 +406,13 @@ } }, { - "url": "/defaulter", + "url": "/defaulter?q", "state": "client.defaulter", "component": "vn-client-defaulter", "description": "Defaulter" }, { - "url" : "/notification", + "url" : "/notification?q", "state": "client.notification", "component": "vn-client-notification", "description": "Notifications" @@ -424,7 +424,7 @@ "description": "Unpaid" }, { - "url": "/extended-list", + "url": "/extended-list?q", "state": "client.extendedList", "component": "vn-client-extended-list", "description": "Extended list" diff --git a/modules/item/front/fixed-price/index.html b/modules/item/front/fixed-price/index.html index 8127a76dc1..9498bf96f9 100644 --- a/modules/item/front/fixed-price/index.html +++ b/modules/item/front/fixed-price/index.html @@ -23,9 +23,9 @@
Item ID | -+ | Description | Warehouse | -P.P.U. | -
P.P.P.
@@ -170,7 +170,7 @@
-
+
|
---|