Commit e3d25b88 authored by XieZhiXiong's avatar XieZhiXiong

chore: 删除入库、发货id 更改为 单据编号

parent eca1f22c
......@@ -53,15 +53,12 @@ interface BillsFormProps {
*/
id?: string;
/**
* 发货单
* 单据编
*/
deliveryNo?: number;
invoicesNo?: string;
/**
* 入库单号
* 是否是编辑的
*/
storageNo?: number;
validateId?: string;
// 是否是编辑的
isEdit?: boolean;
/**
* 单据类型ID
......@@ -101,8 +98,7 @@ function transforDirection(type) {
const BillsForm: React.FC<BillsFormProps> = ({
id = 0,
deliveryNo = 0,
storageNo = 0,
invoicesNo = '',
isEdit = false,
invoicesTypeId,
relevanceInvoices,
......@@ -167,14 +163,13 @@ const BillsForm: React.FC<BillsFormProps> = ({
// 获取单据详情
const getBillInfo = () => {
if (!id && !deliveryNo && !storageNo) {
if (!id && !invoicesNo) {
return;
}
setInfoLoading(true);
PublicApi.getWarehouseInvoicesDetails({
invoicesId: `${id}`,
deliveryNo,
storageNo,
invoicesNo,
}).then(res => {
if (res.code !== 1000) {
return;
......
/*
* @Author: XieZhiXiong
* @Date: 2021-01-06 11:36:35
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-26 18:00:59
* @Description:
*/
import React from 'react';
import { usePageStatus } from '@/hooks/usePageStatus';
import BillsForm from './components/BillsForm';
......@@ -5,8 +12,7 @@ import BillsForm from './components/BillsForm';
const EditBills: React.FC = () => {
const {
id,
deliveryNo = 0,
storageNo = 0,
invoicesNo = '',
invoicesTypeId, // 单据类型ID
relevanceInvoices, // 对应单据
relevanceInvoicesId, // 单据id,可能是待新增销售发货单,待新增采购入库单跳转过来的
......@@ -15,8 +21,7 @@ const EditBills: React.FC = () => {
return (
<BillsForm
id={id}
deliveryNo={deliveryNo}
storageNo={storageNo}
invoicesNo={invoicesNo}
invoicesTypeId={invoicesTypeId}
relevanceInvoices={relevanceInvoices}
relevanceInvoicesId={relevanceInvoicesId}
......
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