|
@@ -3,9 +3,73 @@
|
|
|
<el-form size="small" :inline="true" class="query-form" ref="searchForm" :model="searchForm" @keyup.enter.native="refreshList()" @submit.native.prevent>
|
|
|
<!-- 搜索框-->
|
|
|
<el-row :gutter="0">
|
|
|
+ <el-form-item prop="no" label="发票申请编号">
|
|
|
+ <el-input size="small" v-model="searchForm.no" placeholder="请输入发票申请编号" clearable></el-input>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item prop="number" label="发票号">
|
|
|
<el-input size="small" v-model="searchForm.number" placeholder="请输入发票号" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item prop="programName" label="项目名称">
|
|
|
+ <el-input size="small" v-model="searchForm.programName" placeholder="请输入项目名称" clearable @clear="clearProgram">
|
|
|
+ <el-button slot="append" @click="openProgramPageForm()" icon="el-icon-search"></el-button>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="reconciliationPeople" label="对账人">
|
|
|
+ <UserSelect :limit='1' :readonly="true" :value="searchForm.reconciliationPeople" @getValue='(value) => {searchForm.reconciliationPeople = value}'></UserSelect>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="billingWorkplaceReal" label="开票单位">
|
|
|
+ <el-input size="small" v-model="searchForm.billingWorkplaceReal" placeholder="请输入开票单位" clearable></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="receivablesStatus" label="是否收款">
|
|
|
+ <el-select v-model="searchForm.receivablesStatus" placeholder="请选择是否收款" clearable>
|
|
|
+ <el-option label="是" value="1"></el-option>
|
|
|
+ <el-option label="否" value="0"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="type" label="发票类型">
|
|
|
+ <el-select v-model="searchForm.type" placeholder="请选择发票类型" clearable>
|
|
|
+ <el-option
|
|
|
+ v-for="item in this.$dictUtils.getDictList('invoice_type')"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="receivablesType" label="收款类型">
|
|
|
+ <el-select v-model="searchForm.receivablesType" placeholder="请选择收款类型"clearable>
|
|
|
+ <el-option
|
|
|
+ v-for="item in $dictUtils.getDictList('invoice_receivables_type')"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="billingContent" label="开票内容">
|
|
|
+ <el-select v-model="searchForm.billingContent" placeholder="请选择开票内容"clearable>
|
|
|
+ <el-option
|
|
|
+ v-for="item in $dictUtils.getDictList('invoice_billing_content')"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="reconciliationArea" label="对账地区">
|
|
|
+ <SelectTree
|
|
|
+ ref="areaTree"
|
|
|
+ :props="{
|
|
|
+ value: 'id', // ID字段名
|
|
|
+ label: 'name', // 显示名称
|
|
|
+ children: 'children' // 子级字段名
|
|
|
+ }"
|
|
|
+ url="/sys/area/treeData"
|
|
|
+ :value="searchForm.reconciliationArea"
|
|
|
+ :clearable="true"
|
|
|
+ :accordion="true"
|
|
|
+ @getValue="(value) => {searchForm.reconciliationArea=value}"/>
|
|
|
+ </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>
|
|
@@ -45,6 +109,7 @@
|
|
|
<el-form-item prop="billingDateList" label="开票日期">
|
|
|
<el-date-picker
|
|
|
size="small"
|
|
|
+ @change="changeBillingDateList"
|
|
|
v-model="searchForm.billingDateList"
|
|
|
type="daterange"
|
|
|
value-format="yyyy-MM-dd"
|
|
@@ -165,6 +230,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<InvoiceForm ref="invoiceForm" @refreshDataList="refreshList"></InvoiceForm>
|
|
|
+ <ProgramPageForm ref="programPageForm" @getProgram="getProgram"></ProgramPageForm>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -175,6 +241,10 @@
|
|
|
import TaskService from '@/api/flowable/TaskService'
|
|
|
import ProcessService from '@/api/flowable/ProcessService'
|
|
|
import UserService from '@/api/sys/UserService'
|
|
|
+ import UserSelect from '@/components/userSelect'
|
|
|
+ import SelectUserTree from '@/views/modules/utils/treeUserSelect'
|
|
|
+ import SelectTree from '@/components/treeSelect/treeSelect.vue'
|
|
|
+ import ProgramPageForm from '@/views/modules/finance/invoice/ProgramPageForm'
|
|
|
export default {
|
|
|
data () {
|
|
|
return {
|
|
@@ -189,7 +259,8 @@
|
|
|
remittanceDateBegin: '',
|
|
|
remittanceDateEnd: '',
|
|
|
programName: '',
|
|
|
- programId: ''
|
|
|
+ programId: '',
|
|
|
+ reconciliationPeople: ''
|
|
|
},
|
|
|
dataList: [],
|
|
|
tablePage: {
|
|
@@ -221,7 +292,11 @@
|
|
|
this.userService = new UserService()
|
|
|
},
|
|
|
components: {
|
|
|
- InvoiceForm
|
|
|
+ InvoiceForm,
|
|
|
+ UserSelect,
|
|
|
+ SelectUserTree,
|
|
|
+ SelectTree,
|
|
|
+ ProgramPageForm
|
|
|
},
|
|
|
mounted () {
|
|
|
this.refreshList()
|
|
@@ -253,12 +328,18 @@
|
|
|
this.searchForm.billingDateBegin = this.searchForm.billingDateList[0]
|
|
|
this.searchForm.billingDateEnd = this.searchForm.billingDateList[1]
|
|
|
}
|
|
|
+ } else {
|
|
|
+ this.searchForm.billingDateBegin = ''
|
|
|
+ this.searchForm.billingDateEnd = ''
|
|
|
}
|
|
|
if (!this.commonJS.isEmpty(this.searchForm.remittanceDateList)) {
|
|
|
if (!this.commonJS.isEmpty(this.searchForm.remittanceDateList[0]) && !this.commonJS.isEmpty(this.searchForm.remittanceDateList[1])) {
|
|
|
- this.searchForm.remittanceDateBegin = this.moment(this.searchForm.remittanceDateList[0]).format('YYYY-MM-DD')
|
|
|
- this.searchForm.remittanceDateEnd = this.moment(this.searchForm.remittanceDateList[1]).format('YYYY-MM-DD')
|
|
|
+ this.searchForm.remittanceDateBegin = this.searchForm.remittanceDateList[0]
|
|
|
+ this.searchForm.remittanceDateEnd = this.searchForm.remittanceDateList[1]
|
|
|
}
|
|
|
+ } else {
|
|
|
+ this.searchForm.remittanceDateBegin = ''
|
|
|
+ this.searchForm.remittanceDateEnd = ''
|
|
|
}
|
|
|
this.financeInvoiceService.list({
|
|
|
'current': this.tablePage.currentPage,
|
|
@@ -350,12 +431,20 @@
|
|
|
})
|
|
|
},
|
|
|
resetSearch () {
|
|
|
- this.searchForm.billingDateList = []
|
|
|
- this.searchForm.remittanceDateList = []
|
|
|
- this.searchForm.billingDateBegin = ''
|
|
|
- this.searchForm.billingDateEnd = ''
|
|
|
- this.searchForm.remittanceDateBegin = ''
|
|
|
- this.searchForm.remittanceDateEnd = ''
|
|
|
+ this.searchForm = {
|
|
|
+ number: '',
|
|
|
+ accountBegin: undefined,
|
|
|
+ accountEnd: undefined,
|
|
|
+ billingDateList: [],
|
|
|
+ billingDateBegin: '',
|
|
|
+ billingDateEnd: '',
|
|
|
+ remittanceDateList: [],
|
|
|
+ remittanceDateBegin: '',
|
|
|
+ remittanceDateEnd: '',
|
|
|
+ programName: '',
|
|
|
+ programId: '',
|
|
|
+ reconciliationPeople: ''
|
|
|
+ }
|
|
|
this.$refs.searchForm.resetFields()
|
|
|
this.refreshList()
|
|
|
},
|
|
@@ -551,6 +640,24 @@
|
|
|
this.refreshList()
|
|
|
})
|
|
|
})
|
|
|
+ },
|
|
|
+ changeBillingDateList (event) {
|
|
|
+ if (this.commonJS.isNotEmpty(this.searchForm.billingDateList)) {
|
|
|
+ console.log('event', event)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ openProgramPageForm () {
|
|
|
+ this.$refs.programPageForm.init('1', false)
|
|
|
+ },
|
|
|
+ getProgram (rows) {
|
|
|
+ if (this.commonJS.isNotEmpty(rows)) {
|
|
|
+ this.searchForm.programName = rows[0].name
|
|
|
+ this.searchForm.programId = rows[0].id
|
|
|
+ }
|
|
|
+ },
|
|
|
+ clearProgram () {
|
|
|
+ this.searchForm.programName = ''
|
|
|
+ this.searchForm.programId = ''
|
|
|
}
|
|
|
}
|
|
|
}
|