1、口门门禁管理系统--->长期车辆进港管理模块--->分公司车辆信息---> 适应相关方接口调用做代码调整

pet
fufeifei 2024-12-04 10:46:54 +08:00
parent c7578be3be
commit 5055badbcc
1 changed files with 31 additions and 19 deletions

View File

@ -263,6 +263,7 @@ export default {
loginUserName: '',
loginDepartmentId: '',
loginDepartmentName: '',
corpInfoId: '', // id
listQuery: {
page: 1,
limit: 20
@ -363,10 +364,10 @@ export default {
}
},
created() {
// this.getDict() //
this.getPageList() //
this.getDepartmentTreeData() //
this.getLoginUserInfo() //
// this.getDict() //
this.getPageList() //
},
methods: {
getRowKey(row) {
@ -388,20 +389,21 @@ export default {
}
},
getLoginUserInfo() { //
return new Promise((resolve) => {
requestFN(
'/user/goEditMyInfo',
{}
).then((data) => {
this.loginUserId = data.pd.USER_ID
this.loginUserName = data.pd.NAME
this.loginDepartmentId = data.pd.DEPARTMENT_ID
this.loginDepartmentName = data.pd.deptName
resolve('ok')
}).catch((e) => {
})
// return new Promise((resolve) => {
requestFN(
'/user/goEditMyInfo',
{}
).then((data) => {
console.info(data.pd)
this.loginUserId = data.pd.USER_ID
this.loginUserName = data.pd.NAME
this.loginDepartmentId = data.pd.DEPARTMENT_ID
this.loginDepartmentName = data.pd.deptName
this.corpInfoId = data.pd.CORPINFO_ID
// resolve('ok')
}).catch((e) => {
})
// })
},
//
getQuery() {
@ -414,12 +416,16 @@ export default {
},
//
getPageList() {
console.info('输出登陆用户的信息')
console.info(JSON.parse(sessionStorage.getItem('user')))
this.roleName = ''
this.listLoading = true
requestFN(
'vehiclemessage/getPageList?showCount=' + this.listQuery.limit + '&currentPage=' + this.listQuery.page,
{
...this.searchFrom
...this.searchFrom,
'CORPINFO_ID': JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID,
'loginUserId': JSON.parse(sessionStorage.getItem('user')).USER_ID
}
).then((data) => {
this.listLoading = false
@ -524,7 +530,9 @@ export default {
requestFN(
'vehiclemessage/addVehicleMessage',
{
...this.addForm
...this.addForm,
'CORPINFO_ID': this.corpInfoId,
'loginUserId': this.loginUserId
}
).then((data) => {
if (data.result === 'fail') {
@ -638,7 +646,9 @@ export default {
requestFN(
'vehiclemessage/updateVehicleMessage',
{
...this.editForm
...this.editForm,
'CORPINFO_ID': JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID,
'loginUserId': JSON.parse(sessionStorage.getItem('user')).USER_ID
}
).then((data) => {
if (data.result === 'success') {
@ -678,7 +688,9 @@ export default {
{
VEHICLE_ID: id,
USER_ID: USER_ID,
EMPLOYEE_VEHICLE_USER_ID: EMPLOYEE_VEHICLE_USER_ID
EMPLOYEE_VEHICLE_USER_ID: EMPLOYEE_VEHICLE_USER_ID,
'CORPINFO_ID': JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID,
'loginUserId': JSON.parse(sessionStorage.getItem('user')).USER_ID
}
).then((data) => {
if (data.result === 'success') {