Commit fa38ae36 authored by 王悦's avatar 王悦
parents 6e3dd271 f055f410
...@@ -102,7 +102,6 @@ ...@@ -102,7 +102,6 @@
<el-col :span="5" :gutter="20"> <el-col :span="5" :gutter="20">
<el-form-item label="适用公司:" prop="UsingBranchArray"> <el-form-item label="适用公司:" prop="UsingBranchArray">
<el-select <el-select
filterable
multiple multiple
collapse-tags collapse-tags
@change="changeData(1)" @change="changeData(1)"
...@@ -122,7 +121,6 @@ ...@@ -122,7 +121,6 @@
<el-col :span="5" :gutter="20"> <el-col :span="5" :gutter="20">
<el-form-item label="适用线路:" prop="UsingLineArray"> <el-form-item label="适用线路:" prop="UsingLineArray">
<el-select <el-select
filterable
multiple multiple
collapse-tags collapse-tags
@change="changeData(2)" @change="changeData(2)"
...@@ -140,6 +138,27 @@ ...@@ -140,6 +138,27 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="5" :gutter="20"> <el-col :span="5" :gutter="20">
<el-form-item label="适用目的地:">
<el-select
multiple
collapse-tags
@change="changeData(3)"
v-model="addMsg.UsingDestinationArray"
>
<el-option label="所有目的地" value="-1"></el-option>
<el-option
v-for="(item, index) in desctions"
:label="item.PlaceName"
:value="item.PlaceID.toString()"
:key="index"
></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" :gutter="20">
<el-form-item label="启用时间:"> <el-form-item label="启用时间:">
<el-date-picker v-model="addMsg.EffectDate" type="date" placeholder="选择启用时间"></el-date-picker> <el-date-picker v-model="addMsg.EffectDate" type="date" placeholder="选择启用时间"></el-date-picker>
</el-form-item> </el-form-item>
...@@ -289,7 +308,9 @@ export default { ...@@ -289,7 +308,9 @@ export default {
formLoading: false, formLoading: false,
searchMsg: { searchMsg: {
RB_Group_Id: 0 RB_Group_Id: 0
} },
desctionsResources:[],
desctions:[]
}; };
}, },
methods: { methods: {
...@@ -333,8 +354,10 @@ export default { ...@@ -333,8 +354,10 @@ export default {
CommissionVariable: 0, CommissionVariable: 0,
UsingLineArray: ["-1"], UsingLineArray: ["-1"],
UsingBranchArray: ["-1"], UsingBranchArray: ["-1"],
UsingDestinationArray:["-1"],
UsingLine: "", UsingLine: "",
UsingBranch: "", UsingBranch: "",
UsingDestination: "",
EffectDate: null, EffectDate: null,
RB_Group_Id: this.searchMsg.RB_Group_Id, RB_Group_Id: this.searchMsg.RB_Group_Id,
BalanceCyc: 1, BalanceCyc: 1,
...@@ -353,7 +376,17 @@ export default { ...@@ -353,7 +376,17 @@ export default {
} else { } else {
data.UsingLineArray = data.UsingLine.split(","); data.UsingLineArray = data.UsingLine.split(",");
data.UsingBranchArray = data.UsingBranch.split(","); data.UsingBranchArray = data.UsingBranch.split(",");
this.desctions=[]
if(data.UsingLine!='-1'){
this.desctionsResources.forEach(x=>{
if(data.UsingLineArray.indexOf(x.LineID.toString())!=-1){
this.desctions.push(x);
}
})
}
this.addMsg = data; this.addMsg = data;
this.addMsg.UsingDestinationArray = data.UsingDestination.split(",");
console.log(this.addMsg)
} }
this.changeShow(1); this.changeShow(1);
}, },
...@@ -364,6 +397,7 @@ export default { ...@@ -364,6 +397,7 @@ export default {
this.formLoading = true; this.formLoading = true;
this.addMsg.UsingLine = this.addMsg.UsingLineArray.join(","); this.addMsg.UsingLine = this.addMsg.UsingLineArray.join(",");
this.addMsg.UsingBranch = this.addMsg.UsingBranchArray.join(","); this.addMsg.UsingBranch = this.addMsg.UsingBranchArray.join(",");
this.addMsg.UsingDestination = this.addMsg.UsingDestinationArray.join(",");
this.apipost("sellcommission_rule_set", this.addMsg, x => { this.apipost("sellcommission_rule_set", this.addMsg, x => {
if (x.data.resultCode == 1) { if (x.data.resultCode == 1) {
this.changeShow(0); this.changeShow(0);
...@@ -540,11 +574,14 @@ export default { ...@@ -540,11 +574,14 @@ export default {
this.isReady = true; this.isReady = true;
}, },
changeData(type) { changeData(type) {
console.log('111111111111111')
let temp = []; let temp = [];
if (type == 1) { if (type == 1) {
temp = this.addMsg.UsingBranchArray; temp = this.addMsg.UsingBranchArray;
} else if (type == 2) { } else if (type == 2) {
temp = this.addMsg.UsingLineArray; temp = this.addMsg.UsingLineArray;
} else if (type == 3) {
temp = this.addMsg.UsingDestinationArray;
} }
let len = temp.length; let len = temp.length;
if (len > 1) { if (len > 1) {
...@@ -554,6 +591,17 @@ export default { ...@@ -554,6 +591,17 @@ export default {
temp.splice(temp.indexOf("-1"), 1); temp.splice(temp.indexOf("-1"), 1);
} }
} }
if(type==2 || type==3){
this.desctions=[]
if(type==2)
this.addMsg.UsingDestinationArray=['-1']
this.desctionsResources.forEach(x=>{
if(this.addMsg.UsingLineArray.indexOf(x.LineID.toString())!=-1){
this.desctions.push(x);
}
})
}
}, },
handleCurrentChanges(val) { handleCurrentChanges(val) {
this.pageIndex = val; this.pageIndex = val;
...@@ -569,16 +617,10 @@ export default { ...@@ -569,16 +617,10 @@ export default {
}, },
filterMethod(filters) { filterMethod(filters) {
console.log("filter", filters); console.log("filter", filters);
this.msg.Alias = filters.Alias; this.searchMsg.RuleName = filters.RuleName;
this.msg.RB_Branch_Id = filters.allName; this.searchMsg.UsingBranchArray = filters.BranchName;
this.msg.SettlementType = this.searchMsg.UsingLineArray = filters.LineName;
filters.Commission.length == 1 ? filters.Commission[0] : 0; this.getData();
this.msg.HaveContract =
filters.HaveContract.length == 1 ? filters.HaveContract[0] : -1;
this.msg.SigningLine = filters.SigningLine;
this.msg.Accountholder = filters.Accountholder;
this.msg.pageIndex = 1;
this.getList();
}, },
getCompanyList() { getCompanyList() {
//获取公司列表 //获取公司列表
...@@ -619,11 +661,34 @@ export default { ...@@ -619,11 +661,34 @@ export default {
this.tableData = x.data.data; this.tableData = x.data.data;
this.loading = false; this.loading = false;
}); });
},
getDesction(){
this.apipost(
"place_post_GetPageList",
{
LineID:0,
PlaceName:'',
pageIndex:1,
pageSize:5000
},
res => {
if (res.data.resultCode == 1) {
res.data.data.pageData.forEach(x=>{
if(x.IsShow==1)
this.desctionsResources.push(x)
})
//this.desctions=this.desctionsResources
//console.log(this.departmentList)
}
},
err => {}
);
} }
}, },
mounted() { mounted() {
this.searchMsg.RB_Group_Id = this.addMsg.RB_Group_Id = this.getLocalStorage().RB_Group_id; this.searchMsg.RB_Group_Id = this.addMsg.RB_Group_Id = this.getLocalStorage().RB_Group_id;
this.getCompanyList(); this.getCompanyList();
this.getDesction();
Vue.component("table-operation", { Vue.component("table-operation", {
template: `<div style='width:80px;height:40px;background:#fff;text-align:center;position: relative;left:-5px;padding-top: 6px;padding-top:6px;'><el-button type="primary" size='mini' icon="el-icon-edit" circle @click="update(rowData,index)"></el-button><el-button type="danger" size='mini' icon="el-icon-delete" circle @click="deleteRow(rowData,index)"></el-button></div>`, template: `<div style='width:80px;height:40px;background:#fff;text-align:center;position: relative;left:-5px;padding-top: 6px;padding-top:6px;'><el-button type="primary" size='mini' icon="el-icon-edit" circle @click="update(rowData,index)"></el-button><el-button type="danger" size='mini' icon="el-icon-delete" circle @click="deleteRow(rowData,index)"></el-button></div>`,
props: { props: {
......
...@@ -806,8 +806,16 @@ ...@@ -806,8 +806,16 @@
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item label="成交单价" prop="Unit_Price"> <el-form-item label="成交单价" prop="Unit_Price">
<el-input v-model='addMsg.Unit_Price' :disabled="true" <el-select v-model='addMsg.Unit_Price'
@keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()"></el-input> filterable :placeholder="$t('pub.pleaseSel')" @change="getTotalPrice()">
<el-option v-for="item in Unit_PriceList" :label='item.LessMoney' :value='item.ID' :key='item.ID'>
</el-option>
</el-select>
<!-- <el-input v-model='addMsg.Unit_Price' :disabled="true" @keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()"></el-input> -->
</el-form-item>
<el-form-item>
<p v-if="LessMoney==0" style="line-height: 18px; color: #E95252;">注:如果超出本团的最低让价,差价将由你来承担</p>
<p v-else="LessMoney>0" style="line-height: 18px; color: #E95252;">注:最多少价{{LessMoney}}元,如需少价更多请联系上级主管</p>
</el-form-item> </el-form-item>
<!--<el-form-item> <!--<el-form-item>
<p style="line-height: 18px; color: #E95252;">注:如果超出本团的最低让价,差价将由你来承担</p> <p style="line-height: 18px; color: #E95252;">注:如果超出本团的最低让价,差价将由你来承担</p>
...@@ -1751,6 +1759,8 @@ ...@@ -1751,6 +1759,8 @@
}, },
IsUnion: 2, IsUnion: 2,
IsChargeLossOrders: 0, IsChargeLossOrders: 0,
Unit_PriceList:[],//成交单价下拉数据
LessMoney:0,
addMsg: { addMsg: {
OrderId: '0', OrderId: '0',
TCID: '0', TCID: '0',
...@@ -2414,6 +2424,49 @@ ...@@ -2414,6 +2424,49 @@
err => { err => {
} }
) )
this.Unit_PriceList=[];
this.apipost('sellorder_post_GetLessPrice', {}, res => {
this.LessMoney = res.data.data.lessMoney;
if (parseFloat(this.LessMoney)>0){
for (var i = 0; i <= parseInt(this.LessMoney)/10; i++) {
var obj = {
ID: '',
LessMoney: ''
}
obj.ID = this.addMsg.TC_Price-i*10;
obj.LessMoney = this.addMsg.TC_Price-i*10;
this.Unit_PriceList.push(obj);
}
// this.Unit_PriceList.forEach(person => {
if(this.Unit_PriceList.findIndex(markers => markers.ID == this.addMsg.Unit_Price)<0) {
var obj = {
ID: '',
LessMoney: ''
}
obj.ID = this.addMsg.Unit_Price;
obj.LessMoney = this.addMsg.Unit_Price;
this.Unit_PriceList.push(obj);
}
// });
//判断下拉价格里面是否包含了成交单价,未包含就添加进来
// const option = {ID:this.addMsg.TC_Price,LessMoney:this.addMsg.TC_Price}
// // 如果数组里面本身不存在这个对象则把这个加进去
// if(JSON.stringify(this.Unit_PriceList).indexOf(JSON.stringify(option))==-1){
// this.Unit_PriceList.push(option); // 进行动态的操作
// }
}
else{
var obj = {
ID: '',
LessMoney: ''
}
obj.ID = this.addMsg.Unit_Price;
obj.LessMoney = this.addMsg.Unit_Price;
this.Unit_PriceList.push(obj);
}
}, err => {})
this.getKhmdList(this.addMsg.CustomerType, obj.lineId) this.getKhmdList(this.addMsg.CustomerType, obj.lineId)
this.getDdlyList(this.addMsg.CustomerType) this.getDdlyList(this.addMsg.CustomerType)
...@@ -2520,6 +2573,30 @@ ...@@ -2520,6 +2573,30 @@
this.addMsg.CustomerId = '0' this.addMsg.CustomerId = '0'
this.addMsg.CommissionShareMoney = '0' this.addMsg.CommissionShareMoney = '0'
} }
this.Unit_PriceList=[];
this.apipost('sellorder_post_GetLessPrice', {}, res => {
this.LessMoney = res.data.data.lessMoney;
if (parseFloat(this.LessMoney)>0){
for (var i = 0; i <= parseInt(this.LessMoney)/10; i++) {
var obj = {
ID: '',
LessMoney: ''
}
obj.ID = this.addMsg.TC_Price-i*10;
obj.LessMoney = this.addMsg.TC_Price-i*10;
this.Unit_PriceList.push(obj);
}
}
else{
var obj = {
ID: '',
LessMoney: ''
}
obj.ID = this.addMsg.Unit_Price;
obj.LessMoney = this.addMsg.Unit_Price;
this.Unit_PriceList.push(obj);
}
}, err => {})
}, },
getTicheng () { getTicheng () {
//提成 //提成
......
...@@ -728,7 +728,12 @@ ...@@ -728,7 +728,12 @@
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item label="成交单价" prop="Unit_Price"> <el-form-item label="成交单价" prop="Unit_Price">
<el-input v-model='addMsg.Unit_Price' :disabled="true" @keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()" ></el-input> <!-- <el-select v-model='addMsg.Unit_Price'
filterable :placeholder="$t('pub.pleaseSel')" @change="getTotalPrice()">
<el-option v-for="item in Unit_PriceList" :label='item.LessMoney' :value='item.ID' :key='item.ID'>
</el-option>
</el-select> -->
<el-input v-model='addMsg.Unit_Price' :disabled="true" @keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()"></el-input>
</el-form-item> </el-form-item>
<!-- <el-form-item> <!-- <el-form-item>
<p style="line-height: 18px; color: #E95252;">注:如果超出本团的最低让价,差价将由你来承担</p> <p style="line-height: 18px; color: #E95252;">注:如果超出本团的最低让价,差价将由你来承担</p>
...@@ -1041,11 +1046,20 @@ ...@@ -1041,11 +1046,20 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item label="成交单价" prop="Unit_Price"> <!-- <el-form-item label="成交单价" prop="Unit_Price">
<el-input v-model='addMsg.Unit_Price' @keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()" ></el-input> <el-input v-model='addMsg.Unit_Price' @keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()" ></el-input>
</el-form-item> -->
<el-form-item label="成交单价" prop="Unit_Price">
<el-select v-model='addMsg.Unit_Price'
filterable :placeholder="$t('pub.pleaseSel')" @change="getTotalPrice()">
<el-option v-for="item in Unit_PriceList" :label='item.LessMoney' :value='item.ID' :key='item.ID'>
</el-option>
</el-select>
<!-- <el-input v-model='addMsg.Unit_Price' :disabled="true" @keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()"></el-input> -->
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<p style="line-height: 18px; color: #E95252;">注:如果超出本团的最低让价,差价将由你来承担</p> <p v-if="LessMoney==0" style="line-height: 18px; color: #E95252;">注:如果超出本团的最低让价,差价将由你来承担</p>
<p v-else="LessMoney>0" style="line-height: 18px; color: #E95252;">注:最多少价{{LessMoney}}元,如需少价更多请联系上级主管</p>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -2044,6 +2058,8 @@ export default { ...@@ -2044,6 +2058,8 @@ export default {
isOrder:1 isOrder:1
}, },
IsChargeLossOrders:0, IsChargeLossOrders:0,
Unit_PriceList:[],//成交单价下拉数据
LessMoney:0,
addMsg: { addMsg: {
OrderId: "0", OrderId: "0",
TCID: "0", TCID: "0",
...@@ -2691,7 +2707,7 @@ export default { ...@@ -2691,7 +2707,7 @@ export default {
this.addMsg.GroupType = x.GroupType.toString(); this.addMsg.GroupType = x.GroupType.toString();
this.addMsg.TradeWay = x.TradeWay.toString(); this.addMsg.TradeWay = x.TradeWay.toString();
this.addMsg.PredictRoomNum = x.PredictRoomNum; this.addMsg.PredictRoomNum = x.PredictRoomNum;
this.addMsg.IsIntermodal = x.IsIntermodal.toString(); this.addMsg.IsIntermodal = x.IsIntermodal?x.IsIntermodal.toString():2;
this.addMsg.IsReturnIntermodal = x.IsReturnIntermodal.toString(); this.addMsg.IsReturnIntermodal = x.IsReturnIntermodal.toString();
this.addMsg.ChirdNum = x.ChirdNum.toString(); this.addMsg.ChirdNum = x.ChirdNum.toString();
this.addMsg.ChirdNeedBedNum = x.ChirdNeedBedNum.toString(); this.addMsg.ChirdNeedBedNum = x.ChirdNeedBedNum.toString();
...@@ -2724,6 +2740,40 @@ export default { ...@@ -2724,6 +2740,40 @@ export default {
this.isShowLayer2 = true; this.isShowLayer2 = true;
} }
this.Unit_PriceList=[];
this.apipost('sellorder_post_GetLessPrice', {}, res => {
this.LessMoney = res.data.data.lessMoney;
if (parseFloat(this.LessMoney)>0){
for (var i = 0; i <= parseInt(this.LessMoney)/10; i++) {
var obj = {
ID: '',
LessMoney: ''
}
obj.ID = this.addMsg.TC_Price-i*10;
obj.LessMoney = this.addMsg.TC_Price-i*10;
this.Unit_PriceList.push(obj);
}
if(this.Unit_PriceList.findIndex(markers => markers.ID == this.addMsg.Unit_Price)<0) {
var obj = {
ID: '',
LessMoney: ''
}
obj.ID = this.addMsg.Unit_Price;
obj.LessMoney = this.addMsg.Unit_Price;
this.Unit_PriceList.push(obj);
}
}
else{
var obj = {
ID: '',
LessMoney: ''
}
obj.ID = this.addMsg.Unit_Price;
obj.LessMoney = this.addMsg.Unit_Price;
this.Unit_PriceList.push(obj);
}
}, err => {})
this.isShowLayerRemarks = false; this.isShowLayerRemarks = false;
this.apipost( this.apipost(
"app_today_visit_GetCustomerBrandByCustomerId", "app_today_visit_GetCustomerBrandByCustomerId",
...@@ -2856,6 +2906,30 @@ export default { ...@@ -2856,6 +2906,30 @@ export default {
this.addMsg.TC_Price = this.addObj.B2CPrice; this.addMsg.TC_Price = this.addObj.B2CPrice;
//this.addMsg.CustomerId=0 //this.addMsg.CustomerId=0
} }
this.Unit_PriceList=[];
this.apipost('sellorder_post_GetLessPrice', {}, res => {
this.LessMoney = res.data.data.lessMoney;
if (parseFloat(this.LessMoney)>0){
for (var i = 0; i <= parseInt(this.LessMoney)/10; i++) {
var obj = {
ID: '',
LessMoney: ''
}
obj.ID = this.addMsg.TC_Price-i*10;
obj.LessMoney = this.addMsg.TC_Price-i*10;
this.Unit_PriceList.push(obj);
}
}
else{
var obj = {
ID: '',
LessMoney: ''
}
obj.ID = this.addMsg.Unit_Price;
obj.LessMoney = this.addMsg.Unit_Price;
this.Unit_PriceList.push(obj);
}
}, err => {})
}, },
getTicheng() { getTicheng() {
if (this.addMsg.GroupType !=5) { if (this.addMsg.GroupType !=5) {
...@@ -2932,7 +3006,7 @@ export default { ...@@ -2932,7 +3006,7 @@ export default {
getTotalPrice() { getTotalPrice() {
if (this.addMsg.GroupType !=5) { if (this.addMsg.GroupType !=5) {
this.addMsg.ChirdNum = this.addMsg.ChirdNoNeedBedNum*1 + this.addMsg.ChirdNeedBedNum*1 this.addMsg.ChirdNum = this.addMsg.ChirdNoNeedBedNum*1 + this.addMsg.ChirdNeedBedNum*1
if (this.addObj.IsBirdDiscount == 1) { if (this.addObj.IsBirdDiscount&&this.addObj.IsBirdDiscount == 1) {
//早鸟优惠 //早鸟优惠
//this.addMsg.Unit_Price //成交单价 //this.addMsg.Unit_Price //成交单价
//BabyPrice 婴儿价 //BabyPrice 婴儿价
......
...@@ -234,8 +234,21 @@ ...@@ -234,8 +234,21 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item label="成交单价" prop="Unit_Price"> <!-- <el-form-item label="成交单价" prop="Unit_Price">
<el-input v-model='addMsg.Unit_Price' :disabled="true" @keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()"></el-input> <el-input v-model='addMsg.Unit_Price' :disabled="true" @keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()"></el-input>
</el-form-item> -->
<el-form-item label="成交单价" prop="Unit_Price">
<el-select v-model='addMsg.Unit_Price'
filterable :placeholder="$t('pub.pleaseSel')" @change="getTotalPrice()">
<el-option v-for="item in Unit_PriceList" :label='item.LessMoney' :value='item.ID' :key='item.ID'>
</el-option>
</el-select>
<!-- <el-input v-model='addMsg.Unit_Price' :disabled="true" @keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()"></el-input> -->
</el-form-item>
<el-form-item>
<p v-if="LessMoney==0" style="line-height: 18px; color: #E95252;">注:如果超出本团的最低让价,差价将由你来承担</p>
<p v-else="LessMoney>0" style="line-height: 18px; color: #E95252;">注:最多少价{{LessMoney}}元,如需少价更多请联系上级主管</p>
</el-form-item> </el-form-item>
<!--<el-form-item> <!--<el-form-item>
<p style="line-height: 18px; color: #E95252;">注:如果超出本团的最低让价,差价将由你来承担</p> <p style="line-height: 18px; color: #E95252;">注:如果超出本团的最低让价,差价将由你来承担</p>
...@@ -869,6 +882,8 @@ ...@@ -869,6 +882,8 @@
currentPage: 1, currentPage: 1,
total: 0, total: 0,
addObj: {}, addObj: {},
Unit_PriceList:[],//成交单价下拉数据
LessMoney:0,
addMsg: { addMsg: {
OrderId: '0', OrderId: '0',
TCID: '0', TCID: '0',
...@@ -1465,6 +1480,39 @@ ...@@ -1465,6 +1480,39 @@
this.addMsg.CustomerId = '0' this.addMsg.CustomerId = '0'
this.addMsg.CommissionShareMoney = '0' this.addMsg.CommissionShareMoney = '0'
} }
this.Unit_PriceList=[];
this.apipost('sellorder_post_GetLessPrice', {}, res => {
this.LessMoney = res.data.data.lessMoney;
if (parseFloat(this.LessMoney)>0){
for (var i = 0; i <= parseInt(this.LessMoney)/10; i++) {
var obj = {
ID: '',
LessMoney: ''
}
obj.ID = this.addMsg.Unit_Price-i*10;
obj.LessMoney = this.addMsg.Unit_Price-i*10;
this.Unit_PriceList.push(obj);
}
if(this.Unit_PriceList.findIndex(markers => markers.ID == this.addMsg.Unit_Price)<0) {
var obj = {
ID: '',
LessMoney: ''
}
obj.ID = this.addMsg.Unit_Price;
obj.LessMoney = this.addMsg.Unit_Price;
this.Unit_PriceList.push(obj);
}
}
else{
var obj = {
ID: '',
LessMoney: ''
}
obj.ID = this.addMsg.Unit_Price;
obj.LessMoney = this.addMsg.Unit_Price;
this.Unit_PriceList.push(obj);
}
}, err => {})
}, },
getTicheng() { //提成 getTicheng() { //提成
let num = Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum) let num = Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum)
......
...@@ -863,8 +863,16 @@ ...@@ -863,8 +863,16 @@
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item label="成交单价" prop="Unit_Price"> <el-form-item label="成交单价" prop="Unit_Price">
<el-input v-model='addMsg.Unit_Price' @keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()"></el-input> <!-- <el-select v-model='addMsg.Unit_Price'
filterable :placeholder="$t('pub.pleaseSel')" @change="getTotalPrice()">
<el-option v-for="item in Unit_PriceList" :label='item.LessMoney' :value='item.ID' :key='item.ID'>
</el-option>
</el-select> -->
<el-input v-model='addMsg.Unit_Price' :disabled="true" @keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()"></el-input>
</el-form-item> </el-form-item>
<!-- <el-form-item label="成交单价" prop="Unit_Price">
<el-input v-model='addMsg.Unit_Price' @keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()"></el-input>
</el-form-item> -->
</el-col> </el-col>
</el-row> </el-row>
<div style="width: 100%; border-top:1px dashed #ccc;margin-bottom:25px;"></div> <div style="width: 100%; border-top:1px dashed #ccc;margin-bottom:25px;"></div>
...@@ -1083,10 +1091,17 @@ ...@@ -1083,10 +1091,17 @@
</el-col> </el-col>
<el-col :span="5"> <el-col :span="5">
<el-form-item label="成交单价" prop="Unit_Price"> <el-form-item label="成交单价" prop="Unit_Price">
<el-input v-model='addMsg.Unit_Price' :disabled="isChecked" @keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()"></el-input> <el-select v-model='addMsg.Unit_Price'
filterable :placeholder="$t('pub.pleaseSel')" @change="getTotalPrice()">
<el-option v-for="item in Unit_PriceList" :label='item.LessMoney' :value='item.ID' :key='item.ID'>
</el-option>
</el-select>
<!-- <el-input v-model='addMsg.Unit_Price' :disabled="true" @keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()"></el-input> -->
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<p style="line-height: 18px; color: #E95252;">注:如果超出本团的最低让价,差价将由你来承担</p>
<p v-if="LessMoney==0" style="line-height: 18px; color: #E95252;">注:如果超出本团的最低让价,差价将由你来承担</p>
<p v-else="LessMoney>0" style="line-height: 18px; color: #E95252;">注:最多少价{{LessMoney}}元,如需少价更多请联系上级主管</p>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -2177,6 +2192,8 @@ import updateSalesMan from "../../commonPage/updateSalesMan.vue"; ...@@ -2177,6 +2192,8 @@ import updateSalesMan from "../../commonPage/updateSalesMan.vue";
}, },
IsUnion: 2, IsUnion: 2,
IsChargeLossOrders:0, IsChargeLossOrders:0,
Unit_PriceList:[],//成交单价下拉数据
LessMoney:0,
addMsg: { addMsg: {
OrderId: "0", OrderId: "0",
TCID: "0", TCID: "0",
...@@ -2817,6 +2834,42 @@ import updateSalesMan from "../../commonPage/updateSalesMan.vue"; ...@@ -2817,6 +2834,42 @@ import updateSalesMan from "../../commonPage/updateSalesMan.vue";
this.isShowLayer = false; this.isShowLayer = false;
this.isShowLayer2 = true; this.isShowLayer2 = true;
} }
this.Unit_PriceList=[];
this.apipost('sellorder_post_GetLessPrice', {}, res => {
this.LessMoney = res.data.data.lessMoney;
if (parseFloat(this.LessMoney)>0){
for (var i = 0; i <= parseInt(this.LessMoney)/10; i++) {
var obj = {
ID: '',
LessMoney: ''
}
obj.ID = this.addMsg.TC_Price-i*10;
obj.LessMoney = this.addMsg.TC_Price-i*10;
this.Unit_PriceList.push(obj);
}
if(this.Unit_PriceList.findIndex(markers => markers.ID == this.addMsg.Unit_Price)<0) {
var obj = {
ID: '',
LessMoney: ''
}
obj.ID = this.addMsg.Unit_Price;
obj.LessMoney = this.addMsg.Unit_Price;
this.Unit_PriceList.push(obj);
}
}
else{
var obj = {
ID: '',
LessMoney: ''
}
obj.ID = this.addMsg.Unit_Price;
obj.LessMoney = this.addMsg.Unit_Price;
this.Unit_PriceList.push(obj);
}
}, err => {})
this.isShowLayerRemarks = false; this.isShowLayerRemarks = false;
this.showSetLeader = false; this.showSetLeader = false;
this.apipost( this.apipost(
......
...@@ -173,6 +173,32 @@ export default { ...@@ -173,6 +173,32 @@ export default {
return `<span style='color:red'>${rowData.commissionMoney.toFixed(2)}</span>` return `<span style='color:red'>${rowData.commissionMoney.toFixed(2)}</span>`
} }
}; };
let peopleCount = {
field: "peopleCount",
title: "收客人数",
titleAlign: "left",
columnAlign: "left",
isResize: true,
width: 80,
orderBy: "",
formatter: function(rowData, rowIndex, pagingIndex, field) {
return `<span style='color:blue'>${rowData.peopleCount+rowData.visaPeopleCount}人</span>`
}
};
let visaPeopleCount = {
field: "visaPeopleCount",
title: "单签证人数",
titleAlign: "left",
columnAlign: "left",
isResize: true,
width: 80,
formatter: function(rowData, rowIndex, pagingIndex, field) {
if(rowData.visaPeopleCount>0)
return `<span style='color:orange'>${rowData.visaPeopleCount}人</span>`
else
return ''
}
};
let periods = { let periods = {
field: "periods", field: "periods",
title: "期数", title: "期数",
...@@ -205,6 +231,8 @@ export default { ...@@ -205,6 +231,8 @@ export default {
this.columns.push(department); this.columns.push(department);
this.columns.push(userName); this.columns.push(userName);
this.columns.push(commissionMoney); this.columns.push(commissionMoney);
this.columns.push(peopleCount);
this.columns.push(visaPeopleCount);
this.columns.push(periods); this.columns.push(periods);
this.columns.push(remark); this.columns.push(remark);
this.columns.push(opera); this.columns.push(opera);
...@@ -223,6 +251,9 @@ export default { ...@@ -223,6 +251,9 @@ export default {
} }
if(param.commissionMoney!=''){ if(param.commissionMoney!=''){
this.msg.OrderStr='CommissionMoney '+param.commissionMoney this.msg.OrderStr='CommissionMoney '+param.commissionMoney
}
if(param.peopleCount!=''){
this.msg.OrderStr='PeopleCount '+param.peopleCount
} }
this.getList(); this.getList();
}, },
......
...@@ -104,8 +104,8 @@ ...@@ -104,8 +104,8 @@
"sellcommission_SetGenerateCommission",msg, "sellcommission_SetGenerateCommission",msg,
res => { res => {
if(res.data.resultCode==1){ if(res.data.resultCode==1){
this.dataList = res.data.data.pageData; this.getList();
this.total = res.data.data.count; this.Success('报表生成成功')
}else{ }else{
this.Error(res.data.message); this.Error(res.data.message);
} }
......
This diff is collapsed.
...@@ -144,6 +144,9 @@ export default { ...@@ -144,6 +144,9 @@ export default {
}, },
goUrl(url) { goUrl(url) {
if(url!=null&&url.length>0){ if(url!=null&&url.length>0){
if(url.indexOf('http://')==-1 || url.indexOf('https://')==-1){
url='http://'+url;
}
window.open(url, "_blank"); window.open(url, "_blank");
} }
} }
......
...@@ -146,6 +146,9 @@ export default { ...@@ -146,6 +146,9 @@ export default {
}, },
goUrl(url) { goUrl(url) {
if(url!=null&&url.length>0){ if(url!=null&&url.length>0){
if(url.indexOf('http://')==-1 || url.indexOf('https://')==-1){
url='http://'+url;
}
window.open(url, "_blank"); window.open(url, "_blank");
} }
} }
......
...@@ -116,6 +116,9 @@ export default { ...@@ -116,6 +116,9 @@ export default {
}, },
goUrl(url) { goUrl(url) {
if(url!=null&&url.length>0){ if(url!=null&&url.length>0){
if(url.indexOf('http://')==-1 || url.indexOf('https://')==-1){
url='http://'+url;
}
window.open(url, "_blank"); window.open(url, "_blank");
} }
} }
......
...@@ -184,6 +184,9 @@ export default { ...@@ -184,6 +184,9 @@ export default {
}, },
goUrl(url) { goUrl(url) {
if(url!=null&&url.length>0){ if(url!=null&&url.length>0){
if(url.indexOf('http://')==-1 || url.indexOf('https://')==-1){
url='http://'+url;
}
window.open(url, "_blank"); window.open(url, "_blank");
} }
} }
......
...@@ -113,6 +113,9 @@ export default { ...@@ -113,6 +113,9 @@ export default {
}, },
goUrl(url) { goUrl(url) {
if(url!=null&&url.length>0){ if(url!=null&&url.length>0){
if(url.indexOf('http://')==-1 || url.indexOf('https://')==-1){
url='http://'+url;
}
window.open(url, "_blank"); window.open(url, "_blank");
} }
} }
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<div class="travelControlTrip detail-box"> <div class="travelControlTrip detail-box">
<div class="trip_cover" v-show="pdfLoading" v-loading="pdfLoading"></div> <div class="trip_cover" v-show="pdfLoading" v-loading="pdfLoading"></div>
<input type="button" class="travelControlTripBtn" value="下载PDF" @click="toPDF(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游')" /> <input type="button" class="travelControlTripBtn" value="下载PDF" @click="toPDF(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游')" />
<input style="display:none;" type="button" class="travelControlTripBtn" value="下载WORD" @click="ToWord(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游')" />
<!-- <input type="button" class="travelControlTripBtn" value="下载Word" @click="toWord(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游')" /> --> <!-- <input type="button" class="travelControlTripBtn" value="下载Word" @click="toWord(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游')" /> -->
<!--&&isopOperation HK 注释 可以让销售修改基本信息--> <!--&&isopOperation HK 注释 可以让销售修改基本信息-->
<input type="button" v-if="orderId>0" class="travelControlTripBtn" value="修改信息" @click="editMsgShow=true" /> <input type="button" v-if="orderId>0" class="travelControlTripBtn" value="修改信息" @click="editMsgShow=true" />
...@@ -786,9 +787,6 @@ ...@@ -786,9 +787,6 @@
}); });
} }
}, },
// toWord: function (title) {
// $('#pdfNode').wordExport(title)
// },
// 生成pdf // 生成pdf
toPDF: function (title) { toPDF: function (title) {
this.pdfLoading = true this.pdfLoading = true
...@@ -821,6 +819,17 @@ ...@@ -821,6 +819,17 @@
console.log(err) console.log(err)
}) })
}, },
ToWord:function(title)
{
let msg = {
configId: this.$route.query.configId,
cityId: this.$route.query.cityId,
tcid: this.$route.query.tcid,
orderId: this.$route.query.orderId,
FileName:title
};
this.GetLocalFile("DownLoadTripWord", msg,title+ ".doc");
},
DateDiff(sDate1, sDate2) { //sDate1和sDate2是2002-12-18格式 DateDiff(sDate1, sDate2) { //sDate1和sDate2是2002-12-18格式
var aDate, oDate1, oDate2, iDays var aDate, oDate1, oDate2, iDays
aDate = sDate1.split("-") aDate = sDate1.split("-")
......
...@@ -447,9 +447,47 @@ ...@@ -447,9 +447,47 @@
}, },
//切换tab事件 //切换tab事件
clickFeature(item) { clickFeature(item) {
if (item.TypeState === 5) { let state = this.FeatureData.FeatureType
this.$message.warning('尊敬的用户,行程特色"1"暂时无法直接切换为行程特色"2"!') if (state === 4 && item.TypeState === 5) {
this.$confirm('尊敬的用户,行程特色“1”切换为行程特色“2”将会清空行程特色“1”里面的所有内容,您确定切换吗?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$message({
type: 'success',
message: '已切换!'
});
this.TypeArray.forEach(x => {
if (x.TypeState == item.TypeState) {
x.isShow = true;
this.ckTitle = x.ckTitle;
this.FeatureData.FeatureType = item.TypeState;
} else {
x.isShow = false;
} }
});
this.FeatureData.FeatureHtmlJson = null
this.FeatureData.FeatureHtmlJsonDelete = null
this.FeatureData.switch4or5 = true
this.$forceUpdate()
}).catch(() => {
this.$message({
type: 'info',
message: '已取消'
});
this.TypeArray.forEach(x => {
if (x.TypeState == 4) {
x.isShow = true;
this.ckTitle = x.ckTitle;
} else {
x.isShow = false;
}
});
this.FeatureData.FeatureType = state;
});
// this.$message.warning('尊敬的用户,行程特色"1"暂时无法直接切换为行程特色"2"!')
}else{
this.TypeArray.forEach(x => { this.TypeArray.forEach(x => {
if (x.TypeState == item.TypeState) { if (x.TypeState == item.TypeState) {
x.isShow = true; x.isShow = true;
...@@ -459,6 +497,7 @@ ...@@ -459,6 +497,7 @@
x.isShow = false; x.isShow = false;
} }
}); });
}
this.initFileList(); this.initFileList();
}, },
//点击折叠 //点击折叠
......
...@@ -1353,8 +1353,8 @@ ...@@ -1353,8 +1353,8 @@
let dataList = JSON.parse(JSON.stringify(this.FeatureData)); let dataList = JSON.parse(JSON.stringify(this.FeatureData));
let deleteDataList = JSON.parse(JSON.stringify(this.FeatureData.FeatureHtmlJsonDelete)); let deleteDataList = JSON.parse(JSON.stringify(this.FeatureData.FeatureHtmlJsonDelete));
this.deleteArray = deleteDataList==="" ? this.deleteArray : deleteDataList; this.deleteArray = deleteDataList==="" ? this.deleteArray : deleteDataList;
console.log("dataList",dataList) console.log("dataList",dataList,!this.$route.query.configId,dataList.switch4or5)
if (!this.$route.query.configId){ if (!this.$route.query.configId || (this.$route.query.configId && dataList.switch4or5) ){
for (let i = 0; i < dataList.DayList.length; i++) { //组装数据 for (let i = 0; i < dataList.DayList.length; i++) { //组装数据
let restaurantObj = travelFeatureTwo.DinnerInit(i, dataList.DayList) // 餐饮 let restaurantObj = travelFeatureTwo.DinnerInit(i, dataList.DayList) // 餐饮
let hotelObj = travelFeatureTwo.HotelInit(i, dataList.DayList) // 酒店 let hotelObj = travelFeatureTwo.HotelInit(i, dataList.DayList) // 酒店
......
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
<table border="0" cellspacing="0" cellpadding="0" class="LP_table" v-loading="this.loading"> <table border="0" cellspacing="0" cellpadding="0" class="LP_table" v-loading="this.loading">
<tr> <tr>
<th class="first"> <th class="first">
<span class="Lp_role">角色</span> <span class="Lp_role">岗位</span>
<span class="Lp_company">公司</span> <span class="Lp_company">公司</span>
</th> </th>
<template v-for="item in BranchList"> <template v-for="item in BranchList">
...@@ -97,13 +97,13 @@ ...@@ -97,13 +97,13 @@
<td> <td>
<el-select :placeholder="$t('pub.pleaseSel')" class="w150" v-model="item.RoleId"> <el-select :placeholder="$t('pub.pleaseSel')" class="w150" v-model="item.RoleId">
<el-option label="不限" :value="0"></el-option> <el-option label="不限" :value="0"></el-option>
<el-option v-for="item in RoleList" :label="item.Name" :value="item.Id" :key="item.Id"></el-option> <el-option v-for="item in RoleList" :label="item.PostName" :value="item.PostId" :key="item.PostId"></el-option>
</el-select> </el-select>
</td> </td>
<template v-for="subItem in item.DetailExtList"> <template v-for="subItem in item.DetailExtList">
<td> <td>
<el-input class="w80" placeholder="金額" v-model="subItem.LessMoney"></el-input> <el-input class="w80" placeholder="少价金額" v-model="subItem.LessMoney"></el-input>
<el-input class="w80" placeholder="百分比" v-model="subItem.LessPercent"></el-input> <el-input class="w80" placeholder="减少提成百分比" v-model="subItem.LessPercent"></el-input>
</td> </td>
</template> </template>
<td> <td>
...@@ -184,8 +184,9 @@ ...@@ -184,8 +184,9 @@
}, },
//获取列表 //获取列表
GetRoleList() { GetRoleList() {
let userInfo=this.getLocalStorage();
this.apipost( this.apipost(
"admin_get_RoleGetList", {}, "admin_get_PostGetList", {"RB_Group_Id":userInfo.RB_Group_id},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.RoleList = res.data.data; this.RoleList = res.data.data;
......
...@@ -1275,6 +1275,13 @@ export default { ...@@ -1275,6 +1275,13 @@ export default {
title: '车辆报价' title: '车辆报价'
}, },
}, { }, {
path: '/BusApportionManagement',
name: 'BusApportionManagement',
component: resolve => require(['@/components/busManagement/BusApportionManagement'], resolve),
meta: {
title: '车资分摊管理'
},
},{
path: '/visaList',//签证列表 path: '/visaList',//签证列表
name: 'visaList', name: 'visaList',
component: resolve => require(['@/components/VisaCenter/visaList'], resolve), component: resolve => require(['@/components/VisaCenter/visaList'], resolve),
......
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