A detergent dispensing device (3, 100) for a dishwasher, including: a storage box including a first half shell (31, 33, 110) and a second half shell (34, 120) fixedly connected to each other in a first direction to define a storage cavity for storing detergent, the storage box including a first storage cavity for storing a first detergent and a second storage cavity for storing a second detergent; a discharge pump (32, 131, 132) configured to suck the first detergent from the first storage cavity and to dispense the first detergent to the outside of the detergent dispensing device (3, 100), and to suck the second detergent from the second storage cavity and to dispense the second detergent to the outside of the detergent dispensing device (3, 100); and a pipeline module including a first inlet channel for extracting the first detergent from the first storage cavity by the discharge pump (32, 131, 132), a second inlet channel for extracting the second detergent from the second storage cavity by the discharge pump (32, 131, 132), a first outlet channel for dispensing the first detergent by the discharge pump (32, 131, 132), and a second outlet channel for dispensing the second detergent by the discharge pump (32, 131, 132), characterized in that the pipeline module includes a first filling channel (352, 161) for filling the first detergent to the first storage cavity, a second filling channel (353, 163) for filling the second detergent to the second storage cavity, and that the second half shell (34, 120) defines a pump accommodating space (1207, 1208) for accommodating at least a part of the discharge pump (32, 131, 132), both ends of the pump accommodating space (1207, 1208) of the second half shell (34, 120) in the first direction have a first opening (12071, 12081) close to the first half shell (31, 33, 110) and a second opening (12072, 12082) away from the first half shell (31, 33, 110) to allow the discharge pump (32, 131, 132) to protrude from the first opening (12071, 12081) and the second opening (12072, 12082). a storage box including a first half shell (31, 33, 110) and a second half shell (34, 120) fixedly connected to each other in a first direction to define a storage cavity for storing detergent, the storage box including a first storage cavity for storing a first detergent and a second storage cavity for storing a second detergent; a discharge pump (32, 131, 132) configured to suck the first detergent from the first storage cavity and to dispense the first detergent to the outside of the detergent dispensing device (3, 100), and to suck the second detergent from the second storage cavity and to dispense the second detergent to the outside of the detergent dispensing device (3, 100); and a pipeline module including a first inlet channel for extracting the first detergent from the first storage cavity by the discharge pump (32, 131, 132), a second inlet channel for extracting the second detergent from the second storage cavity by the discharge pump (32, 131, 132), a first outlet channel for dispensing the first detergent by the discharge pump (32, 131, 132), and a second outlet channel for dispensing the second detergent by the discharge pump (32, 131, 132), characterized in that the pipeline module includes a first filling channel (352, 161) for filling the first detergent to the first storage cavity, a second filling channel (353, 163) for filling the second detergent to the second storage cavity, and that the second half shell (34, 120) defines a pump accommodating space (1207, 1208) for accommodating at least a part of the discharge pump (32, 131, 132), both ends of the pump accommodating space (1207, 1208) of the second half shell (34, 120) in the first direction have a first opening (12071, 12081) close to the first half shell (31, 33, 110) and a second opening (12072, 12082) away from the first half shell (31, 33, 110) to allow the discharge pump (32, 131, 132) to protrude from the first opening (12071, 12081) and the second opening (12072, 12082).