Commit 82aa781d by niewei

departmentNumber大小写一致

parent a7889819
...@@ -2,9 +2,9 @@ import Api from '~/service/Api'; ...@@ -2,9 +2,9 @@ import Api from '~/service/Api';
import commonFunctions from '~/mixin/commonFunctions.js'; import commonFunctions from '~/mixin/commonFunctions.js';
import Utils from "~/utils/index"; import Utils from "~/utils/index";
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.查询开始日期必输!') });
...@@ -22,7 +22,7 @@ export default { ...@@ -22,7 +22,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/trtsel/list", params); let rtnmsg = await Api.post("/factoring/trtsel/list", params);
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
...@@ -39,7 +39,7 @@ export default { ...@@ -39,7 +39,7 @@ export default {
} }
this.load = false; this.load = false;
}, },
async handleReset() { async handleReset () {
this.model.sealcrtyp = ''; this.model.sealcrtyp = '';
this.model.opndatfrom = new Date(); this.model.opndatfrom = new Date();
this.model.opndatto = new Date(); this.model.opndatto = new Date();
...@@ -58,32 +58,32 @@ export default { ...@@ -58,32 +58,32 @@ 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/bftepn'); this.routerPush('/business/bftepn');
}, },
} }
} }
\ No newline at end of file
...@@ -5,7 +5,7 @@ import Api from '~/service/Api'; ...@@ -5,7 +5,7 @@ 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.查询开始日期必输!') });
...@@ -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/fitsei/list", params); let rtnmsg = await Api.post("/factoring/fitsei/list", params);
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
...@@ -40,7 +40,7 @@ export default { ...@@ -40,7 +40,7 @@ export default {
} }
this.load = false; this.load = false;
}, },
async handleReset() { async handleReset () {
this.model.fidOwnref = ''; this.model.fidOwnref = '';
this.model.fidNam = ''; this.model.fidNam = '';
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));
...@@ -53,23 +53,23 @@ export default { ...@@ -53,23 +53,23 @@ export default {
this.model.exfref = ""; this.model.exfref = "";
}, },
// 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, path: code } query: { inr: row.inr, path: code }
...@@ -77,7 +77,7 @@ export default { ...@@ -77,7 +77,7 @@ export default {
this.handleVisible = false; this.handleVisible = false;
}, },
// 保理开立 // 保理开立
toTrtopn() { toTrtopn () {
this.routerPush('/business/fitipn'); this.routerPush('/business/fitipn');
}, },
} }
......
...@@ -2,9 +2,9 @@ import Api from '~/service/Api'; ...@@ -2,9 +2,9 @@ import Api from '~/service/Api';
import commonFunctions from '~/mixin/commonFunctions.js'; import commonFunctions from '~/mixin/commonFunctions.js';
import Utils from "~/utils/index"; import Utils from "~/utils/index";
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.查询开始日期必输!') });
...@@ -22,7 +22,7 @@ export default { ...@@ -22,7 +22,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/trtsel/list", params); let rtnmsg = await Api.post("/factoring/trtsel/list", params);
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
...@@ -39,7 +39,7 @@ export default { ...@@ -39,7 +39,7 @@ export default {
} }
this.load = false; this.load = false;
}, },
async handleReset() { async handleReset () {
this.model.sealcrtyp = ''; this.model.sealcrtyp = '';
this.model.opndatfrom = new Date(); this.model.opndatfrom = new Date();
this.model.opndatto = new Date(); this.model.opndatto = new Date();
...@@ -58,32 +58,32 @@ export default { ...@@ -58,32 +58,32 @@ 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/lmtreg'); this.routerPush('/business/lmtreg');
}, },
} }
} }
\ No newline at end of file
...@@ -2,9 +2,9 @@ import Api from '~/service/Api'; ...@@ -2,9 +2,9 @@ import Api from '~/service/Api';
import commonFunctions from '~/mixin/commonFunctions.js'; import commonFunctions from '~/mixin/commonFunctions.js';
import Utils from "~/utils/index"; import Utils from "~/utils/index";
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.查询开始日期必输!') });
...@@ -22,7 +22,7 @@ export default { ...@@ -22,7 +22,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/trtsel/list", params); let rtnmsg = await Api.post("/factoring/trtsel/list", params);
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
...@@ -39,7 +39,7 @@ export default { ...@@ -39,7 +39,7 @@ export default {
} }
this.load = false; this.load = false;
}, },
async handleReset() { async handleReset () {
this.model.sealcrtyp = ''; this.model.sealcrtyp = '';
this.model.opndatfrom = new Date(); this.model.opndatfrom = new Date();
this.model.opndatto = new Date(); this.model.opndatto = new Date();
...@@ -58,32 +58,32 @@ export default { ...@@ -58,32 +58,32 @@ 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/lmtrig'); this.routerPush('/business/lmtrig');
}, },
} }
} }
\ No newline at end of file
...@@ -2,9 +2,9 @@ import Api from '~/service/Api'; ...@@ -2,9 +2,9 @@ import Api from '~/service/Api';
import commonFunctions from '~/mixin/commonFunctions.js'; import commonFunctions from '~/mixin/commonFunctions.js';
import Utils from "~/utils/index"; import Utils from "~/utils/index";
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.查询开始日期必输!') });
...@@ -22,7 +22,7 @@ export default { ...@@ -22,7 +22,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/trtsel/list", params); let rtnmsg = await Api.post("/factoring/trtsel/list", params);
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
...@@ -39,7 +39,7 @@ export default { ...@@ -39,7 +39,7 @@ export default {
} }
this.load = false; this.load = false;
}, },
async handleReset() { async handleReset () {
this.model.sealcrtyp = ''; this.model.sealcrtyp = '';
this.model.opndatfrom = new Date(); this.model.opndatfrom = new Date();
this.model.opndatto = new Date(); this.model.opndatto = new Date();
...@@ -58,32 +58,32 @@ export default { ...@@ -58,32 +58,32 @@ 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/lrtepn'); this.routerPush('/business/lrtepn');
}, },
} }
} }
\ No newline at end of file
...@@ -2,9 +2,9 @@ import Api from '~/service/Api'; ...@@ -2,9 +2,9 @@ import Api from '~/service/Api';
import commonFunctions from '~/mixin/commonFunctions.js'; import commonFunctions from '~/mixin/commonFunctions.js';
import Utils from "~/utils/index"; import Utils from "~/utils/index";
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.查询开始日期必输!') });
...@@ -22,7 +22,7 @@ export default { ...@@ -22,7 +22,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/trtsel/list", params); let rtnmsg = await Api.post("/factoring/trtsel/list", params);
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
...@@ -39,7 +39,7 @@ export default { ...@@ -39,7 +39,7 @@ export default {
} }
this.load = false; this.load = false;
}, },
async handleReset() { async handleReset () {
this.model.sealcrtyp = ''; this.model.sealcrtyp = '';
this.model.opndatfrom = new Date(); this.model.opndatfrom = new Date();
this.model.opndatto = new Date(); this.model.opndatto = new Date();
...@@ -58,32 +58,32 @@ export default { ...@@ -58,32 +58,32 @@ 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/lrtipn'); this.routerPush('/business/lrtipn');
}, },
} }
} }
\ No newline at end of file
...@@ -238,7 +238,7 @@ export default { ...@@ -238,7 +238,7 @@ export default {
if (this.type=="edit") { if (this.type=="edit") {
let data={ let data={
// "orgBch":this.$store.state.UserContext.currentOrg.departmentNumber, // "orgBch":this.$store.state.UserContext.currentOrg.departmentNumber,
"orgBch":JSON.parse(sessionStorage.getItem('currentOrg')).departmentnumber, "orgBch":JSON.parse(sessionStorage.getItem('currentOrg')).departmentNumber,
"orgNo": this.model.extkey "orgNo": this.model.extkey
} }
Api.post('/manager/pty/checkZXbanForExtkeyByEcif0930',data).then(res => { Api.post('/manager/pty/checkZXbanForExtkeyByEcif0930',data).then(res => {
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<!--新增/重置/查询按钮--> <!--新增/重置/查询按钮-->
<c-col :span="24"> <c-col :span="24">
<span style="float: left"> <span style="float: left">
<el-button type="primary" size="small" v-if="showInsertBtn" :disabled="true" @click="ptyAdd">新增</el-button> <el-button type="primary" size="small" v-if="showInsertBtn" @click="ptyAdd">新增</el-button>
</span> </span>
<span style="float: right"> <span style="float: right">
<el-button size="small" @click="handleReset">重置</el-button> <el-button size="small" @click="handleReset">重置</el-button>
...@@ -399,7 +399,7 @@ export default { ...@@ -399,7 +399,7 @@ export default {
let data={ let data={
// "orgBch":this.$store.state.UserContext.currentOrg.departmentNumber, // "orgBch":this.$store.state.UserContext.currentOrg.departmentNumber,
"orgBch":JSON.parse(sessionStorage.getItem('currentOrg')).departmentnumber, "orgBch":JSON.parse(sessionStorage.getItem('currentOrg')).departmentNumber,
"ptyInr": ptyinr "ptyInr": ptyinr
}; };
await Api.post('/manager/pty/checkZXbanForExtkeyBySSTF',data).then(res => { await Api.post('/manager/pty/checkZXbanForExtkeyBySSTF',data).then(res => {
...@@ -427,11 +427,11 @@ export default { ...@@ -427,11 +427,11 @@ export default {
let data={ let data={
// "orgBch":this.$store.state.UserContext.currentOrg.departmentNumber, // "orgBch":this.$store.state.UserContext.currentOrg.departmentNumber,
"orgBch":JSON.parse(sessionStorage.getItem('currentOrg')).departmentnumber, "orgBch":JSON.parse(sessionStorage.getItem('currentOrg')).departmentNumber,
"orgNo": extkey "orgNo": extkey
}; };
console.log("===========") console.log("===========")
console.log(sessionStorage.currentOrg.departmentnumber) console.log(JSON.parse(sessionStorage.getItem('currentOrg')).departmentNumber)
await Api.post('/manager/pty/checkZXbanForExtkeyByEcif0930',data).then(res => { await Api.post('/manager/pty/checkZXbanForExtkeyByEcif0930',data).then(res => {
if (res.respCode == SUCCESS) { if (res.respCode == SUCCESS) {
......
...@@ -489,7 +489,7 @@ export default { ...@@ -489,7 +489,7 @@ export default {
this.updateCurrentOrg(data.currentOrg); this.updateCurrentOrg(data.currentOrg);
//缓存角色 //缓存角色
this.updateCurRole(data.curRole); this.updateCurRole(data.curRole);
sessionStorage.setItem('departmentnumber', data.currentOrg.departmentnumber) sessionStorage.setItem('departmentNumber', data.currentOrg.departmentNumber)
this.updateAccbch(data.accbch); this.updateAccbch(data.accbch);
// 缓存国结usr表用户信息 // 缓存国结usr表用户信息
this.updateUsr(data.usr); this.updateUsr(data.usr);
...@@ -581,13 +581,13 @@ export default { ...@@ -581,13 +581,13 @@ export default {
let orgObj = this.header.orgList.find(item => item.id === param) let orgObj = this.header.orgList.find(item => item.id === param)
let roleObj = this.header.roleTypeList.find(item => item.key === this.header.curRole.id+"") let roleObj = this.header.roleTypeList.find(item => item.key === this.header.curRole.id+"")
this.initRoleList(orgObj); this.initRoleList(orgObj);
if(this.header.roleList && this.header.roleList.length>0 && ((orgObj.departmentnumber==="1000" && roleObj.value!=="HEAD") if(this.header.roleList && this.header.roleList.length>0 && ((orgObj.departmentNumber==="1000" && roleObj.value!=="HEAD")
||(orgObj.departmentnumber!=="1000" && roleObj.value==="HEAD"))){ ||(orgObj.departmentNumber!=="1000" && roleObj.value==="HEAD"))){
this.changeRoles(this.header.roleList[0].id); this.changeRoles(this.header.roleList[0].id);
sessionStorage.setItem('curRole', JSON.stringify(this.header.roleList[0])); sessionStorage.setItem('curRole', JSON.stringify(this.header.roleList[0]));
} }
if(this.header.roleList && this.header.roleList.length===0 ) { if(this.header.roleList && this.header.roleList.length===0 ) {
if (orgObj.departmentnumber === "1000") { if (orgObj.departmentNumber === "1000") {
this.$notify({title: "失败", message: "请先维护总行机构角色!", type: "error",}); this.$notify({title: "失败", message: "请先维护总行机构角色!", type: "error",});
} else { } else {
this.$notify({title: "失败", message: "请先维护分行机构角色!", type: "error",}); this.$notify({title: "失败", message: "请先维护分行机构角色!", type: "error",});
......
import Api from "~/service/Api" import Api from "~/service/Api"
export default { export default {
async getOrgTree() { async getOrgTree () {
this.queryLoading=true; this.queryLoading = true;
console.log(sessionStorage.getItem("currentOrg").departmentnumber, 222) console.log(sessionStorage.getItem("currentOrg").departmentNumber, 222)
let params = { let params = {
rootBranch: JSON.parse(sessionStorage.getItem("currentOrg")).departmentNumber rootBranch: JSON.parse(sessionStorage.getItem("currentOrg")).departmentNumber
} }
...@@ -14,11 +14,11 @@ export default { ...@@ -14,11 +14,11 @@ export default {
this.expandedKeys.push(item.branch); this.expandedKeys.push(item.branch);
}); });
this.queryLoading=false; this.queryLoading = false;
} }
}, },
//获取机构详情 //获取机构详情
async getJgDetails(data) { async getJgDetails (data) {
let params = { let params = {
id: data.id id: data.id
} }
......
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