Compare commits

..

No commits in common. "9b668e83100dea3203c7577533106c324eb92815" and "c98fd8dd8edaa4b9af7b79f8a3122bc7ffe99093" have entirely different histories.

32 changed files with 70 additions and 463 deletions

View File

@ -96,34 +96,4 @@ export function getByLicenseNumber(data){
})
}
// 导出数据 年检临期
export function exportInspection(params){
return request({
url: '/base/carMain/export-inspection',
method: 'get',
params,
responseType: 'blob'
})
}
// 导出数据 保养临期
export function exportMaintenance(params){
return request({
url: '/base/carMain/export-maintenance',
method: 'get',
params,
responseType: 'blob'
})
}
// 导出数据 保险临期
export function exportInsurance(params){
return request({
url: '/base/carMain/export-insurance',
method: 'get',
params,
responseType: 'blob'
})
}

View File

@ -69,13 +69,3 @@ export function getOrderCensus(){
method: "get"
})
}
// 导出数据
export function exportData(params){
return request({
url: "/repair/order-info/export",
method: 'get',
params,
responseType: 'blob'
})
}

View File

@ -61,13 +61,3 @@ export function inWare(data){
data
})
}
// 导出数据
export function exportData(params){
return request({
url: preUrl + "/export",
method: 'get',
params,
responseType: 'blob'
})
}

View File

@ -43,13 +43,3 @@ export function getSoBySupplier(params){
params
})
}
// 导出数据
export function exportData(params){
return request({
url: preUrl + "/export",
method: 'get',
params,
responseType: 'blob'
})
}

View File

@ -36,13 +36,3 @@ export function getSt(id){
method: "get"
})
}
// 导出数据
export function exportData(params){
return request({
url: preUrl + "/export",
method: 'get',
params,
responseType: 'blob'
})
}

View File

@ -18,13 +18,3 @@ export function getStIsWares(ids){
method: "get"
})
}
// 导出数据
export function exportData(params){
return request({
url: preUrl + "/export",
method: 'get',
params,
responseType: 'blob'
})
}

View File

@ -88,13 +88,3 @@ export function getByIds(ids){
method: 'get'
})
}
// 导出数据
export function exportData(params){
return request({
url: preUrl + "/export",
method: 'get',
params,
responseType: 'blob'
})
}

View File

@ -200,23 +200,3 @@ export function getCusAndCarById(id){
method: 'get'
})
}
// 导出数据
export function exportData(params){
return request({
url: preUrl + "/export",
method: 'get',
params,
responseType: 'blob'
})
}
// 导出数据 根据工单状态
export function exportByStatus(params){
return request({
url: preUrl + "/exportByStatus",
method: 'get',
params,
responseType: 'blob'
})
}

View File

@ -21,10 +21,6 @@
<el-col :span="1.5">
<el-button type="primary" plain icon="el-icon-s-comment" size="mini">一键提醒</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@ -137,21 +133,6 @@ export default {
this.resetForm("queryForm");
this.handleQuery();
},
/** 导出按钮操作 */
handleExport() {
this.$modal.confirm('是否确认导出当前查询条件所有数据项?').then(() => {
//
let params = {...this.queryParams};
params.pageNo = undefined;
params.pageSize = undefined;
this.exportLoading = true;
return CarMainApi.exportInspection(params)
}).then(response => {
this.$download.excel(response, '年检临期提醒数据.xls');
}).finally(() => {
this.exportLoading = false;
});
},
}
};
</script>

View File

@ -143,21 +143,6 @@ export default {
this.resetForm("queryForm");
this.handleQuery();
},
/** 导出按钮操作 */
handleExport() {
this.$modal.confirm('是否确认导出当前查询条件所有数据项?').then(() => {
//
let params = {...this.queryParams};
params.pageNo = undefined;
params.pageSize = undefined;
this.exportLoading = true;
return CarMainApi.exportInsurance(params);
}).then(response => {
this.$download.excel(response, '保险临期提醒数据.xls');
}).finally(() => {
this.exportLoading = false;
});
},
}
};
</script>

View File

