|
|
|
@ -1,112 +1,114 @@
|
|
|
|
|
<template> |
|
|
|
|
<basic-container> |
|
|
|
|
<div class="avue-crud"> |
|
|
|
|
<el-row v-if="!search"> |
|
|
|
|
<div v-h5uShow="!search"> |
|
|
|
|
<!-- 查询模块 --> |
|
|
|
|
<el-form :inline="true" :model="query" class="fr-fm"> |
|
|
|
|
<div class="fr-fo"> |
|
|
|
|
<el-form-item label="配送车次:"> |
|
|
|
|
<el-input v-model="query.trainNumber" placeholder="请输入配送车次"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="订单编号:"> |
|
|
|
|
<el-input v-model="query.stockArticleId" placeholder="请输入订单自编号"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<!-- <el-form-item label="商城名称:">--> |
|
|
|
|
<!-- <el-input v-model="query.mallName" placeholder="请输入商城名称"></el-input>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<!-- <el-form-item label="门店名称:">--> |
|
|
|
|
<!-- <el-input v-model="query.storeName" placeholder="请输入门店名称"></el-input>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<el-form-item label="客户名称:"> |
|
|
|
|
<el-input v-model="query.consignee" placeholder="请输入客户名称"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="客户电话:"> |
|
|
|
|
<el-input v-model="query.deliveryPhone" placeholder="请输入客户电话"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="业务类型:"> |
|
|
|
|
<el-select v-model="query.businessType" placeholder="请选择业务类型"> |
|
|
|
|
<el-option :key="'1'" :value="'商配'">商配 </el-option> |
|
|
|
|
<el-option :key="'2'" :value="'市配'">市配 </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
<!-- <el-input v-model="query.deliveryType" placeholder="请选择业务类型"></el-input>--> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="审核人名称:"> |
|
|
|
|
<el-input v-model="query.examineUserName" placeholder="请输入客户电话"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="签收人名称:"> |
|
|
|
|
<el-input v-model="query.signeeName" placeholder="请输入客户电话"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="司机名称:"> |
|
|
|
|
<el-input v-model="query.driverName" placeholder="请输入司机名称"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="车牌:"> |
|
|
|
|
<el-input v-model="query.vehicleName" placeholder="请输入车牌号"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form :inline="true" :model="query" class="header_search"> |
|
|
|
|
<el-form-item label="配送车次:"> |
|
|
|
|
<el-input v-model="query.trainNumber" placeholder="请输入配送车次"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="订单编号:"> |
|
|
|
|
<el-input v-model="query.stockArticleId" placeholder="请输入订单自编号"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<!-- <el-form-item label="商城名称:">--> |
|
|
|
|
<!-- <el-input v-model="query.mallName" placeholder="请输入商城名称"></el-input>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<!-- <el-form-item label="门店名称:">--> |
|
|
|
|
<!-- <el-input v-model="query.storeName" placeholder="请输入门店名称"></el-input>--> |
|
|
|
|
<!-- </el-form-item>--> |
|
|
|
|
<el-form-item label="客户名称:"> |
|
|
|
|
<el-input v-model="query.consignee" placeholder="请输入客户名称"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="客户电话:"> |
|
|
|
|
<el-input v-model="query.deliveryPhone" placeholder="请输入客户电话"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="业务类型:"> |
|
|
|
|
<el-select class="w100" v-model="query.businessType" placeholder="请选择业务类型"> |
|
|
|
|
<el-option :key="'1'" :value="'商配'">商配 </el-option> |
|
|
|
|
<el-option :key="'2'" :value="'市配'">市配 </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
<!-- <el-input v-model="query.deliveryType" placeholder="请选择业务类型"></el-input>--> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="审核人名称:"> |
|
|
|
|
<el-input v-model="query.examineUserName" placeholder="请输入客户电话"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="签收人名称:"> |
|
|
|
|
<el-input v-model="query.signeeName" placeholder="请输入客户电话"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="司机名称:"> |
|
|
|
|
<el-input v-model="query.driverName" placeholder="请输入司机名称"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="车牌:"> |
|
|
|
|
<el-input v-model="query.vehicleName" placeholder="请输入车牌号"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="配送时间:"> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="query.taskTimeSection" |
|
|
|
|
type="datetimerange" |
|
|
|
|
align="right" |
|
|
|
|
unlink-panels |
|
|
|
|
range-separator="至" |
|
|
|
|
start-placeholder="开始日期" |
|
|
|
|
end-placeholder="结束日期" |
|
|
|
|
format="YYYY/MM/DD" |
|
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
|
:picker-options="pickerOptions"> |
|
|
|
|
</el-date-picker> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="装车时间:"> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="query.loadingTimeSection" |
|
|
|
|
type="datetimerange" |
|
|
|
|
align="right" |
|
|
|
|
unlink-panels |
|
|
|
|
range-separator="至" |
|
|
|
|
start-placeholder="开始日期" |
|
|
|
|
end-placeholder="结束日期" |
|
|
|
|
format="YYYY/MM/DD" |
|
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
|
:picker-options="pickerOptions"> |
|
|
|
|
</el-date-picker> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="司机签收时间:"> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="query.sjsigningTimeSection" |
|
|
|
|
type="datetimerange" |
|
|
|
|
align="right" |
|
|
|
|
unlink-panels |
|
|
|
|
range-separator="至" |
|
|
|
|
start-placeholder="开始日期" |
|
|
|
|
end-placeholder="结束日期" |
|
|
|
|
format="YYYY/MM/DD" |
|
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
|
:picker-options="pickerOptions"> |
|
|
|
|
</el-date-picker> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="文员审核时间:"> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="query.signingTimeSection" |
|
|
|
|
type="datetimerange" |
|
|
|
|
align="right" |
|
|
|
|
unlink-panels |
|
|
|
|
range-separator="至" |
|
|
|
|
start-placeholder="开始日期" |
|
|
|
|
end-placeholder="结束日期" |
|
|
|
|
format="YYYY/MM/DD" |
|
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
|
:picker-options="pickerOptions"> |
|
|
|
|
</el-date-picker> |
|
|
|
|
</el-form-item> |
|
|
|
|
</div> |
|
|
|
|
<el-form-item label="配送时间:"> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="query.taskTimeSection" |
|
|
|
|
type="datetimerange" |
|
|
|
|
align="right" |
|
|
|
|
unlink-panels |
|
|
|
|
range-separator="至" |
|
|
|
|
start-placeholder="开始日期" |
|
|
|
|
end-placeholder="结束日期" |
|
|
|
|
format="YYYY/MM/DD" |
|
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
|
:picker-options="pickerOptions" |
|
|
|
|
> |
|
|
|
|
</el-date-picker> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="装车时间:"> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="query.loadingTimeSection" |
|
|
|
|
type="datetimerange" |
|
|
|
|
align="right" |
|
|
|
|
unlink-panels |
|
|
|
|
range-separator="至" |
|
|
|
|
start-placeholder="开始日期" |
|
|
|
|
end-placeholder="结束日期" |
|
|
|
|
format="YYYY/MM/DD" |
|
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
|
:picker-options="pickerOptions" |
|
|
|
|
> |
|
|
|
|
</el-date-picker> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="司机签收时间:"> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="query.sjsigningTimeSection" |
|
|
|
|
type="datetimerange" |
|
|
|
|
align="right" |
|
|
|
|
unlink-panels |
|
|
|
|
range-separator="至" |
|
|
|
|
start-placeholder="开始日期" |
|
|
|
|
end-placeholder="结束日期" |
|
|
|
|
format="YYYY/MM/DD" |
|
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
|
:picker-options="pickerOptions" |
|
|
|
|
> |
|
|
|
|
</el-date-picker> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="文员审核时间:"> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="query.signingTimeSection" |
|
|
|
|
type="datetimerange" |
|
|
|
|
align="right" |
|
|
|
|
unlink-panels |
|
|
|
|
range-separator="至" |
|
|
|
|
start-placeholder="开始日期" |
|
|
|
|
end-placeholder="结束日期" |
|
|
|
|
format="YYYY/MM/DD" |
|
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
|
:picker-options="pickerOptions" |
|
|
|
|
> |
|
|
|
|
</el-date-picker> |
|
|
|
|
</el-form-item> |
|
|
|
|
<!-- 查询按钮 --> |
|
|
|
|
<el-form-item class="el-btn"> |
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="searchChange">搜 索</el-button> |
|
|
|
|
<el-button icon="el-icon-delete" @click="searchReset()">清 空</el-button> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
|
</el-row> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<el-row> |
|
|
|
|
<div class="avue-crud__header"> |
|
|
|
@ -115,9 +117,9 @@
|
|
|
|
|
<el-button type="danger" icon="el-icon-download" @click="handleExportInfo" plain |
|
|
|
|
>导出 |
|
|
|
|
</el-button> |
|
|
|
|
<!-- v-loading.fullscreen.lock="fullscreenLoading"--> |
|
|
|
|
<!-- v-loading.fullscreen.lock="fullscreenLoading"--> |
|
|
|
|
<el-button type="danger" icon="el-icon-picture" @click="handlePictureInfo" plain |
|
|
|
|
>导出图片 |
|
|
|
|
>导出图片 |
|
|
|
|
</el-button> |
|
|
|
|
</div> |
|
|
|
|
<!-- 头部右侧按钮模块 --> |
|
|
|
@ -128,41 +130,38 @@
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-row> |
|
|
|
|
<el-row> |
|
|
|
|
<!-- 列表模块 --> |
|
|
|
|
<tablecmt |
|
|
|
|
:columnList="columnList" |
|
|
|
|
:tableData="data" |
|
|
|
|
:loading="loading" |
|
|
|
|
@inputTxt="inputsc" |
|
|
|
|
@timeCheck="timesc" |
|
|
|
|
@btnCheck="btnsc" |
|
|
|
|
@selectCheck="selectsc" |
|
|
|
|
@selection="selectionChange" |
|
|
|
|
<!-- 列表模块 --> |
|
|
|
|
<tablecmt |
|
|
|
|
ref="tableNodeRef" |
|
|
|
|
:columnList="columnList" |
|
|
|
|
:tableData="data" |
|
|
|
|
:loading="loading" |
|
|
|
|
@inputTxt="inputsc" |
|
|
|
|
@timeCheck="timesc" |
|
|
|
|
@btnCheck="btnsc" |
|
|
|
|
@selectCheck="selectsc" |
|
|
|
|
@selection="selectionChange" |
|
|
|
|
> |
|
|
|
|
<template #default="slotProps"> |
|
|
|
|
<el-text size="small" @click="editsolt(slotProps.scope)">查 看</el-text> |
|
|
|
|
</template> |
|
|
|
|
</tablecmt> |
|
|
|
|
<div class="avue-crud__pagination flex-c-sb" style="width: 100%"> |
|
|
|
|
<div style="font-size: 14px">勾选数量: {{ selectionList.length }}</div> |
|
|
|
|
<!-- 分页模块 --> |
|
|
|
|
<el-pagination |
|
|
|
|
align="right" |
|
|
|
|
background |
|
|
|
|
@size-change="sizeChange" |
|
|
|
|
@current-change="currentChange" |
|
|
|
|
:current-page="page.currentPage" |
|
|
|
|
:page-sizes="[30, 50, 80, 120]" |
|
|
|
|
:page-size="page.pageSize" |
|
|
|
|
layout="total, sizes, prev, pager, next, jumper" |
|
|
|
|
:total="page.total" |
|
|
|
|
> |
|
|
|
|
<template #default="slotProps"> |
|
|
|
|
<el-text size="small" @click="editsolt(slotProps.scope)">查 看</el-text> |
|
|
|
|
</template> |
|
|
|
|
</tablecmt> |
|
|
|
|
</el-row> |
|
|
|
|
<el-row class='el-fy'> |
|
|
|
|
<div class="avue-crud__pagination flex-c-sb" style="width: 100%"> |
|
|
|
|
<div style="font-size: 14px">勾选数量: {{ selectionList.length }}</div> |
|
|
|
|
<!-- 分页模块 --> |
|
|
|
|
<el-pagination |
|
|
|
|
align="right" |
|
|
|
|
background |
|
|
|
|
@size-change="sizeChange" |
|
|
|
|
@current-change="currentChange" |
|
|
|
|
:current-page="page.currentPage" |
|
|
|
|
:page-sizes="[30, 50, 80, 120]" |
|
|
|
|
:page-size="page.pageSize" |
|
|
|
|
layout="total, sizes, prev, pager, next, jumper" |
|
|
|
|
:total="page.total" |
|
|
|
|
> |
|
|
|
|
</el-pagination> |
|
|
|
|
</div> |
|
|
|
|
</el-row> |
|
|
|
|
</el-pagination> |
|
|
|
|
</div> |
|
|
|
|
<!-- 表单模块 --> |
|
|
|
|
<el-dialog |
|
|
|
|
:title="title" |
|
|
|
@ -217,28 +216,18 @@
|
|
|
|
|
</template> |
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog |
|
|
|
|
title="提示" |
|
|
|
|
v-model="dialogVisible" |
|
|
|
|
width="15%" |
|
|
|
|
:before-close="handleClose"> |
|
|
|
|
<el-dialog title="提示" v-model="dialogVisible" width="15%" :before-close="handleClose"> |
|
|
|
|
<div align="center"> |
|
|
|
|
<el-progress type="circle" :percentage="fileSize" status="success"></el-progress> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
|
<el-button @click="dialogVisible = false">取 消</el-button> |
|
|
|
|
<el-button type="primary" @click="dialogVisible = false">确 定</el-button> |
|
|
|
|
</span> |
|
|
|
|
<el-button @click="dialogVisible = false">取 消</el-button> |
|
|
|
|
<el-button type="primary" @click="dialogVisible = false">确 定</el-button> |
|
|
|
|
</span> |
|
|
|
|
</el-dialog> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</basic-container> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<edittablehead |
|
|
|
|
@setcolum="setnewcolum" |
|
|
|
|
@closce="showdrawer" |
|
|
|
@ -268,7 +257,7 @@ import dayjs from 'dayjs';
|
|
|
|
|
import { getDriverList } from '@/api/basicdata/basicdataDriverArtery'; |
|
|
|
|
import { handlePicture } from '@/api/distribution/distributionSignfor'; |
|
|
|
|
// import { getDeliveryListExport } from '@/api/distribution/distributionDeliveryList'; |
|
|
|
|
import { downloadXls } from '@/utils/util'; |
|
|
|
|
import { downloadXls, setNodeHeight } from '@/utils/util'; |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
@ -454,6 +443,7 @@ export default {
|
|
|
|
|
checkarr: [], |
|
|
|
|
fixed: false, |
|
|
|
|
sortable: true, |
|
|
|
|
isshowSummary: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
prop: 'loadedNumber', |
|
|
|
@ -464,6 +454,7 @@ export default {
|
|
|
|
|
checkarr: [], |
|
|
|
|
fixed: false, |
|
|
|
|
sortable: true, |
|
|
|
|
isshowSummary: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
prop: 'receivedQuantity', |
|
|
|
@ -474,6 +465,7 @@ export default {
|
|
|
|
|
checkarr: [], |
|
|
|
|
fixed: false, |
|
|
|
|
sortable: true, |
|
|
|
|
isshowSummary: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
prop: 'withoutScanning', |
|
|
|
@ -484,6 +476,7 @@ export default {
|
|
|
|
|
checkarr: [], |
|
|
|
|
fixed: false, |
|
|
|
|
sortable: true, |
|
|
|
|
isshowSummary: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
prop: 'unsigneds', |
|
|
|
@ -494,6 +487,7 @@ export default {
|
|
|
|
|
checkarr: [], |
|
|
|
|
fixed: false, |
|
|
|
|
sortable: true, |
|
|
|
|
isshowSummary: true, |
|
|
|
|
}, |
|
|
|
|
// { |
|
|
|
|
// prop: 'deliveryDriverName', |
|
|
|
@ -614,7 +608,7 @@ export default {
|
|
|
|
|
signingStatusData: [], |
|
|
|
|
//业务类型 |
|
|
|
|
deliveryTypeData: [], |
|
|
|
|
fullscreenLoading:false, |
|
|
|
|
fullscreenLoading: false, |
|
|
|
|
//来源 |
|
|
|
|
orderSourceData: [], |
|
|
|
|
// 分页信息 |
|
|
|
@ -632,7 +626,7 @@ export default {
|
|
|
|
|
// 表单列表 |
|
|
|
|
data: [], |
|
|
|
|
driverData: [], |
|
|
|
|
fileSize:0, |
|
|
|
|
fileSize: 0, |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
@ -727,27 +721,27 @@ export default {
|
|
|
|
|
* 导出 |
|
|
|
|
* */ |
|
|
|
|
handleExportInfo() { |
|
|
|
|
this.loading=true |
|
|
|
|
this.loading = true; |
|
|
|
|
let row = {}; |
|
|
|
|
// if (!!this.ids) { |
|
|
|
|
// row.ids = this.ids; |
|
|
|
|
// } |
|
|
|
|
const ids = this.selectionList.map(item=>item.id).join(','); |
|
|
|
|
|
|
|
|
|
const ids = this.selectionList.map(item => item.id).join(','); |
|
|
|
|
|
|
|
|
|
row.ids = ids; |
|
|
|
|
row.signingStatus = '2'; |
|
|
|
|
row = { ...row, ...this.query }; |
|
|
|
|
// console.log("<><><>>",ids); |
|
|
|
|
getSignforExportOwn(row).then(res => { |
|
|
|
|
getSignforExportOwn(row) |
|
|
|
|
.then(res => { |
|
|
|
|
// console.log(res.data); |
|
|
|
|
|
|
|
|
|
// console.log(res.data); |
|
|
|
|
|
|
|
|
|
downloadXls(res.data, '签收数据.xlsx'); |
|
|
|
|
}).catch(()=>{ |
|
|
|
|
|
|
|
|
|
}).finally(()=>{ |
|
|
|
|
this.loading=false |
|
|
|
|
}) |
|
|
|
|
downloadXls(res.data, '签收数据.xlsx'); |
|
|
|
|
}) |
|
|
|
|
.catch(() => {}) |
|
|
|
|
.finally(() => { |
|
|
|
|
this.loading = false; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
handlePictureInfo() { |
|
|
|
|
let row = {}; |
|
|
|
@ -756,37 +750,35 @@ export default {
|
|
|
|
|
// } |
|
|
|
|
// const h = this.$createElement; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log("this.selectionList>>>>>>>>>>",this.selectionList); |
|
|
|
|
if (this.selectionList.length < 1){ |
|
|
|
|
console.log('this.selectionList>>>>>>>>>>', this.selectionList); |
|
|
|
|
if (this.selectionList.length < 1) { |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'warning', |
|
|
|
|
message: '请选择签收记录!', |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const idList= this.selectionList.map(item=>{ |
|
|
|
|
console.log('>>>>>>>>>',item); |
|
|
|
|
const idList = this.selectionList.map(item => { |
|
|
|
|
console.log('>>>>>>>>>', item); |
|
|
|
|
return item.id; |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
console.log("ids-------------->",idList); |
|
|
|
|
handlePicture(idList.join(",")).then(res=>{ |
|
|
|
|
if (res.data.size > 0){ |
|
|
|
|
// const _item = this.selectionList[index]; |
|
|
|
|
const blob = new Blob([res.data], {type: 'application/zip'}); |
|
|
|
|
let a = document.createElement("a"); |
|
|
|
|
a.href = window.URL.createObjectURL(blob); |
|
|
|
|
// a.href = 'http://192.168.10.25:2888/D:/Test'; |
|
|
|
|
// a.download = _item.client +'-'+_item.reservationCode +".zip"; |
|
|
|
|
a.download = (new Date()).valueOf() + ".zip"; |
|
|
|
|
a.style.display = "none"; |
|
|
|
|
document.body.appendChild(a); |
|
|
|
|
a.click(); // 模拟点击了a标签,会触发a标签的href的读取,浏览器就会自动下载了 |
|
|
|
|
a.remove(); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
console.log('ids-------------->', idList); |
|
|
|
|
handlePicture(idList.join(',')).then(res => { |
|
|
|
|
if (res.data.size > 0) { |
|
|
|
|
// const _item = this.selectionList[index]; |
|
|
|
|
const blob = new Blob([res.data], { type: 'application/zip' }); |
|
|
|
|
let a = document.createElement('a'); |
|
|
|
|
a.href = window.URL.createObjectURL(blob); |
|
|
|
|
// a.href = 'http://192.168.10.25:2888/D:/Test'; |
|
|
|
|
// a.download = _item.client +'-'+_item.reservationCode +".zip"; |
|
|
|
|
a.download = new Date().valueOf() + '.zip'; |
|
|
|
|
a.style.display = 'none'; |
|
|
|
|
document.body.appendChild(a); |
|
|
|
|
a.click(); // 模拟点击了a标签,会触发a标签的href的读取,浏览器就会自动下载了 |
|
|
|
|
a.remove(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// const _arr = []; |
|
|
|
|
// console.log(idList); |
|
|
|
@ -841,12 +833,10 @@ export default {
|
|
|
|
|
// }) |
|
|
|
|
// |
|
|
|
|
|
|
|
|
|
// 在 3 秒之后,自动清除定时器 |
|
|
|
|
// 在 3 秒之后,自动清除定时器 |
|
|
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// row.signingStatus = '2'; |
|
|
|
|
// row = { ...row, ...this.query }; |
|
|
|
|
// // console.log("<><><>>",ids); |
|
|
|
@ -974,6 +964,8 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
searchHide() { |
|
|
|
|
this.search = !this.search; |
|
|
|
|
|
|
|
|
|
setNodeHeight(this.$refs.tableNodeRef.$el, '', true); |
|
|
|
|
}, |
|
|
|
|
searchChange() { |
|
|
|
|
if (this.query.businessType) { |
|
|
|
@ -1182,4 +1174,9 @@ export default {
|
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 时间选择器 |
|
|
|
|
:deep(.el-date-editor.el-input__wrapper) { |
|
|
|
|
height: 100% !important; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|