Commit 402727af authored by zhengke's avatar zhengke

修改

parent 04a3ba90
......@@ -137,10 +137,10 @@
mounted() {
this.msg.CheckId = this.$route.query.CheckId;
this.saveMsg.CheckId = this.$route.query.CheckId;
this.saveMsg.WarehouseId = this.$route.query.WarehouseId;
this.isFrom = this.$route.query.isFrom;
this.getList();
this.getCheckStatus();
this.getWarehouseId();
},
methods: {
currentChange(val) {
......@@ -169,8 +169,7 @@
this.$router.push({
path: path,
query: {
CheckId: this.msg.CheckId,
WarehouseId:this.saveMsg.WarehouseId
CheckId: this.msg.CheckId
}
});
},
......@@ -223,6 +222,12 @@
if(this.checkList.length==0){
this.Error('请选择报损单据');
}else{
var loading = this.$loading({
lock: true,
text: '玩命保存中...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.checkList.forEach(x=>{
var obj={
SuppliesId:x.SuppliesId,
......@@ -239,6 +244,7 @@
"/api/supplies/SetSuppliesReportLoss",
this.saveMsg,
res => {
loading.close();
if (res.data.resultCode === 1) {
this.Success(res.data.message);
this.getList();
......@@ -250,6 +256,23 @@
);
}
},
//获取仓库id
getWarehouseId(){
let msg={
CheckId:this.msg.CheckId
}
this.apiJavaPost(
"/api/supplies/GetSuppliesCheckModel", msg,
res => {
if (res.data.resultCode === 1) {
this.saveMsg.WarehouseId=res.data.data.WarehouseId;
} else {
this.Error(res.data.message);
}
},
null
);
}
}
};
......
......@@ -103,9 +103,9 @@
mounted() {
this.msg.CheckId = this.$route.query.CheckId;
this.saveMsg.CheckId = this.$route.query.CheckId;
this.saveMsg.WarehouseId = this.$route.query.WarehouseId;
this.isFrom = this.$route.query.isFrom;
this.getList();
this.getWarehouseId();
},
methods: {
currentChange(val) {
......@@ -122,8 +122,7 @@
this.$router.push({
path: path,
query: {
CheckId: this.msg.CheckId,
WarehouseId:this.saveMsg.WarehouseId
CheckId: this.msg.CheckId
}
});
},
......@@ -176,6 +175,12 @@
if(this.checkList.length==0){
this.Error('请选择报损单据');
}else{
var loading = this.$loading({
lock: true,
text: '玩命保存中...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.checkList.forEach(x=>{
var obj={
SuppliesId:x.SuppliesId,
......@@ -192,6 +197,7 @@
"/api/supplies/SetSuppliesReportLoss",
this.saveMsg,
res => {
loading.close();
if (res.data.resultCode === 1) {
this.Success(res.data.message);
this.getList();
......@@ -203,6 +209,23 @@
);
}
},
//获取仓库id
getWarehouseId(){
let msg={
CheckId:this.msg.CheckId
}
this.apiJavaPost(
"/api/supplies/GetSuppliesCheckModel", msg,
res => {
if (res.data.resultCode === 1) {
this.saveMsg.WarehouseId=res.data.data.WarehouseId;
} else {
this.Error(res.data.message);
}
},
null
);
}
}
};
......
......@@ -195,10 +195,10 @@
},
mounted() {
this.msg.CheckId = this.$route.query.CheckId;
this.WarehouseId = this.$route.query.WarehouseId;
this.CheckState = this.$route.query.CheckState;
this.getList();
this.getCheckStatus();
this.getWarehouseId();
//上传接口路径
this.importFileUrl2 = this.domainManager().DomainUrl +
"/api/file/LocalFileUploadImportForSuppliesCheck";
......@@ -253,8 +253,7 @@
this.$router.push({
path: path,
query: {
CheckId: this.msg.CheckId,
WarehouseId: this.WarehouseId
CheckId: this.msg.CheckId
}
});
},
......@@ -480,8 +479,24 @@
getImgView(imglist){
this.isShowImageDialog=true;
this.InvimageList=imglist;
},
//获取仓库id
getWarehouseId(){
let msg={
CheckId:this.msg.CheckId
}
this.apiJavaPost(
"/api/supplies/GetSuppliesCheckModel", msg,
res => {
if (res.data.resultCode === 1) {
this.WarehouseId=res.data.data.WarehouseId;
} else {
this.Error(res.data.message);
}
},
null
);
}
}
};
......
......@@ -323,7 +323,6 @@ export default {
path: path,
query: {
CheckId:item.Id,
WarehouseId:item.WarehouseId,
CheckState:item.CheckState
}
});
......
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