Commit 493783b8 by wusiyi

feat: 快捷生产自动完成上一单 #1012121

parent 6c4e5824
......@@ -262,12 +262,7 @@
}}
</el-button>
<div class="check">
<el-checkbox
v-if="fastKey !== 'productionScan'"
v-model="isAutoSure"
>
自动完成上一单
</el-checkbox>
<el-checkbox v-model="isAutoSure"> 自动完成上一单 </el-checkbox>
</div>
</div>
<div v-if="fastKey !== 'fastReceipt'" class="btn-down">
......@@ -797,11 +792,8 @@ const trackCodeInput = async () => {
const orderNumber = TrackingNumber.value
if (!['productionScan'].includes(props.fastKey) && isAutoSure.value) {
await setData(
historyData.value[historyData.value.length - 1].orderNumber || '',
'auto',
)
if (isAutoSure.value) {
await setData(historyKeyFromDetail(detail.value), 'manual')
}
try {
......
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