|
@@ -8,12 +8,51 @@
|
|
|
<el-form-item prop="invoiceNumber">
|
|
|
<el-input size="small" v-model="searchForm.invoiceNumber" placeholder="发票号码" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
+
|
|
|
+ <el-form-item prop="firmName">
|
|
|
+ <el-input size="small" v-model="searchForm.firmName" placeholder="购方企业名称" clearable></el-input>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
<el-form-item prop="proposer">
|
|
|
<el-input size="small" v-model="searchForm.proposer" placeholder="项目经理" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="partner">
|
|
|
<el-input size="small" v-model="searchForm.partner" placeholder="部门" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
+
|
|
|
+ <el-form-item
|
|
|
+ label="收入"
|
|
|
+ class="priceFormItem"
|
|
|
+ prop="income"
|
|
|
+ >
|
|
|
+ <el-input
|
|
|
+ v-model="searchForm.beginIncome"
|
|
|
+ onkeyup="value=value.replace(/[^\d]/g,'')"
|
|
|
+ class="priceInput"
|
|
|
+ style="width: 130px; margin-right: 10px"
|
|
|
+ />-<el-input
|
|
|
+ v-model="searchForm.endIncome"
|
|
|
+ class="priceInput"
|
|
|
+ onkeyup="value=value.replace(/[^\d]/g,'')"
|
|
|
+ style="width: 130px; margin-left: 10px"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="开票日期" prop="makeTime">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="searchDates"
|
|
|
+ type="daterange"
|
|
|
+ size="small"
|
|
|
+ align="right"
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ unlink-panels
|
|
|
+ range-separator="至"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ :picker-options="pickerOptions">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" @click="refreshList()" size="small" icon="el-icon-search">查询</el-button>
|
|
|
<el-button @click="resetSearch()" size="small" icon="el-icon-refresh-right">重置</el-button>
|
|
@@ -110,6 +149,7 @@
|
|
|
<vxe-column title="操作" width="300px" fixed="right" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button v-if="hasPermission('accountant:reimbursement:edit') && scope.row.businessFlag === '1'" type="text" icon="el-icon-edit" size="small" @click="editInvoiceBusiness(scope.row.id)">新增业务编码</el-button>
|
|
|
+ <el-button v-if="hasPermission('accountant:reimbursement:edit') && scope.row.businessCode!=='' && scope.row.parentId === '0' && scope.row.randomType === '1' " type="text" icon="el-icon-edit" size="small" @click="editBusiness(scope.row.id)">编辑业务编码</el-button>
|
|
|
<el-button v-if="hasPermission('accountant:reimbursement:edit') && (scope.row.businessCode==='' && scope.row.parentId === '0' && scope.row.businessFlag === '0')" type="text" icon="el-icon-edit" size="small" @click="editBusiness(scope.row.id)">新增业务编码</el-button>
|
|
|
<el-button v-if="hasPermission('accountant:reimbursement:edit') && scope.row.businessCode !== '' && !scope.row.reimbursementRatio && scope.row.parentId === '0'" type="text" icon="el-icon-edit" size="small" @click="editBusinessRatio(scope.row.id)">报销比例</el-button>
|
|
|
<el-button v-if="hasPermission('accountant:reimbursementBusiness:add') && scope.row.businessCode !== '' && scope.row.reimbursementRatio && scope.row.parentId === '0' && scope.row.reimbursementStatus === '0'" type="text" icon="el-icon-plus" size="small" @click="addBusinessInfo(scope.row.id, scope.row.businessCode)">业务报销</el-button>
|
|
@@ -161,13 +201,20 @@ export default {
|
|
|
data () {
|
|
|
return {
|
|
|
dataList: [],
|
|
|
+ searchDates: '',
|
|
|
searchForm: {
|
|
|
businessFlag: '',
|
|
|
businessCode: '',
|
|
|
invoiceNumber: '',
|
|
|
proposer: '',
|
|
|
partner: '',
|
|
|
- reimbursementRatio: ''
|
|
|
+ reimbursementRatio: '',
|
|
|
+ randomType: '',
|
|
|
+ firmName: '',
|
|
|
+ beginDate: '',
|
|
|
+ endDate: '',
|
|
|
+ beginIncome: '',
|
|
|
+ endIncome: ''
|
|
|
},
|
|
|
tablePage: {
|
|
|
total: 0,
|
|
@@ -175,7 +222,45 @@ export default {
|
|
|
pageSize: 10,
|
|
|
orders: [{column: 'a.create_date', asc: false}]
|
|
|
},
|
|
|
- loading: false
|
|
|
+ loading: false,
|
|
|
+ pickerOptions: {
|
|
|
+ shortcuts: [{
|
|
|
+ text: '最近一周',
|
|
|
+ onClick (picker) {
|
|
|
+ const end = new Date()
|
|
|
+ const start = new Date()
|
|
|
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
|
|
|
+ picker.$emit('pick', [start, end])
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ text: '最近一个月',
|
|
|
+ onClick (picker) {
|
|
|
+ const end = new Date()
|
|
|
+ const start = new Date()
|
|
|
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 30)
|
|
|
+ picker.$emit('pick', [start, end])
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ text: '最近三个月',
|
|
|
+ onClick (picker) {
|
|
|
+ const end = new Date()
|
|
|
+ const start = new Date()
|
|
|
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 90)
|
|
|
+ picker.$emit('pick', [start, end])
|
|
|
+ }
|
|
|
+ }]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ searchDates () {
|
|
|
+ if (this.searchDates) {
|
|
|
+ this.searchForm.beginDate = this.searchDates[0]
|
|
|
+ this.searchForm.endDate = this.searchDates[1]
|
|
|
+ } else {
|
|
|
+ this.searchForm.beginDate = ''
|
|
|
+ this.searchForm.endDate = ''
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
components: {
|