Added ReprintPDFDataShare componnt

This commit is contained in:
Srinath 2026-02-16 14:30:47 +05:30
parent f9b0b9191c
commit ede0fce223
1 changed files with 25 additions and 11 deletions

View File

@ -88,6 +88,8 @@ import { changeOrderOfferDetail } from '../../../../../Features/Offer/Offer.js';
import { ChangeFullFreeProductList, changeFullOfferAppliedProducts, changeLoyaltyConsumedQuantities } from '../../../../../Features/Offer/Offernew/BookingOffernew.js';
import { ChangeTotalAmount } from '../../../../../Features/ExteraCharges/ExtraCharges.js';
import { Radio } from 'antd';
import ReprintPDFDataShare from './ReprintPDFDataShare.jsx';
import { ImShare } from 'react-icons/im';
const RetailApiurl = import.meta.env.ENV_API_URL;
@ -116,7 +118,6 @@ function BSReprint({ setOpenModel = () => { } }) {
const [bulkMode, setBulkMode] = useState(false);
const [loading, setLoading] = useState(false);
const [reprintData, setReprintData] = useState([]);
console.log(reprintData, 'reprintData');
const [reprintReasonList, setReprintReasonList] = useState([]);
const [isDuplicate, setIsDuplicate] = useState('Original');
const [BillSearch, setBillSearch] = useState('');
@ -167,6 +168,7 @@ function BSReprint({ setOpenModel = () => { } }) {
const SessionMobileNo = getSession('MobileNo');
const [dateStrings, setDateStrings] = useState([]);
const [type, setType] = useState("Sales");
const [showShareModal, setShowShareModal] = useState(false);
// ---- 1. Fetch Function ----
const fetchData = async ({ queryKey }) => {
const [_, dates, page, type] = queryKey;
@ -1193,7 +1195,6 @@ function BSReprint({ setOpenModel = () => { } }) {
const mutiplePrint = async (printType) => {
setIsProcessing(true);
setProcessingProgress(0);
const result = await MobileMultiPdfPrint({
printerTemplateStyle,
printDatas,
@ -1490,7 +1491,9 @@ function BSReprint({ setOpenModel = () => { } }) {
Reprintformdata();
}}
/>
<div>
<ImShare fontSize={22} onClick={() => setShowShareModal(true)} style={{ cursor: 'pointer' }} />
</div>
<div>
{selectedRows.length > 0 && (
<div className="action-icons-reprint">
@ -1503,6 +1506,9 @@ function BSReprint({ setOpenModel = () => { } }) {
onClick={() => mutiplePrint('whatsapp')}
className="icon-whatsapp"
/>
{/* <ReprintPDFDataShare
printData={selectedRows}
/> */}
</div>
)}
</div>
@ -1848,6 +1854,14 @@ function BSReprint({ setOpenModel = () => { } }) {
/>
</div>
))}
{ showShareModal && <ReprintPDFDataShare
printerTemplateStyle={printerTemplateStyle}
printDatas={printDatas}
SettingDataSelector={SettingDataSelector}
open={showShareModal}
onClose={() => setShowShareModal(false)}
/>}
</>
);
}