Commit 14796604 authored by XieZhiXiong's avatar XieZhiXiong

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

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