1、口门门禁管理系统--->长期车辆进港管理模块--->分公司车辆信息---> 为适应相关方的接口调用,调整部分逻辑

pet
fufeifei 2024-12-05 17:55:43 +08:00
parent f9b7ec4f7e
commit d2e121eaec
1 changed files with 21 additions and 12 deletions

View File

@ -169,17 +169,17 @@
<el-input v-model="editForm.LICENCE_NO" :autosize="{ minRows: 1}" type="text" maxlength="300" placeholder="这里输入车牌号..." @blur="goCheckLicenceNoUpdate()"/>
</el-form-item>
<el-form-item label="车牌类型" prop="LICENCE_TYPE">
<el-select :value="editForm.LICENCE_TYPE" clearable placeholder="请选择" @visible-change="$forceUpdate()">
<el-select v-model="editForm.LICENCE_TYPE" clearable placeholder="请选择" @visible-change="$forceUpdate()">
<el-option v-for="item in licenceTypeList" :key="item.ID" :label="item.NAME" :value="item.ID" />
</el-select>
</el-form-item>
<el-form-item label="车辆类型" prop="VEHICLE_TYPE">
<el-select :value="editForm.VEHICLE_TYPE" clearable placeholder="请选择" @visible-change="$forceUpdate()">
<el-select v-model="editForm.VEHICLE_TYPE" clearable placeholder="请选择" @visible-change="$forceUpdate()">
<el-option v-for="item in vehicleTypeList" :key="item.ID" :label="item.NAME" :value="item.ID" />
</el-select>
</el-form-item>
<el-form-item label="车辆所属类型" prop="VEHICLE_BELONG_TYPE">
<el-select :value="editForm.VEHICLE_BELONG_TYPE" clearable placeholder="请选择" @visible-change="$forceUpdate()">
<el-select v-model="editForm.VEHICLE_BELONG_TYPE" clearable placeholder="请选择" @visible-change="$forceUpdate()">
<el-option v-for="item in vehicleBelongTypeList" :key="item.ID" :label="item.NAME" :value="item.ID" />
</el-select>
</el-form-item>
@ -418,8 +418,6 @@ export default {
},
//
getPageList() {
console.info('输出登陆用户的信息')
console.info(JSON.parse(sessionStorage.getItem('user')))
this.roleName = ''
this.listLoading = true
requestFN(
@ -428,7 +426,7 @@ export default {
...this.searchFrom,
'CORPINFO_ID': this.loginUserInfo.CORPINFO_ID,
'loginUserId': this.loginUserInfo.USER_ID,
'roleName': this.loginUserInfo.ROLENAME
'roleName': this.loginUserInfo.ROLE_NAME
}
).then((data) => {
this.listLoading = false
@ -607,6 +605,7 @@ export default {
VEHICLE_DEPARTMENT_ID: '', //
VEHICLE_BELONG_TYPE: '', //
USER_ID: '', //
USER_NAME: '', //
EMPLOYEE_VEHICLE_USER_ID: '', //
LICENCE_TYPE: null, //
VEHICLE_TYPE: null //
@ -622,7 +621,7 @@ export default {
if (data.result === 'success') {
this.detailForm.LICENCE_NO = data.pd.LICENCE_NO //
this.detailForm.VEHICLE_DEPARTMENT_ID = data.pd.DEPARTMENT_NAME //
this.detailForm.USER_ID = data.pd.NAME //
this.detailForm.USER_ID = data.pd.USER_NAME //
this.detailForm.LICENCE_TYPE = this.translateLicenceType(data.pd.LICENCE_TYPE) //
this.detailForm.VEHICLE_TYPE = this.translateVehicleType(data.pd.VEHICLE_TYPE) //
this.detailForm.VEHICLE_BELONG_TYPE = data.pd.VEHICLE_BELONG_TYPE === undefined ? '' : this.vehicleBelongType(data.pd.VEHICLE_BELONG_TYPE)
@ -635,8 +634,18 @@ export default {
}).catch((e) => {
})
},
judgeEdit() {
if (this.editForm.VEHICLE_BELONG_TYPE === '0') { // ()
this.editForm.EMPLOYEE_VEHICLE_USER_ID = this.editForm.USER_ID // id
this.editForm.EMPLOYEE_VEHICLE_USER_NAME = this.editForm.USER_NAME //
} else { //
this.editForm.EMPLOYEE_VEHICLE_USER_ID = '' // id
this.editForm.EMPLOYEE_VEHICLE_USER_NAME = '' //
}
},
//
editDialogConfirmBtn() {
this.judgeEdit()
this.$refs.editForm.validate(valid => {
if (valid) {
const loading = this.$loading({
@ -652,7 +661,7 @@ export default {
...this.editForm,
'CORPINFO_ID': this.loginUserInfo.CORPINFO_ID,
'loginUserId': this.loginUserInfo.USER_ID,
'roleName': this.loginUserInfo.ROLENAME
'roleName': this.loginUserInfo.ROLE_NAME
}
).then((data) => {
if (data.result === 'success') {
@ -690,12 +699,12 @@ export default {
requestFN(
'vehiclemessage/deleteVehicleMessage',
{
VEHICLE_ID: id,
USER_ID: USER_ID,
EMPLOYEE_VEHICLE_USER_ID: EMPLOYEE_VEHICLE_USER_ID,
'VEHICLE_ID': id,
'USER_ID': USER_ID,
'EMPLOYEE_VEHICLE_USER_ID': EMPLOYEE_VEHICLE_USER_ID,
'CORPINFO_ID': this.loginUserInfo.CORPINFO_ID,
'loginUserId': this.loginUserInfo.USER_ID,
'roleName': this.loginUserInfo.ROLENAME
'roleName': this.loginUserInfo.ROLE_NAME
}
).then((data) => {
if (data.result === 'success') {