|
@@ -4,23 +4,24 @@
|
|
|
|
|
|
<div class="center">
|
|
|
<el-row style='margin-bottom:10px;'>
|
|
|
- <el-col :span="14">
|
|
|
+ <el-col :span="16">
|
|
|
<div style='margin-left:10px;' class="datascreen">
|
|
|
<el-date-picker value-format='yyyy-MM-dd' v-model="value" type="daterange" unlink-panels range-separator="至"
|
|
|
- start-placeholder="起始日期" end-placeholder="截止日期" :picker-options="pickerOptions" class="data_css"
|
|
|
+ start-placeholder="起始日期" end-placeholder="截止日期" :picker-options="pickerOptions" class="data_css" clearable
|
|
|
@change="changeDate">
|
|
|
</el-date-picker>
|
|
|
<el-select class="typechange" style="margin-left:10px;" v-model="businessType" filterable clearable placeholder="选择类型" @change="typeChange">
|
|
|
<el-option v-for="item in xialaList" :key="item.value" :label="item.label" :value="item.value"
|
|
|
style="color: #8890b1" />
|
|
|
</el-select>
|
|
|
- <el-input placeholder="可按发起人姓名或业务编号查找" class="input_css" v-model="searchKeyWord"></el-input>
|
|
|
+ <el-input placeholder="可按发起人姓名、业务编号查找" class="input_css" v-model="searchKeyWord" clearable></el-input>
|
|
|
+ <el-input placeholder="按金额查找" class="input_css" v-model="amountMoney" clearable></el-input>
|
|
|
<el-button class="find" type="primary" @click="find()"><img width="16" height="16" style="left: -8px;"
|
|
|
src="../../../public/img/sousuo.png" alt="" /></el-button>
|
|
|
</div>
|
|
|
|
|
|
</el-col>
|
|
|
- <el-col style="text-align:right;" :span="10">
|
|
|
+ <el-col style="text-align:right;" :span="8">
|
|
|
<el-button style="margin-right:10px" @click="printlist" type="primary">批量打印</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -119,6 +120,7 @@ export default {
|
|
|
pageSize: 10,
|
|
|
businessType: '',
|
|
|
searchType: '',
|
|
|
+ amountMoney:'',
|
|
|
searchKeyWord: '',
|
|
|
startDate: '',
|
|
|
endDate: '',
|
|
@@ -151,10 +153,11 @@ export default {
|
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
|
currectdata: {},
|
|
|
dialogVisible1: false,
|
|
|
- recordList: []
|
|
|
+ recordList: [],
|
|
|
}
|
|
|
},
|
|
|
activated() {
|
|
|
+ this.getPassYearFormatDate()
|
|
|
this.getList()
|
|
|
},
|
|
|
methods: {
|
|
@@ -626,12 +629,45 @@ export default {
|
|
|
handleSelectionChange(val) {
|
|
|
this.multipleSelection = val;
|
|
|
},
|
|
|
+ getPassYearFormatDate() {
|
|
|
+ if (!localStorage.getItem('startDateAudit') && !localStorage.getItem('endDateAudit')) {
|
|
|
+ var nowDate = new Date()
|
|
|
+ var _date = new Date()
|
|
|
+ nowDate.setTime(nowDate.getTime() - 24 * 60 * 60 * 1000 * 7)
|
|
|
+ var year = nowDate.getFullYear()
|
|
|
+ var year1 = _date.getFullYear()
|
|
|
+ var month = nowDate.getMonth() + 1
|
|
|
+ var month1 = _date.getMonth() + 1
|
|
|
+ var strDate = nowDate.getDate()
|
|
|
+ var strDate1 = _date.getDate()
|
|
|
+ if (month >= 1 && month <= 9) {
|
|
|
+ month = '0' + month
|
|
|
+ }
|
|
|
+ if (month1 >= 1 && month1 <= 9) {
|
|
|
+ month1 = '0' + month1
|
|
|
+ }
|
|
|
+
|
|
|
+ if (strDate >= 0 && strDate <= 9) {
|
|
|
+ strDate = '0' + strDate
|
|
|
+ }
|
|
|
+ if (strDate1 >= 0 && strDate1 <= 9) {
|
|
|
+ strDate1 = '0' + strDate1
|
|
|
+ }
|
|
|
+ this.startDateAudit = year + '-' + month + '-' + strDate
|
|
|
+ this.endDateAudit = year1 + '-' + month1 + '-' + strDate1
|
|
|
+ } else {
|
|
|
+ this.startDateAudit = localStorage.getItem('startDate')
|
|
|
+ this.endDateAudit = localStorage.getItem('endDate')
|
|
|
+ }
|
|
|
+ this.value = [this.startDateAudit, this.endDateAudit]
|
|
|
+ },
|
|
|
async getList() {
|
|
|
printlist({
|
|
|
compId:localStorage.getItem('ws-pf_compId'),
|
|
|
- startDate: this.startDate,
|
|
|
- endDate: this.endDate,
|
|
|
+ startDate: localStorage.getItem('startDateAudit')?localStorage.getItem('startDateAudit'):this.startDateAudit,
|
|
|
+ endDate: localStorage.getItem('endDateAudit')?localStorage.getItem('endDateAudit'):this.endDateAudit,
|
|
|
searchKeyWord: this.searchKeyWord,
|
|
|
+ amountMoney: this.amountMoney,
|
|
|
currentPage: this.currentPage,
|
|
|
pageSize: this.pageSize,
|
|
|
searchType: this.searchType,
|
|
@@ -645,8 +681,10 @@ export default {
|
|
|
|
|
|
changeDate() {
|
|
|
if (this.value) {
|
|
|
- this.startDate = this.value[0]
|
|
|
- this.endDate = this.value[1]
|
|
|
+ this.startDateAudit = this.value[0]
|
|
|
+ this.endDateAudit = this.value[1]
|
|
|
+ localStorage.setItem('startDateAudit', this.startDateAudit)
|
|
|
+ localStorage.setItem('endDateAudit', this.endDateAudit)
|
|
|
}
|
|
|
this.getList()
|
|
|
},
|
|
@@ -753,7 +791,7 @@ table {
|
|
|
}
|
|
|
|
|
|
.input_css {
|
|
|
- width: 50%;
|
|
|
+ width: 70%;
|
|
|
margin: 0 10px;
|
|
|
}
|
|
|
|