Commit ae199e55 authored by youjie's avatar youjie

签证人数编辑

parent 62ec1e3b
...@@ -534,7 +534,8 @@ ...@@ -534,7 +534,8 @@
<!-- <span style="font-size: 12px"><span class="people-item-title">联运人数: </span>{{ item.IntermodalCount }}</span> --> <!-- <span style="font-size: 12px"><span class="people-item-title">联运人数: </span>{{ item.IntermodalCount }}</span> -->
<div class="people-item"> <div class="people-item">
<span class="people-item-title">签证人数:</span> <span class="people-item-title">签证人数:</span>
{{ isVisa ? ((item.VisaNum == -1 || item.NeedVisaNum < item.VisaNum) ? item.NeedVisaNum : item.VisaNum) : item.NeedVisaNum }} <!-- {{ isVisa ? ((item.VisaNum == -1 || item.NeedVisaNum < item.VisaNum) ? item.NeedVisaNum : item.VisaNum) : item.NeedVisaNum }} -->
{{item.VisaNum}}
</div> </div>
</div> </div>
<div class="d5" style="width:25%"> <div class="d5" style="width:25%">
...@@ -746,12 +747,13 @@ export default { ...@@ -746,12 +747,13 @@ export default {
params.VisaAssistantId = this.queryData.VisaAssistantId.join(","); params.VisaAssistantId = this.queryData.VisaAssistantId.join(",");
} }
if (this.editNum && this.isVisa) { if (this.editNum && this.isVisa) {
if (this.queryData.VisaNum > this.editObj.NeedVisaNum) { // if (this.queryData.VisaNum > this.editObj.NeedVisaNum) {
this.$message.error("签证人数最多" + this.editObj.NeedVisaNum + "人"); // this.$message.error("签证人数最多" + this.editObj.NeedVisaNum + "人");
return; // return;
} else { // } else {
params.VisaNum = this.queryData.VisaNum; // params.VisaNum = this.queryData.VisaNum;
} // }
params.VisaNum = this.queryData.VisaNum;
} }
this.apipost( this.apipost(
"travel_post_BatchSetOpInfo", "travel_post_BatchSetOpInfo",
...@@ -780,7 +782,7 @@ export default { ...@@ -780,7 +782,7 @@ export default {
!item.VisaAssistantId || item.VisaAssistantId == "0" ? !item.VisaAssistantId || item.VisaAssistantId == "0" ?
[] : [] :
item.VisaAssistantId.split(",").map((item) => Number(item)), item.VisaAssistantId.split(",").map((item) => Number(item)),
VisaNum: (item.VisaNum == -1 || item.NeedVisaNum < item.VisaNum) ? item.NeedVisaNum : item.VisaNum, VisaNum: item.VisaNum,//(item.VisaNum == -1 || item.NeedVisaNum < item.VisaNum) ? item.NeedVisaNum : item.VisaNum
}; };
this.editNum = true; this.editNum = true;
this.showDialog = true; this.showDialog = true;
......
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