Commit 2f95fa32 by zhuzhequan

质检完成清数据

parent 87c5b231
......@@ -133,8 +133,8 @@ export default function useQuarantine() {
const loadShipmentOrderByCode = async (code: string, uid: string) => {
try {
const res = await getQaOrderBySubOrderNumber(code, uid)
const code1 = code?.split('_')[0];
res.data = res.data.map((item:QaData) => {
const code1 = code?.split('_')[0]
res.data = res.data.map((item: QaData) => {
return {
...item,
scansNum: item.inspectionStatus ? item.passNum : 0,
......@@ -189,6 +189,12 @@ export default function useQuarantine() {
playAudio('picking_search_error')
}
}
const toSaveQuarantine = async () => {
await saveQuarantine(() => {
sourceData.value = []
_sourceData.value = []
})
}
// 质检完成
const saveQuarantine = async (callback?: () => void) => {
try {
......@@ -376,6 +382,7 @@ export default function useQuarantine() {
confirmCheck,
searchQaByOrderNumber,
saveQuarantine,
toSaveQuarantine,
onQaDialogOpened,
onChangeTab,
onSuccessQc,
......
......@@ -905,7 +905,7 @@
<el-button size="large" @click="quarantineVisible = false"
>取消
</el-button>
<el-button size="large" type="primary" @click="() => saveQuarantine()"
<el-button size="large" type="primary" @click="() => toSaveQuarantine()"
>质检完成
</el-button>
</div>
......@@ -1214,6 +1214,7 @@ const {
shipmentUid,
searchQaByOrderNumber,
saveQuarantine,
toSaveQuarantine,
confirmCheck,
onQaDialogOpened,
} = quarantine
......
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