This commit is contained in:
bb_pan 2025-07-07 10:32:39 +08:00
parent a78e076b19
commit 550a8e2373
2 changed files with 25 additions and 11 deletions

View File

@ -64,6 +64,7 @@
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column label="工程编号" align="center" prop="proCode" :show-overflow-tooltip="true" /> <el-table-column label="工程编号" align="center" prop="proCode" :show-overflow-tooltip="true" />
<el-table-column label="项目中心" align="center" prop="proCenter" :show-overflow-tooltip="true" />
<el-table-column label="是否匹配i8工程" align="center" prop="isMatchI8" :show-overflow-tooltip="true"> <el-table-column label="是否匹配i8工程" align="center" prop="isMatchI8" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.isMatchI8 == '匹配'" style="color: green">{{ scope.row.isMatchI8 }}</div> <div v-if="scope.row.isMatchI8 == '匹配'" style="color: green">{{ scope.row.isMatchI8 }}</div>
@ -377,13 +378,13 @@ export default {
trigger: 'blur' trigger: 'blur'
} }
], ],
proStatus: [ // proStatus: [
{ // {
required: true, // required: true,
message: '工程状态不能为空', // message: '',
trigger: 'blur' // trigger: 'blur'
} // }
], // ],
proNature: [ proNature: [
{ {
required: true, required: true,

View File

@ -235,12 +235,11 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="租赁单位类型"> <el-form-item label="租赁单位类型" prop="protocol">
<el-select <el-select
style="width: 100%" style="width: 100%"
v-model="form.protocol" v-model="form.protocol"
placeholder="请选择租赁单位类型" placeholder="请选择租赁单位类型"
clearable
:disabled="isEdits" :disabled="isEdits"
> >
<el-option label="内部单位" value="1"></el-option> <el-option label="内部单位" value="1"></el-option>
@ -585,7 +584,8 @@ export default {
unitId: null, unitId: null,
projectId: null, projectId: null,
protocol: '1', protocol: '1',
branchProIds: [] branchProIds: [],
planStartTime: ''
}, },
// //
rules: { rules: {
@ -625,7 +625,14 @@ export default {
message: '请输入正确的联系电话', message: '请输入正确的联系电话',
trigger: 'blur' trigger: 'blur'
} }
] ],
protocol: [
{
required: true,
message: '请选择租赁类型',
trigger: 'change'
}
],
}, },
// //
@ -866,6 +873,12 @@ export default {
this.isEdit = false this.isEdit = false
this.isEdits = false this.isEdits = false
this.title = '新增' this.title = '新增'
const today = new Date()
const yyyy = today.getFullYear()
const mm = String(today.getMonth() + 1).padStart(2, '0')
const dd = String(today.getDate()).padStart(2, '0')
this.form.planStartTime = `${yyyy}-${mm}-${dd}`
}, },
handleUpdate(row) { handleUpdate(row) {