|
@@ -50,7 +50,10 @@
|
|
|
</div>
|
|
|
<div class="lncomingbill-checked">
|
|
|
<div class="checked-label">收款账单</div>
|
|
|
- <el-button @click="addition" type="primary">添加一行</el-button>
|
|
|
+ <div>
|
|
|
+ <el-button @click="PostReceivablesImportFee" type="primary">导入三公费用</el-button>
|
|
|
+ <el-button @click="addition" type="primary">添加一行</el-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="lncomingbill-form">
|
|
|
<el-table
|
|
@@ -421,6 +424,30 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+ //导入三公费用
|
|
|
+ PostReceivablesImportFee(){
|
|
|
+ this.fullscreenLoading=true;
|
|
|
+ var url = "/api/Financial/PostReceivablesImportFee?groupId="+this.value
|
|
|
+ var that = this
|
|
|
+ this.$axios({
|
|
|
+ method: 'post',
|
|
|
+ url: url,
|
|
|
+ headers: {
|
|
|
+ Authorization: 'Bearer ' + this.token
|
|
|
+ },
|
|
|
+ }).then(function (res) {
|
|
|
+ if(res.data.code==200){
|
|
|
+ that.fullscreenLoading=false;
|
|
|
+ let dataarr=res.data.data;
|
|
|
+ for (let i = 0; i < dataarr.length; i++) {
|
|
|
+ that.tableData.push(dataarr[i]);
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ that.fullscreenLoading=false;
|
|
|
+ that.$message.error(res.data.msg);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
//保存收款单
|
|
|
Saveition(){
|
|
|
console.log(this.tableData)
|