Commit fb972b49 by wusiyi

fix: 修改生产完成按钮名称

parent 2b8ba06a
...@@ -546,16 +546,7 @@ ...@@ -546,16 +546,7 @@
>拣胚完成</ElButton >拣胚完成</ElButton
> >
</span> </span>
<span
v-if="['PENDING_PICK', 'PENDING_REPLENISH'].includes(status)"
class="item"
>
<ElButton
type="warning"
@click="handleQuickProduction('productionScan')"
>生产扫码</ElButton
>
</span>
<span v-if="status === 'PENDING_PICK'" class="item"> <span v-if="status === 'PENDING_PICK'" class="item">
<ElButton type="danger" @click="handlePickFail">拣胚失败</ElButton> <ElButton type="danger" @click="handlePickFail">拣胚失败</ElButton>
</span> </span>
...@@ -588,10 +579,15 @@ ...@@ -588,10 +579,15 @@
>申请补胚</ElButton >申请补胚</ElButton
> >
</span> </span>
<span v-if="status === 'IN_PRODUCTION'" class="item"> <span
<ElButton v-if="
type="success" ['PENDING_PICK', 'PENDING_REPLENISH', 'IN_PRODUCTION'].includes(
@click="handleQuickProduction('fastProduction')" status,
)
"
class="item"
>
<ElButton type="success" @click="handleQuickProduction()"
>快捷生产</ElButton >快捷生产</ElButton
> >
</span> </span>
...@@ -2911,9 +2907,11 @@ const handleViewDetail = async (item: operateOrderListData) => { ...@@ -2911,9 +2907,11 @@ const handleViewDetail = async (item: operateOrderListData) => {
} }
} }
const isLimitScan = ref(false) const isLimitScan = ref(false)
const handleQuickProduction = (key: 'fastProduction' | 'productionScan') => { const handleQuickProduction = () => {
detailVisible.value = true detailVisible.value = true
fastKey.value = key fastKey.value = ['PENDING_PICK', 'PENDING_REPLENISH'].includes(status.value)
? 'productionScan'
: 'fastProduction'
isLimitScan.value = true isLimitScan.value = true
detailData.value = {} detailData.value = {}
} }
......
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