|
|
@ -55,7 +55,7 @@ import { ref, getCurrentInstance, nextTick } from 'vue' |
|
|
|
import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app' |
|
|
|
import { purchaseReceiptJobSubmit, getPurchaseReceiptJobDetail, takePurchaseReceiptJob, cancleTakePurchaseReceiptJob, productDismantleJobClose, getPutawayJobList } from '@/api/request2.js' |
|
|
|
|
|
|
|
import { goHome, getCurrDateTime, getPackingNumberAndBatch, compareAsc, navigateBack } from '@/common/basic.js' |
|
|
|
import { goHome, getCurrDateTime, getPackingNumberAndBatch, compareAsc, navigateBack, getSwitchInfoByCode } from '@/common/basic.js' |
|
|
|
|
|
|
|
import { getDirectoryItemArray } from '@/common/directory.js' |
|
|
|
|
|
|
@ -91,6 +91,7 @@ const isAllReceived = ref(false) |
|
|
|
const operation = ref('') |
|
|
|
const scanedPackingNumber = ref('') |
|
|
|
const status = ref('') |
|
|
|
const switchCode = ref('') |
|
|
|
const comMessageRef = ref() |
|
|
|
const locationCompareRef = ref() |
|
|
|
const scanPopup = ref() |
|
|
@ -101,6 +102,7 @@ onLoad((option) => { |
|
|
|
scanedPackingNumber.value = option.scaned || '' |
|
|
|
status.value = option.status || '' |
|
|
|
operation.value = option.operation |
|
|
|
switchCode.value = 'purchasereceiptPrintPDA' |
|
|
|
}) |
|
|
|
|
|
|
|
onShow(() => { |
|
|
@ -182,6 +184,7 @@ const getDetail = () => { |
|
|
|
s.cancleScanedHiht = true |
|
|
|
s.copyContent = `HPQ;V1.0;I${s.itemCode};P${s.packingNumber};B${s.batch};Q${s.qty}` |
|
|
|
scanPopup.value.simulateScan(s) |
|
|
|
scanedPackingNumber.value = '' |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
@ -391,6 +394,12 @@ const submitJob = () => { |
|
|
|
uni.hideLoading() |
|
|
|
if (res.data) { |
|
|
|
// showCommitSuccessMessage(`提交成功<br>生成采购收货记录<br>${res.data}`) |
|
|
|
const isCheckPrint = getSwitchInfoByCode(switchCode.value) |
|
|
|
if (!isCheckPrint) { |
|
|
|
uni.hideLoading() |
|
|
|
|
|
|
|
showCommitSuccessMessage(`提交成功<br>生成采购收货记录<br>${res.data.number}`) |
|
|
|
} else { |
|
|
|
uni.showLoading({ |
|
|
|
title: '提交成功,将跳转到打印页面', |
|
|
|
mask: true |
|
|
@ -435,6 +444,7 @@ const submitJob = () => { |
|
|
|
} |
|
|
|
}) |
|
|
|
}, 2000) |
|
|
|
} |
|
|
|
} else { |
|
|
|
showErrorMessage(`提交失败[${res.msg}]`) |
|
|
|
} |
|
|
|