@ -21,10 +21,6 @@
<el-col :span="1.5">
<el-button type="primary" plain icon="el-icon-s-comment" size="mini">一键提醒</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@ -142,21 +138,6 @@ export default {
this.resetForm("queryForm");
this.handleQuery();
},
/** 导出按钮操作 */
handleExport() {
this.$modal.confirm('是否确认导出当前查询条件所有数据项?').then(() => {
//
let params = {...this.queryParams};
params.pageNo = undefined;
params.pageSize = undefined;
this.exportLoading = true;
return CarMainApi.exportMaintenance(params);
}).then(response => {
this.$download.excel(response, '保养临期提醒数据.xls');
}).finally(() => {
this.exportLoading = false;
});
},
}
};
</script>

View File

@ -26,7 +26,7 @@
</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
<el-button type="warning" icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>

View File

@ -25,7 +25,7 @@
</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
<el-button type="warning" icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>

View File

@ -32,7 +32,7 @@
</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
<el-button type="warning" icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>

View File

@ -18,7 +18,7 @@
</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
<el-button type="warning" icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>

View File

@ -37,10 +37,6 @@
<!-- 操作工具栏 -->
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"/>
</el-row>
<div class="census">
@ -241,18 +237,15 @@ export default {
},
/** 导出按钮操作 */
async handleExport() {
this.$modal.confirm('是否确认导出当前查询条件所有数据项?').then(() => {
//
let params = {...this.queryParams};
params.pageNo = undefined;
params.pageSize = undefined;
await this.$modal.confirm('是否确认导出所有维修模块 订单数据项?');
try {
this.exportLoading = true;
return OrderInfoApi.exportData(params);
}).then(response => {
this.$download.excel(response, '订单数据.xls');
}).finally(() => {
const data = await OrderInfoApi.exportOrderInfoExcel(this.queryParams);
this.$download.excel(data, '维修模块 订单.xls');
} catch {
} finally {
this.exportLoading = false;
});
}
},
async getCensus() {
const res = await getOrderCensus()

View File

@ -18,7 +18,7 @@
</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
<el-button type="warning" icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>

View File

@ -26,7 +26,7 @@
</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
<el-button type="warning" icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>

View File

@ -42,10 +42,11 @@
</el-form>
<!-- 操作 -->
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
>导出</el-button>
</el-col>
<!-- <el-col :span="1.5">-->
<!-- <el-button type="primary" plain icon="el-icon-download" size="mini"-->
<!-- >导出-->
<!-- </el-button>-->
<!-- </el-col>-->
<right-toolbar :showSearch.sync="showSearch"></right-toolbar>
</el-row>
<!-- 急件 -->
@ -239,7 +240,7 @@ import SupplierChoose from "@/views/repair/Components/SupplierChoose.vue";
import CorpChoose from "@/views/repair/Components/CorpChoose.vue";
import StaffChoose from "@/views/repair/Components/StaffChoose.vue";
import {DICT_TYPE} from "@/utils/dict";
import {getRepairSoPage, voidSo, getRepairSoById, inWare, exportData} from "@/api/repair/stockOperate/stockOperate";
import {getRepairSoPage, voidSo, getRepairSoById, inWare} from "@/api/repair/stockOperate/stockOperate";
import SoShow from "@/views/repair/stockOperate/Components/SoSow.vue";
import {getRepairSoiByIds, getMapBySoIdAndQuery} from "@/api/repair/stockOperate/stockOperateItem";
import {createUniqueCodeByHead} from "@/utils/createUniqueCode";
@ -340,8 +341,6 @@ export default {
selectRowIds: [],
allSelectRows: [],
isRefresh: false,
//
exportLoading: false,
}
},
mounted() {
@ -632,21 +631,6 @@ export default {
// this.tableKey++
// this.selectRows = []
},
/** 导出按钮操作 */
handleExport() {
this.$modal.confirm('是否确认导出当前查询条件所有数据项?').then(() => {
//
let params = {...this.queryParams};
params.pageNo = undefined;
params.pageSize = undefined;
this.exportLoading = true;
return exportData(params);
}).then(response => {
this.$download.excel(response, '单据数据.xls');
}).finally(() => {
this.exportLoading = false;
});
},
}
}
</script>

View File

