1、口门门禁管理系统--->长期车辆进港管理模块--->分公司车辆信息---> 为适应相关方的接口调用,调整部分逻辑
parent
f9b7ec4f7e
commit
d2e121eaec
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue