Commit 0c2deaa2 authored by XieZhiXiong's avatar XieZhiXiong

chore: 添加备注字段相关

parent af50b258
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-08-04 15:53:06
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-08-12 16:28:45
* @LastEditTime: 2021-08-18 09:54:52
* @Description: 新增退货发货单
*/
import React, { useState } from 'react';
......@@ -59,7 +59,7 @@ const ReturnAddDeliverBill = () => {
returnId: applyId,
deliveryTime: values.createTime ? moment(values.createTime).valueOf() : 0,
orderAbstract: values.digest,
remark: '',
remark: values.remark,
inventoryName: values.inventoryName,
inventoryRole: values.inventoryRole,
detailList: values.billDetails.map((item) => ({
......
......@@ -60,7 +60,7 @@ const ReturnAddWarehouseBill = () => {
returnId: applyId,
storageTime: values.createTime ? moment(values.createTime).valueOf() : 0,
orderAbstract: values.digest,
remark: '',
remark: values.remark,
inventoryName: values.inventoryName,
inventoryRole: values.inventoryRole,
detailList: values.billDetails.map((item) => ({
......
......@@ -146,4 +146,8 @@ export type BillSubmitValuesType = RelatedInfoType & {
* 关联对应单据会员名称
*/
memberName: string,
/**
* 备注
*/
remark: string,
}
\ No newline at end of file
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-08-04 13:59:33
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-08-16 15:28:50
* @LastEditTime: 2021-08-18 09:53:05
* @Description:
*/
import { ISchema } from '@formily/antd';
......@@ -187,6 +187,17 @@ const createSchema = (billType: number): ISchema => {
},
],
},
remark: {
type: 'string',
title: '备注',
'x-component': 'textarea',
'x-rules': [
{
limitByte: true, // 自定义校验规则
maxByte: 200,
}
],
},
// 收集值用
inventoryName: {
type: 'string',
......
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