Commit cad73768 authored by XieZhiXiong's avatar XieZhiXiong

chore: 统一发货数据id字段名称

parent c05c16f9
......@@ -95,7 +95,7 @@ export type ValuesType = {
/**
* 数据id
*/
returnDetailId: number,
detailId?: number,
}[],
/**
* 退货发货地址
......@@ -155,7 +155,7 @@ type ProductListItemType = {
/**
* 数据id
*/
returnDetailId?: number,
detailId?: number,
}
export type AfterType = 2 | 3
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-05 15:18:15
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-09-24 10:39:53
* @LastEditTime: 2021-11-12 10:25:14
* @Description: 换货发货统计、换货发货明细
*/
import React, { useState } from 'react';
......
......@@ -39,7 +39,7 @@ const ExchangePrDeliverVerify: React.FC = () => {
productList: productList.map((item) => ({
productId: item.productId,
returnCount: +item.count,
replaceDetailId: item.returnDetailId,
replaceDetailId: item.detailId,
})),
deliveryTime: moment(deliveryTime).valueOf(),
logisticsName: logisticsNameTxt,
......@@ -95,7 +95,7 @@ const ExchangePrDeliverVerify: React.FC = () => {
receiveCount: item.receiveCount,
subCount: item.subCount,
count: item.noDeliveryCount,
returnDetailId: item.detailId,
detailId: item.detailId,
}))
),
}}
......
......@@ -37,6 +37,7 @@ const ExchangePrDeliverVerify: React.FC = () => {
brand: item.brand,
unit: item.unit,
count: +item.count,
replaceDetailId: item.detailId,
})),
deliveryTime: moment(deliveryTime).valueOf(),
logisticsName: logisticsNameTxt,
......@@ -95,6 +96,7 @@ const ExchangePrDeliverVerify: React.FC = () => {
receiveCount: current?.receiveCount || 0,
subCount: current?.differenceCount || 0,
count: current?.unDeliveryCount || 0,
detailId: item.detailId,
};
})
),
......
......@@ -39,7 +39,7 @@ const ReturnPrDeliverVerify: React.FC = () => {
productList: productList.map((item) => ({
productId: item.productId,
returnCount: +item.count,
returnDetailId: item.returnDetailId,
returnDetailId: item.detailId,
})),
deliveryTime: moment(deliveryTime).valueOf(),
logisticsName: logisticsNameTxt,
......@@ -96,7 +96,7 @@ const ReturnPrDeliverVerify: React.FC = () => {
receiveCount: item.receiveCount,
subCount: item.subCount,
count: item.noDeliveryCount,
returnDetailId: item.returnDetailId,
detailId: item.returnDetailId,
}))
),
}}
......
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