Commit 8a98e919 authored by XieZhiXiong's avatar XieZhiXiong

chore: 修改参数名称

parent 2a30a7e3
......@@ -28,7 +28,7 @@ type CategoriesType = {
/**
* 品类名称
*/
name: string,
names: string[],
/**
* 付款周期(天)
*/
......@@ -224,7 +224,7 @@ const ComingClassifyDrawer: React.FC<IProps> = (props: IProps) => {
if (onSubmit) {
const { maxAmount, categories, ...rest } = values;
const formated = categories.map((item) => ({
name: item.category.join('-'),
names: item.category,
paymentDay: +item.paymentDay,
invoiceTypeName: item.invoiceTypeName,
taxPoint: +item.taxPoint,
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-25 14:36:14
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-18 17:15:48
* @LastEditTime: 2021-07-08 11:46:29
* @Description: 入库分类
*/
import React, { useState, useEffect } from 'react';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment