Commit ab512cda authored by zhengke's avatar zhengke

修改

parent 8d1703fb
...@@ -124,13 +124,15 @@ ...@@ -124,13 +124,15 @@
DetailList: [] DetailList: []
}, },
isCheckAll:false, isCheckAll:false,
checkList:[] checkList:[],
isFrom:0
}; };
}, },
mounted() { mounted() {
this.msg.CheckId = this.$route.query.CheckId; this.msg.CheckId = this.$route.query.CheckId;
this.saveMsg.CheckId = this.$route.query.CheckId; this.saveMsg.CheckId = this.$route.query.CheckId;
this.saveMsg.WarehouseId = this.$route.query.WarehouseId; this.saveMsg.WarehouseId = this.$route.query.WarehouseId;
this.isFrom = this.$route.query.isFrom;
this.getList(); this.getList();
this.getCheckStatus(); this.getCheckStatus();
}, },
...@@ -152,8 +154,14 @@ ...@@ -152,8 +154,14 @@
); );
}, },
Backto() { Backto() {
let path='';
if(this.isFrom==1){
path='/InventoryDetails'
}else{
path='/InventoryDetail'
}
this.$router.push({ this.$router.push({
path: "/InventoryDetail", path: path,
query: { query: {
CheckId: this.msg.CheckId CheckId: this.msg.CheckId
} }
......
...@@ -93,13 +93,15 @@ ...@@ -93,13 +93,15 @@
DetailList: [] DetailList: []
}, },
isCheckAll:false, isCheckAll:false,
checkList:[] checkList:[],
isFrom:0
}; };
}, },
mounted() { mounted() {
this.msg.CheckId = this.$route.query.CheckId; this.msg.CheckId = this.$route.query.CheckId;
this.saveMsg.CheckId = this.$route.query.CheckId; this.saveMsg.CheckId = this.$route.query.CheckId;
this.saveMsg.WarehouseId = this.$route.query.WarehouseId; this.saveMsg.WarehouseId = this.$route.query.WarehouseId;
this.isFrom = this.$route.query.isFrom;
this.getList(); this.getList();
}, },
methods: { methods: {
...@@ -108,8 +110,14 @@ ...@@ -108,8 +110,14 @@
this.getList(); this.getList();
}, },
Backto() { Backto() {
let path='';
if(this.isFrom==1){
path='/InventoryDetails'
}else{
path='/InventoryDetail'
}
this.$router.push({ this.$router.push({
path: "/InventoryDetail", path: path,
query: { query: {
CheckId: this.msg.CheckId CheckId: this.msg.CheckId
} }
......
...@@ -204,10 +204,6 @@ ...@@ -204,10 +204,6 @@
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.tableData = res.data.data.pageData; this.tableData = res.data.data.pageData;
this.total = res.data.data.count; this.total = res.data.data.count;
this.tableData.forEach(x=>{
x.isShow=false;
})
console.log(this.tableData, 'tabledata');
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
...@@ -422,7 +418,6 @@ ...@@ -422,7 +418,6 @@
this.loading = false; this.loading = false;
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
var myData = res.data.data.GoodsModel; var myData = res.data.data.GoodsModel;
console.log(res,'ress');
var isInStore=true; var isInStore=true;
if(myData){ if(myData){
var scanMsg = {}; var scanMsg = {};
...@@ -434,10 +429,8 @@ ...@@ -434,10 +429,8 @@
if(x.SuppliesId==myData.SuppliesId){ if(x.SuppliesId==myData.SuppliesId){
x.RealityNum++; x.RealityNum++;
isInStore=false; isInStore=false;
x.isShow=true;
document.getElementById(myData.SuppliesId).scrollIntoView({ behavior: 'smooth' }) document.getElementById(myData.SuppliesId).scrollIntoView({ behavior: 'smooth' })
this.$refs["barCodeInput"+myData.SuppliesId].focus(); this.$refs["barCodeInput"+myData.SuppliesId].focus();
document.getElementById("barTishi"+myData.SuppliesId).style.opacity=1; document.getElementById("barTishi"+myData.SuppliesId).style.opacity=1;
setTimeout(()=>{ setTimeout(()=>{
this.test("barTishi"+myData.SuppliesId); this.test("barTishi"+myData.SuppliesId);
......
...@@ -399,7 +399,6 @@ export default { ...@@ -399,7 +399,6 @@ export default {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.tableData = res.data.data.pageData; this.tableData = res.data.data.pageData;
this.total = res.data.data.count; this.total = res.data.data.count;
console.log(this.tableData,'tableData');
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment