diff --git a/dist.zip b/dist.zip index 6162b8f..4138b53 100644 Binary files a/dist.zip and b/dist.zip differ diff --git a/package.json b/package.json index b88ae3a..8907a66 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ant-design-pro", - "version": "4.5.133", + "version": "4.5.139", "private": true, "description": "An out-of-box UI solution for enterprise applications", "scripts": { diff --git a/src/pages/travelMember/BookingMealOrder/components/orderDetailModal.tsx b/src/pages/travelMember/BookingMealOrder/components/orderDetailModal.tsx index 158b177..3a3e145 100644 --- a/src/pages/travelMember/BookingMealOrder/components/orderDetailModal.tsx +++ b/src/pages/travelMember/BookingMealOrder/components/orderDetailModal.tsx @@ -10,7 +10,7 @@ import orderIcon from '@/assets/detail/orderIcon.png' import closeIcon from '@/assets/detail/closeIcon.png' import ProTable from "@ant-design/pro-table"; import { PlusOutlined, DeleteOutlined } from '@ant-design/icons'; -import { handeDeleteSaleBillInfo, handeGetSALEADDRESSList, handeGetSALEBILLDetail, handeGetSALEBILLList, handeGetSALEDETAILDetail, handeGetSALEDETAILList, handeModifyTrackingInfo, handeSendSaleBillGoods } from "../../service"; +import { handeDeleteSaleBillInfo, handeGetSALEADDRESSList, handeGetSALEBILL_CHILDDetail, handeGetSALEBILLDetail, handeGetSALEBILLList, handeGetSALEDETAILDetail, handeGetSALEDETAILList, handeModifyTrackingInfo, handeSendSaleBillGoods } from "../../service"; import './style.less' interface LogisticsInfo { @@ -27,8 +27,9 @@ type DetailProps = { showShipment?: boolean;// 判断 在待发货状态下 是否显示发货按钮 currentUser?: any // 页面公参 actionRef?: any// 父级表格实例 + comeType?: string // 是嵌套在哪个页面里面的 TradingLedger 台账页面 OrderAfterSalesManage 售后订单 } -const OrderDetailModal = ({ modalVisible, handleCloseModal, currentRow, detailType, showShipment, currentUser, actionRef }: DetailProps) => { +const OrderDetailModal = ({ modalVisible, handleCloseModal, currentRow, detailType, showShipment, currentUser, actionRef, comeType }: DetailProps) => { const formRef = useRef(); const draggleRef = React.createRef() const modalRef = useRef(); @@ -423,9 +424,26 @@ const OrderDetailModal = ({ modalVisible, handleCloseModal, currentRow, detailTy }) let addressObj: any = addressData.List[0] + console.log('订单详情', data); + + // 判断一下 若 currentRow?.TABLE_NUMBER 没有这个 那就查查看子订单里面 有没有这个 + // 子订单里面查询到的物流信息 + let newLogistics = '' + if (!currentRow?.TABLE_NUMBER) { + if (currentRow?.OrderChildId) { + const data = await handeGetSALEBILL_CHILDDetail({ + SALEBILL_CHILDId: currentRow?.OrderChildId + }) + console.log('子订单详情', data); + if (data.TABLE_NUMBER) { + newLogistics = data.TABLE_NUMBER + } + } + } + // 物流公司和快递单号的回显 - if (currentRow?.TABLE_NUMBER) { - let list: any = currentRow?.TABLE_NUMBER.split(',') + if (currentRow?.TABLE_NUMBER || newLogistics) { + let list: any = currentRow?.TABLE_NUMBER ? currentRow?.TABLE_NUMBER.split(',') : newLogistics ? newLogistics.split(',') : "" let res: any = [] if (list && list.length > 0) { list.forEach((item: any, index: number) => { @@ -444,14 +462,14 @@ const OrderDetailModal = ({ modalVisible, handleCloseModal, currentRow, detailTy } return { ...data, - ORDER_PERSON: currentRow?.AddressInfo ? `${currentRow?.AddressInfo.USER_NAME}${currentRow?.AddressInfo?.MOBILEPHONE ? `【${currentRow?.AddressInfo?.MOBILEPHONE}】` : ""}` || "" : "", + ORDER_PERSON: currentRow?.AddressInfo ? `${currentRow?.AddressInfo.USER_NAME}${currentRow?.AddressInfo?.MOBILEPHONE ? `【${currentRow?.AddressInfo?.MOBILEPHONE}】` : ""}` || "" : currentRow?.ReceiverName || "", ORDER_ADDRESS: `${addressObj?.ADDRESS || ""}${addressObj?.DOORPLATE || ""}`, CURRENT_POINT: currentRow?.CURRENT_POINT || "", - ORDER_DATE: currentRow?.ORDER_DATE ? moment(currentRow?.ORDER_DATE).format('YYYY-MM-DD HH:mm:ss') : '', - CHANNEL_TYPE: currentRow?.CHANNEL_TYPE || "", + ORDER_DATE: currentRow?.ORDER_DATE ? moment(currentRow?.ORDER_DATE).format('YYYY-MM-DD HH:mm:ss') : currentRow?.PaymentTime || '', + CHANNEL_TYPE: currentRow?.CHANNEL_TYPE || currentRow?.PaymentMethod || "", TAKE_TYPE: data.TAKE_TYPE === 1000 ? "自提" : data.TAKE_TYPE === 3000 ? '免发货' : '邮寄', SALEBILL_STATE: currentRow?.SALEBILL_STATE || data?.SALEBILL_STATE, - SALEBILL_CODELIST: currentRow?.SALEBILL_CODE || '' + SALEBILL_CODELIST: currentRow?.SALEBILL_CODE || currentRow?.OrderCode || '' } } else { const req: any = { @@ -483,10 +501,10 @@ const OrderDetailModal = ({ modalVisible, handleCloseModal, currentRow, detailTy ORDER_ADDRESS: `${addressObj?.ADDRESS || ""}${addressObj?.DOORPLATE || ""}`, CURRENT_POINT: currentRow?.CURRENT_POINT || "", ORDER_DATE: res?.ORDER_DATE ? moment(res?.ORDER_DATE).format('YYYY-MM-DD HH:mm:ss') : '', - CHANNEL_TYPE: currentRow?.CHANNEL_TYPE || "", + CHANNEL_TYPE: currentRow?.CHANNEL_TYPE || currentRow?.PaymentMethod || "", TAKE_TYPE: res.TAKE_TYPE === 1000 ? "自提" : res.TAKE_TYPE === 3000 ? '免发货' : '邮寄', SALEBILL_STATE: currentRow?.SALEBILL_STATE || data?.SALEBILL_STATE, - SALEBILL_CODELIST: currentRow?.SALEBILL_CODE || '' + SALEBILL_CODELIST: currentRow?.SALEBILL_CODE || currentRow?.OrderCode || '' } } else { message.error('当前订单数据异常,请联系管理员!') @@ -568,15 +586,18 @@ const OrderDetailModal = ({ modalVisible, handleCloseModal, currentRow, detailTy style={{ marginBottom: '16px' }} /> + { + comeType === 'TradingLedger' ? '' : + + + + } - - - } - - - + { + comeType === 'TradingLedger' ? '' : + + + + } + { + comeType === 'TradingLedger' ? '' : + + + + } - - - - - - - + { + comeType === 'TradingLedger' ? '' : + + + + } diff --git a/src/pages/travelMember/MallClassificationManage/index.tsx b/src/pages/travelMember/MallClassificationManage/index.tsx index 1b8c6c6..b4da6ac 100644 --- a/src/pages/travelMember/MallClassificationManage/index.tsx +++ b/src/pages/travelMember/MallClassificationManage/index.tsx @@ -21,7 +21,7 @@ import type { ProDescriptionsItemProps } from '@ant-design/pro-descriptions'; import type { FormInstance } from 'antd'; import { getFieldEnumTree, getFieldEnumName } from "@/services/options"; // 枚举的引用,没有使用可以删除 -import { handlDeleteUSERDEFINEDTYPE, handlGetUSERDEFINEDTYPEList, handlSynchroUSERDEFINEDTYPE } from '../service'; +import { handeGetCOMMODITYList, handlDeleteUSERDEFINEDTYPE, handlGetUSERDEFINEDTYPEList, handlSynchroUSERDEFINEDTYPE } from '../service'; import PageTitleBox from '@/components/PageTitleBox'; import { uploadAHYDPicture, uploadPicture } from '@/services/picture'; import defaultIcon from '../../../assets/brand/defaultIcon.png' @@ -165,11 +165,14 @@ const MallClassificationManage: React.FC<{ currentUser: CurrentUser | undefined width: 120, ellipsis: true, valueType: "select", - valueEnum: { - "1": "上架", - "0": "下架" + fieldProps: { + options: [{ label: "上架", value: 1 }, { label: "下架", value: 0 }] }, - initialValue: "1" + // valueEnum: { + // "0": "下架", + // "1": "上架" + // }, + initialValue: 1 }, { dataIndex: "PRESALE_TYPE", @@ -507,7 +510,8 @@ const MallClassificationManage: React.FC<{ currentUser: CurrentUser | undefined preserve={false} initialValues={currentRow ? { ...currentRow, - PRESALE_TIME: currentRow?.PRESALE_TYPE ? [currentRow?.PRESALE_STARTTIME, currentRow?.PRESALE_ENDTIME] : "" + PRESALE_TIME: currentRow?.PRESALE_TYPE ? [currentRow?.PRESALE_STARTTIME, currentRow?.PRESALE_ENDTIME] : "", + USERDEFINEDTYPE_DATE: moment(currentRow?.USERDEFINEDTYPE_DATE).format('YYYY-MM-DD HH:mm:ss'), } : { USERDEFINEDTYPE_STATE: 1, USERDEFINEDTYPE_DATE: moment().format('YYYY-MM-DD HH:mm:ss'), @@ -524,8 +528,44 @@ const MallClassificationManage: React.FC<{ currentUser: CurrentUser | undefined console.log('fileListfileList', fileList); console.log('newValuenewValuenewValue', newValue); - // 如果有开关,要把开关的代码写进去 - await handleAddUpdate(newValue); + // 这里判断一下 如果是要将分类下架的话 需要提示一下 还有商品在里面 是否下架 + if (newValue.SCANCODE_ORDER === 0) { + // 去请求一下 这个分类下面 还有没有商品 + console.log('newvalue', newValue); + const req = { + searchParameter: { + USERDEFINEDTYPE_IDS: newValue?.USERDEFINEDTYPE_ID, + UPPER_STATE: 1, + COMMODITY_TYPE: 4000, + COMMODITY_STATE: 1, + }, + PageIndex: 1, + PageSize: 999999, + SortStr: "OPERATE_DATE desc" + } + const data = await handeGetCOMMODITYList(req); + let list: any = data.List + // 判断 当前分类下的 全部上架了的商品 若有 就要提示 没有也就正常 + if (list && list.length > 0) { + confirm({ + title: '当前分类下还存在上架商品,确认下架?', + icon: , + async onOk() { + await handleAddUpdate(newValue); + }, + onCancel() { + handleConfirmLoading(false) + setFormPRESALE_TYPE(false) + }, + }); + } else { + await handleAddUpdate(newValue); + } + return + } else { + // 如果有开关,要把开关的代码写进去 + await handleAddUpdate(newValue); + } handleConfirmLoading(false) setFormPRESALE_TYPE(false) diff --git a/src/pages/travelMember/MallOrderManage/index.tsx b/src/pages/travelMember/MallOrderManage/index.tsx index ffec823..ff6f274 100644 --- a/src/pages/travelMember/MallOrderManage/index.tsx +++ b/src/pages/travelMember/MallOrderManage/index.tsx @@ -2,7 +2,7 @@ import { connect } from "umi"; import type { CurrentUser } from "umi"; import type { ConnectState } from "@/models/connect"; -import React, { useRef, useState } from "react"; +import React, { useEffect, useRef, useState } from "react"; import { Button, Col, message, Modal, Row, Spin, type FormInstance } from "antd"; import type { ActionType } from "@ant-design/pro-table"; import ProTable from "@ant-design/pro-table"; @@ -473,7 +473,8 @@ const MallOrderManage: React.FC<{ currentUser: CurrentUser, isComponent?: boolea COMPANY_STATE: 1000 }, PageIndex: 1, - PageSize: 999999 + PageSize: 999999, + SortStr: "COMPANY_CODE" } const data = await handeGetCOMPANYList(req) console.log('datadata', data); @@ -769,17 +770,16 @@ const MallOrderManage: React.FC<{ currentUser: CurrentUser, isComponent?: boolea } // 拿到会员列表 - const handleGetUserList = async (e: any) => { + const handleGetUserList = async (e?: any) => { const req: any = { SearchParameter: { - MEMBERSHIP_COMPANYS: e, + MEMBERSHIP_COMPANYS: e || "", MEMBERSHIP_STATES: 1 }, PageIndex: 1, PageSize: 999999 } const data = await handeGetMEMBERSHIPVIPList(req) - console.log('会员', data); let list: any = [] if (data && data.length > 0) { data.forEach((item: any) => { @@ -858,6 +858,10 @@ const MallOrderManage: React.FC<{ currentUser: CurrentUser, isComponent?: boolea } } + useEffect(() => { + handleGetUserList() + }, []) + return (
{ diff --git a/src/pages/travelMember/OrderAfterSalesManage/index.tsx b/src/pages/travelMember/OrderAfterSalesManage/index.tsx index 9de0843..b86587a 100644 --- a/src/pages/travelMember/OrderAfterSalesManage/index.tsx +++ b/src/pages/travelMember/OrderAfterSalesManage/index.tsx @@ -148,6 +148,14 @@ const OrderAfterSalesManage: React.FC<{ currentUser: CurrentUser }> = (props) => : "" } }, + { + title: "原订单号", + dataIndex: "TABLE_NUMBER", + width: 200, + hideInSearch: true, + ellipsis: true, + align: "center", + }, { title: "购买的商品", dataIndex: "COMMODITY_NAME", @@ -203,11 +211,11 @@ const OrderAfterSalesManage: React.FC<{ currentUser: CurrentUser }> = (props) => }, { title: "退款时间", - dataIndex: "RESERVATION_ENDDATE", - width: 120, + dataIndex: "PAY_DATE", + width: 150, hideInSearch: true, ellipsis: true, - sorter: (a, b) => new Date(a.RESERVATION_ENDDATE).getTime() - new Date(b.RESERVATION_ENDDATE).getTime(), + sorter: (a, b) => new Date(a.PAY_DATE).getTime() - new Date(b.PAY_DATE).getTime(), align: "center", }, { @@ -434,7 +442,7 @@ const OrderAfterSalesManage: React.FC<{ currentUser: CurrentUser }> = (props) => visible={modalVisible} confirmLoading={confirmLoading} afterClose={() => { - formRef.current?.resetFields(); + // formRef.current?.resetFields(); setCurrentRow(undefined); }} onCancel={() => { @@ -498,7 +506,9 @@ const OrderAfterSalesManage: React.FC<{ currentUser: CurrentUser }> = (props) => initialValues={currentRow ? { ...currentRow, orderPerson: `${currentRow?.ORDER_PERSON || ""}${currentRow?.ORDER_PERSONTEL ? `【${currentRow?.ORDER_PERSONTEL}】` : ""}`, - ORDER_DATE: currentRow?.ORDER_DATE ? moment(currentRow?.ORDER_DATE).format('YYYY-MM-DD HH:mm:ss') : '' + ORDER_DATE: currentRow?.ORDER_DATE ? moment(currentRow?.ORDER_DATE).format('YYYY-MM-DD HH:mm:ss') : '', + shippingStatus: "未发货", + PAY_DATE: currentRow?.PAY_DATE || "" } : {}} >
@@ -514,13 +524,29 @@ const OrderAfterSalesManage: React.FC<{ currentUser: CurrentUser }> = (props) =>
-
订单信息
+ {/*
订单信息
*/} + + + + + + @@ -535,13 +561,22 @@ const OrderAfterSalesManage: React.FC<{ currentUser: CurrentUser }> = (props) => + + + + {/* = (props) => readonly style={{ marginBottom: '16px' }} /> - + */} = (props) => style={{ marginBottom: '16px' }} /> - + {/* = (props) => readonly style={{ marginBottom: '16px' }} /> - + */} = (props) => - + {/* - + */} = (props) => ]} /> - + {/* = (props) => { label: "已评价", value: 1 }, ]} /> - + */} + + + + + {/* = (props) => { dataIndex: 'SupplierName', title:
供应商名称
, align: 'left', - width: 250, + width: 200, ellipsis: true, hideInSearch: true, render: (_, record) => { @@ -219,7 +219,7 @@ const TradingLedger: React.FC<{ currentUser: CurrentUser }> = (props) => { dataIndex: "CompanyName", title:
所属单位
, hideInSearch: true, - width: 300, + width: 250, ellipsis: true, }, { @@ -237,7 +237,7 @@ const TradingLedger: React.FC<{ currentUser: CurrentUser }> = (props) => { dataIndex: 'ReceiverName', title:
收货人员
, align: 'center', - width: 150, + width: 120, ellipsis: true, hideInSearch: true }, @@ -245,7 +245,7 @@ const TradingLedger: React.FC<{ currentUser: CurrentUser }> = (props) => { dataIndex: 'ReceiverPhone', title:
联系电话
, align: 'center', - width: 150, + width: 120, ellipsis: true, hideInSearch: true }, @@ -258,10 +258,19 @@ const TradingLedger: React.FC<{ currentUser: CurrentUser }> = (props) => { hideInSearch: true, render: (_, record) => { return { - setCurrentRow(record); + console.log('recordrecord', record); + setCurrentRow({ + ...record, + SALEBILL_STATE: Number(record?.OrderStatus), + AddressInfo: { + USER_NAME: record?.ReceiverName,// 收货人 + MOBILEPHONE: record?.ReceiverPhone // 收货电话 + }, + ORDER_DATE: record?.OrderDate,// 下单时间 + SALEBILL_CODE: record?.OrderCode// 订单编码 + }); handleModalVisible(true) handleSetlogSave(`查询收货人【${record?.ORDER_PERSON}】编码【${record.OrderCode}】订单`) - }}> {highlightText(record?.CommodityName, currentSearchText)} @@ -271,7 +280,7 @@ const TradingLedger: React.FC<{ currentUser: CurrentUser }> = (props) => { dataIndex: 'SaleTotalTaxAmount', title: '订单金额', align: 'right', - width: 150, + width: 100, ellipsis: true, hideInSearch: true, sorter: (a, b) => a.ORDER_AMOUNT - b.ORDER_AMOUNT, @@ -280,7 +289,7 @@ const TradingLedger: React.FC<{ currentUser: CurrentUser }> = (props) => { dataIndex: 'PayAmount', title: '实付金额', align: 'right', - width: 150, + width: 100, ellipsis: true, hideInSearch: true, sorter: (a, b) => a.PayAmount - b.PayAmount, @@ -290,13 +299,13 @@ const TradingLedger: React.FC<{ currentUser: CurrentUser }> = (props) => { title:
工会积分
, align: 'right', valueType: 'digit', - width: 150, + width: 100, ellipsis: true, hideInSearch: true, }, { title: "订单类型", - width: 150, + width: 120, dataIndex: "OrderType", valueType: "select", align: 'center', @@ -652,6 +661,7 @@ const TradingLedger: React.FC<{ currentUser: CurrentUser }> = (props) => { // 获取导出数据 const handleGetExportData = async (type: number) => { + // type :1商品明细,2财务结算表 setGetExportDataLoading(true) const req: any = { @@ -659,8 +669,8 @@ const TradingLedger: React.FC<{ currentUser: CurrentUser }> = (props) => { OwnerUnitId: "911", CompanyId: searchParams?.CompanyId || "", MerchantId: currentUser?.UserPattern === 4000 ? currentUser?.SupplierID : searchParams?.MERCHANTS_IDS || "", - SaleBillState: searchParams?.orderStatus === '0' ? '' : (searchParams?.orderStatus || ""), - SaleBillType: searchParams?.orderType === '0' ? '' : (searchParams?.orderType || ""), + SaleBillState: searchParams?.OrderStatus === '0' ? '' : (searchParams?.OrderStatus || ""), + SaleBillType: searchParams?.OrderType === '0' ? '' : (searchParams?.OrderType || ""), ChannelType: searchParams?.CHANNEL_TYPE === '0' ? '' : searchParams?.CHANNEL_TYPE || "", StartDate: searchParams?.ORDER_DATE_Start || "", EndDate: searchParams?.ORDER_DATE_End || "", @@ -784,7 +794,7 @@ const TradingLedger: React.FC<{ currentUser: CurrentUser }> = (props) => { ChannelType: params?.CHANNEL_TYPE === '0' ? '' : params?.CHANNEL_TYPE || "", StartDate: params?.ORDER_DATE_Start || "", EndDate: params?.ORDER_DATE_End || "", - SearchKeyName: "MERCHANTS_NAME,COMMODITY_NAME,SALEBILL_CHILD_CODE,ORDER_PERSON,ORDER_PERSONTEL", + SearchKeyName: "MERCHANTS_NAME,COMMODITY_NAME,SALEBILL_CHILD_CODE,ORDER_PERSON,ORDER_PERSONTEL,USER_NAME,MOBILEPHONE", SearchKeyValue: params?.searchText || "", SortStr: "" } @@ -829,7 +839,7 @@ const TradingLedger: React.FC<{ currentUser: CurrentUser }> = (props) => {
- + ) diff --git a/src/pages/travelMember/service.ts b/src/pages/travelMember/service.ts index bf1f445..0ddb228 100644 --- a/src/pages/travelMember/service.ts +++ b/src/pages/travelMember/service.ts @@ -550,6 +550,17 @@ export async function handeGetSALEBILLDetail(params: any) { return data.Result_Data } +// 查询线上订单的子订单详情 +export async function handeGetSALEBILL_CHILDDetail(params: any) { + const data = await requestEncryption(`/OnlineOrder/GetSALEBILL_CHILDDetail`, { + method: 'POST', + data: { ...params, requestEncryption: true } + }) + if (data.Result_Code !== 100) { + return [] + } + return data.Result_Data +} // 获取评价表列表 export async function handeGetCOMMENTList(params: any) { diff --git a/src/versionEnv.ts b/src/versionEnv.ts index 9c6394f..2e1da31 100644 --- a/src/versionEnv.ts +++ b/src/versionEnv.ts @@ -1,4 +1,4 @@ // 由 scripts/writeVersion.js 自动生成 -export const VERSION = "4.5.133"; -export const GIT_HASH = "63f1b3d"; -export const BUILD_TIME = "2026-01-26T10:46:55.942Z"; +export const VERSION = "4.5.139"; +export const GIT_HASH = "d1cd460"; +export const BUILD_TIME = "2026-01-28T08:14:40.893Z";