@ -24,13 +24,14 @@
<!-- 操作 -->
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd">
新增
<el-button type="primary" plain icon="el-icon-download" size="mini"
>导出
</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
>导出</el-button>
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd">
新增
</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch"></right-toolbar>
</el-row>
@ -183,7 +184,7 @@ import SupplierChoose from "@/views/repair/Components/SupplierChoose.vue";
import StaffChoose from "@/views/repair/Components/StaffChoose.vue";
import CorpChoose from "@/views/repair/Components/CorpChoose.vue";
import SoReturnForm from "@/views/repair/stockOperate/form/SoReturnForm.vue";
import {getRepairSoById, getRepairSoPage, voidSo, exportData} from "@/api/repair/stockOperate/stockOperate";
import {getRepairSoById, getRepairSoPage, voidSo} from "@/api/repair/stockOperate/stockOperate";
import {getRepairSoiByIds} from "@/api/repair/stockOperate/stockOperateItem";
import {getBaseWarehouseList} from "@/api/base/warehouse";
@ -210,9 +211,7 @@ export default {
},
dialogVisible: false,
info: {},
warehouseList: [],
//
exportLoading: false,
warehouseList: []
}
},
watch:{
@ -290,22 +289,7 @@ export default {
},
handleAdd(){
this.$refs.soReturnRef.open()
},
/** 导出按钮操作 */
handleExport() {
this.$modal.confirm('是否确认导出当前查询条件所有数据项?').then(() => {
//
let params = {...this.queryParams};
params.pageNo = undefined;
params.pageSize = undefined;
this.exportLoading = true;
return exportData(params);
}).then(response => {
this.$download.excel(response, '退货单数据.xls');
}).finally(() => {
this.exportLoading = false;
});
},
}
}
}
</script>

View File

@ -31,10 +31,6 @@
</el-form>
<!-- 操作 -->
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
@ -82,7 +78,7 @@
import CorpChoose from "@/views/repair/Components/CorpChoose.vue";
import SupplierChoose from "@/views/repair/Components/SupplierChoose.vue";
import StaffChoose from "@/views/repair/Components/StaffChoose.vue";
import {getRepairSoPage, getRepairSoById, exportData} from "@/api/repair/stockOperate/stockOperate";
import {getRepairSoPage, getRepairSoById} from "@/api/repair/stockOperate/stockOperate";
import SoShow from "@/views/repair/stockOperate/Components/SoSow.vue";
export default {
@ -132,8 +128,6 @@ export default {
loading: false,
list: [],
total: 0,
//
exportLoading: false,
}
},
mounted() {
@ -181,22 +175,7 @@ export default {
async handleShow(row){
const res = await getRepairSoById(row.id)
await this.$refs.soShow.open(res.data)
},
/** 导出按钮操作 */
handleExport() {
this.$modal.confirm('是否确认导出当前查询条件所有数据项?').then(() => {
//
let params = {...this.queryParams};
params.pageNo = undefined;
params.pageSize = undefined;
this.exportLoading = true;
return exportData(params);
}).then(response => {
this.$download.excel(response, '作废单据数据.xls');
}).finally(() => {
this.exportLoading = false;
});
},
}
}
}
</script>

View File

@ -28,10 +28,11 @@
</el-form>
<!-- 操作 -->
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
>导出</el-button>
</el-col>
<!-- <el-col :span="1.5">-->
<!-- <el-button type="primary" plain icon="el-icon-download" size="mini"-->
<!-- >导出-->
<!-- </el-button>-->
<!-- </el-col>-->
<right-toolbar :showSearch.sync="showSearch"></right-toolbar>
</el-row>
<!-- 表格 -->
@ -77,7 +78,7 @@
<script>
import CorpChoose from "@/views/repair/Components/CorpChoose.vue";
import WarehouseChoose from "@/views/repair/Components/WarehouseChoose.vue";
import {getSoiPage, getRepairSoiByIds, exportData} from "@/api/repair/stockOperate/stockOperateItem";
import {getSoiPage, getRepairSoiByIds} from "@/api/repair/stockOperate/stockOperateItem";
import {getBaseWarehouseList} from "@/api/base/warehouse";
export default {
@ -117,8 +118,6 @@ export default {
loading: false,
list: [],
total: 0,
//
exportLoading: false,
}
},
mounted() {
@ -169,22 +168,7 @@ export default {
getWareHoseName(value){
if (!(this.warehouseList && this.warehouseList.length > 0)) return ''
return this.warehouseList.find(item => item.id === value)?.name
},
/** 导出按钮操作 */
handleExport() {
this.$modal.confirm('是否确认导出当前查询条件所有数据项?').then(() => {
//
let params = {...this.queryParams};
params.pageNo = undefined;
params.pageSize = undefined;
this.exportLoading = true;
return exportData(params);
}).then(response => {
this.$download.excel(response, '单据明细数据.xls');
}).finally(() => {
this.exportLoading = false;
});
},
}
}
}
</script>

