Commit 8255c1f9 authored by youjie's avatar youjie

no message

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