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:

I Quit AeroMedLab

Watch now (2 mins) | Today is my last day at AeroMedLab ͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­...

Contact Form

Name

Email *

Message *