|
|
@@ -4,9 +4,18 @@
|
|
|
<templateTable :formList="formList" :searchData.sync="searchData" :tableConfig="tableConfig" :data="tableData"
|
|
|
@findPage="findPage" @handleSearchList="handleSearchList" :pagination="pageData" @getList="getList">
|
|
|
<template slot="data">
|
|
|
- <yearMonthYay ref="yearMonthYay" @getYearData="getYearData" @getMonthData="getMonthData" @getDayData="getDayData"></yearMonthYay>
|
|
|
+ <yearMonthYay ref="yearMonthYay" @getYearData="getYearData" @getMonthData="getMonthData"
|
|
|
+ @getDayData="getDayData"></yearMonthYay>
|
|
|
</template>
|
|
|
</templateTable>
|
|
|
+ <el-dialog title="详情" :visible.sync="dialogVisible" width="80%" :before-close="handleClose">
|
|
|
+ <templateTable ref="templateTable" :tableConfig="tableConfigDetail" :data="formTableData"
|
|
|
+ @findPage="findPageDetail">
|
|
|
+ </templateTable>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="small" @click="dialogVisible = false">取消</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -16,7 +25,7 @@ import yearMonthYay from '../../PlatformSettlement/yearMonthYay.vue'
|
|
|
|
|
|
export default {
|
|
|
name: "baosi",
|
|
|
- components: { templateTable,yearMonthYay },
|
|
|
+ components: { templateTable, yearMonthYay },
|
|
|
created() {
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -26,6 +35,36 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ formTableData: [],
|
|
|
+ dialogVisible: false,
|
|
|
+ tableConfigDetail: {
|
|
|
+ columns: [
|
|
|
+ {
|
|
|
+ prop: "invoicId",
|
|
|
+ label: "开票号",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "invoicCommissionFeevalue",
|
|
|
+ label: "开票金额",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "invoicTime",
|
|
|
+ label: "开票时间",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+
|
|
|
+ ],
|
|
|
+ loading: true,
|
|
|
+ optBtns: [
|
|
|
+ {
|
|
|
+ type: 'primary',
|
|
|
+ label: '结算',
|
|
|
+ click: (row, index) => { return this.balanceFun(row) },
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ },
|
|
|
searchData: {},
|
|
|
formList: [
|
|
|
{
|
|
|
@@ -42,7 +81,7 @@ export default {
|
|
|
label: "年月日",
|
|
|
name: "data",
|
|
|
type: "slot",
|
|
|
- },
|
|
|
+ },
|
|
|
],
|
|
|
tableConfig: {
|
|
|
columns: [
|
|
|
@@ -73,8 +112,8 @@ export default {
|
|
|
optBtns: [
|
|
|
{
|
|
|
type: 'primary',
|
|
|
- label: '结算',
|
|
|
- click: (row, index) => { return this.balanceFun(row) },
|
|
|
+ label: '详情',
|
|
|
+ click: (row, index) => { return this.haldDetail(row) },
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
@@ -84,26 +123,48 @@ export default {
|
|
|
pageSize: 20,
|
|
|
agreementType: '2',
|
|
|
isNotCar: '1',
|
|
|
- isNotDocumentary : '0',
|
|
|
- handlingFeesStatus:'0'
|
|
|
+ isNotDocumentary: '0',
|
|
|
+ handlingFeesStatus: '0'
|
|
|
},
|
|
|
formData: {},
|
|
|
-
|
|
|
+
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.findPage();
|
|
|
},
|
|
|
methods: {
|
|
|
- getYearData(val){
|
|
|
- this.formData.year=val
|
|
|
- },
|
|
|
- getMonthData(val){
|
|
|
- this.formData.month=val
|
|
|
- },
|
|
|
- getDayData(val){
|
|
|
- this.formData.day=val
|
|
|
- },
|
|
|
+ getYearData(val) {
|
|
|
+ this.formData.year = val
|
|
|
+ },
|
|
|
+ getMonthData(val) {
|
|
|
+ this.formData.month = val
|
|
|
+ },
|
|
|
+ getDayData(val) {
|
|
|
+ this.formData.day = val
|
|
|
+ },
|
|
|
+ haldDetail(row) {
|
|
|
+ this.dialogVisible = true
|
|
|
+ this.findPageDetail(row)
|
|
|
+ },
|
|
|
+ findPageDetail(data) {
|
|
|
+ this.tableConfigDetail.loading = true
|
|
|
+ this.$api.task
|
|
|
+ .invicdetai({ ids: data.ids })
|
|
|
+ .then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.formTableData = res.data;
|
|
|
+ this.tableConfigDetail.loading = false;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.tableConfigDetail.loading = false;
|
|
|
+ this.$message.error(res.msg)
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ handleClose() {
|
|
|
+ this.dialogVisible = false
|
|
|
+ },
|
|
|
// 查询
|
|
|
handleSearchList() {
|
|
|
this.findPage();
|
|
|
@@ -116,16 +177,16 @@ export default {
|
|
|
}
|
|
|
this.tableConfig.loading = true;
|
|
|
this.$api.task
|
|
|
- .totalBxAmount({...this.pageData,...this.formData})
|
|
|
+ .totalBxAmount({ ...this.pageData, ...this.formData })
|
|
|
.then(res => {
|
|
|
- if (res.code==200) {
|
|
|
+ if (res.code == 200) {
|
|
|
this.tableData = res.data;
|
|
|
// this.pageData.pageNum = res.data.pageNum;
|
|
|
// this.pageData.pageSize = res.data.pageSize;
|
|
|
// this.pageData.totalSize = res.data.totalSize;
|
|
|
this.tableConfig.loading = false;
|
|
|
}
|
|
|
- else{
|
|
|
+ else {
|
|
|
this.tableConfig.loading = false;
|
|
|
this.$message.error(res.msg)
|
|
|
}
|
|
|
@@ -134,19 +195,21 @@ export default {
|
|
|
getList(data) {
|
|
|
this.findPage(data)
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
// 结算
|
|
|
balanceFun(row) {
|
|
|
this.$api.task
|
|
|
- .batchBxBalance({ids:row.ids})
|
|
|
+ .batchBxBalance({ids:row.ids})
|
|
|
.then(res => {
|
|
|
- if (res.code==200) {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.findPage()
|
|
|
+ this.dialogVisible=false
|
|
|
this.$message({
|
|
|
- message: res.msg ||'操作成功',
|
|
|
+ message: res.msg || '操作成功',
|
|
|
type: 'success'
|
|
|
})
|
|
|
}
|
|
|
- else{
|
|
|
+ else {
|
|
|
this.$message.error(res.msg)
|
|
|
}
|
|
|
});
|