Commit 09e7f285 authored by youjie's avatar youjie
parents b2b19e8e a31ca5d9
...@@ -475,6 +475,10 @@ ...@@ -475,6 +475,10 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
.line-down:hover {
text-decoration: underline;
color: #333;
}
</style> </style>
<template> <template>
...@@ -497,9 +501,10 @@ ...@@ -497,9 +501,10 @@
<div v-if="item.IsWarning === 1" class="product_warning"></div> <div v-if="item.IsWarning === 1" class="product_warning"></div>
<div class="d12" style="float: none; margin: auto" <div class="d12" style="float: none; margin: auto"
:style="{ width: pagesTitle == '跟团游产品' ? '200px' : 'auto' }"> :style="{ width: pagesTitle == '跟团游产品' ? '200px' : 'auto' }">
<div>
<p><i class="iconfont icon-biaoti1"></i> {{ item.LineName }}</p> <p><i class="iconfont icon-biaoti1"></i> {{ item.LineName }}</p>
<p class="d12TC">{{ item.TCNUM }}{{ item.TCID }}</p> <p class="d12TC line-down" style="cursor: pointer" @click="goUrlT('productQuery',item.TCNUM,'产品查询')">{{ item.TCNUM }}{{ item.TCID }}</p>
<p>{{ item.LtName }}</p> <p>{{ item.LtName }}</p></div>
<el-tooltip class="item" effect="dark" :content="item.Title" placement="top-start" <el-tooltip class="item" effect="dark" :content="item.Title" placement="top-start"
popper-class="max-w250"> popper-class="max-w250">
<p class="d12p" @click="getTitledetail(item)" :title="item.Title"> <p class="d12p" @click="getTitledetail(item)" :title="item.Title">
...@@ -519,7 +524,7 @@ ...@@ -519,7 +524,7 @@
</div> </div>
</div> </div>
<div class="d5"> <div class="d5">
<p> <p class="line-down" style="cursor: pointer" @click="goUrlT('RegistrationList',item.TCID,'报名清单')">
<span>{{ $t("visa.v_yibaoru") }}</span><i>{{ item.Seat == "" ? "0" : item.Seat <span>{{ $t("visa.v_yibaoru") }}</span><i>{{ item.Seat == "" ? "0" : item.Seat
}}{{ $t("salesModule.PeoPle") }}</i>({{ $t("Operation.Op_takeSeat") }}{{ item.Occupied }}{{ $t("salesModule.PeoPle") }}</i>({{ $t("Operation.Op_takeSeat") }}{{ item.Occupied
}}{{ $t("salesModule.PeoPle") }}) }}{{ $t("salesModule.PeoPle") }})
...@@ -601,132 +606,126 @@ ...@@ -601,132 +606,126 @@
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
props: ["loading", "list", "pagesTitle", "isVisa"], props: ["loading", "list", "pagesTitle", "isVisa"],
data() { data() {
return { return {
editNum: false, editNum: false,
showDialog: false, showDialog: false,
queryData: {}, queryData: {},
EmployeeList: [], EmployeeList: [],
allCheck: false, allCheck: false,
//当前登录用户信息 //当前登录用户信息
CurrentUserInfo: {}, CurrentUserInfo: {},
travelControlTripLayerShow: false, travelControlTripLayerShow: false,
wxLoading: false, wxLoading: false,
userId: "", userId: "",
outerVisible: false, outerVisible: false,
tripTitle: "", tripTitle: "",
tripDetails: [], tripDetails: [],
TCIDList: null, TCIDList: null,
tripObj: { tripObj: {
tcid: 0, tcid: 0,
configId: 0, configId: 0,
cityId: 0, cityId: 0,
orderId: 0, orderId: 0,
},
showHotelObj: {
showPrice: false,
showPay: false,
showZhan: false,
},
qjGroupId: -1,
S_Travel_Share: false, //分享权限
userInfo: {},
crmOrderObj: null,
isShowTeamOrder: false, //是否显示订单弹窗
teamInfo: {}, //团队信息
};
},
components: {},
filters: {
priceFormat(value) {
if (value == null) {
return 0.0;
}
let nStr = value.toFixed(2);
nStr += "";
let x = nStr.split(".");
let x1 = x[0];
let x2 = x.length > 1 ? "." + x[1] : "";
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, "$1" + "," + "$2");
}
return x1 + x2;
}, },
priceFormat2(value) { showHotelObj: {
if (value == null) { showPrice: false,
return "已包含"; showPay: false,
} showZhan: false,
let nStr = value.toFixed(2);
nStr += "";
let x = nStr.split(".");
let x1 = x[0];
let x2 = x.length > 1 ? "." + x[1] : "";
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, "$1" + "," + "$2");
}
let result = x1 + x2;
if (result === "0.00") {
result = "已包含";
}
return result;
}, },
qjGroupId: -1,
S_Travel_Share: false, //分享权限
userInfo: {},
crmOrderObj: null,
isShowTeamOrder: false, //是否显示订单弹窗
teamInfo: {}, //团队信息
};
},
components: {},
filters: {
priceFormat(value) {
if (value == null) {
return 0.0;
}
let nStr = value.toFixed(2);
nStr += "";
let x = nStr.split(".");
let x1 = x[0];
let x2 = x.length > 1 ? "." + x[1] : "";
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, "$1" + "," + "$2");
}
return x1 + x2;
}, },
methods: { priceFormat2(value) {
changeSelect() { if (value == null) {
this.list.forEach((element) => { return "已包含";
element.check = this.allCheck; }
}); let nStr = value.toFixed(2);
}, nStr += "";
changeSelectItem() { let x = nStr.split(".");
const listTmp = JSON.parse(JSON.stringify(this.list)); let x1 = x[0];
this.list = []; let x2 = x.length > 1 ? "." + x[1] : "";
this.$nextTick(() => { var rgx = /(\d+)(\d{3})/;
this.list = listTmp; while (rgx.test(x1)) {
}); x1 = x1.replace(rgx, "$1" + "," + "$2");
}, }
submitOP() { let result = x1 + x2;
let params = { if (result === "0.00") {
TCIDs: this.TCIDs, result = "已包含";
Type: this.isVisa ? 1 : 0 }
}; return result;
if (!this.isVisa) { },
},
methods: {
changeSelect() {
console.log("changeSelect");
this.list.forEach((element) => {
element.check = this.allCheck;
});
},
changeSelectItem() {
const listTmp = JSON.parse(JSON.stringify(this.list));
this.list = [];
this.$nextTick(() => {
this.list = listTmp;
});
},
submitOP() {
let params = { TCIDs: this.TCIDs, Type: this.isVisa ? 1 : 0 };
if (!this.isVisa) {
params.OPId = this.queryData.OPId; params.OPId = this.queryData.OPId;
if (!this.queryData.AssistantId || !this.queryData.AssistantId.length) { if (!this.queryData.AssistantId || !this.queryData.AssistantId.length) {
params.AssistantId = ''; params.AssistantId = '';
} else { } else {
params.AssistantId = this.queryData.AssistantId.join(","); params.AssistantId = this.queryData.AssistantId.join(",");
}
} }
}
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
) { ) {
params.VisaAssistantId = '' params.VisaAssistantId = ''
} else {
params.VisaAssistantId = this.queryData.VisaAssistantId.join(",");
}
if (this.editNum) {
if (this.queryData.VisaNum > this.editObj.NeedVisaNum) {
this.$message.error("签证人数最多" + this.editObj.NeedVisaNum + "人");
return;
} else { } else {
params.VisaAssistantId = this.queryData.VisaAssistantId.join(","); params.VisaNum = this.queryData.VisaNum;
} }
if (this.editNum) { }
if (!this.queryData.VisaNum) { this.apipost(
this.$message.error("请填写签证人数"); "travel_post_BatchSetOpInfo",
return; params,
} else if (this.queryData.VisaNum > this.editObj.NeedVisaNum) { (res) => {
this.$message.error("签证人数最多" + this.editObj.NeedVisaNum + "人");
return;
} else {
params.VisaNum = this.queryData.VisaNum;
}
}
this.apipost(
"travel_post_BatchSetOpInfo",
params,
(res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$message.success(res.data.message || "操作成功"); this.$message.success(res.data.message || "操作成功");
this.showDialog = false; this.showDialog = false;
...@@ -774,7 +773,7 @@ ...@@ -774,7 +773,7 @@
//根据当前员工所在部门获取该部门及子部门员工信息 //根据当前员工所在部门获取该部门及子部门员工信息
getEmployeeList() { getEmployeeList() {
this.apipost( this.apipost(
"admin_get_EmployeeGetList", {}, "admin_get_GetEmpByDepPostNameList", {},
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.EmployeeList = res.data.data; this.EmployeeList = res.data.data;
...@@ -922,6 +921,18 @@ ...@@ -922,6 +921,18 @@
var B2BDomain = this.CurrentUserInfo.B2BDomain; var B2BDomain = this.CurrentUserInfo.B2BDomain;
this.$tripUtils.GotoB2CPage(B2BDomain, item.ConfigID, item.TCID); this.$tripUtils.GotoB2CPage(B2BDomain, item.ConfigID, item.TCID);
}, },
goUrlT(path, obj, outItem, title) {
console.log('goUrlTO',path, obj, outItem, title)
this.$router.push({
name: path,
query: {
"id": obj,
NewCombinationNum: outItem.NewCombinationNum,
blank: 'y',
tab: title
}
})
},
}, },
mounted() { mounted() {
this.getEmployeeList(); this.getEmployeeList();
......
This diff is collapsed.
...@@ -3188,6 +3188,14 @@ export default { ...@@ -3188,6 +3188,14 @@ export default {
title: '客户审批' title: '客户审批'
}, },
}, },
{ // 销售 月结客户审批
path: '/customerApprovalFor',
name: 'customerApprovalFor',
component: resolve => require(['@/components/SalesModule/customerApprovalFor'], resolve),
meta: {
title: '月结客户审批'
},
},
{ // 销售 销售任务详情 { // 销售 销售任务详情
path: '/saleTaskDetail', path: '/saleTaskDetail',
name: 'saleTaskDetail', name: 'saleTaskDetail',
......
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