removeProduct(){
            var vm = this
                return _.filter(vm.productFetch, function(num){
                    return num.serial !== vm.dataFetch.dataFetch.serialClone
                })
            }
validateDuplicate(){
                var vm = this;
                var has = false
                var pluckSerial = _.compact(_.map(vm.removeProduct, 'serial'))
                _.includes(pluckSerial,vm.dataFetch.dataFetch.serial ) ? has = true : has = false
                return  vm.hasError = has
            },
            validateDuplicateAssetSerial(){
                var vm = this;
                var has = false
                var pluckAssetSerial = _.compact(_.map(vm.removeProduct, 'assetSerial'));
                _.includes(pluckAssetSerial,vm.dataFetch.dataFetch.assetSerial ) ? has = true : has = false
                return   has
            }

No comments:

The 6 New Rules of Communicating

The era of teleprompters and talking points has come to an end ͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­...

Contact Form

Name

Email *

Message *