邮寄人员
This commit is contained in:
@@ -0,0 +1,210 @@
|
||||
<template>
|
||||
<div>
|
||||
<page-header-title :img-for-icon="IconImg"></page-header-title>
|
||||
<a-card :bordered="false">
|
||||
|
||||
<!-- 查询区域 -->
|
||||
<div class="table-page-search-wrapper">
|
||||
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
||||
<a-row :gutter="24">
|
||||
<a-col :xl="5" :lg="8" :md="8" :sm="24">
|
||||
<a-form-item label="合同编号">
|
||||
<a-input placeholder="请输入来款项目" v-model="queryParam.contractNum"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :xl="5" :lg="8" :md="8" :sm="24">
|
||||
<a-form-item label="合同名称">
|
||||
<a-input placeholder="请输入来款单位" v-model="queryParam.contractName"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :xl="5" :lg="12" :md="16" :sm="24">
|
||||
<a-form-item label="签订单位">
|
||||
<a-input placeholder="请输入签订单位" v-model="queryParam.signedCompanyTemporaryName"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :xl="5" :lg="8" :md="8" :sm="24">
|
||||
<a-form-item label="负责人">
|
||||
<select-principal v-model="queryParam.pricipalId" placeholder="请选择负责人"></select-principal>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :xl="4" :lg="7" :md="8" :sm="24">
|
||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
||||
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
|
||||
<a-button @click="searchReset" icon="reload" class="reset-button" style="margin-left: 8px">重置</a-button>
|
||||
</span>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</div>
|
||||
<!-- 查询区域-END -->
|
||||
|
||||
<!-- 操作按钮区域 -->
|
||||
<div class="table-operator">
|
||||
<a-button type="primary" icon="download" @click="handleExportXls">导出</a-button>
|
||||
</div>
|
||||
|
||||
<!-- table区域-begin -->
|
||||
<div>
|
||||
|
||||
<a-table
|
||||
ref="table"
|
||||
size="middle"
|
||||
bordered
|
||||
rowKey="id"
|
||||
:scroll="{x:true}"
|
||||
:columns="columns"
|
||||
:dataSource="dataSource"
|
||||
:pagination="ipagination"
|
||||
:loading="loading"
|
||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||
class="j-table-force-nowrap"
|
||||
@change="handleTableChange">
|
||||
|
||||
<template slot="htmlSlot" slot-scope="text, record">
|
||||
<div class="primary-color" v-html="text"></div>
|
||||
</template>
|
||||
|
||||
<span slot="print" slot-scope="text, record" class="action-span-cell">
|
||||
<a-button type="primary" :disabled="record.sendMethod === 1 ? true : false">打印</a-button>
|
||||
</span>
|
||||
<span slot="action" slot-scope="text, record" class="action-span-cell">
|
||||
<a @click="handleAdd" v-if="record.postStatus === '0'">邮寄</a>
|
||||
<a @click="handleEdit(record)" v-if="record.postStatus !== '0'">修改</a>
|
||||
<a @click="goLogistics(record.id)" v-if="record.postStatus !== '0'">查看物流</a>
|
||||
</span>
|
||||
</a-table>
|
||||
</div>
|
||||
<mail-contract-modal ref="modalForm" @ok="modalFormOk"></mail-contract-modal>
|
||||
</a-card>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import {mixinDevice} from '@/utils/mixin'
|
||||
import {JeroListMixin} from '@/mixins/JeroListMixin'
|
||||
import {RangeDateMixin} from '@/mixins/RangeDateMixin'
|
||||
import PageHeaderTitle from '@comp/layouts/PageHeaderTitle'
|
||||
import IconImg from '@/assets/imgs/icon/xin.png'
|
||||
import MailContractModal from './modules/MailModal'
|
||||
import { downloadFile } from '@/api/manage'
|
||||
import SelectPrincipal from '@/components/company/SelectPrincipal'
|
||||
|
||||
export default {
|
||||
name: 'ContractMail',
|
||||
mixins: [JeroListMixin, mixinDevice, RangeDateMixin],
|
||||
components: {
|
||||
PageHeaderTitle, MailContractModal, SelectPrincipal
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
IconImg,
|
||||
dateKeyObj: {
|
||||
beginKey: 'startTime',
|
||||
endKey: 'endTime'
|
||||
},
|
||||
filters: {
|
||||
column: '',
|
||||
order: ''
|
||||
},
|
||||
columns: [
|
||||
{
|
||||
title: '序号',
|
||||
dataIndex: '',
|
||||
key: 'rowIndex',
|
||||
align: 'center',
|
||||
customRender: function (t, r, index) {
|
||||
return parseInt(index) + 1
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '合同编号',
|
||||
align: 'center',
|
||||
dataIndex: 'contractNum',
|
||||
scopedSlots: {customRender: 'htmlSlot'}
|
||||
},
|
||||
{
|
||||
title: '合同名称',
|
||||
align: 'center',
|
||||
dataIndex: 'contractName',
|
||||
},
|
||||
{
|
||||
title: '签订单位',
|
||||
align: 'center',
|
||||
dataIndex: 'signedCompanyTemporaryName',
|
||||
},
|
||||
{
|
||||
title: '负责人',
|
||||
align: 'center',
|
||||
dataIndex: 'pricipalName',
|
||||
},
|
||||
{
|
||||
title: '合同总金额',
|
||||
align: 'center',
|
||||
dataIndex: 'contractAmount',
|
||||
},
|
||||
{
|
||||
title: '邮寄联系人',
|
||||
align: 'center',
|
||||
dataIndex: 'liaisonMan',
|
||||
},
|
||||
{
|
||||
title: '联系人电话',
|
||||
align: 'center',
|
||||
dataIndex: 'mobile',
|
||||
},
|
||||
{
|
||||
title: '状态',
|
||||
align: 'center',
|
||||
dataIndex: 'postStatus_dictText',
|
||||
},
|
||||
{
|
||||
title: '打印',
|
||||
align: 'center',
|
||||
dataIndex: '',
|
||||
scopedSlots: { customRender: 'print' }
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
fixed: 'right',
|
||||
width: 160,
|
||||
scopedSlots: {customRender: 'action'}
|
||||
},
|
||||
],
|
||||
url: {
|
||||
list: '/payMailContract/payMailContract/list',
|
||||
exportXlsUrl: '/payMailContract/payMailContract/exportXls',
|
||||
},
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 查看物流
|
||||
goLogistics(id) {
|
||||
|
||||
},
|
||||
handleAdd: function () {
|
||||
this.$refs.modalForm.add()
|
||||
this.$refs.modalForm.title = '邮寄'
|
||||
this.$refs.modalForm.disableSubmit = false
|
||||
},
|
||||
handleEdit: function (record) {
|
||||
this.$refs.modalForm.edit(record)
|
||||
console.log(record)
|
||||
this.$refs.modalForm.title = '修改'
|
||||
this.$refs.modalForm.disableSubmit = false
|
||||
},
|
||||
handleExportXls() {
|
||||
let date = new Date()
|
||||
let fileName = date.getFullYear() + '年' + (date.getMonth() + 1) + '月' + date.getDate() + '日' + date.getHours() + '时' + date.getMinutes() + '分' + date.getSeconds() + '秒票据邮寄信息'
|
||||
let param = this.getQueryParams()
|
||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||
param['ids'] = this.selectedRowKeys.join(',')
|
||||
}
|
||||
console.log('导出参数', param)
|
||||
downloadFile(this.url.exportXlsUrl, fileName + '.xls', param)
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped lang="less">
|
||||
@import '~@assets/less/common.less';
|
||||
</style>
|
||||
Reference in New Issue
Block a user