dialog-handler.ts 322 B

123456789101112131415161718
  1. import { httpAdd, httpUpdate } from "/@/api/parameter/invoiceheader";
  2. export function create(form: Record<string, any>) {
  3. return {
  4. data: form,
  5. api: httpAdd
  6. };
  7. }
  8. export function edit(form: Record<string, any>, id: string) {
  9. return {
  10. data: {
  11. id: id,
  12. ...form
  13. },
  14. api: httpUpdate
  15. };
  16. }