Commit 0e0d9160 authored by XieZhiXiong's avatar XieZhiXiong

fix: 修改单据无法添加的问题

parent da72d387
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -796,7 +796,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
// 采购入库单
case DOC_TYPE_PURCHASE_RECEIPT: {
if (!id) {
if (isEdit) {
if (!isEdit) {
return;
}
PublicApi.postOrderPurchaseReceiptAdd({
......@@ -904,7 +904,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
// 销售发货单
case DOC_TYPE_SALES_INVOICE: {
if (!id) {
if (isEdit) {
if (!isEdit) {
return;
}
PublicApi.postOrderSalesInvoiceOrder({
......@@ -1014,7 +1014,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
// 加工入库单
case DOC_TYPE_PROCESS_RECEIPT: {
if (!id) {
if (isEdit) {
if (!isEdit) {
return;
}
PublicApi.postEnhanceSupplierToBeAddStorageSubmit({
......@@ -1113,7 +1113,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
// 加工发货单
case DOC_TYPE_PROCESS_INVOICE: {
if (!id) {
if (isEdit) {
if (!isEdit) {
return;
}
PublicApi.postEnhanceProcessToBeAddDeliverySubmit({
......@@ -1214,7 +1214,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
case DOC_TYPE_EXCHANGE_RETURN_INVOICE:
case DOC_TYPE_EXCHANGE_INVOICE: {
if (!id) {
if (isEdit) {
if (!isEdit) {
return;
}
PublicApi.postWarehouseInvoicesAdd({
......@@ -1325,7 +1325,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
case DOC_TYPE_EXCHANGE_RECEIPT:
case DOC_TYPE_EXCHANGE_RETURN_RECEIPT: {
if (!id) {
if (isEdit) {
if (!isEdit) {
return;
}
PublicApi.postWarehouseInvoicesAdd({
......@@ -1434,7 +1434,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
// 退货发货单
case DOC_TYPE_RETURN_INVOICE: {
if (!id) {
if (isEdit) {
if (!isEdit) {
return;
}
PublicApi.postWarehouseInvoicesAdd({
......@@ -1543,7 +1543,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
// 退货入库单
case DOC_TYPE_RETURN_RECEIPT: {
if (!id) {
if (isEdit) {
if (!isEdit) {
return;
}
PublicApi.postWarehouseInvoicesAdd({
......@@ -1651,7 +1651,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
default: {
if (!id) {
if (isEdit) {
if (!isEdit) {
return;
}
PublicApi.postWarehouseInvoicesAdd({
......
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