生产补料验证

This commit is contained in:
2025-06-13 16:56:44 +08:00
parent 41583629d4
commit fefa0bf215
21 changed files with 202 additions and 209 deletions

View File

@@ -7,16 +7,7 @@
<architecture ref="architectureRef" :dataType="t('home.scbl')" icon="scan" :placeholder="t('receive.code')"
@scanConfirm="scanConfirmFun" @inputConfirm="changeFun"
:fence="[state.scanFrameRefShow,state.shortcutRefShow]" />
<!-- <view class="input-box" v-show="state.manualShow">
<view class="input-item">
<up-input :placeholder="t('receive.code')" border="none" clearable inputAlign="left" :focus="state.inputFocus"
v-model="state.manualQueryString" @confirm="confirmFun" ref="inputRef">
<template #prefix>
<up-icon name="search" color="#2979ff" size="24"></up-icon>
</template>
</up-input>
</view>
</view> -->
<view class="material-listBox">
<scroll-view id="scroll-box" class="scroll-box" scroll-y="true" :style="{'height':state.scrollHeight+'px'}">
<view class="list-box-list" v-if="state.dataList.length > 0">
@@ -160,15 +151,19 @@
//防抖输入
const debounceTimer = ref()
const changeFun = (e : any) => {
if (debounceTimer.value !== null) clearTimeout(debounceTimer.value)
debounceTimer.value = setTimeout(() => {
state.queryString = e
if(e != '') state.code = e
if (state.queryString !== '') getReceiveBillScanData(e)
})
}
const confirmFun = (e : any) => {
if(e != '') state.code = e
console.log('input测试');
getReceiveBillScanData(state.code)
}
//查询录入
@@ -178,10 +173,12 @@
FBillNo: state.BillNo,
IsFeed: 'true'
}).then((res : any) => {
if (res.data !== null) {
console.log(res);
console.log(res,'11212313212313232231231');
if (res.code == 200) {
const scanData = res.data
if (scanData.UnScanQty > scanData.BarCodeQty) scanData.UnScanQty = scanData.BarCodeQty
scanData.UnScanQty = scanData.BarCodeQty
scanFrameRef.value.getreceiveBillScanData({
...res.data,
queryString: state.queryString,
@@ -255,7 +252,7 @@
}
//唤起默认值弹窗
const defaultPopupFun = () => {
shortcutRef.value.stateShow(true)
shortcutRef.value.stateShow(true,'','supplement')
}
const scanRecordFun = () => {
toPages('/pages/records/index', {