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

table fix

parent 6d5e7503
import React, { useRef } from 'react' import React, { useRef } from 'react'
import { history, Link } from 'umi' import { history, Link } from 'umi'
import { Button, Row, Col } from 'antd' import { Button, Row, Col, Modal } from 'antd'
import { PublicApi } from '@/services/api' import { PublicApi } from '@/services/api'
import EyePreview from '@/components/EyePreview' import EyePreview from '@/components/EyePreview'
import { formatTimeString } from '@/utils' import { formatTimeString } from '@/utils'
...@@ -103,7 +103,19 @@ export const useSelfTable = () => { ...@@ -103,7 +103,19 @@ export const useSelfTable = () => {
] ]
const handleConfirm = async (record) => { const handleConfirm = async (record) => {
history.push(`/memberCenter/tranactionAbility/saleOrder/addSaleDelevedOrder/detail?id=${record.id}&preview=0`) Modal.confirm({
title: '确认审核操作',
content: `是否确认审核发货单号为${record.invoiceNumber}的销售发货单?`,
onOk: async () => {
const { code } = await PublicApi.postOrderAuditSalesInvoice({
id: record.orderDeliveryDetailsId,
orderId: record.id
})
if (code === 1000) {
ref.current.reload()
}
}
})
} }
const handleAdd = async (record) => { const handleAdd = async (record) => {
......
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