Commit 14796604 authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复根据单据编号查看详情的问题

parent 8b3fd9cf
...@@ -16,6 +16,7 @@ const AddBills: React.FC = () => { ...@@ -16,6 +16,7 @@ const AddBills: React.FC = () => {
relevanceInvoices={relevanceInvoices} relevanceInvoices={relevanceInvoices}
relevanceInvoicesId={relevanceInvoicesId} relevanceInvoicesId={relevanceInvoicesId}
source={+source as (1 | 2)} source={+source as (1 | 2)}
isEdit
/> />
); );
}; };
......
...@@ -1825,14 +1825,14 @@ const BillsForm: React.FC<BillsFormProps> = ({ ...@@ -1825,14 +1825,14 @@ const BillsForm: React.FC<BillsFormProps> = ({
onBack={() => history.goBack()} onBack={() => history.goBack()}
backIcon={<ReutrnEle description="返回" />} backIcon={<ReutrnEle description="返回" />}
title={ title={
!id ? !id && isEdit ?
'新建单据' : '新建单据' :
isEdit ? isEdit ?
'编辑单据' : '编辑单据' :
'查看单据' '查看单据'
} }
extra={ extra={
(isEdit || !id) (isEdit)
? [ ? [
<Button <Button
key="1" key="1"
...@@ -1859,7 +1859,7 @@ const BillsForm: React.FC<BillsFormProps> = ({ ...@@ -1859,7 +1859,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
RadioGroup: Radio.Group, RadioGroup: Radio.Group,
ArrayTable, ArrayTable,
}} }}
editable={isEdit || !id} editable={isEdit}
effects={($, actions) => { effects={($, actions) => {
createEffects($, actions) createEffects($, actions)
onFormInputChange$().subscribe(() => { onFormInputChange$().subscribe(() => {
......
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