View File

@ -12,10 +12,6 @@
</el-form>
<!-- 操作 -->
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
@ -276,7 +272,7 @@
</template>
<script>
import {getPage, pass, passBackTicketWares, getByIds, exportData} from "@/api/repair/tickets/TicketWares";
import {getPage, pass, passBackTicketWares, getByIds} from "@/api/repair/tickets/TicketWares";
import {listTwItem} from "@/api/repair/tickets/TWItem";
import {createUniqueCodeByHead} from "@/utils/createUniqueCode";
import {parseTime} from "@/utils/ruoyi";
@ -343,9 +339,7 @@ export default {
images: null,
chooseStaff: [],
staffs: [],
chooseSupplier: null,
//
exportLoading: false,
chooseSupplier: null
}
},
mounted() {
@ -772,22 +766,7 @@ export default {
},
handleView(row) {
this.$refs.ticketWaresShow.open(row)
},
/** 导出按钮操作 */
handleExport() {
this.$modal.confirm('是否确认导出当前查询条件所有数据项?').then(() => {
//
let params = {...this.queryParams};
params.pageNo = undefined;
params.pageSize = undefined;
this.exportLoading = true;
return exportData(params);
}).then(response => {
this.$download.excel(response, this.type ? '领配件数据.xls' : "退配件数据.xls");
}).finally(() => {
this.exportLoading = false;
});
},
}
}
}
</script>

View File

@ -32,10 +32,6 @@
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
@ -102,7 +98,7 @@
<script>
import CorpChoose from "@/views/repair/Components/CorpChoose.vue";
import {getStPage, voidSt, exportData} from "@/api/repair/stockTransfer/stockTransfer";
import {getStPage, voidSt} from "@/api/repair/stockTransfer/stockTransfer";
import {getCompanyList} from "@/api/base/company";
import StShow from "@/views/repair/stockTransfer/Components/StShow.vue";
@ -143,9 +139,7 @@ export default {
list: [],
total: 0,
formData:{},
companyList: [],
//
exportLoading: false,
companyList: []
}
},
mounted() {
@ -203,21 +197,6 @@ export default {
}
this.$refs.stShow.open(row)
},
/** 导出按钮操作 */
handleExport() {
this.$modal.confirm('是否确认导出当前查询条件所有数据项?').then(() => {
//
let params = {...this.queryParams};
params.pageNo = undefined;
params.pageSize = undefined;
this.exportLoading = true;
return exportData(params);
}).then(response => {
this.$download.excel(response, '调拨数据.xls');
}).finally(() => {
this.exportLoading = false;
});
},
}
}
</script>

View File

@ -26,10 +26,6 @@
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
@ -79,7 +75,7 @@
<script>
import CorpChoose from "@/views/repair/Components/CorpChoose.vue";
import {getStPage, exportData} from "@/api/repair/stockTransfer/stockTransfer";
import {getStPage} from "@/api/repair/stockTransfer/stockTransfer";
import {getCompanyList} from "@/api/base/company";
import StShow from "@/views/repair/stockTransfer/Components/StShow.vue";
@ -103,9 +99,7 @@ export default {
loading: false,
list: [],
total: 0,
corpList: [],
//
exportLoading: false,
corpList: []
}
},
mounted() {
@ -150,22 +144,7 @@ export default {
this.queryParams.inCorpId = this.queryParams?.inCorp?.id
this.queryParams.outCorpId = this.queryParams?.outCorp?.id
this.getPage()
},
/** 导出按钮操作 */
handleExport() {
this.$modal.confirm('是否确认导出当前查询条件所有数据项?').then(() => {
//
let params = {...this.queryParams};
params.pageNo = undefined;
params.pageSize = undefined;
this.exportLoading = true;
return exportData(params);
}).then(response => {
this.$download.excel(response, '作废数据.xls');
}).finally(() => {
this.exportLoading = false;
});
},
}
}
}
</script>

