Commit 2bd67dac by qinjianhui

feat: 状态推送功能开发

parent 8a21c7ac
......@@ -468,3 +468,10 @@ export function submitPodPrintOrderCompleteApi(
data,
)
}
export function statusPushApi(ids: (string | number)[]) {
return axios.post<never, BaseRespData<never>>(
'factory/podOrder/statusPush',
ids,
)
}
\ No newline at end of file
......@@ -922,6 +922,7 @@ import {
getSingleQueryPodOrderApi,
submitPodPrintOrderCompleteApi,
getFactoryOrderNewOperateDetailApi,
statusPushApi,
} from '@/api/factoryOrderNew'
import { filePath } from '@/api/axios'
import { OrderData } from '@/types/api/podMakeOrder'
......@@ -1454,6 +1455,7 @@ const handleCancelOrder = () => {
cancelOrderDialogRef.value?.open(getSelectedIds())
}
const handleRefreshProductInfo = async () => {
if (!ensureSelection()) return
try {
await ElMessageBox.confirm('确定刷新商品信息吗?', '提示', {
type: 'warning',
......@@ -1860,9 +1862,13 @@ const handleGetTrackingNumber = async () => {
successText: '获取跟踪号成功',
})
}
const handleStatusPush = () => {
if (!ensureSelection()) return
ElMessage.info('状态推送功能待集成')
const handleStatusPush = async () => {
await executeBatchAction({
getIds: getSelectedIds,
api: (ids) => statusPushApi(ids as number[]),
confirmText: '确定推送至ERP吗?',
successText: '状态推送成功',
})
}
onMounted(() => {
loadStatusTreeCounts()
......
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