|
@@ -28,7 +28,11 @@
|
|
|
</el-select>
|
|
|
</div>
|
|
|
<div class="mt-10">
|
|
|
- <label class="search__label" >单据日期:</label>
|
|
|
+ <!-- <label class="search__label" >单据日期:</label>-->
|
|
|
+ <el-select v-model="optionDate" placeholder="请选择" size="small" style="width: 100px;margin-right: 10px" @change="selectChange">
|
|
|
+ <el-option label="归属日期" value="1"></el-option>
|
|
|
+ <el-option label="单据日期" value="2"></el-option>
|
|
|
+ </el-select>
|
|
|
<el-date-picker
|
|
|
style="margin-right: 16px !important;"
|
|
|
size="small"
|
|
@@ -108,11 +112,14 @@ export default {
|
|
|
accountname:'',
|
|
|
begindate:'',
|
|
|
enddate:'',
|
|
|
+ beginperiod:'',
|
|
|
+ endperiod:'',
|
|
|
agentinfo:'',
|
|
|
remarks:''
|
|
|
},
|
|
|
accountNameList:[],
|
|
|
- dateSelect:''
|
|
|
+ dateSelect:'',
|
|
|
+ optionDate:'1'
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
@@ -137,11 +144,24 @@ export default {
|
|
|
},
|
|
|
selectChange(){
|
|
|
if (this.dateSelect !== '' && this.dateSelect !== null){
|
|
|
- this.selectParam.begindate = this.dateSelect[0]
|
|
|
- this.selectParam.enddate = this.dateSelect[1]
|
|
|
+ if (this.optionDate === '1'){
|
|
|
+ this.selectParam.beginperiod = this.dateSelect[0]
|
|
|
+ this.selectParam.endperiod = this.dateSelect[1]
|
|
|
+ this.selectParam.begindate = ''
|
|
|
+ this.selectParam.enddate = ''
|
|
|
+
|
|
|
+ }else if(this.optionDate === '2'){
|
|
|
+ this.selectParam.begindate = this.dateSelect[0]
|
|
|
+ this.selectParam.enddate = this.dateSelect[1]
|
|
|
+ this.selectParam.beginperiod = ''
|
|
|
+ this.selectParam.endperiod = ''
|
|
|
+ }
|
|
|
+
|
|
|
}else {
|
|
|
this.selectParam.begindate = ''
|
|
|
this.selectParam.enddate = ''
|
|
|
+ this.selectParam.beginperiod = ''
|
|
|
+ this.selectParam.endperiod = ''
|
|
|
}
|
|
|
this.$refs.list.param.content.where = this.selectParam
|
|
|
this.$refs.list.param.content.phonenumber = 1
|