View File

@ -27,8 +27,9 @@
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
>导出</el-button>
<el-button type="primary" plain icon="el-icon-download" size="mini"
>导出
</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch"></right-toolbar>
</el-row>
@ -78,7 +79,7 @@
</template>
<script>
import {getStiPage, getStIsWares, exportData} from "@/api/repair/stockTransfer/stockTransferItem";
import {getStiPage, getStIsWares} from "@/api/repair/stockTransfer/stockTransferItem";
import CorpChoose from "@/views/repair/Components/CorpChoose.vue";
import {getCompanyList} from "@/api/base/company";
@ -116,9 +117,7 @@ export default {
loading: false,
list: [],
total: 0,
corpList: [],
//
exportLoading: false,
corpList: []
}
},
mounted() {
@ -160,22 +159,7 @@ export default {
this.queryParams.outCorp = null
this.queryParams.inCorp = null
this.handleQuery()
},
/** 导出按钮操作 */
handleExport() {
this.$modal.confirm('是否确认导出当前查询条件所有数据项?').then(() => {
//
let params = {...this.queryParams};
params.pageNo = undefined;
params.pageSize = undefined;
this.exportLoading = true;
return exportData(params);
}).then(response => {
this.$download.excel(response, '调拨详细数据.xls');
}).finally(() => {
this.exportLoading = false;
});
},
}
}
}
</script>

View File

@ -19,7 +19,7 @@
</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
<el-button type="warning" icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
>导出</el-button>
</el-col>
</el-row>

View File

@ -21,10 +21,6 @@
</el-form>
<!-- 操作 -->
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="warning" v-if="isType === 'all' || (isType === 'waiting' && userRole === 'repair_warehouse')" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
@ -43,8 +39,6 @@
<el-table-column label="车牌号" align="center" prop="carNo" width="180"/>
<el-table-column label="车系" align="center" prop="carBrandName" width="180"/>
<el-table-column label="手机号" align="center" prop="userMobile" width="180"/>
<el-table-column label="经办人姓名" align="center" prop="handleName" width="180" />
<el-table-column label="经办人电话" align="center" prop="handleMobile" width="180" />
<el-table-column label="操作" fixed="right" align="center" width="200" v-if="userRole !== 'repair_warehouse'">
<template slot-scope="scope">
<!-- 都有 -->
@ -192,7 +186,7 @@
</template>
<script>
import {getPageType, updateTake, getTicketsById, removeTicketById, setTicketsVoid, exportData} from "@/api/repair/tickets/Tickets";
import {getPageType, updateTake, getTicketsById, removeTicketById, setTicketsVoid} from "@/api/repair/tickets/Tickets";
import TicketsShow from "@/views/repair/tickets/Components/TicketsShow.vue";
import UpdateRepair from "@/views/repair/tickets/form/UpdateRepair.vue";
import TWOperate from "@/views/repair/tickets/form/TWOperate.vue";
@ -248,8 +242,6 @@ export default {
id: null,
image: null,
},
//
exportLoading: false,
}
},
mounted() {
@ -516,22 +508,7 @@ export default {
},
handleProgress(row){
this.$refs.ticketProgress.open(row.id)
},
/** 导出按钮操作 */
handleExport() {
this.$modal.confirm('是否确认导出当前查询条件所有数据项?').then(() => {
//
let params = {...this.queryParams};
params.pageNo = undefined;
params.pageSize = undefined;
this.exportLoading = true;
return exportData(params);
}).then(response => {
this.$download.excel(response, '工单数据.xls');
}).finally(() => {
this.exportLoading = false;
});
},
}
}
}
</script>

View File

