Browse Source

阳光村务明细账详情ID问题修改

rongxin_test
庞东旭 1 year ago
parent
commit
85d3e7b1bb
1 changed files with 22 additions and 23 deletions
  1. +22
    -23
      src/views/sunVillage_info/detailed_ledger.vue

+ 22
- 23
src/views/sunVillage_info/detailed_ledger.vue View File

@@ -42,7 +42,7 @@
<van-col :span="7">{{item.month}}</van-col> <van-col :span="7">{{item.month}}</van-col>
<van-col :span="7">{{item.day}}</van-col> <van-col :span="7">{{item.day}}</van-col>
<van-col :span="10"> <van-col :span="10">
<div class="pz_tx" @click="subjectNameFun(item.voucherWordNum)">{{item.voucherWordNum}}</div>
<div class="pz_tx" @click="subjectNameFun(item.voucherWordNum,item.voucherId)">{{item.voucherWordNum}}</div>
</van-col> </van-col>
</van-row> </van-row>
<!-- <van-row class="vocher_mTitle"> <!-- <van-row class="vocher_mTitle">
@@ -52,7 +52,7 @@
<div class="pz_tx">记-06</div> <div class="pz_tx">记-06</div>
</van-col> </van-col>
</van-row> --> </van-row> -->
</div> </div>
<div class="vocher_content"> <div class="vocher_content">
<div class="vocher_cmain"> <div class="vocher_cmain">
@@ -63,7 +63,7 @@
<van-col :span="3">方向</van-col> <van-col :span="3">方向</van-col>
<van-col :span="4">余额</van-col> <van-col :span="4">余额</van-col>
</van-row> </van-row>
<div class="content_m"> <div class="content_m">
<van-row v-for="(item,index) in tableList" :key="index"> <van-row v-for="(item,index) in tableList" :key="index">
<van-col :span="9" class="zy"> <van-col :span="9" class="zy">
@@ -81,13 +81,13 @@
<van-col :span="3" class="km">借</van-col> <van-col :span="3" class="km">借</van-col>
<van-col :span="4" class="je">200.00</van-col> <van-col :span="4" class="je">200.00</van-col>
</van-row> --> </van-row> -->


</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!--开始日期--> <!--开始日期-->
<van-action-sheet v-model="dateObj.startVisbile" duration="0.2" > <van-action-sheet v-model="dateObj.startVisbile" duration="0.2" >
<van-datetime-picker <van-datetime-picker
@@ -121,7 +121,7 @@
@close="dateObj.subjectVisbile = false" @close="dateObj.subjectVisbile = false"
@finish="onFinish" @finish="onFinish"
:field-names="fieldNames" :field-names="fieldNames"
@change="onChangeAcidentArea" @change="onChangeAcidentArea"
/> />
</van-action-sheet> </van-action-sheet>
@@ -216,15 +216,15 @@ export default {


let curObj = res.rows[0]; let curObj = res.rows[0];
if(res.rows.length>0){ if(res.rows.length>0){
this.subjectText = curObj.label;
this.queryParams.startSubjectId = curObj.subjectId;
this.queryParams.endSubjectId = curObj.subjectId;
this.cascaderValue = curObj.subjectId;
this.subjectText = curObj.label;
this.queryParams.startSubjectId = curObj.subjectId;
this.queryParams.endSubjectId = curObj.subjectId;
this.cascaderValue = curObj.subjectId;
this.initPage() this.initPage()
this.makeSubjectsTree(res.rows, resp.data); this.makeSubjectsTree(res.rows, resp.data);
}else{ }else{
this.subjectText = '暂无数据';
this.subjectText = '暂无数据';
} }
}); });
}); });
@@ -247,7 +247,7 @@ export default {
v.label = v.subjectId + ' ' + v.subjectNameAll; v.label = v.subjectId + ' ' + v.subjectNameAll;
v.is_last = 'Y'; v.is_last = 'Y';
v.disabled = false; v.disabled = false;
arr.push(v); arr.push(v);
} }
} }
@@ -279,7 +279,7 @@ export default {
r.sort((a, b) => a.dictSort - b.dictSort); r.sort((a, b) => a.dictSort - b.dictSort);
// console.log(r) // console.log(r)
this.subjectsTree = r; this.subjectsTree = r;
}, },
initPage(){ initPage(){
listNormalDetails(this.queryParams).then((res)=>{ listNormalDetails(this.queryParams).then((res)=>{
@@ -293,13 +293,12 @@ export default {
} }
}) })
}, },
subjectNameFun(num){
let endNum = num.split("-");
subjectNameFun(endNum,id){
this.$router.push({ this.$router.push({
path: "/sunVillage_info/voucher", path: "/sunVillage_info/voucher",
query: { query: {
vocherId: endNum[1],
num:encodeURI(num)
vocherId: id,
num:encodeURI(endNum)
}, },
}); });
}, },
@@ -347,7 +346,7 @@ export default {
this.dateObj.endVisbile = false; this.dateObj.endVisbile = false;
this.initPage(); this.initPage();
} }
} }
} }
</script> </script>
@@ -574,9 +573,9 @@ export default {


} }
.content_m{ .content_m{
.van-row{ .van-row{
&:nth-child(2n-1){ &:nth-child(2n-1){
background: #e9e9e9; background: #e9e9e9;
} }
@@ -612,11 +611,11 @@ export default {
justify-content: center; justify-content: center;
} }
} }
} }
} }


} }
} }
} }
</style>
</style>

Loading…
Cancel
Save