Commit 3f46783a authored by 黄媛媛's avatar 黄媛媛
parents 1ee7dfed c7bac06e
...@@ -6,30 +6,22 @@ ...@@ -6,30 +6,22 @@
</li> </li>
</ul> </ul>
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading"> <table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
<thead>
<tr> <tr>
<th style="width:30%">线路名称</th>
<th>人员</th> <th>人员</th>
<th>部门</th>
<th>占比</th> <th>占比</th>
<th>设置</th> <th width="300">操作</th>
</tr> </tr>
<tr> </thead>
<td>全部</td> <tbody>
<td>地接账户基金</td> <tr v-for="(item,index) in dataList" :key="index">
<td>{{allzb}}%</td> <td>{{item.EmployeeName}}</td>
<td> <td>{{item.DepartmentName}}</td>
<!-- <el-button @click="SetRules(item)" style="padding:4px" type="primary" icon="el-icon-edit" circle></el-button> <td>{{item.CommissionPercent}}%</td>
<el-button @click="Delete(item)" style="padding:4px" type="danger" icon="el-icon-delete" circle></el-button> -->
</td>
</tr>
<tbody v-for="(item,i) in dataList" :key="i">
<tr v-for="(com,index) in item.OPCommissionList" :key="index">
<td :rowspan="item.OPCommissionList.length" v-if="index==0">{{item.LineName}}</td>
<td>{{com.EmployeeName}}</td>
<td>{{com.CommissionPercent}}%</td>
<td> <td>
<el-button @click="SetRules(com)" style="padding:4px" type="primary" icon="el-icon-edit" circle></el-button> <el-button @click="SetRules(item)" style="padding:4px" type="primary" icon="el-icon-edit" circle></el-button>
<el-button @click="Delete(com)" style="padding:4px" type="danger" icon="el-icon-delete" circle></el-button> <el-button @click="Delete(item)" style="padding:4px" type="danger" icon="el-icon-delete" circle></el-button>
</td> </td>
</tr> </tr>
</tbody> </tbody>
...@@ -60,12 +52,7 @@ ...@@ -60,12 +52,7 @@
</template> </template>
<script> <script>
import moment from "moment"
import {
constants
} from 'fs';
export default { export default {
name: 'Feedback',
data() { data() {
return { return {
allzb: 100, allzb: 100,
...@@ -73,8 +60,6 @@ ...@@ -73,8 +60,6 @@
loading: false, loading: false,
ruleVisible: false, ruleVisible: false,
form: { form: {
LineName: '出境日本线',
LineID: 14,
EmployeeId: '', EmployeeId: '',
CommissionPercent: 0, CommissionPercent: 0,
}, },
...@@ -106,7 +91,7 @@ ...@@ -106,7 +91,7 @@
type: "warning" type: "warning"
}) })
.then(() => { .then(() => {
this.apipost('OPCommission_RemoveOPCommission', { this.apipost('ViittoCommission_post_RemoveViittoCommissionRuleService', {
ID: item.Id ID: item.Id
}, res => { }, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
...@@ -123,8 +108,6 @@ ...@@ -123,8 +108,6 @@
addRule() { addRule() {
this.ruleVisible = true; this.ruleVisible = true;
this.form = { this.form = {
LineName: '出境日本线',
LineID: 14,
EmployeeId: '', EmployeeId: '',
CommissionPercent: 0, CommissionPercent: 0,
} }
...@@ -132,8 +115,6 @@ ...@@ -132,8 +115,6 @@
SetRules(item) { SetRules(item) {
this.ruleVisible = true; this.ruleVisible = true;
this.form = { this.form = {
LineName: '出境日本线',
LineID: 14,
EmployeeId: item.EmployeeId, EmployeeId: item.EmployeeId,
CommissionPercent: item.CommissionPercent, CommissionPercent: item.CommissionPercent,
Id: item.Id Id: item.Id
...@@ -146,12 +127,10 @@ ...@@ -146,12 +127,10 @@
let newnum = 0; let newnum = 0;
if (this.form.Id) { if (this.form.Id) {
this.dataList.forEach(item => { this.dataList.forEach(item => {
item.OPCommissionList.forEach(com => { if (item.Id != this.form.Id) {
if (com.Id != this.form.Id) { num += item.CommissionPercent;
num += com.CommissionPercent;
} }
}) })
})
newnum = 100 - num; newnum = 100 - num;
} else { } else {
newnum = this.allzb; newnum = this.allzb;
...@@ -161,7 +140,7 @@ ...@@ -161,7 +140,7 @@
return; return;
} }
this.apipost( this.apipost(
'OPCommission_SetOPCommission', this.form, 'ViittoCommission_post_SetViittoCommissionRuleService', this.form,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.getList(); this.getList();
...@@ -181,13 +160,13 @@ ...@@ -181,13 +160,13 @@
let userInfo = this.getLocalStorage() let userInfo = this.getLocalStorage()
let msg = { let msg = {
GroupId: userInfo.RB_Group_id, GroupId: userInfo.RB_Group_id,
BranchId: '-1', BranchId: '49',
DepartmentId: '-1', DepartmentId: '-1',
PostId: '-1', PostId: '-1',
IsLeave: '0' IsLeave: '0'
} }
this.apipost( this.apipost(
'admin_get_EmployeeGetList', {}, 'admin_get_EmployeeGetList', msg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.EmployeeList = res.data.data this.EmployeeList = res.data.data
...@@ -198,18 +177,16 @@ ...@@ -198,18 +177,16 @@
}, },
getList() { getList() {
this.loading = true; this.loading = true;
this.apipost("OPCommission_GetPageList", {}, res => { this.apipost("ViittoCommission_get_GetListService", {}, res => {
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.dataList = res.data.data; this.dataList = res.data.data;
// allzb // allzb
let num = 0; let num=0;
this.dataList.forEach(item => { this.dataList.forEach(item=>{
item.OPCommissionList.forEach(com => { num+=item.CommissionPercent;
num += com.CommissionPercent;
})
}) })
this.allzb = 100 - num; this.allzb=100-num;
} }
}); });
}, },
......
...@@ -103,7 +103,8 @@ ...@@ -103,7 +103,8 @@
</tr> </tr>
<tr v-for="(subItem,subIndex) in HotelHouseTypeList" :key="subIndex"> <tr v-for="(subItem,subIndex) in HotelHouseTypeList" :key="subIndex">
<td style="width:100px;"> <td style="width:100px;">
{{subItem.Name}} <el-checkbox v-model="subItem.IsChecked"> {{subItem.Name}}
</el-checkbox>
</td> </td>
<td style="width:150px;"> <td style="width:150px;">
<el-input class='w135 tcenter' maxlength="2" @keyup.native="checkInteger(subItem,'HouseNum')" <el-input class='w135 tcenter' maxlength="2" @keyup.native="checkInteger(subItem,'HouseNum')"
...@@ -121,7 +122,8 @@ ...@@ -121,7 +122,8 @@
</td> </td>
</tr> </tr>
</table> </table>
<el-button slot="reference" style="background:#E95252; border-color:#E95252;" type="primary" v-if="CurrentUserInfo.EmployeeId == 615" @click="IsShowMoreUpdate=true"> <el-button slot="reference" style="background:#E95252; border-color:#E95252;" type="primary"
v-if="CurrentUserInfo.EmployeeId == 615" @click="IsShowMoreUpdate=true">
批量修改酒店 批量修改酒店
</el-button> </el-button>
</el-popover> </el-popover>
...@@ -516,7 +518,7 @@ ...@@ -516,7 +518,7 @@
<tr> <tr>
<td colspan="2" style="height:5px;"></td> <td colspan="2" style="height:5px;"></td>
</tr> </tr>
<tr> <tr style="display:none;">
<td width="70" style="text-align:right;">{{$t('ground.tixinggys')}}:</td> <td width="70" style="text-align:right;">{{$t('ground.tixinggys')}}:</td>
<td> <td>
<el-select class='w135 sel' v-model='subItem.SupplierHotelStatus' <el-select class='w135 sel' v-model='subItem.SupplierHotelStatus'
...@@ -527,17 +529,17 @@ ...@@ -527,17 +529,17 @@
</el-select> </el-select>
</td> </td>
</tr> </tr>
<tr> <tr style="display:none;">
<td colspan="2" style="height:5px;"> <td colspan="2" style="height:5px;">
</td> </td>
</tr> </tr>
<tr> <tr style="display:none;">
<td width="70" style="text-align:right;">{{$t('ground.duigysbz')}}:</td> <td width="70" style="text-align:right;">{{$t('ground.duigysbz')}}:</td>
<td> <td>
<el-input type='textarea' class='w135' v-model='subItem.Remarks'></el-input> <el-input type='textarea' class='w135' v-model='subItem.Remarks'></el-input>
</td> </td>
</tr> </tr>
<tr v-if="subItem.SupplierToDmcRemarks"> <tr v-if="subItem.SupplierToDmcRemarks" style="display:none;">
<td width="70" style="text-align:right;">{{$t('ground.gongysddjbz')}}:</td> <td width="70" style="text-align:right;">{{$t('ground.gongysddjbz')}}:</td>
<td> <td>
<span <span
...@@ -647,30 +649,35 @@ ...@@ -647,30 +649,35 @@
isShowPiliangPop: false, //是否显示批量上传popover isShowPiliangPop: false, //是否显示批量上传popover
IsShowMoreUpdate: false, IsShowMoreUpdate: false,
HotelHouseTypeList: [{ HotelHouseTypeList: [{
IsChecked: false,
HouseType: 1, HouseType: 1,
Name: "单间", Name: "单间",
HouseNum: 0, HouseNum: 0,
BookNum: 0 BookNum: 0
}, },
{ {
IsChecked: false,
HouseType: 2, HouseType: 2,
Name: "标准间", Name: "标准间",
HouseNum: 0, HouseNum: 0,
BookNum: 0 BookNum: 0
}, },
{ {
IsChecked: false,
HouseType: 3, HouseType: 3,
Name: "大床间", Name: "大床间",
HouseNum: 0, HouseNum: 0,
BookNum: 0 BookNum: 0
}, },
{ {
IsChecked: false,
HouseType: 4, HouseType: 4,
Name: "三人间", Name: "三人间",
HouseNum: 0, HouseNum: 0,
BookNum: 0 BookNum: 0
}, },
{ {
IsChecked: false,
HouseType: 5, HouseType: 5,
Name: "司导间", Name: "司导间",
HouseNum: 0, HouseNum: 0,
...@@ -687,20 +694,35 @@ ...@@ -687,20 +694,35 @@
methods: { methods: {
//批量修改房间数和房间人 //批量修改房间数和房间人
BatchHotelOrder() { BatchHotelOrder() {
var checkArray = [];
this.HotelHouseTypeList.forEach(item => {
if (item.IsChecked) {
checkArray.push(item);
}
});
if (checkArray != null && checkArray.length > 0) {
var msg = { var msg = {
TCID: this.$route.query.id, TCID: this.$route.query.id,
OrderDetails: this.HotelHouseTypeList OrderDetails: checkArray
}; };
this.apipost('dmcstatistics_get_SetBatchHotelOrderService', msg, res => { this.apipost('dmcstatistics_get_SetBatchHotelOrderService', msg, res => {
this.loading = false; this.loading = false;
this.IsShowMoreUpdate=false; this.IsShowMoreUpdate = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.getList(); this.getList();
this.Success(res.data.message); this.Success(res.data.message);
this.HotelHouseTypeList.forEach(item => {
item.IsChecked = false;
item.HouseNum = 0;
item.BookNum = 0;
});
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, err => {}) }, err => {})
} else {
this.Info("请选择要修改的房型!");
}
}, },
MoreUpdate(subItem) { MoreUpdate(subItem) {
this.IsMoreUpdate = 1; this.IsMoreUpdate = 1;
......
...@@ -3937,11 +3937,11 @@ export default { ...@@ -3937,11 +3937,11 @@ export default {
this.addMsg.RulesList.splice(index, 1); this.addMsg.RulesList.splice(index, 1);
} }
}, },
//根据当前员工所在部门获取该部门及子部门员工信息 //根据当前员工所在部门获取该部门及子部门员工信息只获取票务信息
getEmployeeList() { getEmployeeList() {
this.apipost( this.apipost(
"admin_get_GetEmployeeByUserDepartmentId", "admin_get_GetEmployeeByUserDepartmentId",
{}, {IsGetTicket:1},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.EmployeeList = res.data.data; this.EmployeeList = res.data.data;
......
...@@ -346,7 +346,7 @@ export default { ...@@ -346,7 +346,7 @@ export default {
getEmployeeList() { getEmployeeList() {
this.apipost( this.apipost(
"admin_get_GetEmployeeByUserDepartmentId", "admin_get_GetEmployeeByUserDepartmentId",
{}, {IsGetTicket:1},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.EmployeeList = res.data.data; this.EmployeeList = res.data.data;
......
...@@ -1082,16 +1082,8 @@ ...@@ -1082,16 +1082,8 @@
}, },
//根据当前员工所在部门获取该部门及子部门员工信息 //根据当前员工所在部门获取该部门及子部门员工信息
getEmployeeList() { getEmployeeList() {
let userInfo = this.getLocalStorage()
let msg = {
GroupId: userInfo.RB_Group_id,
BranchId: '-1',
DepartmentId: '-1',
PostId: '-1',
IsLeave: '0'
}
this.apipost( this.apipost(
'admin_get_EmployeeGetList', {}, 'admin_get_GetEmployeeByUserDepartmentId', {IsGetTicket:1},
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