Commit 753589e0a43f32aa864a56cfd1c8e91ed6527d44

Authored by boyang
1 parent 5f016613

fix: 修改预警接口

src/pages/Order/Order/index.tsx
... ... @@ -695,8 +695,6 @@ const OrderPage = () => {
695 695 * @param optRecord
696 696 */
697 697 function getOrderStatusTag(optRecord: any): import('react').ReactNode {
698   - console.log(optRecord, '5656optRecord');
699   -
700 698 const orderStatus = optRecord.orderStatus;
701 699 const paymentMethod = optRecord.paymentMethod;
702 700 let orderStatusTagText = enumValueToLabel(
... ... @@ -4606,7 +4604,6 @@ const OrderPage = () => {
4606 4604 ) {
4607 4605 setOpenCount(true);
4608 4606 setOpen(true);
4609   - console.log(openCount, '5656openindex');
4610 4607 }
4611 4608 setInvoiceWarningNum(res.data.waitConfirmInvoice);
4612 4609 setInvoiceRefundWarningNum(res.data.waitConfirmReceipt);
... ...
src/pages/Order/OrderWarning/index.tsx
... ... @@ -4171,7 +4171,6 @@ const OrderPage = () => {
4171 4171 const formattedDate = format(newDate, 'yyyy-MM-dd HH:mm:ss');
4172 4172 setCalDate(formattedDate);
4173 4173 setValue1(value);
4174   - console.log(formattedDate, '5656formattedDate/value', value);
4175 4174 };
4176 4175 const [invoiceWarningNum, setInvoiceWarningNum] = useState(0);
4177 4176 const [invoiceRefundWarningNum, setInvoiceRefundWarningNum] = useState(0);
... ... @@ -4384,7 +4383,6 @@ const OrderPage = () => {
4384 4383 let finalParams = {
4385 4384 ...params,
4386 4385 };
4387   - console.log(5656);
4388 4386 if (value1 === 0) {
4389 4387 // const currentDate = new Date();
4390 4388 // const newDate = new Date(currentDate);
... ... @@ -4430,17 +4428,16 @@ const OrderPage = () => {
4430 4428 // } else {
4431 4429 // params.applyTimeLe = calDate;
4432 4430 // }
4433   - params.applyTimeIsNotNull = true; // 要求申请时间非空
  4431 + // params.applyTimeIsNotNull = true; // 要求申请时间非空
4434 4432 params.salesCode = userInfo.username;
4435 4433 params.warningStatus = 'invoiceConfirmWarning'; // 发票确认预警
4436 4434 params.isDeleteQueryOrder = false; // 强制查询非作废订单
4437   - params.paymentMethod = 'UNPAID';
  4435 + // params.paymentMethod = 'UNPAID';
4438 4436 finalParams = {
4439 4437 ...params,
4440 4438 invoicingEndTime: calDate,
4441 4439 };
4442 4440 } else if (activeTabKey === 4) {
4443   - console.log(value1, 56564);
4444 4441 params.warningStatus = 'paymentReceiptStatusWarning'; // 用于回款预警
4445 4442 if (calDate === 'null') {
4446 4443 params.applyTimeLe = null;
... ... @@ -4455,8 +4452,6 @@ const OrderPage = () => {
4455 4452 };
4456 4453 }
4457 4454  
4458   - console.log(params, '5656params');
4459   -
4460 4455 //保存这个搜索条件
4461 4456 setSearchParam(params);
4462 4457 const { data } = await postServiceOrderQueryServiceOrder({
... ...