Commit 8255c1f9 authored by youjie's avatar youjie

no message

parent f9858942
......@@ -103,6 +103,16 @@
<el-table-column
prop="ActualProfit"
label="团队利润"></el-table-column>
<el-table-column
prop="SaleCommission"
label="预计提成">
<template slot-scope="scope">
{{scope.row.SaleCommission}}
<p v-if="scope.row.SaleCommission>0"
style="cursor: pointer;text-decoration: underline;color: #33B3FF;"
@click="showDialog(scope.row.TCID, scope.row.Config_OfferId)">报价详情</p>
</template>
</el-table-column>
<el-table-column v-if="active==1"
prop="AuditEmpName"
label="审批人"></el-table-column>
......@@ -184,11 +194,14 @@
</el-row>
</div>
</el-dialog>
<el-dialog :visible.sync="dialog.show" width="1400px" title="报价详情">
<price-dialog :ConfigId="dialog.ConfigId" :OfferId="dialog.OfferId" ref="dialog"></price-dialog>
</el-dialog>
</div>
</template>
<script>
import priceDialog from '../TravelManager/TravelNewQuotation/priceDialog.vue';
export default {
data() {
return {
......@@ -211,9 +224,17 @@
total:0,
EmployeeId:0,
multipleSelection: [],
AuditLoading: false
AuditLoading: false,
dialog: {
show: false,
ConfigId: '',
OfferId: ''
},
}
},
components: {
priceDialog
},
created() {
this.getTeamList()
let userinfo = this.getLocalStorage();
......@@ -233,6 +254,16 @@
},
methods: {
showDialog(ConfigId, OfferId) {
this.dialog = {
show: true,
ConfigId,
OfferId
}
this.$nextTick(() => {
this.$refs.dialog.getPostData()
})
},
selectable(row, index) {
if(this.active==1){
return true
......
......@@ -67,6 +67,7 @@
</div>
<div v-if="cars.length==0" style="text-align: center;padding: 20px 0;">暂无数据</div>
</div>
<div class="ListCar-bottom" v-if="cars.length>0">
<div v-if="crmOrderObj" style="margin-bottom: 10px;">
<span style="color: red;">引流人:{{crmOrderObj.LureEmpNmae}} </span>
......@@ -128,10 +129,10 @@
<script>
export default {
props: {
crmOrderObj: {
type: Object,
require: false
},
// crmOrderObj: {
// type: Object,
// require: false
// },
HotelRow: {
type: Object,
require: false
......@@ -143,6 +144,7 @@
},
data() {
return {
crmOrderObj:null,
OptionalTime: this.getBeforeDate(0,new Date().Format('yyyy-MM-dd')),//可编辑时间
cars: [],
HotelLength: 0,
......@@ -195,17 +197,17 @@
};
},
watch: {
crmOrderObj: {
handler: function (val, oldVal) {
this.crmOrderObj = val
if(this.crmOrderObj){
this.parameters.LureEmpId = val.LureEmpId//引流id
this.parameters.CRMGuestId = val.CRMGuestId //客人ID
}
},
deep: true,
immediate: true
},
// crmOrderObj: {
// handler: function (val, oldVal) {
// this.crmOrderObj = val
// if(this.crmOrderObj){
// this.parameters.LureEmpId = val.LureEmpId//引流id
// this.parameters.CRMGuestId = val.CRMGuestId //客人ID
// }
// },
// deep: true,
// immediate: true
// },
cars: {
handler: function (val, oldVal) {
this.HotelLength = this.cars.length
......@@ -222,6 +224,13 @@
}
},
created() {
// crm自动登陆传过来的参数
if(this.$route.query.crmOrderObj){
let crmOrderObj = JSON.parse(this.$route.query.crmOrderObj)
this.crmOrderObj = crmOrderObj
this.parameters.LureEmpId = crmOrderObj.LureEmpId//引流id
this.parameters.CRMGuestId = crmOrderObj.CRMGuestId //客人ID
}
this.cars = JSON.parse(localStorage.getItem("cars"))
this.HotelLength = localStorage.getItem("HotelLength")
},
......
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