|
@@ -102,7 +102,7 @@
|
|
|
<span>
|
|
|
{{ data.cnySubTotalAmount!=undefined?' 、 CNY '+twonumder(data.cnySubTotalAmount=data.paymentAmount*data.payRate)+' 汇率:':'' }}
|
|
|
</span>
|
|
|
- <el-input-number v-if="data.payRate!=undefined" style="width:100px" @blur="inputblur(data.id,data.payRate)" :precision="4" placeholder="公务翻译费" v-model="data.payRate" :controls='false'>
|
|
|
+ <el-input-number v-if="data.payRate!=undefined" style="width:100px" @blur="inputblur(data.id,data.payRate,data.hotelSubId)" :precision="4" placeholder="公务翻译费" v-model="data.payRate" :controls='false'>
|
|
|
</el-input-number>
|
|
|
</span>
|
|
|
</el-tree>
|
|
@@ -297,8 +297,26 @@ export default {
|
|
|
},
|
|
|
//勾选
|
|
|
handleSelectionChange(data,node) {
|
|
|
- this.defaultarr=this.filt(node.checkedKeys);
|
|
|
- console.log(this.arrstring(this.defaultarr));
|
|
|
+ // 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])){
|
|
|
+ // arrid.push(Number(node.checkedKeys[i].split('p')[1]));
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
+ // for(let j=0;j<this.groupstableData.length;j++){
|
|
|
+ // for(let s=0;s<this.groupstableData[j].childList.length;s++){
|
|
|
+ // for(let x=0;x<arrid.length;x++){
|
|
|
+ // if(arrid[x]==Number(this.groupstableData[j].childList[s].id.split("p")[1])){
|
|
|
+ // console.log(this.groupstableData[j].childList[s].id);
|
|
|
+ // this.defaultarr.push(this.groupstableData[j].childList[s].id)
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // arrid=Array.from(new Set(arrid))
|
|
|
+ this.defaultarr=node.checkedKeys
|
|
|
+ // console.log(this.arrstring(this.defaultarr));
|
|
|
},
|
|
|
//日付勾选
|
|
|
everydayChange(data,node){
|
|
@@ -356,9 +374,8 @@ export default {
|
|
|
// this.PostPayRequest_Center('2023-01-01','2024-03-25',1);
|
|
|
},
|
|
|
//汇率更改
|
|
|
- inputblur(id,raet){
|
|
|
- console.log(id,raet)
|
|
|
- this.PostPayRequestRateChange(id,raet)
|
|
|
+ inputblur(id,raet,hotelSubId){
|
|
|
+ this.PostPayRequestRateChange(id,raet,hotelSubId)
|
|
|
},
|
|
|
//获取付款申请list
|
|
|
PostPayRequest_Center(beginDt,endDt,status){
|
|
@@ -389,13 +406,17 @@ export default {
|
|
|
that.tzprivateTransfer=res.data.data.group.sz;
|
|
|
that.groupstableData=res.data.data.group.dataList;
|
|
|
if(that.groupstableData!=null){
|
|
|
+ var arrid=[]
|
|
|
for(let i=0;i<that.groupstableData.length;i++){
|
|
|
for(let j=0;j<that.groupstableData[i].childList.length;j++){
|
|
|
+ that.groupstableData[i].childList[j].id=j+'p'+that.groupstableData[i].childList[j].id
|
|
|
+ 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)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ console.log(that.defaultarr);
|
|
|
}
|
|
|
that.everydayData=res.data.data.daily.dataList;
|
|
|
if(that.everydayData!=null){
|
|
@@ -417,6 +438,16 @@ export default {
|
|
|
},
|
|
|
//保存勾选
|
|
|
PostPayRequestCheckedChange(type){
|
|
|
+ var arrid=[]
|
|
|
+ for(let i=0;i<this.defaultarr.length;i++){
|
|
|
+ if(typeof this.defaultarr[i]!== 'number'){
|
|
|
+ if(Number(this.defaultarr[i].split('p')[1])==Number(this.defaultarr[i].split('p')[1])){
|
|
|
+ arrid.push(Number(this.defaultarr[i].split('p')[1]));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ arrid=Array.from(new Set(arrid))
|
|
|
+ this.defaultarr=this.filt(arrid);
|
|
|
var url = "/api/Financial/PostPayRequestCheckedChange"
|
|
|
var that = this
|
|
|
this.$axios({
|
|
@@ -452,7 +483,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
//修改汇率
|
|
|
- PostPayRequestRateChange(id,rate){
|
|
|
+ PostPayRequestRateChange(id,rate,hotelSubId){
|
|
|
var url = "/api/Financial/PostPayRequestRateChange"
|
|
|
var that = this
|
|
|
this.$axios({
|
|
@@ -468,7 +499,8 @@ export default {
|
|
|
status:1,
|
|
|
beginDt:that.getdate(that.value2[0]),
|
|
|
endDt:that.getdate(that.value2[1]),
|
|
|
- id:id,
|
|
|
+ id:Number(id.split('p')[1]),
|
|
|
+ hotelSubId:hotelSubId,
|
|
|
rate:rate
|
|
|
}
|
|
|
}).then(function (res) {
|