fix:添加pad端扫描

This commit is contained in:
shijing 2025-03-26 17:23:44 +08:00
parent eed8a1eb05
commit 413cc19b96
3 changed files with 7 additions and 3 deletions

View File

@ -22,7 +22,8 @@
@change="formWminChange(wm_in)"
style="width: 300px;margin-left: 10px;"
></el-input>
<!-- <scan-dialog ref="scanDialog" @closed="scanClose"> </scan-dialog> -->
<scScanner @scanResult="formWminChange"></scScanner>
<scan-dialog ref="scanDialog" @closed="scanClose"> </scan-dialog>
</el-form-item>
<el-form-item label="总计:">
{{ totalCount }}
@ -731,8 +732,8 @@ export default {
let obj = {};
obj.wm = item.id;
obj.batch = item.batch;
if(item.batch.material_.process_name){
obj.process = item.batch.material_.process_name;
if(item.material_.process_name){
obj.process = item.material_.process_name;
}
obj.count_cando = item.count;
obj.count = item.count;

View File

@ -63,6 +63,7 @@
>
</el-option>
</el-select>
<scScanner @scanResult="scanClose"></scScanner>
<scan-dialog ref="scanDialog" :closeNow="closeNow" @closed="scanClose"> </scan-dialog>
</el-form-item>
<el-form-item label="批次" v-if="cate == 'do_out'">
@ -90,6 +91,7 @@
>
</el-option>
</el-select>
<scScanner @scanResult="scanClose"></scScanner>
<scan-dialog ref="scanDialog" @closed="scanClose"> </scan-dialog>
</el-form-item>
<el-form-item label="仓库" prop="warehouse">

View File

@ -52,6 +52,7 @@
</el-select>
</el-form-item>
<el-form-item label="物料扫码">
<scScanner @scanResult="formWminChange"></scScanner>
<el-input ref="codeInput" v-model="wm_in" clearable @change="formWminChange(wm_in)"></el-input>
</el-form-item>
<el-form-item label="使用数量" prop="count_use">