|
@@ -50,6 +50,21 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
+ <el-dialog width="400px" title="系数推测" :visible.sync="groupcostXSVisible">
|
|
|
+ <div>
|
|
|
+ <el-table border :data="groupcostXSList">
|
|
|
+ <el-table-column property="label" label="系数板块"></el-table-column>
|
|
|
+ <el-table-column property="value" label="系数值"></el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ <br />
|
|
|
+ <div class="btn-dialog-cost">
|
|
|
+ <el-button size="small" type="primary" @click='groupcostXSSet'>采用推测系数</el-button>
|
|
|
+
|
|
|
+ <el-button @click="groupcostXSVisible = false" size="small">取消操作</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
<el-dialog width="85%" title="地接历史费用" :visible.sync="historyCarDialog" @close="dialogClose">
|
|
|
<div style="display: flex;">
|
|
|
<div style="width: 30%;">
|
|
@@ -197,6 +212,8 @@
|
|
|
<div class="ser-btn-li">
|
|
|
<el-button size="small" type="primary"
|
|
|
@click="dialogCopyVisible = true; dialogCopySelect = '';">成本复制</el-button>
|
|
|
+ <el-button size="small" type="primary"
|
|
|
+ @click="() => { groupcostXSVisible = true; QueryGroupCostXS(); }">系数推测</el-button>
|
|
|
<el-button size="small" :type="blackCodeIsTrue ? 'primary' : 'danger'"
|
|
|
@click="importBlackCode">导入机票行程数据</el-button>
|
|
|
<el-button size="small" :type="hotelIsTrue ? 'primary' : 'danger'"
|
|
@@ -999,20 +1016,20 @@
|
|
|
</span>
|
|
|
<span v-else-if="itemcabinone.prop === 'totalCost'"
|
|
|
:title="scope.row[itemcabinone.prop]">{{
|
|
|
- (scope.row['toll'] * scope.row['costPerson']).toFixed(2)
|
|
|
+ (scope.row['toll'] * scope.row['costPerson']).toFixed(2)
|
|
|
}}</span>
|
|
|
<span v-else-if="itemcabinone.prop === 'totalQuote'"
|
|
|
:title="scope.row[itemcabinone.prop]">{{
|
|
|
- (scope.row['toll'] * scope.row['singleQuote']).toFixed(2)
|
|
|
+ (scope.row['toll'] * scope.row['singleQuote']).toFixed(2)
|
|
|
}}</span>
|
|
|
<span v-else-if="itemcabinone.prop === 'singleProfit'"
|
|
|
:title="scope.row[itemcabinone.prop]">{{
|
|
|
- ((scope.row['singleQuote'] - scope.row['costPerson'])).toFixed(2)
|
|
|
+ ((scope.row['singleQuote'] - scope.row['costPerson'])).toFixed(2)
|
|
|
}}</span>
|
|
|
<span v-else-if="itemcabinone.prop === 'totalProfit'"
|
|
|
:title="scope.row[itemcabinone.prop]">{{
|
|
|
- ((scope.row['singleQuote'] - scope.row['costPerson']) *
|
|
|
- scope.row['toll']).toFixed(2)
|
|
|
+ ((scope.row['singleQuote'] - scope.row['costPerson']) *
|
|
|
+ scope.row['toll']).toFixed(2)
|
|
|
}}</span>
|
|
|
<span v-else :title="scope.row[itemcabinone.prop]">{{
|
|
|
scope.row[itemcabinone.prop]
|
|
@@ -1044,24 +1061,24 @@
|
|
|
<span
|
|
|
v-else-if="itemcabinone.prop === 'costPerson' || itemcabinone.prop === 'singleQuote'"
|
|
|
:title="scope.row[itemcabinone.prop]">{{
|
|
|
- scope.row[itemcabinone.prop]
|
|
|
+ scope.row[itemcabinone.prop]
|
|
|
}}</span>
|
|
|
<span v-else-if="itemcabinone.prop === 'totalCost'"
|
|
|
:title="scope.row[itemcabinone.prop]">{{
|
|
|
- (scope.row['toll'] * scope.row['costPerson']).toFixed(2)
|
|
|
+ (scope.row['toll'] * scope.row['costPerson']).toFixed(2)
|
|
|
}}</span>
|
|
|
<span v-else-if="itemcabinone.prop === 'totalQuote'"
|
|
|
:title="scope.row[itemcabinone.prop]">{{
|
|
|
- (scope.row['toll'] * scope.row['singleQuote']).toFixed(2)
|
|
|
+ (scope.row['toll'] * scope.row['singleQuote']).toFixed(2)
|
|
|
}}</span>
|
|
|
<span v-else-if="itemcabinone.prop === 'singleProfit'"
|
|
|
:title="scope.row[itemcabinone.prop]">{{
|
|
|
- (scope.row['singleQuote'] - scope.row['costPerson']).toFixed(2)
|
|
|
+ (scope.row['singleQuote'] - scope.row['costPerson']).toFixed(2)
|
|
|
}}</span>
|
|
|
<span v-else-if="itemcabinone.prop === 'totalProfit'"
|
|
|
:title="scope.row[itemcabinone.prop]">{{
|
|
|
- ((scope.row['singleQuote'] - scope.row['costPerson']) *
|
|
|
- scope.row['toll']).toFixed(2)
|
|
|
+ ((scope.row['singleQuote'] - scope.row['costPerson']) *
|
|
|
+ scope.row['toll']).toFixed(2)
|
|
|
}}</span>
|
|
|
<span v-else :title="scope.row[itemcabinone.prop]">{{
|
|
|
scope.row[itemcabinone.prop]
|
|
@@ -3427,6 +3444,8 @@ export default {
|
|
|
excludeGroupList: [2836],
|
|
|
groupModuleOperators: [],
|
|
|
hideGroupModuleId: [98],
|
|
|
+ groupcostXSVisible: false,
|
|
|
+ groupcostXSList: [],
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -7114,6 +7133,41 @@ export default {
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
+ },
|
|
|
+ QueryGroupCostXS() {
|
|
|
+
|
|
|
+ this.groupcostXSList = [];
|
|
|
+ var Data = {
|
|
|
+ diid: this.diid,
|
|
|
+ VisaCB: this.AGroupCostParameter.visaCB,
|
|
|
+ VisaRS: this.AGroupCostParameter.visaRS,
|
|
|
+ HCPCB: this.AGroupCostParameter.hcpcb,
|
|
|
+ JJCCB: this.AGroupCostParameter.jjccb,
|
|
|
+ GWCCB: this.AGroupCostParameter.gwccb,
|
|
|
+ TDCCB: this.AGroupCostParameter.tdccb,
|
|
|
+ DJRS: this.AGroupCostParameter.djrs,
|
|
|
+ LYJRS: this.AGroupCostParameter.lyjrs
|
|
|
+ }
|
|
|
+
|
|
|
+ this.$axios.post('/api/Groups/QueryGroupCostCoefficient', Data, {
|
|
|
+ headers: {
|
|
|
+ 'Authorization': this.token,
|
|
|
+ }
|
|
|
+
|
|
|
+ }).then(resp => {
|
|
|
+ this.groupcostXSList = resp.data.data.filter(item => item.value !== 0);
|
|
|
+ })
|
|
|
+
|
|
|
+ },
|
|
|
+ groupcostXSSet() {
|
|
|
+ for (let index = 0; index < this.groupcostXSList.length; index++) {
|
|
|
+ if (this.AGroupCostParameter[this.groupcostXSList[index].key.toLowerCase()] != undefined) {
|
|
|
+ this.AGroupCostParameter[this.groupcostXSList[index].key.toLowerCase()] = this.groupcostXSList[index].value;
|
|
|
+ } else {
|
|
|
+ console.log(this.groupcostXSList[index].key.toLowerCase() + "属性未找到");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.groupcostXSVisible = false;
|
|
|
}
|
|
|
},
|
|
|
updated() {
|
|
@@ -7511,7 +7565,8 @@ export default {
|
|
|
background-color: #0001;
|
|
|
}
|
|
|
|
|
|
-.accon-ul:last-child { bottom: 15px;
|
|
|
+.accon-ul:last-child {
|
|
|
+ bottom: 15px;
|
|
|
}
|
|
|
|
|
|
.btn-dialog-cost {
|