import { InvoiceControllerState, IGood2 } from '..'; /** * 设置当前的编辑货物运输 */ export default async (state: InvoiceControllerState, newEditGood?: any) => { if (newEditGood) { const editGood = state.passengerListState.editGood as IGood2; state.passengerListState = { ...state.passengerListState, editGood: { ...editGood, ...newEditGood }, }; } else { state.passengerListState = { ...state.passengerListState, editGood: undefined }; } };