Commit ae28b048 by niewei

depanrmentNumer

parent 82aa781d
......@@ -5,15 +5,15 @@ import Api from '~/service/Api';
export default {
mixins: [commonFunctions],
methods: {
async handleSearch() {
async handleSearch () {
let opndatfrom = this.model.opndatfrom;
if (!opndatfrom || opndatfrom == '') {
this.$notify.error({title: this.$t('factoring.错误'), message: this.$t('factoring.查询开始日期必输!')});
this.$notify.error({ title: this.$t('factoring.错误'), message: this.$t('factoring.查询开始日期必输!') });
return;
}
let opndatto = this.model.opndatto;
if (!opndatto || opndatto == '') {
this.$notify.error({title: this.$t('factoring.错误'), message: this.$t('factoring.查询结束日期必输!')});
this.$notify.error({ title: this.$t('factoring.错误'), message: this.$t('factoring.查询结束日期必输!') });
return;
}
let params = {
......@@ -23,7 +23,7 @@ export default {
opndatfrom: moment(opndatfrom).format('YYYY-MM-DD'),
opndatto: moment(opndatto).format('YYYY-MM-DD'),
};
this.model.branch = JSON.parse(sessionStorage.getItem('currentOrg')).departmentnumber
this.model.branch = JSON.parse(sessionStorage.getItem('currentOrg')).departmentNumber
this.load = true;
let rtnmsg = await Api.post("/factoring/fitsee/list", params);
if (rtnmsg.respCode == SUCCESS) {
......@@ -36,11 +36,11 @@ export default {
total: rtnmsg.data.total
};
} else {
this.$notify.error({title: this.$t('factoring.错误'), message: this.$t('factoring.服务请求失败!')});
this.$notify.error({ title: this.$t('factoring.错误'), message: this.$t('factoring.服务请求失败!') });
}
this.load = false;
},
async handleReset() {
async handleReset () {
this.model.sealcrtyp = '';
this.model.opndatfrom = new Date((new Date).getTime() - (7 * 24 * 60 * 60 * 1000));
this.model.opndatto = new Date();
......@@ -59,31 +59,31 @@ export default {
this.model.searef = '';
},
// pageSize改变
handleSizeChange(val) {
handleSizeChange (val) {
this.pagination.pageNum = 1;
this.pagination.pageSize = val;
this.handleSearch();
},
// 页码改变
handleCurrentChange(val) {
handleCurrentChange (val) {
this.pagination.pageNum = val;
this.handleSearch();
},
// 获取处理按钮
getButtons(row) {
getButtons (row) {
this.$set(this.codes, "rowList", row);
this.handleVisible = true;
},
// 跳转对应交易
onChoose(code, row) {
onChoose (code, row) {
this.routerPush({
path: "/business/" + code,
query: {inr: row.inr}
query: { inr: row.inr }
});
this.handleVisible = false;
},
// 保理开立
toTrtopn() {
toTrtopn () {
this.routerPush('/business/fitepn');
},
}
......
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