Commit 4c9760b3 authored by XieZhiXiong's avatar XieZhiXiong

feat: 添加 发货单号、入库单号id

parent 8b656096
......@@ -5,6 +5,8 @@ import BillsForm from './components/BillsForm';
const BillsDetail: React.FC = () => {
const {
id,
deliveryNo = 0,
storageNo = 0,
invoicesTypeId, // 单据类型ID
relevanceInvoices, // 对应单据
relevanceInvoicesId, // 单据id,可能是待新增销售发货单,待新增采购入库单跳转过来的
......@@ -13,6 +15,8 @@ const BillsDetail: React.FC = () => {
return (
<BillsForm
id={id}
deliveryNo={deliveryNo}
storageNo={storageNo}
invoicesTypeId={invoicesTypeId}
relevanceInvoices={relevanceInvoices}
relevanceInvoicesId={relevanceInvoicesId}
......
......@@ -44,13 +44,33 @@ const {
} = FormEffectHooks;
interface BillsFormProps {
/**
* 单据id
*/
id?: string;
/**
* 发货单号
*/
deliveryNo?: number;
/**
* 入库单号
*/
storageNo?: number;
validateId?: string;
// 是否是编辑的
isEdit?: boolean;
invoicesTypeId: string; // 单据类型ID
relevanceInvoices: string; // 对应单据
relevanceInvoicesId: string, // 单据id,可能是待新增销售发货单,待新增采购入库单跳转过来的
/**
* 单据类型ID
*/
invoicesTypeId: string;
/**
* 对应单据
*/
relevanceInvoices: string;
/**
* 单据id,可能是待新增销售发货单,待新增采购入库单跳转过来的
*/
relevanceInvoicesId: string;
};
function transforDirection(type) {
......@@ -72,6 +92,8 @@ function transforDirection(type) {
const BillsForm: React.FC<BillsFormProps> = ({
id,
deliveryNo = 0,
storageNo = 0,
isEdit = false,
invoicesTypeId,
relevanceInvoices,
......@@ -143,6 +165,8 @@ const BillsForm: React.FC<BillsFormProps> = ({
setInfoLoading(true);
PublicApi.getWarehouseInvoicesDetails({
invoicesId: id,
deliveryNo,
storageNo,
}).then(res => {
if (res.code !== 1000) {
return;
......
......@@ -5,6 +5,8 @@ import BillsForm from './components/BillsForm';
const EditBills: React.FC = () => {
const {
id,
deliveryNo = 0,
storageNo = 0,
invoicesTypeId, // 单据类型ID
relevanceInvoices, // 对应单据
relevanceInvoicesId, // 单据id,可能是待新增销售发货单,待新增采购入库单跳转过来的
......@@ -13,6 +15,8 @@ const EditBills: React.FC = () => {
return (
<BillsForm
id={id}
deliveryNo={deliveryNo}
storageNo={storageNo}
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