装备率功能开发

This commit is contained in:
lizhenhua 2025-07-01 08:50:19 +08:00
parent 431278f5fa
commit 19e4fe9c51
4 changed files with 43 additions and 2 deletions

View File

@ -91,6 +91,12 @@ const setActiveCompanyName = () => {
const placeholderText = ref('搜索设备关键词')
//
//
const handlerForget = () => {
window.location.href = 'http://sgwpdm.ah.sgcc.com.cn/iws/cas/pre-forget-password'
}
// 退
const handlerLogout = () => {
ElMessageBox.confirm('是否确定退出登录', {
@ -531,6 +537,7 @@ onUnmounted(() => {
注册
</a> -->
<a v-else @click="handlerLogout">退出登录</a>
<a @click="handlerForget">忘记密码</a>
</div>
</div>
</div>

View File

@ -328,6 +328,17 @@ const routes: Array<RouteRecordRaw> = [
isLogin: true
},
},
{
path: '/rent-facility',
name: 'rent-facility',
component: () => import('views/user/rent-facility/index.vue'),
meta: {
title: '自有装备管理',
keepAlive: true,
AuthFlag: false,
isLogin: true
},
},
{
path: '/rent-manage',
name: 'rent-manage',

View File

@ -174,6 +174,7 @@ const equipmentDeployment = (row: any) => {
deviceName: '',
deviceTypeList: [],
deviceCount: 1,
originaValue:'',
unitName: '',
code: '',
brand: '',
@ -270,6 +271,7 @@ const getDetailData = async (row: any) => {
deviceName,
// deviceTypeList,
deviceCount,
originaValue,
unitName,
code,
brand,
@ -296,6 +298,7 @@ const getDetailData = async (row: any) => {
Object.assign(addAndEditForm, {
deviceName,
deviceCount,
originaValue,
unitName,
code,
brand,
@ -514,6 +517,7 @@ const equipmentDeploymentParams: any = ref({
deviceName: '',
deviceTypeList: [],
deviceCount: 1,
originaValue:'',
unitName: '',
code: '',
brand: '',
@ -601,6 +605,12 @@ const dialogFormVisibleSettlein: any = ref(false)
const ruleFormRef: any = ref(null)
//
const equipRules = ref({
originaValue:[{
required: true,
message: '请输入原值',
trigger: 'blur',
},
],
deviceName: [
{
required: true,
@ -1092,6 +1102,7 @@ const addAndEditForm = reactive<any>({
deviceName: '',
deviceTypeList: [],
deviceCount: 1,
originaValue:'',
unitName: '',
code: '',
brand: '',
@ -1331,6 +1342,7 @@ const onDialogClose = () => {
deviceName: '',
deviceTypeList: [],
deviceCount: 1,
originaValue:'',
unitName: '',
code: '',
brand: '',
@ -1879,7 +1891,17 @@ const handleDel = (index: any) => {
:disabled="typeDisabled"
/>
</el-form-item>
</el-col>
</el-col>
<el-col :span="12">
<el-form-item label="原值:" prop="originaValue">
<el-input
v-model="addAndEditForm.originaValue"
placeholder="请输入原值"
clearable
maxlength="11"
/>
</el-form-item>
</el-col>
</el-row>
<!-- 1.13 需求变动要求隐藏 -->
<!-- <el-row :gutter="20">

View File

@ -61,7 +61,8 @@ const lessorMenus: MenuItem[] = [
{ title: '合同管理', name: 'contract-manage', permission: ['1'] },
{ title: '自有装备管理', name: 'owned-manage', permission: ['1'] },
{ title: '外租装备管理', name: 'rent-manage', permission: ['1'] },
{ title: '后台管理', name: 'admin', permission: ['1'] },
{ title: '装备率', name: 'rent-facility', permission: ['1'] },
{ title: '后台管理', name: 'admin', permission: ['1'] },
]
// ---
const lesseeMenus: MenuItem[] = [