@ -35,11 +35,11 @@
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
>导出</el-button>
<el-col :span="1.5" v-if="!(TicketType === 'tv')">
<el-button type="primary" plain icon="el-icon-download" size="mini"
>导出
</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch"></right-toolbar>
</el-row>
<TicketTable :ticket-type="TicketType" :list="list" @setVoid="getPage" :is-w-x-c-w="isCW" @success="getPage"/>
@ -53,7 +53,7 @@
import StaffChoose from "@/views/repair/Components/StaffChoose.vue";
import TicketTable from "@/views/repair/tickets/Components/TicketTable.vue";
import RepairTypeChoose from "@/views/repair/Components/RepairTypeChoose.vue";
import {getTicketsPage, exportByStatus} from "@/api/repair/tickets/Tickets";
import {getTicketsPage} from "@/api/repair/tickets/Tickets";
import CorpChoose from "@/views/repair/Components/CorpChoose.vue";
import {checkRole} from "@/api/system/permission";
@ -87,9 +87,7 @@ export default {
showSearch: true,
total: 0,
list: [],
isCW: false,
//
exportLoading: false,
isCW: false
}
},
mounted() {
@ -138,34 +136,7 @@ export default {
this.resetForm("queryForm")
this.queryParams.corp = null
this.handleQuery()
},
/** 导出按钮操作 */
handleExport() {
this.$modal.confirm('是否确认导出当前查询条件所有数据项?').then(() => {
//
let params = {...this.queryParams};
params.pageNo = undefined;
params.pageSize = undefined;
this.exportLoading = true;
return exportByStatus(params);
}).then(response => {
let name = ""
switch (this.TicketType){
case "tu":
name = "待结算工单数据.xls"
break
case "tp":
name = "已结算工单数据.xls"
break
case "tv":
name = "已作废工单数据.xls"
break
}
this.$download.excel(response, name);
}).finally(() => {
this.exportLoading = false;
});
},
}
}
</script>

View File

@ -64,19 +64,17 @@
<dict-tag :type="DICT_TYPE.REPAIR_TYPE" v-model="scope.row.repairType"/>
</template>
</el-table-column>
<!-- <el-table-column label="状态" align="center" prop="ticketsWorkStatus" width="80">-->
<!-- <template slot-scope="scope">-->
<!-- <dict-tag :type="DICT_TYPE.REPAIR_TICKETS_WORK_STATUS" v-model="scope.row.ticketsWorkStatus"/>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="状态" align="center" prop="ticketsWorkStatus" width="80">
<template slot-scope="scope">
<dict-tag :type="DICT_TYPE.REPAIR_TICKETS_WORK_STATUS" v-model="scope.row.ticketsWorkStatus"/>
</template>
</el-table-column>
<el-table-column label="客户信息" align="center">
<el-table-column label="客户名称" align="center" prop="userName" width="100"/>
<el-table-column label="车牌号" align="center" prop="carNo" width="100"/>
<el-table-column label="车系" align="center" prop="carBrandName" width="100"/>
<el-table-column label="手机号" align="center" prop="userMobile" width="110"/>
</el-table-column>
<el-table-column label="经办人姓名" align="center" prop="handleName" width="180"/>
<el-table-column label="经办人电话" align="center" prop="handleMobile" width="180"/>
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
<template slot-scope="scope">
{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}

View File

@ -27,10 +27,6 @@
</el-form>
<!-- 操作 -->
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch"></right-toolbar>
</el-row>
@ -108,7 +104,7 @@
</template>
<script>
import {getPage, repairPassTicketWares, exportData} from "@/api/repair/tickets/TicketWares";
import {getPage, repairPassTicketWares} from "@/api/repair/tickets/TicketWares";
import TicketWaresShow from "@/views/repair/tickets/Components/TicketWaresShow.vue";
import {listTwItem} from "@/api/repair/tickets/TWItem";
@ -139,9 +135,7 @@ export default {
selections: [],
formData: {},
dialogTitle: "",
newType: false,
//
exportLoading: false,
newType: false
}
},
mounted() {
@ -224,22 +218,7 @@ export default {
await this.getList()
} catch {
}
},
/** 导出按钮操作 */
handleExport() {
this.$modal.confirm('是否确认导出当前查询条件所有数据项?').then(() => {
//
let params = {...this.queryParams};
params.pageNo = undefined;
params.pageSize = undefined;
this.exportLoading = true;
return exportData(params);
}).then(response => {
this.$download.excel(response, '配件申请单数据.xls');
}).finally(() => {
this.exportLoading = false;
});
},
}
}
}
</script>

View File

@ -28,12 +28,12 @@
</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="info" plain icon="el-icon-upload2" size="mini" @click="handleImport"
<el-button type="info" icon="el-icon-upload2" size="mini" @click="handleImport"
>导入
</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
<el-button type="warning" icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>