|
@@ -109,6 +109,15 @@
|
|
|
@click="handleExport"
|
|
|
v-hasPermi="['invoice:bookingworkticket:export']"
|
|
|
>导出</el-button>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
+ type="warning"
|
|
|
+ icon="el-icon-download"
|
|
|
+ size="mini"
|
|
|
+ @click="handleExportToday"
|
|
|
+ v-hasPermi="['invoice:bookingworkticket:export']"
|
|
|
+ >导出当日</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
@@ -146,9 +155,9 @@
|
|
|
<el-table-column label="预计作业时间" align="center" prop="estimateWorktime" width="70" :show-overflow-tooltip="true"/>
|
|
|
<el-table-column label="联系人" align="center" prop="bookingworkticket.contact" width="80" :show-overflow-tooltip="true"/>
|
|
|
<el-table-column label="联系方式" align="center" prop="bookingworkticket.phonenumber" width="100" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="创建时间" align="center" prop="createdate" width="90">
|
|
|
+ <el-table-column label="创建时间" align="center" prop="bookingworkticket.createdate" width="90">
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ parseTime(scope.row.createdate, '{y}-{m}-{d}') }}</span>
|
|
|
+ <span>{{ parseTime(scope.row.bookingworkticket.createdate, '{y}-{m}-{d}') }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="状态" align="center" prop="bookingworkticket.status" :formatter="statusFormat" />
|
|
@@ -1108,6 +1117,20 @@ export default {
|
|
|
}).then(response => {
|
|
|
this.download(response.msg);
|
|
|
})
|
|
|
+ },
|
|
|
+ /** 导出按钮操作 */
|
|
|
+ handleExportToday() {
|
|
|
+ const queryParams = {};
|
|
|
+ queryParams.createdate= this.getNowFormatDate()
|
|
|
+ this.$confirm('是否确认导出?', "警告", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(function() {
|
|
|
+ return exportBookingworkticket(queryParams);
|
|
|
+ }).then(response => {
|
|
|
+ this.download(response.msg);
|
|
|
+ })
|
|
|
},
|
|
|
//关联票号
|
|
|
association(row){
|