修改装备租赁价格可以为编辑状态

This commit is contained in:
BianLzhaoMin 2025-07-03 09:13:04 +08:00
parent 3d4d6bff07
commit 8afb989c93
1 changed files with 29 additions and 28 deletions

View File

@ -41,7 +41,7 @@ const batchAddData: any = ref([]) // 批量新增
const batchAddColumn: any = ref([ const batchAddColumn: any = ref([
{ label: '装备名称', prop: 'deviceName' }, { label: '装备名称', prop: 'deviceName' },
{ label: '装备型号', prop: 'typeName' }, { label: '装备型号', prop: 'typeName' },
{ label: '上传人', prop: 'uploadUser' }, { label: '上传人', prop: 'uploadUser' },
{ label: '上传时间', prop: 'uploadTime' }, { label: '上传时间', prop: 'uploadTime' },
]) ])
@ -174,7 +174,7 @@ const equipmentDeployment = (row: any) => {
deviceName: '', deviceName: '',
deviceTypeList: [], deviceTypeList: [],
deviceCount: 1, deviceCount: 1,
originaValue:'', originaValue: '',
unitName: '', unitName: '',
code: '', code: '',
brand: '', brand: '',
@ -271,7 +271,7 @@ const getDetailData = async (row: any) => {
deviceName, deviceName,
// deviceTypeList, // deviceTypeList,
deviceCount, deviceCount,
originaValue, originaValue,
unitName, unitName,
code, code,
brand, brand,
@ -298,7 +298,7 @@ const getDetailData = async (row: any) => {
Object.assign(addAndEditForm, { Object.assign(addAndEditForm, {
deviceName, deviceName,
deviceCount, deviceCount,
originaValue, originaValue,
unitName, unitName,
code, code,
brand, brand,
@ -517,7 +517,7 @@ const equipmentDeploymentParams: any = ref({
deviceName: '', deviceName: '',
deviceTypeList: [], deviceTypeList: [],
deviceCount: 1, deviceCount: 1,
originaValue:'', originaValue: '',
unitName: '', unitName: '',
code: '', code: '',
brand: '', brand: '',
@ -605,12 +605,13 @@ const dialogFormVisibleSettlein: any = ref(false)
const ruleFormRef: any = ref(null) const ruleFormRef: any = ref(null)
// //
const equipRules = ref({ const equipRules = ref({
originaValue:[{ originaValue: [
required: true, {
message: '请输入原值', required: true,
trigger: 'blur', message: '请输入原值',
}, trigger: 'blur',
], },
],
deviceName: [ deviceName: [
{ {
required: true, required: true,
@ -1102,7 +1103,7 @@ const addAndEditForm = reactive<any>({
deviceName: '', deviceName: '',
deviceTypeList: [], deviceTypeList: [],
deviceCount: 1, deviceCount: 1,
originaValue:'', originaValue: '',
unitName: '', unitName: '',
code: '', code: '',
brand: '', brand: '',
@ -1342,7 +1343,7 @@ const onDialogClose = () => {
deviceName: '', deviceName: '',
deviceTypeList: [], deviceTypeList: [],
deviceCount: 1, deviceCount: 1,
originaValue:'', originaValue: '',
unitName: '', unitName: '',
code: '', code: '',
brand: '', brand: '',
@ -1846,13 +1847,13 @@ const handleDel = (index: any) => {
<el-form-item label="租赁价格(天/元)" prop="dayLeasePrice"> <el-form-item label="租赁价格(天/元)" prop="dayLeasePrice">
<el-input <el-input
@input=" @input="
(v) => (addAndEditForm.dayLeasePrice = v.replace(/[^\d.]/g, '')) (v:any) => (addAndEditForm.dayLeasePrice = v.replace(/[^\d.]/g, ''))
" "
v-model="addAndEditForm.dayLeasePrice"
placeholder="请输入租赁价格"
clearable clearable
maxlength="20" maxlength="20"
:disabled="isDisabled || isEditForm" placeholder="请输入租赁价格"
v-model="addAndEditForm.dayLeasePrice"
:disabled="settleinTitle == '新增详情'"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -1891,17 +1892,17 @@ const handleDel = (index: any) => {
:disabled="typeDisabled" :disabled="typeDisabled"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="原值:" prop="originaValue"> <el-form-item label="原值:" prop="originaValue">
<el-input <el-input
v-model="addAndEditForm.originaValue" v-model="addAndEditForm.originaValue"
placeholder="请输入原值" placeholder="请输入原值"
clearable clearable
maxlength="11" maxlength="11"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<!-- 1.13 需求变动要求隐藏 --> <!-- 1.13 需求变动要求隐藏 -->
<!-- <el-row :gutter="20"> <!-- <el-row :gutter="20">