You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
334 lines
13 KiB
334 lines
13 KiB
<template>
|
|
<div class="app-container">
|
|
<!-- Start 列表页面 -->
|
|
<div v-show="viewState == 1">
|
|
<button-bar view-title="发票内部接收管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
|
|
<div class="main-content">
|
|
<div class="switch_btn">
|
|
<el-button class="" @click="handleClick">待接收</el-button>
|
|
<el-button :class="{btn_style:viewState === 1}">已接收</el-button>
|
|
</div>
|
|
<div class="searchcon">
|
|
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
|
|
<div v-show="isSearchShow" class="search">
|
|
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header">
|
|
<el-form-item label="合同编号">
|
|
<el-input v-model="listQuery.params.contractNo" clearable placeholder="" class="addinputw"></el-input>
|
|
</el-form-item>
|
|
<el-form-item label="车架号">
|
|
<el-input v-model="listQuery.params.vinNo" clearable placeholder="" class="addinputw"></el-input>
|
|
</el-form-item>
|
|
<!-- <el-form-item label="开票单位">-->
|
|
<!-- <el-input v-model="listQuery.params." clearable placeholder="" class="addinputw"></el-input>-->
|
|
<!-- </el-form-item>-->
|
|
<!-- <el-form-item label="开票类型">-->
|
|
<!-- <el-select v-model="listQuery.params.payTypeKey" class="filter-item" clearable placeholder="请选择">-->
|
|
<!-- <el-option v-for="item in payType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>-->
|
|
<!-- </el-select>-->
|
|
<!-- </el-form-item>-->
|
|
<!-- <el-form-item label="开票名称">-->
|
|
<!-- <el-input v-model="listQuery.params.customerName" clearable placeholder="" class="addinputw"></el-input>-->
|
|
<!-- </el-form-item>-->
|
|
<!-- <el-form-item label="发票号">-->
|
|
<!-- <el-input v-model="listQuery.params.customerName" clearable placeholder="" class="addinputw"></el-input>-->
|
|
<!-- </el-form-item>-->
|
|
<el-form-item label="移交部门">
|
|
<el-input v-model="listQuery.params.transferDept" clearable placeholder="" class="addinputw"></el-input>
|
|
</el-form-item>
|
|
<el-form-item label="移交人">
|
|
<el-input v-model="listQuery.params.transferName" clearable placeholder="" class="addinputw"></el-input>
|
|
</el-form-item>
|
|
<el-form-item label="创建日期">
|
|
<el-date-picker v-model="listQuery.params.createTimeStart" type="date" value-format="yyyy-MM-dd" placeholder="选择日期"></el-date-picker>
|
|
<span style="padding: 0 8px">至</span>
|
|
<el-date-picker v-model="listQuery.params.createtimeEnd" type="date" value-format="yyyy-MM-dd" placeholder="选择日期"></el-date-picker>
|
|
</el-form-item>
|
|
<el-form-item label="接收日期">
|
|
<el-date-picker v-model="listQuery.params.receiveTimeStart" type="date" value-format="yyyy-MM-dd" placeholder="选择日期"></el-date-picker>
|
|
<span style="padding: 0 8px">至</span>
|
|
<el-date-picker v-model="listQuery.params.receiveTimeEnd" type="date" value-format="yyyy-MM-dd" placeholder="选择日期"></el-date-picker>
|
|
</el-form-item>
|
|
</el-form>
|
|
<div class="btn" style="text-align: center;">
|
|
<el-button type="primary" icon="el-icon-search" @click="handleFilter" size="small">查询</el-button>
|
|
<el-button type="primary" icon="el-icon-refresh" @click="handleReset" size="small">重置</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="listtop">
|
|
<div class="tit">已接收资料列表</div>
|
|
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
|
|
</div>
|
|
<div class="">
|
|
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;">
|
|
<el-table-column fixed label="序号" width="60" type="index" :index="indexMethod" align="center"/>
|
|
<el-table-column label="创建日期" align="center" width="120">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.createTime }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="合同编号" align="center" width="150">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.contractNo }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="车架号" align="center" width="180">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.vinNo }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="开票单位" align="center" width="180">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.invoiceTitle }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="开票类型" align="center" width="180">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.invoiceType }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="开票名称" align="center" width="130">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.invoicingName }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="开票金额" align="center" width="180">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.invoiceAmount }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="发票号" align="center" width="150">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.invoiceNo }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="移交部门" align="center" width="150">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.transferDept }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="移交人" align="center" width="100">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.transferName }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="移交备注" align="center" width="200">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.transferRemarks }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="接收部门" align="center" width="150">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.receiveDept }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="接收人" align="center" width="100">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row. receiveName }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="接收人电话" align="center" width="130">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.receiveMobile }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="接收日期" align="center" width="120">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.receiveTime }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="接收备注" align="center" width="200">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.receiveRemarks }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="附件" align="center" min-width="80">
|
|
<template slot-scope="scope">
|
|
<span class="bluezi" @click="handleLook(scope.row)">查看</span>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
</div>
|
|
<div class="pages">
|
|
<!-- 翻页 -->
|
|
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
|
|
</div>
|
|
</div>
|
|
<el-dialog :visible.sync="dialogVisible" width="50%">
|
|
<el-image v-for="(item, index) in image_list" :key="index" :src="item" :preview-src-list="image_list"></el-image>
|
|
</el-dialog>
|
|
</div>
|
|
<!-- End 列表页面 -->
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { pagerList } from '@/api/fapiaoneibujieshou/Internalinvoicereceive'
|
|
import { typeValues } from '@/api/dictcommons/dictcommons'
|
|
import Pagination from '@/components/pagination'
|
|
import pageye from '@/components/pagination/pageye'
|
|
import ButtonBar from '@/components/ButtonBar'
|
|
|
|
export default {
|
|
name: 'fapiaoneibuyijieshou',
|
|
components: {
|
|
Pagination,
|
|
pageye,
|
|
ButtonBar
|
|
},
|
|
data() {
|
|
return {
|
|
viewState: 1,
|
|
btndisabled: false,
|
|
dialogVisible: false,
|
|
image_list: [],
|
|
btnList: [
|
|
{
|
|
type: 'info',
|
|
size: 'small',
|
|
icon: 'cross',
|
|
btnKey: 'doClose',
|
|
btnLabel: '关闭'
|
|
}
|
|
],
|
|
isSearchShow: false,
|
|
searchxianshitit: '显示查询条件',
|
|
// 查询条件 -----------
|
|
tableKey: 0,
|
|
list: [],
|
|
payType_list: [],
|
|
FormLoading: false,
|
|
listLoading: false,
|
|
listQuery: {
|
|
params: {
|
|
contractNo: '',
|
|
createTimeStart: '',
|
|
createtimeEnd: '',
|
|
menuUrl: '',
|
|
orgPath: '',
|
|
receiveTimeEnd: '',
|
|
receiveTimeStart: '',
|
|
transferDept: '',
|
|
transferName: '',
|
|
type: 1,
|
|
userSid: '',
|
|
vinNo: ''
|
|
},
|
|
current: 1,
|
|
size: 10,
|
|
total: 0
|
|
}
|
|
}
|
|
},
|
|
created() {
|
|
// 初始化变量
|
|
this.init()
|
|
this.getList()
|
|
},
|
|
mounted() {
|
|
this.$refs['btnbar'].setButtonList(this.btnList)
|
|
},
|
|
methods: {
|
|
// 搜索条件效果
|
|
clicksearchShow() {
|
|
this.isSearchShow = !this.isSearchShow
|
|
if (this.isSearchShow) {
|
|
this.searchxianshitit = '隐藏查询条件'
|
|
} else {
|
|
this.searchxianshitit = '显示查询条件'
|
|
}
|
|
},
|
|
btnHandle(btnKey) {
|
|
console.log('XXXXXXXXXXXXXXX ' + btnKey)
|
|
switch (btnKey) {
|
|
case 'doClose':
|
|
this.doClose()
|
|
break
|
|
default:
|
|
break
|
|
}
|
|
},
|
|
init() {
|
|
typeValues({ type: 'invoiceType' }).then((res) => {
|
|
if (res.success) {
|
|
this.payType_list = res.data
|
|
}
|
|
})
|
|
this.getList()
|
|
},
|
|
// 序号
|
|
indexMethod(index) {
|
|
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
|
|
var pageindex = index + 1 + pagestart
|
|
return pageindex
|
|
},
|
|
// 查询列表信息
|
|
getList() {
|
|
this.listLoading = true
|
|
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid')
|
|
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
|
|
// this.listQuery.params.roleSid = JSON.parse()
|
|
this.listQuery.params.menuUrl = this.$route.path
|
|
pagerList(this.listQuery).then((response) => {
|
|
console.log('列表查询结果:', response)
|
|
this.listLoading = false
|
|
if (response.success) {
|
|
this.list = response.data.records
|
|
this.listQuery.total = response.data.total
|
|
} else {
|
|
this.list = []
|
|
this.listQuery.total = 0
|
|
}
|
|
})
|
|
},
|
|
handleClick() {
|
|
this.$parent.resetState()
|
|
},
|
|
// 查询按钮
|
|
handleFilter() {
|
|
this.listQuery.current = 1
|
|
this.getList()
|
|
},
|
|
handleReset() {
|
|
this.listQuery = {
|
|
params: {
|
|
contractNo: '',
|
|
createTimeStart: '',
|
|
createtimeEnd: '',
|
|
menuUrl: '',
|
|
orgPath: '',
|
|
receiveTimeEnd: '',
|
|
receiveTimeStart: '',
|
|
transferDept: '',
|
|
transferName: '',
|
|
type: 1,
|
|
userSid: '',
|
|
vinNo: ''
|
|
},
|
|
current: 1,
|
|
size: 10,
|
|
total: 0
|
|
}
|
|
this.getList()
|
|
},
|
|
handleLook(row) {
|
|
this.dialogVisible = true
|
|
this.image_list = row.receiveFilesList
|
|
},
|
|
resetState() {
|
|
this.viewState = 1
|
|
},
|
|
doClose() {
|
|
this.$store.dispatch('tagsView/delView', this.$route)
|
|
this.$router.go(-1)
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<style scoped>
|
|
.btn_style {
|
|
background-color: #018ad2;
|
|
color: white;
|
|
font-weight: 600;
|
|
}
|
|
</style>
|
|
|