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

fix:修复无法出现发货按钮

parent 13d9cb6d
module.exports = function customName(name) {
console.log(name)
if (name === 'Interval') {
return 'bizcharts/lib/geometry/Interval'
}
......
......@@ -154,7 +154,7 @@ const sideChildrenCols: any[] = [
const OrderDeleveRecord:React.FC<OrderDeleveRecordProps> = (props) => {
const pathname = history.location.pathname
const isPreview = pathname.lastIndexOf('/preview')
const isPreview = pathname.lastIndexOf('/preview') !== -1
// 用于储存已经修改过的订单id
const dataRef = useRef<any>([])
......
......@@ -153,11 +153,12 @@ const sideChildrenCols: any[] = [
// 订单发货记录
const OrderSaleRecord:React.FC<OrderSaleRecordProps> = (props) => {
const pathname = history.location.pathname
const isPreview = pathname.lastIndexOf('/preview')
const isPreview = pathname.lastIndexOf('/preview') !== -1
// 用于储存已经修改过的订单id
const dataRef = useRef<any>([])
const { data, reloadFormData } = useContext(OrderDetailContext)
const { orderReceivingStatisticsResponses, orderDeliveryDetailsResponses } = data
console.log(dataRef, isPreview)
const sideOrderCols: any[] = [
{
title: '发货批次',
......
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