|
@@ -74,8 +74,8 @@
|
|
</parentTable>
|
|
</parentTable>
|
|
</y-page-list-layout>
|
|
</y-page-list-layout>
|
|
<el-dialog :visible.sync="warehouseDialog" width="25%" center top="35vh" custom-class="doWarehouseClass"
|
|
<el-dialog :visible.sync="warehouseDialog" width="25%" center top="35vh" custom-class="doWarehouseClass"
|
|
- @closed="cleanWareHouseProductionType()">
|
|
|
|
- <ScanEntry ref="scanEntry" @scanEntryFun="handleScanEntry" label="请扫描二维码或输入产品号" />
|
|
|
|
|
|
+ @closed="cleanWareHouseProduction()">
|
|
|
|
+ <ScanEntry ref="scanEntry" @scanEntryFun="handleScanEntry" label="请扫描二维码或输入产品号" :onFocus="warehouseDialog"/>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button @click="warehouseDialog = false">取 消</el-button>
|
|
<el-button @click="warehouseDialog = false">取 消</el-button>
|
|
<el-button type="primary" @click="doWareHouse()">确 定</el-button>
|
|
<el-button type="primary" @click="doWareHouse()">确 定</el-button>
|
|
@@ -181,8 +181,9 @@ export default {
|
|
}
|
|
}
|
|
return '报告';
|
|
return '报告';
|
|
},
|
|
},
|
|
- cleanWareHouseProductionType() {
|
|
|
|
|
|
+ cleanWareHouseProduction() {
|
|
this.scanEntryData = null;
|
|
this.scanEntryData = null;
|
|
|
|
+ this.$refs.scanEntry.clearData();
|
|
},
|
|
},
|
|
handleScanEntry(scanData) {
|
|
handleScanEntry(scanData) {
|
|
this.scanEntryData = scanData;
|
|
this.scanEntryData = scanData;
|
|
@@ -197,6 +198,7 @@ export default {
|
|
this.$api.businessProduction.commonWareHouse(productionNo).then(res=>{
|
|
this.$api.businessProduction.commonWareHouse(productionNo).then(res=>{
|
|
if (res.code === 200 && res.data){
|
|
if (res.code === 200 && res.data){
|
|
this.$message({type:'success',message:"操作成功"});
|
|
this.$message({type:'success',message:"操作成功"});
|
|
|
|
+ this.$refs.scanEntry.clearData();
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}else{
|
|
}else{
|