Commit cfdabd67 by qinjianhui

feat: 申请补胚功能

parent 8fd0e150
......@@ -173,8 +173,8 @@ export function printPickOrderApi(ids: (number | string)[]) {
export function applyReplenishApi(ids: (number | string)[]) {
return axios.post<never, BaseRespData<void>>(
'factory/orderNew/applyReplenish',
{ ids },
'factory/podOrderOperation/applyForReplenishment',
ids,
)
}
......
......@@ -660,7 +660,6 @@
>
</span>
</div>
<!-- ====== 挂起状态 Tab ====== -->
<div v-if="status === 'SUSPEND'" class="status-subtabs">
<div
v-for="tab in suspendedTabs"
......@@ -1709,6 +1708,11 @@ const handleCancelOrder = () => {
}
const handleRefreshProductInfo = async () => {
if (!ensureSelection()) return
try {
await ElMessageBox.confirm('确定刷新商品信息吗?', '提示', { type: 'warning' })
} catch {
return
}
const loading = ElLoading.service({
fullscreen: true,
text: '操作中...',
......@@ -2090,7 +2094,8 @@ const handleApplyReplenish = async () => {
background: 'rgba(0, 0, 0, 0.3)',
})
try {
await applyReplenishApi(getSelectedIds())
const res = await applyReplenishApi(getSelectedIds())
if (res.code !== 200) return
ElMessage.success('申请补胚成功')
refreshCurrentView({ isRefreshTree: true })
} catch (e) {
......@@ -2186,7 +2191,7 @@ const handleSyncAddress = async () => {
}
const handleReplenishComplete = () => {
if (!ensureSelection()) return
ElMessage.info('补胚完成功能待集成')
pickCompleteDialogRef.value?.open(getSelectedIds())
}
const handleReplenishFail = () => {
if (!ensureSelection()) return
......
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