|
@@ -6,12 +6,17 @@
|
|
<el-button type="primary" class="btn" @click="onclick">
|
|
<el-button type="primary" class="btn" @click="onclick">
|
|
<i class="el-icon-search"></i>查询
|
|
<i class="el-icon-search"></i>查询
|
|
</el-button>
|
|
</el-button>
|
|
|
|
+ <el-button type="primary" @click="exportData()"><i class="el-icon-download"></i>导出(Excel)</el-button>
|
|
|
|
+ <span style="margin-left: 1rem;">合计时间:</span>
|
|
|
|
+ <el-input v-model="totalTime" :disabled="true" style="width: 140px;"></el-input>
|
|
|
|
+ <span style="margin-left: 1rem;">合计金额:</span>
|
|
|
|
+ <el-input v-model="totalMoney" :disabled="true" style="width: 100px;"></el-input>
|
|
</div>
|
|
</div>
|
|
<div class="table">
|
|
<div class="table">
|
|
<el-tabs v-model="activeName">
|
|
<el-tabs v-model="activeName">
|
|
<!-- 未结算 -->
|
|
<!-- 未结算 -->
|
|
<el-tab-pane label="未结算" name="first">
|
|
<el-tab-pane label="未结算" name="first">
|
|
- <dilTable v-bind.sync="options1">
|
|
|
|
|
|
+ <dilTable v-bind.sync="options1" ref="excelDom" @func="func">
|
|
</dilTable>
|
|
</dilTable>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<!-- 已结算 -->
|
|
<!-- 已结算 -->
|
|
@@ -30,6 +35,8 @@ import { getCookie } from "@/utils/util.js";
|
|
export default {
|
|
export default {
|
|
data(){
|
|
data(){
|
|
return{
|
|
return{
|
|
|
|
+ totalMoney:null,
|
|
|
|
+ totalTime:null,
|
|
//单价
|
|
//单价
|
|
Fee:null,
|
|
Fee:null,
|
|
//加载
|
|
//加载
|
|
@@ -69,7 +76,8 @@ export default {
|
|
// addressText:null,
|
|
// addressText:null,
|
|
//缓存当前选中的运输单价
|
|
//缓存当前选中的运输单价
|
|
priceMap:{},
|
|
priceMap:{},
|
|
- formLabelWidth: '125px'
|
|
|
|
|
|
+ formLabelWidth: '125px',
|
|
|
|
+ tableTitle:'内转计时计费详单'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created(){
|
|
created(){
|
|
@@ -102,7 +110,13 @@ export default {
|
|
toInsert() {
|
|
toInsert() {
|
|
this.$router.push("/insertCheckInventory");
|
|
this.$router.push("/insertCheckInventory");
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+ func(res){
|
|
|
|
+ console.log(res);
|
|
|
|
+ res.list.forEach(e => {
|
|
|
|
+ this.totalTime = this.totalTime + e.resultTime
|
|
|
|
+ this.totalMoney = this.totalMoney + e.detailsAmount
|
|
|
|
+ });
|
|
|
|
+ },
|
|
onclick(){
|
|
onclick(){
|
|
console.log("查询待定值")
|
|
console.log("查询待定值")
|
|
// this.options.requestUrl = "/api/v1/bms/getTruckDetailsOrderList?apiId=176&orderType=1&con="+this.input;
|
|
// this.options.requestUrl = "/api/v1/bms/getTruckDetailsOrderList?apiId=176&orderType=1&con="+this.input;
|