Commit 7d7ae901 by zhuzhequan

Merge branch 'dev' into 'master'

Dev

See merge request !137
parents 6fcddd41 283a7dcf
......@@ -263,14 +263,14 @@ export function getPodBoxListApi(
}
export function submitInspectionApi(
data: { id: number; version?: number }[],
orderId: number | undefined,
boxIndex: number | null,
warehouseId: number | string,
) {
return axios.post<never, BaseRespData<never>>(
`factory/podJomallOrderUs/podPrintOrderComplete?box=${boxIndex}&warehouseId=${warehouseId}`,
{
orderParamList: data,
orderId,
},
)
}
......
......@@ -146,13 +146,14 @@
<span class="box-top-item-box-index-text">号箱</span>
<span style="font-size: 30px">放入第</span>
<div class="box-top-item-box-index-number">
<div class="box-top-item-box-index-number" :style="{color:podOrderDetailsData?.pickingNumber ===
podOrderDetailsData?.purchaseNumber ? 'rgb(0, 255, 0)' : ''}">
{{ podOrderDetailsData?.pickingNumber }}
</div>
<span style="font-size: 30px">件商品</span>
</div>
<div v-else class="box-top-item-box-index-text">
单件商品订单,不占用播种墙
单件商品<span style="color: rgb(0, 255, 0)">(配齐)</span>,不占用播种墙
</div>
<div class="box-top-item-status">
<span
......@@ -180,7 +181,7 @@
<ElButton type="success" @click="handlePrintFinish"
>打单完成</ElButton
>
<ElButton type="danger" @click="handleClearBox">清空箱子</ElButton>
<ElButton :disabled="boxIndex === 0" type="danger" @click="handleClearBox">清空箱子</ElButton>
</div>
<div
v-if="
......@@ -705,17 +706,9 @@ const submitInspection = async (callback: () => void) => {
if (!factoryNo) {
return
}
const data = podOrderDetailsData.value?.id
? [
{
id: podOrderDetailsData.value.id,
version: podOrderDetailsData.value?.version,
},
]
: []
try {
const res = await submitInspectionApi(
data,
podOrderDetailsData.value?.id,
boxIndex.value,
warehouseId.value,
)
......@@ -906,6 +899,10 @@ const handleBoxClick = (item: PodMakeOrderData) => {
}
const handleClearBox = async () => {
try {
if(!boxIndex.value){
ElMessage.warning('请选择箱子')
return
}
await ElMessageBox.alert('确定清空当前箱子吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
......@@ -917,6 +914,7 @@ const handleClearBox = async () => {
if (!factoryNo) {
return
}
try {
const res = await clearBoxApi(
factoryNo,
......
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