Commit fb972b49 by wusiyi

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

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