设备新增时增加必填项校验

This commit is contained in:
BianLzhaoMin 2024-07-23 11:25:06 +08:00
parent 036ce253b3
commit 2167fc83ad
4 changed files with 50 additions and 7 deletions

View File

@ -355,6 +355,7 @@
<el-dialog <el-dialog
:title="title" :title="title"
:visible.sync="openCode" :visible.sync="openCode"
v-if="openCode"
width="1200px" width="1200px"
append-to-body append-to-body
> >

View File

@ -149,14 +149,24 @@
label="协议编号" label="协议编号"
align="center" align="center"
prop="agreementCode" prop="agreementCode"
:show-overflow-tooltip="true" show-overflow-tooltip
/> />
<el-table-column <el-table-column
label="合同编号" label="合同编号"
align="center" align="center"
prop="contractCode" prop="contractCode"
:show-overflow-tooltip="true" show-overflow-tooltip
/> />
<el-table-column
label="协议类型"
align="center"
prop="protocol"
show-overflow-tooltip
>
<template slot-scope="{ row }">
{{ row.protocol == 1 ? '内部单位' : '外部单位' }}
</template>
</el-table-column>
<!-- <el-table-column <!-- <el-table-column
label="协议类型" label="协议类型"
align="center" align="center"
@ -188,13 +198,13 @@
label="往来单位" label="往来单位"
align="center" align="center"
prop="unitName" prop="unitName"
:show-overflow-tooltip="true" show-overflow-tooltip
/> />
<el-table-column <el-table-column
label="工程名称" label="工程名称"
align="center" align="center"
prop="projectName" prop="projectName"
:show-overflow-tooltip="true" show-overflow-tooltip
/> />
<el-table-column <el-table-column
label="签订日期" label="签订日期"
@ -619,6 +629,13 @@ export default {
trigger: 'blur', trigger: 'blur',
}, },
], ],
protocol: [
{
required: true,
message: '请选择协议类型',
trigger: 'change',
},
],
}, },
peopleOpen: false, peopleOpen: false,
noticeOpen: false, noticeOpen: false,

View File

@ -123,10 +123,21 @@
<el-table-column <el-table-column
label="内部租赁价" label="内部租赁价"
align="center" align="center"
key="leasePrice"
prop="leasePrice" prop="leasePrice"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column
label="外部租赁价"
align="center"
prop="rentPrice"
show-overflow-tooltip
/>
<el-table-column
label="原值"
align="center"
prop="buyPrice"
show-overflow-tooltip
/>
<!-- <el-table-column <!-- <el-table-column
label="原值" label="原值"
align="center" align="center"
@ -739,6 +750,20 @@ export default {
trigger: 'blur', trigger: 'blur',
}, },
], ],
rentPrice: [
{
required: true,
message: '外部租赁价格不能为空',
trigger: 'blur',
},
],
buyPrice: [
{
required: true,
message: '请输入原值',
trigger: 'blur',
},
],
keeperUserId: [ keeperUserId: [
{ {
required: true, required: true,
@ -796,7 +821,7 @@ export default {
// //
columnList: [ columnList: [
{ label: '计量单位', content: 'unitName' }, { label: '计量单位', content: 'unitName' },
{ label: '原值', content: 'buyPrice' }, // { label: '', content: 'buyPrice' },
{ label: '丢失赔偿', content: 'payPrice' }, { label: '丢失赔偿', content: 'payPrice' },
{ label: '图片', content: 'photoUrl', v_slot: 'img' }, { label: '图片', content: 'photoUrl', v_slot: 'img' },
{ label: '文档资料', content: 'documentName', v_slot: 'doc' }, { label: '文档资料', content: 'documentName', v_slot: 'doc' },

View File

@ -159,7 +159,7 @@
<template v-else> - </template> --> <template v-else> - </template> -->
<el-button <el-button
v-if="row.status != 2" v-if="row.status != 0 && row.status != 2"
type="text" type="text"
@click="handleQueryFile(row)" @click="handleQueryFile(row)"
>查看附件</el-button >查看附件</el-button