|
@@ -5,6 +5,7 @@
|
|
|
<div class="top_css">
|
|
|
<el-row>
|
|
|
<el-col :span="14">
|
|
|
+ <el-button type="primary" @click="billing" style="margin-right:10px">批量开票</el-button>
|
|
|
<el-date-picker v-model="value1" value-format="yyyy-MM-dd" @change="dateChange" type="daterange"
|
|
|
range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
|
|
|
</el-date-picker>
|
|
@@ -44,7 +45,11 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
- <el-table :data="tableData" style="width: 98%; margin: 0 auto; border-radius: 10px" height="60vh" border>
|
|
|
+ <el-table :data="tableData" style="width: 98%; margin: 0 auto; border-radius: 10px" height="60vh" border @row-click="handleRowClick" @selection-change="handleSelectionChange">
|
|
|
+ <el-table-column
|
|
|
+ type="selection"
|
|
|
+ width="55" :selectable="selectInit">
|
|
|
+ </el-table-column>
|
|
|
<el-table-column type="index" label="序号" width="50">
|
|
|
<template scope="scope">
|
|
|
<span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
|
|
@@ -246,7 +251,8 @@
|
|
|
getData,
|
|
|
auditData,
|
|
|
endData,
|
|
|
- editEndData
|
|
|
+ editEndData,
|
|
|
+ batchData
|
|
|
} from '@/api/orderManagement'
|
|
|
export default {
|
|
|
data() {
|
|
@@ -272,8 +278,8 @@
|
|
|
},
|
|
|
value1: "",
|
|
|
costData: {},
|
|
|
- rightSee: false
|
|
|
-
|
|
|
+ rightSee: false,
|
|
|
+ modification:[],
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -295,9 +301,35 @@
|
|
|
this.listLoading = false
|
|
|
})
|
|
|
.catch(() => {
|
|
|
- this.loading = false
|
|
|
+ this.listLoading = false
|
|
|
})
|
|
|
},
|
|
|
+ //开票
|
|
|
+ billing(){
|
|
|
+ console.log(this.modification)
|
|
|
+ let data = {
|
|
|
+ orderInfoList: this.modification,
|
|
|
+ }
|
|
|
+ this.listLoading = true
|
|
|
+ debugger
|
|
|
+ batchData(data).then(response => {
|
|
|
+ debugger
|
|
|
+ console.log(response)
|
|
|
+ // this.tableData = response.data.records
|
|
|
+ // this.deptBudgetTotal = response.data.total
|
|
|
+ this.listLoading = false
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.listLoading = false
|
|
|
+ })
|
|
|
+ },
|
|
|
+ selectInit(){
|
|
|
+ return true;
|
|
|
+ },
|
|
|
+ handleRowClick(){},
|
|
|
+ handleSelectionChange(val){
|
|
|
+ this.modification = val
|
|
|
+ },
|
|
|
see(row) {
|
|
|
this.loading = true
|
|
|
getData({
|
|
@@ -309,7 +341,7 @@
|
|
|
this.listLoading = false
|
|
|
})
|
|
|
.catch(() => {
|
|
|
- this.loading = false
|
|
|
+ this.listLoading = false
|
|
|
})
|
|
|
},
|
|
|
complete() {
|
|
@@ -327,7 +359,7 @@
|
|
|
this.listLoading = false
|
|
|
})
|
|
|
.catch(() => {
|
|
|
- this.loading = false
|
|
|
+ this.listLoading = false
|
|
|
})
|
|
|
})
|
|
|
|
|
@@ -353,7 +385,7 @@
|
|
|
this.listLoading = false
|
|
|
})
|
|
|
.catch(() => {
|
|
|
- this.loading = false
|
|
|
+ this.listLoading = false
|
|
|
})
|
|
|
})
|
|
|
},
|
|
@@ -409,7 +441,7 @@
|
|
|
this.listLoading = false
|
|
|
})
|
|
|
.catch(() => {
|
|
|
- this.loading = false
|
|
|
+ this.listLoading = false
|
|
|
})
|
|
|
})
|
|
|
},
|