The logic has to tell you that there is only one force at work, due to friction. Whichever direction the wheels are moving against the ground then the friction force on the wheels must be against that direction. if the wheels are driving you uphill then friction is acting uphill on the wheels (you can't have dynamic and static friction at the same time and, with the wheels moving, if you have to give it a name, it's kinetic friction that's involved - personally I would call it 'slipping friction')
There are two forces acting on the vehicle: friction drives it uphill and weight component drives it downhill. Depending on which is greater, it can be going up or down the slope.
But we (you) are after a simple model for a very complex situation and there isn't one.
The driven wheels of a car are subject to a forward force (horizontal reaction against the ground) which would be much the same as the static friction, if the wheels were stationary, with the same torque applied. There is significant loss of power due to the constant deformation of the tyre (constantly climbing up the leading edge and the road surface which involved hysteresis and also the grinding of grit and dust in the footprint. That Lost Power can be looked upon as an effective Force times the Speed of the car over the road. This Force is subtracted from the Force from the drive and will be reducing the acceleration or top speed of the car. Rather than calling it 'Friction', it would normally be called Rolling Resistance. That avoids your problem of reconciling two forces of 'friction', acting in two different directions.
PS The only times that friction would be acting downhill would be if the brakes were applied and no power was being applied to the wheels OR if the car were actually being driven downhill. In both cases, there would be an Acceleration downhill.