|
@@ -99,24 +99,26 @@
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div slot="" class="clearfix">
|
|
|
|
+ <el-button type="primary" style="float: right; margin-left: 10px;" @click="Exports">导出
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button type="danger" style="float: right; " @click="deletedContract">删除</el-button>
|
|
|
|
+ <el-button type="primary" style="float: right;margin-right: 10px; " @click="addNewBill"
|
|
|
|
+ v-if="checked==1">新增</el-button>
|
|
|
|
+ <el-button type="primary" style="float: right; " v-if="checked==0" @click="recoverContract">恢复
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button type="warning" style="float: right; " v-if="checked==0" @click="failed">审核失败
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button type="success" style="float: right; " v-if="checked==0" @click="success">审核成功
|
|
|
|
+ </el-button>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
</el-card>
|
|
</el-card>
|
|
- <el-card class="box-card">
|
|
|
|
- <div slot="" class="clearfix">
|
|
|
|
-
|
|
|
|
- <el-button type="danger" style="float: right; ">删除</el-button>
|
|
|
|
- <el-button type="primary" style="float: right;margin-right: 10px; " @click="addNewBill"
|
|
|
|
- v-if="checked==1">新增</el-button>
|
|
|
|
- <el-button type="primary" style="float: right; " @click="Exports">导出</el-button>
|
|
|
|
- <el-button type="primary" style="float: right; " v-if="checked==0" >恢复</el-button>
|
|
|
|
- <el-button type="warning" style="float: right; " v-if="checked==0" @click="failed">审核失败</el-button>
|
|
|
|
- <el-button type="success" style="float: right; " v-if="checked==0" @click="success">审核成功</el-button>
|
|
|
|
- </div>
|
|
|
|
- </el-card>
|
|
|
|
|
|
+
|
|
<el-card class="box-card">
|
|
<el-card class="box-card">
|
|
<el-table v-loading="listLoading" :data="temporaryList" element-loading-text="Loading" border fit
|
|
<el-table v-loading="listLoading" :data="temporaryList" element-loading-text="Loading" border fit
|
|
- @select="handleSelectionChange" highlight-current-row>
|
|
|
|
|
|
+ @select="handleSelectionChange" highlight-current-row @select-all="handleAll">
|
|
<el-table-column align="center" label="" width="55" type="selection">
|
|
<el-table-column align="center" label="" width="55" type="selection">
|
|
|
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -150,12 +152,16 @@
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-tag type="primary" style="cursor: pointer;margin-right: 15px;"
|
|
<el-tag type="primary" style="cursor: pointer;margin-right: 15px;"
|
|
@click="tapDetail(scope.row.id)">查看详情</el-tag>
|
|
@click="tapDetail(scope.row.id)">查看详情</el-tag>
|
|
- <el-tag type="success" style="margin-right: 15px;cursor: pointer;">恢复</el-tag>
|
|
|
|
- <el-tag type="danger" style="margin-right: 15px;cursor: pointer;">删除</el-tag>
|
|
|
|
|
|
+ <el-tag type="success" style="margin-right: 15px;cursor: pointer;"
|
|
|
|
+ @click="recover(scope.row.id)">恢复</el-tag>
|
|
|
|
+ <el-tag type="danger" style="margin-right: 15px;cursor: pointer;"
|
|
|
|
+ @click="deleted(scope.row.id)">删除</el-tag>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
|
|
+
|
|
<div class="pagesip">
|
|
<div class="pagesip">
|
|
|
|
+
|
|
<el-button type="primary" size="small"
|
|
<el-button type="primary" size="small"
|
|
style="background-color: #d8ab5a; border-color: #d8ab5a; margin: 0 20px" @click="jumpFirstPage">首页
|
|
style="background-color: #d8ab5a; border-color: #d8ab5a; margin: 0 20px" @click="jumpFirstPage">首页
|
|
</el-button>
|
|
</el-button>
|
|
@@ -166,7 +172,10 @@
|
|
<el-button type="primary" size="small"
|
|
<el-button type="primary" size="small"
|
|
style="background-color: #d8ab5a; border-color: #d8ab5a; margin: 0 20px" @click="jumpLastPage">尾页
|
|
style="background-color: #d8ab5a; border-color: #d8ab5a; margin: 0 20px" @click="jumpLastPage">尾页
|
|
</el-button>
|
|
</el-button>
|
|
|
|
+ <el-button type="primary" size="small" @click="back">返回
|
|
|
|
+ </el-button>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
</el-card>
|
|
</el-card>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -194,11 +203,11 @@
|
|
form: '',
|
|
form: '',
|
|
url: [],
|
|
url: [],
|
|
picList: [],
|
|
picList: [],
|
|
- feed:{
|
|
|
|
- id:'',
|
|
|
|
- feedback:'',
|
|
|
|
- feedbackPicList:[],
|
|
|
|
- approveStatus:''
|
|
|
|
|
|
+ feed: {
|
|
|
|
+ id: '',
|
|
|
|
+ feedback: '',
|
|
|
|
+ feedbackPicList: [],
|
|
|
|
+ approveStatus: ''
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -214,11 +223,11 @@
|
|
this.url = this.contract.invoicePicList
|
|
this.url = this.contract.invoicePicList
|
|
this.picList = this.contract.picList
|
|
this.picList = this.contract.picList
|
|
this.list = res.data.contractDraft.result
|
|
this.list = res.data.contractDraft.result
|
|
- this.feed.feedbackPicList=this.picList
|
|
|
|
- this.feed.id=this.$route.query.id
|
|
|
|
|
|
+ this.feed.feedbackPicList = this.picList
|
|
|
|
+ this.feed.id = this.$route.query.id
|
|
this.getPageData()
|
|
this.getPageData()
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
addNewBill() {
|
|
addNewBill() {
|
|
@@ -261,60 +270,153 @@
|
|
this.srcList = this.list.slice(start, end);
|
|
this.srcList = this.list.slice(start, end);
|
|
this.temporaryList = this.srcList;
|
|
this.temporaryList = this.srcList;
|
|
},
|
|
},
|
|
- Exports(){
|
|
|
|
- var tableHeader = [
|
|
|
|
- ['序号', '汇票名称', '汇票编号', '承兑人', '金额', '服务费','汇票状态','审核状态'],
|
|
|
|
- ]
|
|
|
|
- var dataList = []
|
|
|
|
- this.multipleSelection.forEach((item, index) => {
|
|
|
|
- dataList.push([index + 1, item.name, item.draftNo, item.acceptorName,item.money,item.serviceMoney, item.draftStatusText, item
|
|
|
|
- .statusText
|
|
|
|
- ]);
|
|
|
|
- })
|
|
|
|
- dataConversionUtil.dataToExcel('出票人列表', tableHeader, dataList)
|
|
|
|
- this.$message.success('导出成功!');
|
|
|
|
|
|
+ Exports() {
|
|
|
|
+ // var tableHeader = [
|
|
|
|
+ // ['序号', '汇票名称', '汇票编号', '承兑人', '金额', '服务费','汇票状态','审核状态'],
|
|
|
|
+ // ]
|
|
|
|
+ // var dataList = []
|
|
|
|
+ // this.multipleSelection.forEach((item, index) => {
|
|
|
|
+ // dataList.push([index + 1, item.name, item.draftNo, item.acceptorName,item.money,item.serviceMoney, item.draftStatusText, item
|
|
|
|
+ // .statusText
|
|
|
|
+ // ]);
|
|
|
|
+ // })
|
|
|
|
+ // dataConversionUtil.dataToExcel('出票人列表', tableHeader, dataList)
|
|
|
|
+ // this.$message.success('导出成功!');
|
|
},
|
|
},
|
|
- success(){
|
|
|
|
|
|
+ success() {
|
|
// this.feed.feedbackPicList=this.picList
|
|
// this.feed.feedbackPicList=this.picList
|
|
// this.feed.id=this.$route.query.id
|
|
// this.feed.id=this.$route.query.id
|
|
- this.feed.approveStatus=1
|
|
|
|
|
|
+ this.feed.approveStatus = 1
|
|
|
|
+ this.$request({
|
|
|
|
+ url: '/api/Contract/approveContract',
|
|
|
|
+ method: 'post',
|
|
|
|
+ data: this.feed,
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'success',
|
|
|
|
+ message: res.msg
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'danger',
|
|
|
|
+ message: '提交失败'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ failed() {
|
|
|
|
+ this.feed.approveStatus = 2
|
|
|
|
+ this.$request({
|
|
|
|
+ url: '/api/Contract/approveContract',
|
|
|
|
+ method: 'post',
|
|
|
|
+ data: this.feed,
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'success',
|
|
|
|
+ message: res.msg
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'danger',
|
|
|
|
+ message: '提交失败'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ recoverContract() {
|
|
|
|
+ let id = this.$route.query.id
|
|
|
|
+ this.$request({
|
|
|
|
+ url: '/api/Contract/manage',
|
|
|
|
+ method: 'post',
|
|
|
|
+ data: {
|
|
|
|
+ ids: [id],
|
|
|
|
+ operateType: 2
|
|
|
|
+ }
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'success',
|
|
|
|
+ message: res.msg
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'danger',
|
|
|
|
+ message: '提交失败'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ deletedContract() {
|
|
|
|
+ let id = this.$route.query.id
|
|
this.$request({
|
|
this.$request({
|
|
- url:'/api/Contract/approveContract',
|
|
|
|
- method:'post',
|
|
|
|
- data:this.feed,
|
|
|
|
- }).then((res)=>{
|
|
|
|
- if(res.code==200){
|
|
|
|
|
|
+ url: '/api/Contract/manage',
|
|
|
|
+ method: 'post',
|
|
|
|
+ data: {
|
|
|
|
+ ids: [id],
|
|
|
|
+ operateType: 1
|
|
|
|
+ }
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'success',
|
|
|
|
+ message: res.msg
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'danger',
|
|
|
|
+ message: '提交失败'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ recover(id) {
|
|
|
|
+ this.$request({
|
|
|
|
+ url: '/api/Contract/contractDraft/manager',
|
|
|
|
+ method: 'post',
|
|
|
|
+ data: {
|
|
|
|
+ ids: [id],
|
|
|
|
+ operateType: 2
|
|
|
|
+ }
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ if (res.code == 200) {
|
|
this.$message({
|
|
this.$message({
|
|
- type:'success',
|
|
|
|
- message:res.msg
|
|
|
|
|
|
+ type: 'success',
|
|
|
|
+ message: res.msg
|
|
})
|
|
})
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
this.$message({
|
|
this.$message({
|
|
- type:'danger',
|
|
|
|
- message:'提交失败'
|
|
|
|
|
|
+ type: 'danger',
|
|
|
|
+ message: '提交失败'
|
|
})
|
|
})
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- failed(){
|
|
|
|
- this.feed.approveStatus=2
|
|
|
|
|
|
+ deleted(id) {
|
|
this.$request({
|
|
this.$request({
|
|
- url:'/api/Contract/approveContract',
|
|
|
|
- method:'post',
|
|
|
|
- data:this.feed,
|
|
|
|
- }).then((res)=>{
|
|
|
|
- if(res.code==200){
|
|
|
|
|
|
+ url: '/api/Contract/contractDraft/manager',
|
|
|
|
+ method: 'post',
|
|
|
|
+ data: {
|
|
|
|
+ ids: [id],
|
|
|
|
+ operateType: 1
|
|
|
|
+ }
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ if (res.code == 200) {
|
|
this.$message({
|
|
this.$message({
|
|
- type:'success',
|
|
|
|
- message:res.msg
|
|
|
|
|
|
+ type: 'success',
|
|
|
|
+ message: res.msg
|
|
})
|
|
})
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
this.$message({
|
|
this.$message({
|
|
- type:'danger',
|
|
|
|
- message:'提交失败'
|
|
|
|
|
|
+ type: 'danger',
|
|
|
|
+ message: '提交失败'
|
|
})
|
|
})
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ back() {
|
|
|
|
+ this.$router.go(-1)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|