Commit ae28b048 by niewei

depanrmentNumer

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