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

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
:title="title"
:visible.sync="openCode"
v-if="openCode"
width="1200px"
append-to-body
>

View File

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

View File

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

View File

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