Commit 1f51b956 authored by XieZhiXiong's avatar XieZhiXiong

fix: 修改单据详情判断条件

parent 072b2e5f
...@@ -4,7 +4,7 @@ import BillsForm from './components/BillsForm'; ...@@ -4,7 +4,7 @@ import BillsForm from './components/BillsForm';
const BillsDetail: React.FC = () => { const BillsDetail: React.FC = () => {
const { const {
id, id = 0,
deliveryNo = 0, deliveryNo = 0,
storageNo = 0, storageNo = 0,
invoicesTypeId, // 单据类型ID invoicesTypeId, // 单据类型ID
......
...@@ -99,7 +99,7 @@ function transforDirection(type) { ...@@ -99,7 +99,7 @@ function transforDirection(type) {
}; };
const BillsForm: React.FC<BillsFormProps> = ({ const BillsForm: React.FC<BillsFormProps> = ({
id, id = 0,
deliveryNo = 0, deliveryNo = 0,
storageNo = 0, storageNo = 0,
isEdit = false, isEdit = false,
...@@ -168,7 +168,7 @@ const BillsForm: React.FC<BillsFormProps> = ({ ...@@ -168,7 +168,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
// 获取单据详情 // 获取单据详情
const getBillInfo = () => { const getBillInfo = () => {
if (!id) { if (!id && !deliveryNo && !storageNo) {
return; return;
} }
setInfoLoading(true); setInfoLoading(true);
......
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