Commit 84f4b699 authored by XieZhiXiong's avatar XieZhiXiong

fix: 修改编辑状态下无法修改退货数量、原因的问题

parent e6971da9
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2020-11-05 17:36:45 * @Date: 2020-11-05 17:36:45
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-09-03 17:16:15 * @LastEditTime: 2021-09-07 10:02:55
* @Description: 查看退货数量与退款金额 抽屉 * @Description: 查看退货数量与退款金额 抽屉
*/ */
import React, { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
...@@ -266,7 +266,7 @@ const ReturnInfoDrawer: React.FC<ReturnInfoDrawerProps> = ({ ...@@ -266,7 +266,7 @@ const ReturnInfoDrawer: React.FC<ReturnInfoDrawerProps> = ({
return ( return (
<Drawer <Drawer
title="查看退货数量与退款金额" title={`${isEdit ? '编辑' : '查看'}退货数量与退款金额`}
placement="right" placement="right"
width={1120} width={1120}
onClose={handleClose} onClose={handleClose}
......
...@@ -872,7 +872,7 @@ const ReturnForm: React.FC<BillsFormProps> = ({ ...@@ -872,7 +872,7 @@ const ReturnForm: React.FC<BillsFormProps> = ({
applyInfo={applyInfo} applyInfo={applyInfo}
onClose={() => setVisibleReturnInfoDrawer(false)} onClose={() => setVisibleReturnInfoDrawer(false)}
onSubmit={handleReturnInfoSubmit} onSubmit={handleReturnInfoSubmit}
isEdit={!id} isEdit={isEdit}
/> />
<Prompt when={unsaved} message="您还有未保存的内容,是否确定要离开?" /> <Prompt when={unsaved} message="您还有未保存的内容,是否确定要离开?" />
......
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