@seniorsistemas/yms-integration 1.30.0 → 1.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/seniorsistemas-yms-integration.umd.js +14 -1
- package/bundles/seniorsistemas-yms-integration.umd.js.map +1 -1
- package/bundles/seniorsistemas-yms-integration.umd.min.js +1 -1
- package/bundles/seniorsistemas-yms-integration.umd.min.js.map +1 -1
- package/esm2015/src/wms/components/document-grid/document-grid.component.js +15 -2
- package/esm5/src/wms/components/document-grid/document-grid.component.js +15 -2
- package/fesm2015/seniorsistemas-yms-integration.js +14 -1
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +14 -1
- package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-yms-integration.metadata.json +1 -1
- package/src/wms/components/document-grid/document-grid.component.d.ts +1 -0
|
@@ -3359,7 +3359,12 @@
|
|
|
3359
3359
|
this.disabled = false;
|
|
3360
3360
|
};
|
|
3361
3361
|
DocumentGridComponent.prototype.cantEditStatus = function () {
|
|
3362
|
-
var cantEditStatus = [
|
|
3362
|
+
var cantEditStatus = [
|
|
3363
|
+
'CANCELADO',
|
|
3364
|
+
'EM_EXECUCAO',
|
|
3365
|
+
'CONCLUIDO',
|
|
3366
|
+
'AGUARDANDO_POR_VALIDACAO'
|
|
3367
|
+
].includes(this.agenda.status.toString());
|
|
3363
3368
|
if (cantEditStatus) {
|
|
3364
3369
|
this.enableButtonIsClienteExterno = false;
|
|
3365
3370
|
}
|
|
@@ -3368,6 +3373,7 @@
|
|
|
3368
3373
|
var _this = this;
|
|
3369
3374
|
return [
|
|
3370
3375
|
{
|
|
3376
|
+
disabled: this.checkWmsSystemInvalid(),
|
|
3371
3377
|
label: this.translate.instant("yms.int.wms_search"),
|
|
3372
3378
|
command: function () {
|
|
3373
3379
|
_this.selection = [];
|
|
@@ -3376,6 +3382,7 @@
|
|
|
3376
3382
|
icon: "fa fa-search"
|
|
3377
3383
|
},
|
|
3378
3384
|
{
|
|
3385
|
+
disabled: this.checkWmsSystemInvalid(),
|
|
3379
3386
|
label: this.translate.instant("yms.int.wms_add_document_register"),
|
|
3380
3387
|
command: function () {
|
|
3381
3388
|
_this.selection = [];
|
|
@@ -3386,6 +3393,12 @@
|
|
|
3386
3393
|
}
|
|
3387
3394
|
];
|
|
3388
3395
|
};
|
|
3396
|
+
DocumentGridComponent.prototype.checkWmsSystemInvalid = function () {
|
|
3397
|
+
if (this.wmsSystem && this.wmsSystem === WmsSystem.NONE) {
|
|
3398
|
+
return true;
|
|
3399
|
+
}
|
|
3400
|
+
return false;
|
|
3401
|
+
};
|
|
3389
3402
|
DocumentGridComponent.prototype.getProp = function (obj, path) {
|
|
3390
3403
|
return path.split(".").reduce(function (result, prop) { return (result[prop] === undefined ? "" : result[prop]); }, obj);
|
|
3391
3404
|
};
|