Commit 8a98e919 authored by XieZhiXiong's avatar XieZhiXiong

chore: 修改参数名称

parent 2a30a7e3
...@@ -28,7 +28,7 @@ type CategoriesType = { ...@@ -28,7 +28,7 @@ type CategoriesType = {
/** /**
* 品类名称 * 品类名称
*/ */
name: string, names: string[],
/** /**
* 付款周期(天) * 付款周期(天)
*/ */
...@@ -224,7 +224,7 @@ const ComingClassifyDrawer: React.FC<IProps> = (props: IProps) => { ...@@ -224,7 +224,7 @@ const ComingClassifyDrawer: React.FC<IProps> = (props: IProps) => {
if (onSubmit) { if (onSubmit) {
const { maxAmount, categories, ...rest } = values; const { maxAmount, categories, ...rest } = values;
const formated = categories.map((item) => ({ const formated = categories.map((item) => ({
name: item.category.join('-'), names: item.category,
paymentDay: +item.paymentDay, paymentDay: +item.paymentDay,
invoiceTypeName: item.invoiceTypeName, invoiceTypeName: item.invoiceTypeName,
taxPoint: +item.taxPoint, taxPoint: +item.taxPoint,
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2021-05-25 14:36:14 * @Date: 2021-05-25 14:36:14
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-18 17:15:48 * @LastEditTime: 2021-07-08 11:46:29
* @Description: 入库分类 * @Description: 入库分类
*/ */
import React, { useState, useEffect } from 'react'; 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