|
@@ -160,7 +160,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column v-if="switchi==2" prop="amountPaid" label="已付款">
|
|
|
<template slot-scope="scope">
|
|
|
- <span style="color: #439dc1;" @click="getPayrecord(scope.row)">{{scope.row.amountPaid}}</span>
|
|
|
+ <span style="color: #439dc1;cursor: pointer;" @click="getPayrecord(scope.row.id)">{{scope.row.amountPaid}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column v-if="switchi!=0" prop="signingDateOfCompensationAgreement"
|
|
@@ -266,7 +266,7 @@
|
|
|
<el-form-item label="镇(街道)" prop="street" label-width="120px">
|
|
|
<el-select placeholder="请选择征收房屋性质" v-model="addlist.street" clearable :disabled='namestreet.length==1'
|
|
|
style="width: 100%;">
|
|
|
- <el-option :label="item" :value="item" v-for="item in namestreet"></el-option>
|
|
|
+ <el-option :label="item" :value="item" v-for="(item,index) in namestreet" :key="index"></el-option>
|
|
|
</el-select>
|
|
|
<!-- <el-input v-model="addlist.street" placeholder="请输入内容"></el-input> -->
|
|
|
</el-form-item>
|
|
@@ -278,7 +278,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="地段等级" prop="oldHouseAddress" label-width="120px">
|
|
|
<el-select v-model="addlist.locationClassification" placeholder="请选择地段等级" clearable style="width: 100%;">
|
|
|
- <el-option v-for="i in earth" :label="i" :value="i"></el-option>
|
|
|
+ <el-option v-for="(i,index) in earth" :key="index" :label="i" :value="i"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -345,17 +345,16 @@
|
|
|
<el-option label="非住宅" value="非住宅"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="安置方式" label-width="130px" prop="projectName">
|
|
|
+ <!-- <el-form-item label="安置方式" label-width="130px" prop="projectName">
|
|
|
<el-select placeholder="请选择安置方式" :disabled='datahousehold.levyHouseNature=="非住宅"' v-model="datahousehold.placementWay" clearable style="width: 100%;">
|
|
|
- <!-- <el-option label="调产" value="调产"></el-option> -->
|
|
|
<el-option label="货币" value="货币"></el-option>
|
|
|
<el-option label="混合" value="混合"></el-option>
|
|
|
<el-option label="迁建" value="迁建"></el-option>
|
|
|
</el-select>
|
|
|
- </el-form-item>
|
|
|
+ </el-form-item> -->
|
|
|
<el-form-item label="地段等级" label-width="130px" prop="projectName">
|
|
|
<el-select placeholder="请选择地段等级" v-model="datahousehold.locationClassification" clearable style="width: 100%;">
|
|
|
- <el-option v-for="i in earth" :label="i" :value="i"></el-option>
|
|
|
+ <el-option v-for="(i,index) in earth" :key="index" :label="i" :value="i"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
|
|
@@ -1024,7 +1023,7 @@
|
|
|
<el-dialog title="错误" :visible.sync="errorControl" width="35%" max-width='350px'>
|
|
|
<div style="max-height: 250px;overflow: auto;">
|
|
|
<span style="color: red;margin-bottom: 5px;display: block;"
|
|
|
- v-for="(item,index) in errorData">{{item}}<br></span>
|
|
|
+ v-for="(item,index) in errorData" :key="index">{{item}}<br></span>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -1062,7 +1061,7 @@
|
|
|
<div class="indexControl-ont">
|
|
|
<div class="indexControl-ont-title">文件列表</div>
|
|
|
<ul>
|
|
|
- <li v-for="i in fileList" @click="getfileList(i)">
|
|
|
+ <li v-for="(i,index) in fileList" :key="index" @click="getfileList(i)">
|
|
|
<div>
|
|
|
<div v-if="i.tree.length!=0"><img src="../../../../assets/file-full.png" alt="">
|
|
|
</div>
|
|
@@ -1152,7 +1151,7 @@
|
|
|
</div>
|
|
|
<div class="tc-middle-name">
|
|
|
<ul>
|
|
|
- <li v-for="itemid in filelist.tree" @click="nodeClic(itemid),Exconrtl=true">
|
|
|
+ <li v-for="itemid in filelist.tree" :key="itemid.name" @click="nodeClic(itemid),Exconrtl=true">
|
|
|
<i class="el-icon-error" @click.stop="deleteFile(itemid)"></i>
|
|
|
<img v-if="itemid.name.split('.').pop().toLowerCase()=='pdf'"
|
|
|
src="../../../../assets/file-pdf.png" alt="">
|
|
@@ -1247,15 +1246,40 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
+ <!-- 付款记录 -->
|
|
|
+ <div class="tk">
|
|
|
+ <el-dialog title="付款记录" :visible.sync="payreControl" :modal-append-to-body='false' top="10%" width="50%">
|
|
|
+ <div class="WithoutInterval">
|
|
|
+ <el-table :data="payrecord" height="500px" :header-cell-style="{background:'#e2e2e2'}" style="width: 100%">
|
|
|
+ <el-table-column prop="payAmount" label="付款金额">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="payDate" label="付款时间">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="remarks" label="备注">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column fixed="right" label="操作" width="150">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button @click="getdocument(scope.row)" type="text" size="small"
|
|
|
+ :disabled='authority==1'>
|
|
|
+ 查看文件</el-button>
|
|
|
+ <el-button @click="deletepayrecord(scope.row)" type="text" size="small"
|
|
|
+ :disabled='authority==1' style="color: #FF4500 ;">
|
|
|
+ 撤销付款</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
<!-- 签订协议 -->
|
|
|
<div v-if="coverControl">
|
|
|
- <SignAcontract @getlist='getList' :strpdetails='strpdetails' :datahousehold='datahousehold'></SignAcontract>
|
|
|
- <div class="cover" @click="coverControl=false"></div>
|
|
|
+ <SignAcontract @getlist='getList' :strpdetails='strpdetails' :datahouseholdmax='datahousehold'></SignAcontract>
|
|
|
+ <div class="cover" @click="coverControl=false,getList()"></div>
|
|
|
</div>
|
|
|
<!-- 签订协议 -->
|
|
|
<div v-if="covercommit">
|
|
|
- <Scommit @getlist='getList' :strpdetails='strpdetails' :datahousehold='datahousehold'></Scommit>
|
|
|
- <div class="cover" @click="covercommit=false"></div>
|
|
|
+ <Scommit @getlist='getList' :strpdetails='strpdetails' :datahouseholdmax='datahousehold'></Scommit>
|
|
|
+ <div class="cover" @click="covercommit=false,getList()"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -1282,6 +1306,9 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ payreControl:false,
|
|
|
+ payrecord:[],
|
|
|
+
|
|
|
currentContro:'1',
|
|
|
//签协议控制
|
|
|
coverControl: false,
|
|
@@ -1470,6 +1497,7 @@
|
|
|
filelist: [],
|
|
|
Exconrtl: false,
|
|
|
selectFileName: '',
|
|
|
+ selectFileNameUrl:'',
|
|
|
Reremar: '',
|
|
|
|
|
|
namestreet:[],
|
|
@@ -1503,11 +1531,54 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ //获取签订记录
|
|
|
+ getdocument(row){
|
|
|
+ this.$http.get('api/auth/file/fileList?type=' + 2 + '&id=' + row.householdId, null).then((res) => {
|
|
|
+ if (res.status == 200 && res.data.code == 0) {
|
|
|
+ this.fileListindex = res.data.list
|
|
|
+ var data=[]
|
|
|
+ if(this.fileListindex){
|
|
|
+ this.fileListindex.forEach((item,index)=>{
|
|
|
+ if(item.empty==false){
|
|
|
+ if(item.name=='3、审批后资料'){
|
|
|
+ item.tree.forEach((nale,ixde)=>{
|
|
|
+ if(nale.name=='3、打款凭证'){
|
|
|
+ nale.tree.forEach((nana,ixde)=>{
|
|
|
+ if(nana.name==row.id){
|
|
|
+ data[0]=nana
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.fileListindex=data
|
|
|
+ this.Examine=true
|
|
|
+ } else {
|
|
|
+ this.$message.error("查找文件列表失败!");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ //撤销付款记录
|
|
|
+ deletepayrecord(row){
|
|
|
+ this.$http.get('api/auth/payrecord/cancelPay?id='+row.id,null).then((res) => {
|
|
|
+ if (res.status == 200 && res.data.code == 0) {
|
|
|
+ this.getPayrecord(row.householdId)
|
|
|
+ this.getList()
|
|
|
+ this.$message.success('撤销付款成功!');
|
|
|
+ } else {
|
|
|
+ this.$message.error("撤销付款失败!");
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
//获取付款记录
|
|
|
getPayrecord(row){
|
|
|
- this.$http.get('api/auth/payrecord/list?householdId='+row.id,null).then((res) => {
|
|
|
+ this.$http.get('api/auth/payrecord/list?householdId='+row,null).then((res) => {
|
|
|
if (res.status == 200 && res.data.code == 0) {
|
|
|
- console.log(res)
|
|
|
+ this.payreControl=true
|
|
|
+ this.payrecord=res.data.list
|
|
|
} else {
|
|
|
this.$message.error("获取失败!");
|
|
|
}
|
|
@@ -1956,6 +2027,7 @@
|
|
|
this.$message.success('修改成功!');
|
|
|
} else {
|
|
|
this.$message.error("修改失败!");
|
|
|
+ this.getList()
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -2019,6 +2091,11 @@
|
|
|
this.Reremar=''
|
|
|
this.getexaminefileid = res
|
|
|
this.selectFileName = red
|
|
|
+ if(red=='腾房'){
|
|
|
+ this.selectFileNameUrl='3、审批后资料\\3、腾房凭证'
|
|
|
+ }else if(red=='注销'){
|
|
|
+ this.selectFileNameUrl='3、审批后资料\\4、注销凭证'
|
|
|
+ }
|
|
|
this.getfilelist()
|
|
|
this.control = true
|
|
|
},
|
|
@@ -2031,17 +2108,19 @@
|
|
|
name: this.selectFileName + '资料',
|
|
|
empty: false,
|
|
|
type: "folder",
|
|
|
- url: this.selectFileName + '资料',
|
|
|
+ url: this.selectFileNameUrl,
|
|
|
tree: []
|
|
|
}, ]
|
|
|
if (this.filelist) {
|
|
|
this.filelist.forEach((item, index) => {
|
|
|
if (item.empty == false) {
|
|
|
- data.forEach((nale, ixde) => {
|
|
|
- if (item.name == nale.name) {
|
|
|
- data[ixde] = item
|
|
|
- }
|
|
|
- })
|
|
|
+ if(item.name=='3、审批后资料'){
|
|
|
+ item.tree.forEach((nale,ixde)=>{
|
|
|
+ if(nale.url==data[0].url){
|
|
|
+ data[0].tree=nale.tree
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -2054,11 +2133,11 @@
|
|
|
// 上传文件
|
|
|
handleChang(file) {
|
|
|
let that = this;
|
|
|
- let formData = new FormData();
|
|
|
+ let formData = new FormData();
|
|
|
formData.append('file', file.raw);
|
|
|
- formData.append('type', 2);
|
|
|
+ formData.append('type', 2);
|
|
|
formData.append('id', this.getexaminefileid.id);
|
|
|
- formData.append('destfolder', this.selectFileName + '资料');
|
|
|
+ formData.append('destfolder', this.selectFileNameUrl);
|
|
|
that.$http.post('api/auth/file/upload', formData).then((res) => {
|
|
|
if (res.status == 200 && res.data.code == 0) {
|
|
|
that.$message.success("上传文件成功!");
|