|
@@ -15,9 +15,15 @@
|
|
|
</div>
|
|
|
<div class="lncomingbill-head-li">
|
|
|
<el-button @click="Saveition()" type="primary">保存数据</el-button>
|
|
|
- <el-button type="primary">生成收款单(四川)</el-button>
|
|
|
- <el-button type="primary">生成收款单(北京)</el-button>
|
|
|
- <el-button type="primary">汇款账单</el-button>
|
|
|
+ <el-select style="width:200px" v-model="valuelist" placeholder="请选择">
|
|
|
+ <el-option
|
|
|
+ v-for="item in DownloadInitlist"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <el-button @click="PostReceivablesFeilDownload" type="primary">下 载</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="lncomingbill-info">
|
|
@@ -162,7 +168,9 @@ export default {
|
|
|
return {
|
|
|
userid:'',
|
|
|
value:"",
|
|
|
+ valuelist:'',
|
|
|
options:[],
|
|
|
+ DownloadInitlist:[],
|
|
|
tableData:[
|
|
|
{
|
|
|
addingModeName:"",
|
|
@@ -234,6 +242,55 @@ export default {
|
|
|
changediid(){
|
|
|
this.PostGroupReceivablesInfoByDiId()
|
|
|
},
|
|
|
+ PostReceivablesFeilDownload(){
|
|
|
+ var url = "/api/Financial/PostReceivablesFeilDownload"
|
|
|
+ var that = this
|
|
|
+ this.$axios({
|
|
|
+ method: 'post',
|
|
|
+ url: url,
|
|
|
+ headers: {
|
|
|
+ Authorization: 'Bearer ' + this.token
|
|
|
+ },
|
|
|
+ data:{
|
|
|
+ diId: that.value,
|
|
|
+ fileType: that.valuelist,
|
|
|
+ }
|
|
|
+ }).then(function (res) {
|
|
|
+ if(res.data.code==200){
|
|
|
+ that.$message({
|
|
|
+ message: res.data.msg,
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ console.log(res)
|
|
|
+ window.open(res.data.data.url)
|
|
|
+ }else{
|
|
|
+ that.$message.error(res.data.msg);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //获取公司账单列表
|
|
|
+ PostReceivablesFeilDownloadInit(){
|
|
|
+ var url = "/api/Financial/PostReceivablesFeilDownloadInit"
|
|
|
+ var that = this
|
|
|
+ this.$axios({
|
|
|
+ method: 'post',
|
|
|
+ url: url,
|
|
|
+ headers: {
|
|
|
+ Authorization: 'Bearer ' + this.token
|
|
|
+ },
|
|
|
+ }).then(function (res) {
|
|
|
+ if(res.data.code==200){
|
|
|
+ // that.$message({
|
|
|
+ // message: res.data.msg,
|
|
|
+ // type: 'success'
|
|
|
+ // });
|
|
|
+ console.log(res)
|
|
|
+ that.DownloadInitlist=res.data.data;
|
|
|
+ }else{
|
|
|
+ that.$message.error(res.data.msg);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
//添加一行
|
|
|
addition(){
|
|
|
var newinif={
|
|
@@ -367,6 +424,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
+ created(){
|
|
|
+ this.PostReceivablesFeilDownloadInit();
|
|
|
+ },
|
|
|
mounted(){
|
|
|
this.userid=JSON.parse(localStorage.getItem('userinif')).userInfo.userId;
|
|
|
this.GetForeignReceivablesDataSources();
|