Commit 9b9308b9 by LJM

bug

parent 56e0e0b9
Showing with 12 additions and 10 deletions
...@@ -731,10 +731,11 @@ export default { ...@@ -731,10 +731,11 @@ export default {
return; return;
} }
//询价单状态为“待报价,已报价
if (this.multipleSelection[0].i_status == -1) { if (this.multipleSelection[0].i_status == -1) {
this.$message({ this.$message({
showClose: true, showClose: true,
message: '请勾选待报价和已报价的信息', message: '请勾选待报价,已报价',
type: 'warning' type: 'warning'
}); });
return; return;
...@@ -745,15 +746,8 @@ export default { ...@@ -745,15 +746,8 @@ export default {
}).then(res => { }).then(res => {
if (res.code === 0) { if (res.code === 0) {
if (res.data.quote_list.length > 0) { if (res.data.quote_list.length > 0) {
if(res.data.quote_list[0].quote_status != 1 || res.data.quote_list[0].quote_status != 7){ //价单状态为“待确认,确认中” quote_status=7 待确认 quote_status=1 确认中
this.$message({ if (res.data.quote_list[0].quote_status == 1 || res.data.quote_list[0].quote_status == 7) {
showClose: true,
message: '请勾选报价单状态为确认中和待确认',
type: 'warning'
});
return;
}
var data = res.data.quote_list[0]; var data = res.data.quote_list[0];
this.title = '修改报价'; this.title = '修改报价';
this.dialogVisible = true; this.dialogVisible = true;
...@@ -788,6 +782,14 @@ export default { ...@@ -788,6 +782,14 @@ export default {
} else { } else {
this.ruleForm.expire_time = data.expire_time; this.ruleForm.expire_time = data.expire_time;
} }
}else {
this.$message({
showClose: true,
message: '请勾选报价单状态为“待确认,确认中',
type: 'warning'
});
return;
}
} }
} else { } else {
......
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 sign in to comment