|
@@ -259,7 +259,8 @@ export default {
|
|
|
defaultarr:[],//团组勾选中
|
|
|
everydayarr:[],//日付勾选中
|
|
|
fullscreenLoading:false,
|
|
|
- };
|
|
|
+ hotelSubIdarr:[],
|
|
|
+ };
|
|
|
},
|
|
|
methods:{
|
|
|
//两位小数
|
|
@@ -297,6 +298,15 @@ export default {
|
|
|
},
|
|
|
//勾选
|
|
|
handleSelectionChange(data,node) {
|
|
|
+ for(let i=0;i<node.checkedNodes.length;i++){
|
|
|
+ for(let j=0;j<node.checkedKeys.length;j++){
|
|
|
+ if(node.checkedNodes[i].id==node.checkedKeys[j]){
|
|
|
+ this.hotelSubIdarr.push(node.checkedNodes[i].hotelSubId)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // this.hotelSubIdarr=Array.from(new Set(this.hotelSubIdarr))
|
|
|
+ // console.log(this.arrstring(this.hotelSubIdarr));
|
|
|
// var arrid=[]
|
|
|
// for(let i=0;i<node.checkedKeys.length;i++){
|
|
|
// if(Number(node.checkedKeys[i].split('p')[1])==Number(node.checkedKeys[i].split('p')[1])){
|
|
@@ -413,9 +423,11 @@ export default {
|
|
|
arrid.push(that.groupstableData[i].childList[j].id)
|
|
|
if(that.groupstableData[i].childList[j].isChecked==true){
|
|
|
that.defaultarr.push(that.groupstableData[i].childList[j].id)
|
|
|
+ that.hotelSubIdarr.push(that.groupstableData[i].childList[j].hotelSubId)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ console.log(that.hotelSubIdarr);
|
|
|
console.log(that.defaultarr);
|
|
|
}
|
|
|
that.everydayData=res.data.data.daily.dataList;
|
|
@@ -438,6 +450,13 @@ export default {
|
|
|
},
|
|
|
//保存勾选
|
|
|
PostPayRequestCheckedChange(type){
|
|
|
+ var hotelSubIdarrs=[]
|
|
|
+ for(let n=0;n<this.hotelSubIdarr.length;n++){
|
|
|
+ if(this.hotelSubIdarr[n]!=undefined&&this.hotelSubIdarr[n]!=-1){
|
|
|
+ hotelSubIdarrs.push(this.hotelSubIdarr[n]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.hotelSubIdarr=Array.from(new Set(hotelSubIdarrs))
|
|
|
var arrid=[]
|
|
|
for(let i=0;i<this.defaultarr.length;i++){
|
|
|
if(typeof this.defaultarr[i]!== 'number'){
|
|
@@ -458,16 +477,17 @@ export default {
|
|
|
},
|
|
|
data:{
|
|
|
userId:that.userId,
|
|
|
+ hotelSubIds:that.arrstring(that.hotelSubIdarr),
|
|
|
groupIds:that.arrstring(that.defaultarr),
|
|
|
dailyPaymentIds:that.arrstring(that.everydayarr),
|
|
|
type:type
|
|
|
}
|
|
|
}).then(function (res) {
|
|
|
if(res.data.code==200){
|
|
|
- that.$message({
|
|
|
- message: res.data.msg,
|
|
|
- type: 'success'
|
|
|
- });
|
|
|
+ // that.$message({
|
|
|
+ // message: res.data.msg,
|
|
|
+ // type: 'success'
|
|
|
+ // });
|
|
|
if(type==2){
|
|
|
that.$refs.tree.setCheckedKeys([]);
|
|
|
that.$refs.abc.setCheckedKeys([]);
|
|
@@ -535,6 +555,13 @@ export default {
|
|
|
},
|
|
|
//付款api
|
|
|
PostPayRequestPayChange(){
|
|
|
+ var hotelSubIdarrs=[]
|
|
|
+ for(let n=0;n<this.hotelSubIdarr.length;n++){
|
|
|
+ if(this.hotelSubIdarr[n]!=undefined&&this.hotelSubIdarr[n]!=-1){
|
|
|
+ hotelSubIdarrs.push(this.hotelSubIdarr[n]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.hotelSubIdarr=Array.from(new Set(hotelSubIdarrs))
|
|
|
var url = "/api/Financial/PostPayRequestPayChange"
|
|
|
var that = this
|
|
|
this.$axios({
|
|
@@ -545,6 +572,7 @@ export default {
|
|
|
},
|
|
|
data:{
|
|
|
userId:that.userId,
|
|
|
+ hotelSubIds:that.arrstring(that.hotelSubIdarr),
|
|
|
groupIds:that.arrstring(that.defaultarr),
|
|
|
dailyPaymentIds:that.arrstring(that.everydayarr),
|
|
|
}
|