Commit 0e199d99 by yangxiaolei

同步修改

parent fd0c39fa
......@@ -6,12 +6,12 @@ export default {
methods: {
async handleSearch() {
let opndatfrom = this.model.infcon.opndatfrom;
if (!opndatfrom || opndatfrom == '') {
if ((!opndatfrom || opndatfrom == '') && !this.$route.query.trn) {
this.$notify.error({ title: '错误', message: '查询开始日期必输!' });
return;
}
let opndatto = this.model.infcon.opndatto;
if (!opndatto || opndatto == '') {
if ((!opndatto || opndatto == '') && !this.$route.query.trn) {
this.$notify.error({ title: '错误', message: '查询结束日期必输!' });
return;
}
......@@ -22,8 +22,8 @@ export default {
inr:this.model.brdgrp.rec.inr,
pageIndex: this.pagination.pageIndex,
pageSize: this.pagination.pageSize,
opndatfrom:moment(opndatfrom).format('YYYY-MM-DD'),
opndatto:moment(opndatto).format('YYYY-MM-DD'),
opndatfrom:this.$route.query.trn ? null : moment(opndatfrom).format('YYYY-MM-DD'),
opndatto:this.$route.query.trn ? null: moment(opndatto).format('YYYY-MM-DD'),
};
let rtnmsg = await Api.post('/service/infbrd/getList', params);
if (rtnmsg.respCode == SUCCESS) {
......
......@@ -570,6 +570,8 @@ export default {
mounted: function () {
if(this.$route.query && this.$route.query.trn){
this.model.infcon.ownref = this.$route.query.trn
this.model.infcon.opndatfrom = null
this.model.infcon.opndatto = null
this.handleSearch()
}
},
......
......@@ -6,15 +6,18 @@ export default {
methods: {
async handleSearch() {
let opndatfrom = this.model.infcon.opndatfrom;
if (!opndatfrom || opndatfrom == '') {
console.log("this.$route.query.trn=>",this.$route.query.trn)
if ((!opndatfrom || opndatfrom == '') && !this.$route.query.trn) {
this.$notify.error({ title: '错误', message: '查询开始日期必输!' });
return;
}
let opndatto = this.model.infcon.opndatto;
if (!opndatto || opndatto == '') {
if ((!opndatto || opndatto == '') && !this.$route.query.trn) {
this.$notify.error({ title: '错误', message: '查询结束日期必输!' });
return;
}
let params = {
...this.model.infcon,
fenlishi: this.model.fenlishi,
......@@ -25,8 +28,8 @@ export default {
fingua: this.model.fingua,
pageIndex: this.pagination.pageIndex,
pageSize: this.pagination.pageSize,
opndatfrom:moment(opndatfrom).format('YYYY-MM-DD'),
opndatto:moment(opndatto).format('YYYY-MM-DD'),
opndatfrom:this.$route.query.trn ? null : moment(opndatfrom).format('YYYY-MM-DD'),
opndatto:this.$route.query.trn ? null :moment(opndatto).format('YYYY-MM-DD'),
};
let rtnmsg = await Api.post('/service/inflid/getList', params);
if (rtnmsg.respCode == SUCCESS) {
......
......@@ -432,7 +432,9 @@ export default {
methods: {},
created: function () {
if(this.$route.query && this.$route.query.trn){
this.model.infcon.seaownref = this.$route.query.trn
this.root.model.infcon.seaownref = this.$route.query.trn
this.root.model.infcon.opndatfrom = null
this.root.model.infcon.opndatto = null
this.handleSearch()
}
},
......
......@@ -48,7 +48,9 @@ export default {
}
},
mounted () {
this.getInidatfro()
if(!this.$route.query.trn){
this.getInidatfro()
}
},
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment