This commit is contained in:
hayu 2025-09-03 20:24:18 +08:00
parent c6e8299ccd
commit ba88efd56a
3 changed files with 14 additions and 9 deletions

View File

@ -259,6 +259,7 @@ const cinfirmCodeInBound = async () => {
typeId: queryParams.value.typeId, typeId: queryParams.value.typeId,
agreementId: queryParams.value.agreementId, agreementId: queryParams.value.agreementId,
maCodeList: arr, maCodeList: arr,
inputCode:queryParams.value.inputCode
} }
const res = await repairInputWarehouseApi(param) const res = await repairInputWarehouseApi(param)
if (res.code === 200) { if (res.code === 200) {
@ -350,6 +351,7 @@ const confirmBoxInBound = async () => {
agreementId: queryParams.value.agreementId, agreementId: queryParams.value.agreementId,
inputType: 3, inputType: 3,
maCodeList: boxInfo.value, maCodeList: boxInfo.value,
inputCode:queryParams.value.inputCode
} }
const res = await repairInputWarehouseApi(param) const res = await repairInputWarehouseApi(param)
if (res.code === 200) { if (res.code === 200) {
@ -471,6 +473,7 @@ const onHandleInbound = async () => {
typeId: queryParams.value.typeId, typeId: queryParams.value.typeId,
agreementId: queryParams.value.agreementId, agreementId: queryParams.value.agreementId,
maCodeList: paramsList, maCodeList: paramsList,
inputCode:queryParams.value.inputCode
} }
console.log(param) console.log(param)
const res = await repairInputWarehouseApi(param) const res = await repairInputWarehouseApi(param)

View File

@ -238,7 +238,7 @@ const cinfirmCodeInBound = async () => {
// agreementId: maInfo.value.agreementId, // agreementId: maInfo.value.agreementId,
// maCodeList: arr, // maCodeList: arr,
// } // }
let param = { qrCode: qrCode.value, maCode: maInfo.value.maCode, maId: maInfo.value.maId } let param = { qrCode: qrCode.value, maCode: maInfo.value.maCode, maId: maInfo.value.maId,inputCode:maInfo.value.inputCode }
console.log("bbbbbbbbbbbbbbbbb") console.log("bbbbbbbbbbbbbbbbb")
const res = await repairInputWarehouseApiTwo(param) const res = await repairInputWarehouseApiTwo(param)
console.log("yyyyyyyyy",res) console.log("yyyyyyyyy",res)

View File

@ -101,7 +101,7 @@
</view> </view>
<view class="handle-box"> <view class="handle-box">
<view class="handle-box-btn" style="background: #CCC;color: #FFF;" @click="closePopup">取消</view> <view class="handle-box-btn" style="background: #CCC;color: #FFF;" @click="closePopup">取消</view>
<view class="handle-box-btn" style="background: #3784fb;color: #FFF;" @click="confirmNumInBound">确定{{ countdown > 0 ? '(' + countdown + ')' : '' }}</view> <view class="handle-box-btn" style="background: #3784fb;color: #FFF;" @click="confirmNumInBound">确定{{ countdown > 0 ? '(' + countdown + ')' : '' }}</view>
</view> </view>
</view> </view>
</uni-popup> </uni-popup>
@ -124,7 +124,7 @@
</view> </view>
<view class="handle-box"> <view class="handle-box">
<view class="handle-box-btn" style="background: #CCC;color: #FFF;" @click="closePopup2">取消</view> <view class="handle-box-btn" style="background: #CCC;color: #FFF;" @click="closePopup2">取消</view>
<view class="handle-box-btn" style="background: #3784fb;color: #FFF;" @click="rejectNumInBound">确定{{ countdown > 0 ? '(' + countdown + ')' : '' }}</view> <view class="handle-box-btn" style="background: #3784fb;color: #FFF;" @click="rejectNumInBound">确定{{ countdown > 0 ? '(' + countdown + ')' : '' }}</view>
</view> </view>
</view> </view>
</uni-popup> </uni-popup>
@ -233,6 +233,7 @@ const onClick=async (e,item)=> {
const confirmNumInBound = async () => { const confirmNumInBound = async () => {
console.log(inBoundNum.value) console.log(inBoundNum.value)
if (countdown.value > 0) return if (countdown.value > 0) return
console.log(inputItem.value.inputCode)
if(inBoundNum.value==0){ if(inBoundNum.value==0){
uni.showToast({ title: '入库数量需大于0',icon: 'none'}) uni.showToast({ title: '入库数量需大于0',icon: 'none'})
}else{ }else{
@ -240,15 +241,16 @@ const confirmNumInBound = async () => {
taskId:taskInfo.value.taskId, taskId:taskInfo.value.taskId,
typeId:inputItem.value.typeId, typeId:inputItem.value.typeId,
pendingInputNum:inputItem.value.pendingInputNum, pendingInputNum:inputItem.value.pendingInputNum,
inputNum:inBoundNum.value inputNum:inBoundNum.value,
} inputCode:inputItem.value.inputCode
const res = await repairInputWarehouseApi(param) }
const res = await repairInputWarehouseApi(param)
if(res.code==200){ if(res.code==200){
uni.showToast({ title: '入库成功!',icon: 'none'}) uni.showToast({ title: '入库成功!',icon: 'none'})
getDetailsData() getDetailsData()
inBoundNumPopup.value.close(); inBoundNumPopup.value.close();
} }
} }
} }
const closePopup = () => { const closePopup = () => {
inBoundNumPopup.value.close(); inBoundNumPopup.value.close();