2024-07-25 00:48:28 +00:00
|
|
|
<template>
|
2024-08-06 09:03:30 +00:00
|
|
|
<XdPageContainer class="app-container">
|
|
|
|
|
<SearchForm slot="pageHeader" :model="queryParams" ref="queryForm" size="small" :maxShow="3" label-width="68px" v-show="showSearch" @search="handleQuery" @reset="resetQuery">
|
|
|
|
|
<el-form-item label="开票抬头" prop="companyName">
|
2024-07-25 00:48:28 +00:00
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.companyName"
|
2024-08-06 07:41:36 +00:00
|
|
|
:placeholder="$t('开票抬头')"
|
2024-07-25 00:48:28 +00:00
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
2024-08-06 09:03:30 +00:00
|
|
|
<el-form-item label="开票税号" prop="companyTaxNo">
|
2024-07-25 00:48:28 +00:00
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.companyTaxNo"
|
|
|
|
|
:placeholder="$t('开票税号')"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
2024-08-06 09:03:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="主体名称" prop="salerCompanyName">
|
2024-07-25 00:48:28 +00:00
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.salerCompanyName"
|
2024-08-06 09:03:30 +00:00
|
|
|
:placeholder="$t('主体名称')"
|
2024-07-25 00:48:28 +00:00
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
2024-08-06 09:03:30 +00:00
|
|
|
<el-form-item label="主体税号" prop="salerCompanyTaxNo">
|
2024-07-25 00:48:28 +00:00
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.salerCompanyTaxNo"
|
2024-08-06 09:03:30 +00:00
|
|
|
:placeholder="$t('主体税号')"
|
2024-07-25 00:48:28 +00:00
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
2024-08-06 09:03:30 +00:00
|
|
|
|
2024-07-25 00:48:28 +00:00
|
|
|
</SearchForm>
|
|
|
|
|
|
2024-08-06 09:03:30 +00:00
|
|
|
<XdTable
|
|
|
|
|
slot="pageContent"
|
|
|
|
|
slot-scope="slotProps"
|
|
|
|
|
:height="(slotProps.contentHeight)+'px'"
|
|
|
|
|
|
|
|
|
|
highlight-current-row
|
2024-08-06 07:41:36 +00:00
|
|
|
|
2024-08-06 09:03:30 +00:00
|
|
|
ref="refTable"
|
|
|
|
|
:row-key="rowKey"
|
|
|
|
|
|
|
|
|
|
storageName="emisSettleInvoiceChRecordList_main_240702"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
v-loading="loading"
|
2024-07-25 00:48:28 +00:00
|
|
|
border stripe
|
2024-08-06 09:03:30 +00:00
|
|
|
size="mini"
|
|
|
|
|
|
|
|
|
|
|
2024-07-25 00:48:28 +00:00
|
|
|
:data="emisSettleInvoiceChRecordList"
|
|
|
|
|
:showSearch.sync="showSearch"
|
|
|
|
|
:queryParams="queryParams"
|
|
|
|
|
:total="total"
|
|
|
|
|
@queryTable="getList"
|
|
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
|
@sort-change="handleSortChange"
|
|
|
|
|
>
|
2024-08-06 07:41:36 +00:00
|
|
|
|
2024-07-25 00:48:28 +00:00
|
|
|
<div slot="toolbar">
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
2024-08-06 09:03:30 +00:00
|
|
|
<!-- <el-col :span="1.5">
|
2024-07-25 00:48:28 +00:00
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-plus"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleAdd"
|
|
|
|
|
v-hasPermi="['emis:emisSettleInvoiceChRecord:add']"
|
|
|
|
|
>新增</el-button>
|
2024-08-06 09:03:30 +00:00
|
|
|
</el-col> -->
|
2024-08-06 07:41:36 +00:00
|
|
|
<!--
|
2024-07-25 00:48:28 +00:00
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="success"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
size="mini"
|
|
|
|
|
:disabled="single"
|
|
|
|
|
@click="handleUpdate"
|
|
|
|
|
v-hasPermi="['emis:emisSettleInvoiceChRecord:edit']"
|
|
|
|
|
>修改</el-button>
|
|
|
|
|
</el-col> -->
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="danger"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
size="mini"
|
|
|
|
|
:disabled="multiple"
|
|
|
|
|
@click="handleDelete"
|
|
|
|
|
v-hasPermi="['emis:emisSettleInvoiceChRecord:remove']"
|
|
|
|
|
>删除</el-button>
|
|
|
|
|
</el-col>
|
2024-08-06 09:03:30 +00:00
|
|
|
<el-col :span="1.5">
|
2024-07-25 00:48:28 +00:00
|
|
|
<el-button
|
|
|
|
|
type="warning"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleExport"
|
|
|
|
|
v-hasPermi="['emis:emisSettleInvoiceChRecord:export']"
|
|
|
|
|
>导出</el-button>
|
2024-08-06 09:03:30 +00:00
|
|
|
</el-col>
|
2024-07-25 00:48:28 +00:00
|
|
|
</el-row>
|
|
|
|
|
</div>
|
2024-08-06 07:41:36 +00:00
|
|
|
|
2024-07-25 00:48:28 +00:00
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
2024-08-06 09:03:30 +00:00
|
|
|
<el-table-column label="序号" align="center" width="60">
|
|
|
|
|
<template slot-scope="scope">
|
2024-07-25 00:48:28 +00:00
|
|
|
<span v-text="getIndex(scope.$index)"> </span>
|
2024-08-06 09:03:30 +00:00
|
|
|
</template>
|
2024-07-25 00:48:28 +00:00
|
|
|
</el-table-column>
|
2024-08-06 09:03:30 +00:00
|
|
|
<el-table-column :label="$t('流水号')" align="center" prop="reqNo" width="140" :show-overflow-tooltip="true" />
|
|
|
|
|
<!-- <el-table-column :label="$t('发票申请序号')" align="center" prop="applySeqNo" width="100" /> -->
|
|
|
|
|
<!-- <el-table-column :label="$t('是否电子发票')" align="center" prop="blEcinv" width="100" /> -->
|
|
|
|
|
<!-- <el-table-column :label="$t('申请开票类型')" align="center" prop="invoiceType" width="100" :show-overflow-tooltip="true" /> -->
|
|
|
|
|
<el-table-column :label="$t('开票类型')" align="center" prop="realInvoiceType" min-width="80" :show-overflow-tooltip="true" >
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.emis_invoice_ch_type" :value="scope.row.realInvoiceType" :show-overflow-tooltip="true" />
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column :label="$t('开票状态')" align="center" prop="openChStatus" width="100" :show-overflow-tooltip="true" >
|
2024-07-25 00:48:28 +00:00
|
|
|
<template slot-scope="scope">
|
2024-08-06 09:03:30 +00:00
|
|
|
<el-tag v-if="scope.row.openChStatus==-1" type="error" >发送异常</el-tag>
|
|
|
|
|
<el-tag v-if="scope.row.openChStatus==0" type="info" >未发送</el-tag>
|
|
|
|
|
<el-tag v-if="scope.row.openChStatus==1" type="info" >已发送</el-tag>
|
|
|
|
|
<el-tag v-if="scope.row.openChStatus==2" type="success" >开票成功</el-tag>
|
|
|
|
|
<el-tag v-if="scope.row.openChStatus==3" type="error" >开票失败</el-tag>
|
|
|
|
|
</template>
|
2024-07-25 00:48:28 +00:00
|
|
|
</el-table-column>
|
2024-08-06 09:03:30 +00:00
|
|
|
<el-table-column :label="$t('开票金额')" align="center" prop="openMoney" width="100" :show-overflow-tooltip="true" />
|
2024-07-25 00:48:28 +00:00
|
|
|
|
2024-08-06 09:03:30 +00:00
|
|
|
<el-table-column :label="$t('开票公司')" align="center" prop="companyName" width="100" :show-overflow-tooltip="true" />
|
|
|
|
|
<el-table-column :label="$t('税号')" align="center" prop="companyTaxNo" width="100" :show-overflow-tooltip="true" />
|
|
|
|
|
<!-- <el-table-column :label="$t('开票电话')" align="center" prop="companyTel" width="100" /> -->
|
|
|
|
|
<el-table-column :label="$t('开票地址')" align="center" prop="companyAddress" width="100" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column :label="$t('开户行')" align="center" prop="bankName" width="100" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column :label="$t('开户账号')" align="center" prop="bankAccNo" width="100" :show-overflow-tooltip="true"/>
|
|
|
|
|
<!-- <el-table-column :label="$t('联系人')" align="center" prop="contact" width="100" /> -->
|
|
|
|
|
<!-- <el-table-column :label="$t('联系电话')" align="center" prop="phone" width="100" /> -->
|
|
|
|
|
<!-- <el-table-column :label="$t('税率')" align="center" prop="taxRate" width="100" :show-overflow-tooltip="true" /> -->
|
|
|
|
|
<!-- <el-table-column :label="$t('发票投递邮箱')" align="center" prop="email" width="100" /> -->
|
|
|
|
|
<el-table-column :label="$t('开票主体')" align="center" prop="salerCompanyName" width="100" :show-overflow-tooltip="true" />
|
|
|
|
|
<el-table-column :label="$t('主体税号')" align="center" prop="salerCompanyTaxNo" width="100" :show-overflow-tooltip="true" />
|
|
|
|
|
<el-table-column :label="$t('主体电话')" align="center" prop="salerCompanyTel" width="100" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column :label="$t('主体地址')" align="center" prop="salerCompanyAddress" width="100" :show-overflow-tooltip="true"/>
|
|
|
|
|
<el-table-column :label="$t('主体银行')" align="center" prop="salerBankName" width="100" :show-overflow-tooltip="true" />
|
|
|
|
|
<el-table-column :label="$t('主体账号')" align="center" prop="salerBankAccNo" width="100" :show-overflow-tooltip="true" />
|
|
|
|
|
<!-- <el-table-column :label="$t('销方联系人')" align="center" prop="salerContact" width="100" /> -->
|
|
|
|
|
<!-- <el-table-column :label="$t('销方联系电话')" align="center" prop="salerPhone" width="100" /> -->
|
|
|
|
|
<el-table-column :label="$t('发票号')" align="center" prop="invoiceNo" width="100" :show-overflow-tooltip="true" />
|
|
|
|
|
<el-table-column :label="$t('pdf下载路径')" align="center" prop="filePath" width="150" :show-overflow-tooltip="true" />
|
|
|
|
|
<!-- <el-table-column :label="$t('qr路径')" align="center" prop="qrPath" width="100" /> -->
|
|
|
|
|
<!-- <el-table-column :label="$t('操作人')" align="center" prop="opManCode" width="100" /> -->
|
|
|
|
|
<!-- <el-table-column :label="$t('操作时间')" align="center" prop="opDate" width="100" /> -->
|
|
|
|
|
<!-- <el-table-column :label="$t('操作站点')" align="center" prop="opSiteCode" width="100" /> -->
|
|
|
|
|
<!-- <el-table-column :label="$t('开票渠道编号')" align="center" prop="openChId" width="100" /> -->
|
2024-07-25 00:48:28 +00:00
|
|
|
|
2024-08-06 09:03:30 +00:00
|
|
|
<el-table-column :label="$t('状态描述')" align="center" prop="openChStatusDesc" width="100" :show-overflow-tooltip="true" />
|
|
|
|
|
<!-- <el-table-column :label="$t('使用的开票企业代码')" align="center" prop="openComCode" width="100" /> -->
|
|
|
|
|
<!-- <el-table-column :label="$t('扩展信息,货物名称')" align="center" prop="extData" width="100" :show-overflow-tooltip="true" /> -->
|
|
|
|
|
<el-table-column :label="$t('开票备注')" align="center" prop="remark" width="100" :show-overflow-tooltip="true" />
|
2024-08-06 07:41:36 +00:00
|
|
|
|
2024-07-25 00:48:28 +00:00
|
|
|
|
2024-08-06 09:03:30 +00:00
|
|
|
</XdTable>
|
2024-07-25 00:48:28 +00:00
|
|
|
|
2024-08-06 09:03:30 +00:00
|
|
|
</XdPageContainer>
|
2024-07-25 00:48:28 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { listEmisSettleInvoiceChRecord, getEmisSettleInvoiceChRecord, delEmisSettleInvoiceChRecord, addEmisSettleInvoiceChRecord, updateEmisSettleInvoiceChRecord } from "@/api/emis/emisSettleInvoiceChRecord";
|
|
|
|
|
import elDateSimplePicker from '@/components/DatePickerAdv/elDateSimplePicker';
|
|
|
|
|
// import emisSettleInvoiceChRecordView from '@/views/emis/emisSettleInvoiceChRecord/emisSettleInvoiceChRecordView';
|
|
|
|
|
import emisSettleInvoiceChRecordForm from '@/views/emis/emisSettleInvoiceChRecord/emisSettleInvoiceChRecordForm';
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "emisSettleInvoiceChRecord",
|
|
|
|
|
components: { elDateSimplePicker,emisSettleInvoiceChRecordForm },
|
2024-08-06 09:03:30 +00:00
|
|
|
dicts: ['emis_invoice_ch_type'
|
2024-07-25 00:48:28 +00:00
|
|
|
],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
// 遮罩层
|
|
|
|
|
loading: true,
|
|
|
|
|
// 选中数组
|
|
|
|
|
ids: [],
|
|
|
|
|
// 非单个禁用
|
|
|
|
|
single: true,
|
|
|
|
|
// 非多个禁用
|
|
|
|
|
multiple: true,
|
|
|
|
|
// 显示搜索条件
|
|
|
|
|
showSearch: true,
|
|
|
|
|
// 创建时间搜索
|
|
|
|
|
dateTimeRange:[],
|
|
|
|
|
// 总条数
|
|
|
|
|
total: 0,
|
|
|
|
|
// 渠道开票记录表表格数据
|
|
|
|
|
emisSettleInvoiceChRecordList: [],
|
2024-08-06 09:03:30 +00:00
|
|
|
selectionList:[],
|
2024-08-06 07:41:36 +00:00
|
|
|
|
2024-07-25 00:48:28 +00:00
|
|
|
currentId:null,
|
|
|
|
|
openForm: false,
|
|
|
|
|
titleForm: "",
|
|
|
|
|
|
|
|
|
|
// 弹出展示层
|
|
|
|
|
id:null,
|
|
|
|
|
titleView:"",
|
|
|
|
|
openView: false,
|
|
|
|
|
// 更新站点时间范围
|
|
|
|
|
daterangeOpDate: [],
|
|
|
|
|
// 更新站点时间范围
|
|
|
|
|
daterangeCreateTime: [],
|
|
|
|
|
// 更新站点时间范围
|
|
|
|
|
daterangeUpdateTime: [],
|
|
|
|
|
// 查询参数
|
|
|
|
|
queryParams: {
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 20,
|
|
|
|
|
reqNo: null,
|
|
|
|
|
applySeqNo: null,
|
|
|
|
|
blEcinv: null,
|
|
|
|
|
invoiceType: null,
|
|
|
|
|
realInvoiceType: null,
|
|
|
|
|
companyName: null,
|
|
|
|
|
companyTaxNo: null,
|
|
|
|
|
companyTel: null,
|
|
|
|
|
companyAddress: null,
|
|
|
|
|
bankName: null,
|
|
|
|
|
bankAccNo: null,
|
|
|
|
|
contact: null,
|
|
|
|
|
phone: null,
|
|
|
|
|
taxRate: null,
|
|
|
|
|
openMoney: null,
|
|
|
|
|
email: null,
|
|
|
|
|
salerCompanyName: null,
|
|
|
|
|
salerCompanyTaxNo: null,
|
|
|
|
|
salerCompanyTel: null,
|
|
|
|
|
salerCompanyAddress: null,
|
|
|
|
|
salerBankName: null,
|
|
|
|
|
salerBankAccNo: null,
|
|
|
|
|
salerContact: null,
|
|
|
|
|
salerPhone: null,
|
|
|
|
|
invoiceNo: null,
|
|
|
|
|
filePath: null,
|
|
|
|
|
qrPath: null,
|
|
|
|
|
opManCode: null,
|
|
|
|
|
opDate: null,
|
|
|
|
|
opSiteCode: null,
|
|
|
|
|
openChId: null,
|
|
|
|
|
openChStatus: null,
|
|
|
|
|
openChStatusDesc: null,
|
|
|
|
|
openComCode: null,
|
|
|
|
|
extData: null,
|
|
|
|
|
remark: null,
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
2024-08-06 09:03:30 +00:00
|
|
|
rowKey (row) {
|
|
|
|
|
return row.id;
|
|
|
|
|
},
|
2024-07-25 00:48:28 +00:00
|
|
|
/** 查询渠道开票记录表列表 */
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
this.queryParams.params = {};
|
|
|
|
|
if (null != this.daterangeOpDate && '' != this.daterangeOpDate) {
|
|
|
|
|
this.queryParams.params["beginOpDate"] = this.daterangeOpDate[0];
|
|
|
|
|
this.queryParams.params["endOpDate"] = this.daterangeOpDate[1];
|
|
|
|
|
}
|
|
|
|
|
if (null != this.daterangeCreateTime && '' != this.daterangeCreateTime) {
|
|
|
|
|
this.queryParams.params["beginCreateTime"] = this.daterangeCreateTime[0];
|
|
|
|
|
this.queryParams.params["endCreateTime"] = this.daterangeCreateTime[1];
|
|
|
|
|
}
|
|
|
|
|
if (null != this.daterangeUpdateTime && '' != this.daterangeUpdateTime) {
|
|
|
|
|
this.queryParams.params["beginUpdateTime"] = this.daterangeUpdateTime[0];
|
|
|
|
|
this.queryParams.params["endUpdateTime"] = this.daterangeUpdateTime[1];
|
|
|
|
|
}
|
|
|
|
|
listEmisSettleInvoiceChRecord(this.addDateRange(this.queryParams, this.dateTimeRange)).then(response => {
|
|
|
|
|
this.emisSettleInvoiceChRecordList = response.rows;
|
|
|
|
|
this.total = response.total;
|
|
|
|
|
this.loading = false;
|
|
|
|
|
});
|
|
|
|
|
},
|
2024-08-06 07:41:36 +00:00
|
|
|
|
2024-07-25 00:48:28 +00:00
|
|
|
/** 搜索按钮操作 */
|
|
|
|
|
handleQuery() {
|
|
|
|
|
this.queryParams.pageNum = 1;
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
|
resetQuery() {
|
|
|
|
|
this.resetForm("queryForm");
|
|
|
|
|
this.handleQuery();
|
|
|
|
|
},
|
|
|
|
|
// 多选框选中数据
|
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
|
this.ids = selection.map(item => item.id)
|
|
|
|
|
this.single = selection.length!==1
|
|
|
|
|
this.multiple = !selection.length
|
|
|
|
|
},
|
|
|
|
|
// 排序 查询字段是表格中字段名字 动态取值排序顺序
|
|
|
|
|
handleSortChange(column) {
|
|
|
|
|
this.queryParams.orderByColumn = column.prop;
|
|
|
|
|
this.queryParams.isAsc = column.order;
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
|
handleAdd(row) {
|
|
|
|
|
this.currentId=null;
|
|
|
|
|
this.openForm= true;
|
|
|
|
|
this.titleForm = "新增";
|
|
|
|
|
},
|
|
|
|
|
handleShowMoreInput(){
|
|
|
|
|
this.moreInputVisible = !this.moreInputVisible;
|
|
|
|
|
},
|
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
|
handleUpdate(row) {
|
|
|
|
|
this.currentId= row.id;
|
|
|
|
|
this.openForm = true;
|
|
|
|
|
this.titleForm = "修改";
|
|
|
|
|
},
|
|
|
|
|
handleView(row) {
|
|
|
|
|
this.id=row.id;
|
|
|
|
|
this.titleView="查看";
|
|
|
|
|
this.openView=true;
|
|
|
|
|
// this.router.push({ path: '/emis/emisSettleInvoiceChRecord/viewDetail', query: { id: row.id }})
|
|
|
|
|
},
|
|
|
|
|
handleFormChanged(){
|
|
|
|
|
this.openForm = false;
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
cancelForm(){
|
|
|
|
|
this.openForm = false;
|
|
|
|
|
},
|
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
|
handleDelete(row) {
|
|
|
|
|
const ids = row.id || this.ids;
|
|
|
|
|
this.$modal.confirm('是否确认删除').then(function() {
|
|
|
|
|
return delEmisSettleInvoiceChRecord(ids);
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
|
}).catch(() => {});
|
|
|
|
|
},
|
2024-08-06 09:03:30 +00:00
|
|
|
|
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
|
handleExport() {
|
|
|
|
|
const loadingInstance = this.$loading({
|
2024-07-25 00:48:28 +00:00
|
|
|
text: '正在导出...'
|
2024-08-06 09:03:30 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
if(this.selectionList&&this.selectionList.length>0){
|
|
|
|
|
this.exportData(this.selectionList,loadingInstance);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
let qExportParam=this.queryParams;
|
|
|
|
|
qExportParam.pageNum=1;
|
|
|
|
|
qExportParam.pageSize=5000;
|
|
|
|
|
|
|
|
|
|
listEmisSettleInvoiceChRecord(qExportParam).then(response => {
|
|
|
|
|
if (response.code === 200) {
|
|
|
|
|
this.exportData(response.rows,loadingInstance);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
exportData(selData,loadingInstance){
|
|
|
|
|
const curList =selData
|
|
|
|
|
import('@/vendor/Export2Excel').then(excel => {
|
|
|
|
|
const exportParam=this.$refs.refTable.getExportParam();
|
|
|
|
|
const tHeader = exportParam.header;
|
|
|
|
|
const filterVal = exportParam.filter;
|
|
|
|
|
const data = this.formatJson(filterVal, curList, selData)
|
|
|
|
|
excel.export_json_to_excel({
|
|
|
|
|
header: tHeader,
|
|
|
|
|
data,
|
|
|
|
|
filename: '寄件运单列表',
|
|
|
|
|
autoWidth: true
|
2024-07-25 00:48:28 +00:00
|
|
|
})
|
2024-08-06 09:03:30 +00:00
|
|
|
loadingInstance.close()
|
|
|
|
|
})
|
2024-07-25 00:48:28 +00:00
|
|
|
},
|
|
|
|
|
formatJson(filterVal, jsonData, resData) {
|
|
|
|
|
let index = 0
|
|
|
|
|
return jsonData.map(v => filterVal.map(j => {
|
2024-08-06 09:03:30 +00:00
|
|
|
|
2024-07-25 00:48:28 +00:00
|
|
|
if (j === 'index') {
|
|
|
|
|
return ++index
|
|
|
|
|
}
|
2024-08-06 09:03:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
if (j === 'realInvoiceType') {
|
|
|
|
|
return this.selectDictLabel(this.dict.type.emis_invoice_ch_type,v[j]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (j === 'openChStatus') {
|
|
|
|
|
if(v[j] == -1){
|
|
|
|
|
return '发送异常';
|
|
|
|
|
}
|
|
|
|
|
else if(v[j] == 0){
|
|
|
|
|
return '未发送';
|
|
|
|
|
}
|
|
|
|
|
else if(v[j] == 1){
|
|
|
|
|
return '已发送';
|
|
|
|
|
}
|
|
|
|
|
else if(v[j] == 2){
|
|
|
|
|
return '开票成功';
|
|
|
|
|
}
|
|
|
|
|
else if(v[j] == 3){
|
|
|
|
|
return '开票失败';
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
return '其他';
|
2024-07-25 00:48:28 +00:00
|
|
|
}
|
|
|
|
|
}
|
2024-08-06 09:03:30 +00:00
|
|
|
|
2024-07-25 00:48:28 +00:00
|
|
|
return v[j]
|
|
|
|
|
}))
|
|
|
|
|
},
|
|
|
|
|
/** 列索引函数 */
|
|
|
|
|
getIndex($index) {
|
|
|
|
|
return (this.queryParams.pageNum - 1) * this.queryParams.pageSize + $index + 1
|
|
|
|
|
},
|
|
|
|
|
/** 时间搜索响应函数 */
|
|
|
|
|
dateTimeChange(value){
|
|
|
|
|
this.dateTimeRange=value;
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
.el-divider{
|
|
|
|
|
margin-top: 0px;
|
|
|
|
|
background: 0 0;
|
|
|
|
|
border-top: 1px solid #E6EBF5;
|
|
|
|
|
}
|
|
|
|
|
.el-divider__text {
|
|
|
|
|
color: #0955ee;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
</style>
|