Commit 826c8356 authored by 前端-许佳敏's avatar 前端-许佳敏

merge

parents 4fbb6812 0e0d9160
...@@ -796,7 +796,7 @@ const BillsForm: React.FC<BillsFormProps> = ({ ...@@ -796,7 +796,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
// 采购入库单 // 采购入库单
case DOC_TYPE_PURCHASE_RECEIPT: { case DOC_TYPE_PURCHASE_RECEIPT: {
if (!id) { if (!id) {
if (isEdit) { if (!isEdit) {
return; return;
} }
PublicApi.postOrderPurchaseReceiptAdd({ PublicApi.postOrderPurchaseReceiptAdd({
...@@ -904,7 +904,7 @@ const BillsForm: React.FC<BillsFormProps> = ({ ...@@ -904,7 +904,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
// 销售发货单 // 销售发货单
case DOC_TYPE_SALES_INVOICE: { case DOC_TYPE_SALES_INVOICE: {
if (!id) { if (!id) {
if (isEdit) { if (!isEdit) {
return; return;
} }
PublicApi.postOrderSalesInvoiceOrder({ PublicApi.postOrderSalesInvoiceOrder({
...@@ -1014,7 +1014,7 @@ const BillsForm: React.FC<BillsFormProps> = ({ ...@@ -1014,7 +1014,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
// 加工入库单 // 加工入库单
case DOC_TYPE_PROCESS_RECEIPT: { case DOC_TYPE_PROCESS_RECEIPT: {
if (!id) { if (!id) {
if (isEdit) { if (!isEdit) {
return; return;
} }
PublicApi.postEnhanceSupplierToBeAddStorageSubmit({ PublicApi.postEnhanceSupplierToBeAddStorageSubmit({
...@@ -1113,7 +1113,7 @@ const BillsForm: React.FC<BillsFormProps> = ({ ...@@ -1113,7 +1113,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
// 加工发货单 // 加工发货单
case DOC_TYPE_PROCESS_INVOICE: { case DOC_TYPE_PROCESS_INVOICE: {
if (!id) { if (!id) {
if (isEdit) { if (!isEdit) {
return; return;
} }
PublicApi.postEnhanceProcessToBeAddDeliverySubmit({ PublicApi.postEnhanceProcessToBeAddDeliverySubmit({
...@@ -1214,7 +1214,7 @@ const BillsForm: React.FC<BillsFormProps> = ({ ...@@ -1214,7 +1214,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
case DOC_TYPE_EXCHANGE_RETURN_INVOICE: case DOC_TYPE_EXCHANGE_RETURN_INVOICE:
case DOC_TYPE_EXCHANGE_INVOICE: { case DOC_TYPE_EXCHANGE_INVOICE: {
if (!id) { if (!id) {
if (isEdit) { if (!isEdit) {
return; return;
} }
PublicApi.postWarehouseInvoicesAdd({ PublicApi.postWarehouseInvoicesAdd({
...@@ -1325,7 +1325,7 @@ const BillsForm: React.FC<BillsFormProps> = ({ ...@@ -1325,7 +1325,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
case DOC_TYPE_EXCHANGE_RECEIPT: case DOC_TYPE_EXCHANGE_RECEIPT:
case DOC_TYPE_EXCHANGE_RETURN_RECEIPT: { case DOC_TYPE_EXCHANGE_RETURN_RECEIPT: {
if (!id) { if (!id) {
if (isEdit) { if (!isEdit) {
return; return;
} }
PublicApi.postWarehouseInvoicesAdd({ PublicApi.postWarehouseInvoicesAdd({
...@@ -1434,7 +1434,7 @@ const BillsForm: React.FC<BillsFormProps> = ({ ...@@ -1434,7 +1434,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
// 退货发货单 // 退货发货单
case DOC_TYPE_RETURN_INVOICE: { case DOC_TYPE_RETURN_INVOICE: {
if (!id) { if (!id) {
if (isEdit) { if (!isEdit) {
return; return;
} }
PublicApi.postWarehouseInvoicesAdd({ PublicApi.postWarehouseInvoicesAdd({
...@@ -1543,7 +1543,7 @@ const BillsForm: React.FC<BillsFormProps> = ({ ...@@ -1543,7 +1543,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
// 退货入库单 // 退货入库单
case DOC_TYPE_RETURN_RECEIPT: { case DOC_TYPE_RETURN_RECEIPT: {
if (!id) { if (!id) {
if (isEdit) { if (!isEdit) {
return; return;
} }
PublicApi.postWarehouseInvoicesAdd({ PublicApi.postWarehouseInvoicesAdd({
...@@ -1651,7 +1651,7 @@ const BillsForm: React.FC<BillsFormProps> = ({ ...@@ -1651,7 +1651,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
default: { default: {
if (!id) { if (!id) {
if (isEdit) { if (!isEdit) {
return; return;
} }
PublicApi.postWarehouseInvoicesAdd({ 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