Commit cfdabd67 by qinjianhui

feat: 申请补胚功能

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