Commit 0d516899 authored by 沈良进's avatar 沈良进

save

parent fc9bcd9c
<style> <style>
@import "../../../assets/css/newTravelManager.css"; @import "../../../assets/css/newTravelManager.css";
.people-item {
margin-top: 5px;
font-size: 14px;
}
.people-item-title {
font-size: 12px;
color: #666;
margin-right: 4px;
}
.productQueryList { .productQueryList {
width: 100%; width: 100%;
min-width: 1366px; min-width: 1366px;
...@@ -532,8 +540,29 @@ ...@@ -532,8 +540,29 @@
}}{{ $t("salesModule.PeoPle") }}) }}{{ $t("salesModule.PeoPle") }})
</p> </p>
</div> </div>
<div class="d5">联运人数: {{ item.IntermodalCount }} <div class="d5">
<div>签证人数: {{ item.VisaNum==-1 ? item.NeedVisaNum : item.VisaNum }}</div></div> <span style="font-size: 12px"><span class="people-item-title">联运人数: </span>{{ item.IntermodalCount }}</span>
<div class="people-item">
<span class="people-item-title">签证人数:</span>
{{ item.VisaNum == -1 ? item.NeedVisaNum : item.VisaNum }}
</div>
<div class="people-item" v-if="!isVisa">
<span class="people-item-title">团OP:</span>
{{ item.OpName }}
</div>
<div class="people-item" v-if="!isVisa">
<span class="people-item-title">助手:</span>
{{ item.AssistantList && item.AssistantList.map(item => item.Name).join(',') }}
</div>
<div class="people-item">
<span class="people-item-title">签证OP:</span>
{{ item.VisaOPName }}
</div>
<div class="people-item">
<span class="people-item-title">签证助手:</span>
{{ item.VisaAssistantList && item.VisaAssistantList.map(item => item.Name).join(',') }}
</div>
</div>
<div class="d5">出团公司: {{ item.OutBranchName }}</div> <div class="d5">出团公司: {{ item.OutBranchName }}</div>
<div> <div>
<div class="flex-center"> <div class="flex-center">
...@@ -548,7 +577,12 @@ ...@@ -548,7 +577,12 @@
<div class="noData" v-else> <div class="noData" v-else>
{{ $t("system.content_noData") }} {{ $t("system.content_noData") }}
</div> </div>
<el-dialog title="编辑" :visible.sync="showDialog" width="600px" height="40%"> <el-dialog
title="编辑"
:visible.sync="showDialog"
width="600px"
height="40%"
>
<div v-if="!isVisa"> <div v-if="!isVisa">
<span style="width: 15%; display: inline-block">团OP</span> <span style="width: 15%; display: inline-block">团OP</span>
<el-select <el-select
...@@ -587,6 +621,7 @@ ...@@ -587,6 +621,7 @@
<div style="margin-top: 10px"> <div style="margin-top: 10px">
<span style="width: 15%; display: inline-block">签证OP</span> <span style="width: 15%; display: inline-block">签证OP</span>
<el-select <el-select
filterable
style="width: 80%" style="width: 80%"
v-model="queryData.VisaOPId" v-model="queryData.VisaOPId"
:placeholder="$t('pub.pleaseSel')" :placeholder="$t('pub.pleaseSel')"
...@@ -628,7 +663,9 @@ ...@@ -628,7 +663,9 @@
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="showDialog = false">取 消</el-button> <el-button @click="showDialog = false">取 消</el-button>
<el-button style="margin-right: 24px" type="primary" @click="submitOP">确 定</el-button> <el-button style="margin-right: 24px" type="primary" @click="submitOP"
>确 定</el-button
>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
...@@ -739,12 +776,12 @@ export default { ...@@ -739,12 +776,12 @@ export default {
params.AssistantId = this.queryData.AssistantId.join(","); params.AssistantId = this.queryData.AssistantId.join(",");
} }
} }
if (!this.queryData.VisaOPId) { if (!this.queryData.VisaOPId) {
this.$message.error("请选择签证OP"); this.$message.error("请选择签证OP");
return; return;
} else { } else {
params.VisaOPId = this.queryData.VisaOPId; params.VisaOPId = this.queryData.VisaOPId;
} }
if ( if (
!this.queryData.VisaAssistantId || !this.queryData.VisaAssistantId ||
!this.queryData.VisaAssistantId.length !this.queryData.VisaAssistantId.length
...@@ -758,8 +795,8 @@ export default { ...@@ -758,8 +795,8 @@ export default {
if (!this.queryData.VisaNum) { if (!this.queryData.VisaNum) {
this.$message.error("请填写签证人数"); this.$message.error("请填写签证人数");
return; return;
} else if(this.queryData.VisaNum > this.editObj.NeedVisaNum) { } else 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;
...@@ -780,14 +817,20 @@ export default { ...@@ -780,14 +817,20 @@ export default {
}, },
editItem(item) { editItem(item) {
this.TCIDs = item.TCID; this.TCIDs = item.TCID;
this.editObj = item this.editObj = item;
console.log("editItem", item); console.log("editItem", item);
this.queryData = { this.queryData = {
OPId: item.OPId || "", OPId: item.OPId || "",
AssistantId:(!item.AssistantId || item.AssistantId == '0') ?[]: item.AssistantId.split(',').map(item => Number(item)), AssistantId:
VisaOPId: item.VisaOPId || "", !item.AssistantId || item.AssistantId == "0"
VisaAssistantId:(!item.VisaAssistantId || item.VisaAssistantId == '0') ?[]: item.VisaAssistantId.split(',').map(item => Number(item)), ? []
VisaNum: item.VisaNum==-1 ? item.NeedVisaNum : item.VisaNum : item.AssistantId.split(",").map((item) => Number(item)),
VisaOPId: item.VisaOPId || "",
VisaAssistantId:
!item.VisaAssistantId || item.VisaAssistantId == "0"
? []
: item.VisaAssistantId.split(",").map((item) => Number(item)),
VisaNum: item.VisaNum == -1 ? item.NeedVisaNum : item.VisaNum,
}; };
this.editNum = true; this.editNum = true;
this.showDialog = true; this.showDialog = true;
...@@ -812,7 +855,8 @@ VisaNum: item.VisaNum==-1 ? item.NeedVisaNum : item.VisaNum ...@@ -812,7 +855,8 @@ VisaNum: item.VisaNum==-1 ? item.NeedVisaNum : item.VisaNum
//根据当前员工所在部门获取该部门及子部门员工信息 //根据当前员工所在部门获取该部门及子部门员工信息
getEmployeeList() { getEmployeeList() {
this.apipost( this.apipost(
"admin_get_EmployeeGetList", {}, "admin_get_EmployeeGetList",
{},
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.EmployeeList = res.data.data; this.EmployeeList = res.data.data;
......
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