|
@@ -140,13 +140,14 @@
|
|
|
{required: true, message:'请选择项目等级(500万及500万以上为A级,500万以下为B级)', trigger:'blur'}
|
|
|
]">
|
|
|
<el-radio-group v-model="inputForm.projectLevel">
|
|
|
- <el-radio v-for="item in $dictUtils.getDictList('cw_project_level')" :label="item.value" >{{item.label}}</el-radio>
|
|
|
+ <el-radio v-for="item in $dictUtils.getDictList('cw_project_level')" :label="item.value">{{item.label}}</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
+ <div style="color: red; display: block; margin-left: 140px;">500万及500万以上为A级,500万以下为B级</div>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="项目规模(元)" prop="projectMoney"
|
|
|
- :rules="[{required: true, message:'项目规模不能为空', trigger:'blur'}
|
|
|
+ <el-form-item label="送审规模(万元)" prop="projectMoney"
|
|
|
+ :rules="[{required: true, message:'送审规模不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
<el-input-number
|
|
|
v-model="inputForm.projectMoney"
|
|
@@ -156,7 +157,7 @@
|
|
|
:max="9999999999"
|
|
|
:step="0.01"
|
|
|
:min="0"
|
|
|
- placeholder="请填写项目规模"
|
|
|
+ placeholder="请填写送审规模"
|
|
|
:controls="false"
|
|
|
clearable>
|
|
|
</el-input-number>
|
|
@@ -175,6 +176,7 @@
|
|
|
:value="item.value">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
+ <div style="color: red; display: block; ">与归档资料关联,请仔细选择</div>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<!--<el-col :span="12">
|
|
@@ -196,7 +198,6 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="项目预计时间" prop="planDate"
|
|
|
:rules="[
|
|
|
- {required: true, message:'项目预计时间不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
<el-date-picker
|
|
|
style="width: 100%"
|
|
@@ -218,9 +219,23 @@
|
|
|
]">
|
|
|
<!-- <UserSelectSignatory :readonly="true" :disabled="status === 'audit' || status === 'taskFormDetail'" :limit='1' :modelValue="inputForm.projectLeaderId" @update:modelValue='(value) => {inputForm.projectLeaderId = value}'></UserSelectSignatory>-->
|
|
|
<UserSelectForQualification :readonly="true" :disabled="method === 'view'" :limit='1' :modelValue="inputForm.projectLeaderId" @update:modelValue='(value) => {inputForm.projectLeaderId = value}'></UserSelectForQualification>
|
|
|
+ <span style="color: red">必须拥有一级造价师证书</span>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
+ <el-form-item label="工程类型" prop="engineeringType"
|
|
|
+ :rules="[
|
|
|
+ {required: true, message:'工程类型不能为空', trigger:'blur'}
|
|
|
+ ]">
|
|
|
+ <el-tree-select
|
|
|
+ v-model="inputForm.engineeringType"
|
|
|
+ :data="engineeringTypeList"
|
|
|
+ :render-after-expand="false"
|
|
|
+ style="width: 100%"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
<el-form-item label="项目经理1" prop="projectMasterId"
|
|
|
:rules="[
|
|
|
]">
|
|
@@ -416,6 +431,60 @@
|
|
|
</el-form>
|
|
|
</el-row>
|
|
|
</el-tab-pane>
|
|
|
+ <el-tab-pane name="construction">
|
|
|
+ <template v-slot:label>
|
|
|
+ <span> 施工方信息</span>
|
|
|
+ </template>
|
|
|
+ <el-row :gutter="15">
|
|
|
+ <el-button style="margin-bottom: 15px" type="primary" :disabled="status === 'audit' || status === 'taskFormDetail'" @click="openConstructionForm()" plain>
|
|
|
+ 添加施工方信息联系人
|
|
|
+ </el-button>
|
|
|
+ </el-row>
|
|
|
+ <el-row :gutter="15">
|
|
|
+ <el-form :disabled="true" style="width: 100%;">
|
|
|
+ <vxe-table
|
|
|
+ border
|
|
|
+ show-overflow
|
|
|
+ show-footer
|
|
|
+ :column-config="{resizable: true}"
|
|
|
+ ref="construction"
|
|
|
+ :key="tableKeyConstruction"
|
|
|
+ class="vxe-table-element"
|
|
|
+ :data="inputForm.cwProjectConstructionList"
|
|
|
+ keep-source
|
|
|
+ style=""
|
|
|
+ highlight-current-row
|
|
|
+ :edit-config="{trigger: 'click', mode: 'row', showStatus: false, autoClear: true, icon: '-'}"
|
|
|
+ >
|
|
|
+ <vxe-table-column min-width="306" align="center" field="name" title="施工方单位名称" :edit-render="{}">
|
|
|
+ <template v-slot:edit="scope">
|
|
|
+ <el-input v-model="scope.row.name" placeholder="施工方单位名称" clearable></el-input>
|
|
|
+ </template>
|
|
|
+ </vxe-table-column>
|
|
|
+ <vxe-table-column min-width="306" align="center" field="clientName" title="联系人姓名" :edit-render="{}">
|
|
|
+ <template v-slot:edit="scope">
|
|
|
+ <el-input v-model="scope.row.clientName" placeholder="联系人姓名" clearable></el-input>
|
|
|
+ </template>
|
|
|
+ </vxe-table-column>
|
|
|
+ <vxe-table-column min-width="307" align="center" field="contactFirst" title="联系方式1" :edit-render="{}">
|
|
|
+ <template v-slot:edit="scope">
|
|
|
+ <el-input v-model="scope.row.contactFirst" oninput="value=value.replace(/[^\d]/g,'')" placeholder="联系方式1" clearable></el-input>
|
|
|
+ </template>
|
|
|
+ </vxe-table-column>
|
|
|
+ <vxe-table-column min-width="308" align="center" field="contactSecond" title="联系方式2" :edit-render="{}">
|
|
|
+ <template v-slot:edit="scope">
|
|
|
+ <el-input v-model="scope.row.contactSecond" oninput="value=value.replace(/[^\d]/g,'')" placeholder="联系方式2" clearable></el-input>
|
|
|
+ </template>
|
|
|
+ </vxe-table-column>
|
|
|
+ <vxe-table-column align="center" title="操作" width="100">
|
|
|
+ <template v-slot="scope">
|
|
|
+ <el-button type="danger" @click="removeEvent(scope.row,scope.$rowIndex,'construction')">删除</el-button>
|
|
|
+ </template>
|
|
|
+ </vxe-table-column>
|
|
|
+ </vxe-table>
|
|
|
+ </el-form>
|
|
|
+ </el-row>
|
|
|
+ </el-tab-pane>
|
|
|
<el-tab-pane label="附件" name="files">
|
|
|
<!-- 附件-->
|
|
|
<UpLoadComponent ref="uploadComponent"></UpLoadComponent>
|
|
@@ -439,6 +508,7 @@
|
|
|
<CwProjectBusinessTypeListForm ref="cwProjectBusinessTypeListForm" @getBusinessType="getBusinessType"></CwProjectBusinessTypeListForm>
|
|
|
<ContractNameForm ref="contractNameForm"></ContractNameForm>
|
|
|
<CwClientPageForm ref="cwClientPageForm" @getProgram="getProgram"></CwClientPageForm>
|
|
|
+ <CwConstructionForm ref="cwConstructionForm" @getProgram2="getProgram2"></CwConstructionForm>
|
|
|
</div>
|
|
|
|
|
|
|
|
@@ -448,6 +518,7 @@
|
|
|
|
|
|
<script>
|
|
|
import CwClientPageForm from './CwClientPageForm'
|
|
|
+ import CwConstructionForm from './CwConstructionForm'
|
|
|
import UpLoadComponent from '@/views/common/UpLoadComponent'
|
|
|
import SelectTree from '@/components/treeSelect/treeSelect.vue'
|
|
|
import projectRecordsService from '@/api/cw/projectRecords/ProjectRecordsService'
|
|
@@ -477,6 +548,7 @@
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
+ engineeringTypeList: [],
|
|
|
showChildDialog: false,
|
|
|
typeVisible:false,
|
|
|
title: '',
|
|
@@ -507,6 +579,7 @@
|
|
|
status: '',
|
|
|
workAttachmentDtoList: [],
|
|
|
cwProjectClientInfoDTOList: [],
|
|
|
+ cwProjectConstructionList: [],
|
|
|
contractName: '',
|
|
|
contractAmount: '',
|
|
|
contractNum: '',
|
|
@@ -521,14 +594,17 @@
|
|
|
realHeader: '',
|
|
|
clientContactsName: '',
|
|
|
reportType: '',
|
|
|
- programRow: '',
|
|
|
+ engineeringType: '',
|
|
|
cwProjectClientContactDTOList: []
|
|
|
},
|
|
|
+ programRow: '',
|
|
|
+ programRow2: '',
|
|
|
keyWatch: '',
|
|
|
activeName: 'client',
|
|
|
tableKey: '',
|
|
|
tableKeyClient: '1',
|
|
|
tableKeyContact: '2',
|
|
|
+ tableKeyConstruction: '3',
|
|
|
visible: false,
|
|
|
validContactRules: {
|
|
|
name: [
|
|
@@ -589,6 +665,7 @@
|
|
|
},
|
|
|
components: {
|
|
|
CwClientPageForm,
|
|
|
+ CwConstructionForm,
|
|
|
UpLoadComponent,
|
|
|
SelectTree,
|
|
|
WorkClientChooseForm,
|
|
@@ -640,6 +717,7 @@
|
|
|
status: '',
|
|
|
workAttachmentDtoList: [],
|
|
|
cwProjectClientInfoDTOList: [],
|
|
|
+ cwProjectConstructionList: [],
|
|
|
contractName: '',
|
|
|
contractAmount: '',
|
|
|
contractNum: '',
|
|
@@ -654,8 +732,10 @@
|
|
|
realHeader: '',
|
|
|
clientContactsName: '',
|
|
|
reportType: '',
|
|
|
+ engineeringType: '',
|
|
|
cwProjectClientContactDTOList: []
|
|
|
}
|
|
|
+ this.engineeringTypeList = []
|
|
|
this.inputForm.id = id
|
|
|
this.loading = false
|
|
|
this.$nextTick(() => {
|
|
@@ -664,6 +744,7 @@
|
|
|
projectRecordsService.queryById(this.inputForm.id).then((data) => {
|
|
|
this.$refs.uploadComponent.clearUpload()
|
|
|
this.inputForm = this.recover(this.inputForm, data)
|
|
|
+ this.engineeringTypeList = data.engineeringTypeList
|
|
|
this.inputForm = JSON.parse(JSON.stringify(this.inputForm))
|
|
|
if (this.commonJS.isEmpty(this.inputForm.workAttachmentDtoList)) {
|
|
|
this.inputForm.workAttachmentDtoList = []
|
|
@@ -671,6 +752,9 @@
|
|
|
if (this.commonJS.isEmpty(this.inputForm.cwProjectClientContactDTOList)) {
|
|
|
this.inputForm.cwProjectClientContactDTOList = []
|
|
|
}
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.cwProjectConstructionList)) {
|
|
|
+ this.inputForm.cwProjectConstructionList = []
|
|
|
+ }
|
|
|
if (this.commonJS.isEmpty(this.inputForm.createDate)) {
|
|
|
this.inputForm.createDate = this.moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
|
|
}
|
|
@@ -716,25 +800,27 @@
|
|
|
throw new Error('“被服务单位”中至少填写一条信息')
|
|
|
}
|
|
|
if (this.inputForm.projectLevel === '1') {
|
|
|
- if (this.inputForm.projectMoney>= 500) {
|
|
|
+ if (this.inputForm.projectMoney < 500) {
|
|
|
this.loading = false
|
|
|
- this.$message.error('送审规模大于500万元,项目等级请选择B级!')
|
|
|
- throw new Error('送审规模大于500万元,项目等级请选择B级!')
|
|
|
+ this.$message.error('送审规模小于500万元,项目等级请选择B级!')
|
|
|
+ throw new Error('送审规模小于500万元,项目等级请选择B级!')
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
- if (this.inputForm.projectMoney < 500) {
|
|
|
+ if (this.inputForm.projectMoney >= 500) {
|
|
|
this.loading = false
|
|
|
- this.$message.error('送审规模小于500万元,项目等级请选择A级!')
|
|
|
- throw new Error('送审规模小于500万元,项目等级请选择A级!')
|
|
|
+ this.$message.error('送审规模大于500万元,项目等级请选择A级!')
|
|
|
+ throw new Error('送审规模大于500万元,项目等级请选择A级!')
|
|
|
}
|
|
|
}
|
|
|
if (this.$refs.uploadComponent.checkProgress()) {
|
|
|
this.loading = false
|
|
|
throw new Error()
|
|
|
}
|
|
|
- this.inputForm.planStartDate = this.inputForm.planDate[0]
|
|
|
- this.inputForm.planEndDate = this.inputForm.planDate[1]
|
|
|
+ if (this.commonJS.isNotEmpty(this.inputForm.planDate)) {
|
|
|
+ this.inputForm.planStartDate = this.inputForm.planDate[0]
|
|
|
+ this.inputForm.planEndDate = this.inputForm.planDate[1]
|
|
|
+ }
|
|
|
this.inputForm.workAttachmentDtoList = this.$refs.uploadComponent.getDataList()
|
|
|
if (this.commonJS.isEmpty(this.inputForm.createDate)) {
|
|
|
this.inputForm.createDate = this.moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
|
@@ -752,6 +838,7 @@
|
|
|
})
|
|
|
},
|
|
|
close () {
|
|
|
+ this.engineeringTypeList = []
|
|
|
this.inputForm = {
|
|
|
projectType: '',
|
|
|
id: '',
|
|
@@ -777,6 +864,7 @@
|
|
|
status: '',
|
|
|
workAttachmentDtoList: [],
|
|
|
cwProjectClientInfoDTOList: [],
|
|
|
+ cwProjectConstructionList: [],
|
|
|
contractName: '',
|
|
|
contractAmount: '',
|
|
|
contractNum: '',
|
|
@@ -791,6 +879,7 @@
|
|
|
realHeader: '',
|
|
|
clientContactsName: '',
|
|
|
reportType: '',
|
|
|
+ engineeringType: '',
|
|
|
cwProjectClientContactDTOList: [],
|
|
|
contactFirst: '',
|
|
|
contactSecond: '',
|
|
@@ -852,6 +941,51 @@
|
|
|
this.programRow = this.inputForm.cwProjectClientContactDTOList.length
|
|
|
}
|
|
|
},
|
|
|
+ openConstructionForm () {
|
|
|
+ this.$refs.cwConstructionForm.init()
|
|
|
+ if (this.inputForm.cwProjectConstructionList.length > 0) {
|
|
|
+ this.programRow2 = this.inputForm.cwProjectConstructionList.length
|
|
|
+ } else {
|
|
|
+ this.programRow2 = this.inputForm.cwProjectConstructionList.length
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getProgram2 (rows) {
|
|
|
+ console.log('rows', rows)
|
|
|
+ rows.forEach((item, index) => {
|
|
|
+ if (index === 0) {
|
|
|
+ let d = {
|
|
|
+ name: '',
|
|
|
+ clientName: '',
|
|
|
+ contactFirst: '',
|
|
|
+ contactSecond: '',
|
|
|
+ clientId: ''
|
|
|
+ }
|
|
|
+ this.$refs.construction.insertAt(d)
|
|
|
+ this.inputForm.cwProjectConstructionList.push(d)
|
|
|
+ this.tableKeyConstruction = Math.random()
|
|
|
+
|
|
|
+ let r = this.inputForm.cwProjectConstructionList[this.programRow2]
|
|
|
+ r.name = item.name
|
|
|
+ r.clientName = item.clientName
|
|
|
+ r.contactFirst = item.contactFirst
|
|
|
+ r.contactSecond = item.contactSecond
|
|
|
+ r.clientId = item.clientId
|
|
|
+ this.inputForm.cwProjectConstructionList[this.programRow2] = r
|
|
|
+ } else {
|
|
|
+ let r = {
|
|
|
+ name: item.name,
|
|
|
+ clientName: item.clientName,
|
|
|
+ contactFirst: item.contactFirst,
|
|
|
+ contactSecond: item.contactSecond,
|
|
|
+ clientId: item.clientId
|
|
|
+ }
|
|
|
+ this.inputForm.cwProjectConstructionList.push(r)
|
|
|
+ this.tableKeyConstruction = Math.random()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.$forceUpdate()
|
|
|
+ this.programRow2 = ''
|
|
|
+ },
|
|
|
getProgram (rows) {
|
|
|
rows.forEach((item, index) => {
|
|
|
if (index === 0) {
|
|
@@ -911,6 +1045,10 @@
|
|
|
this.$refs.contactTable.remove(row)
|
|
|
this.inputForm.cwProjectClientContactDTOList.splice(rowIndex, 1)
|
|
|
}
|
|
|
+ if (type === 'construction') {
|
|
|
+ this.$refs.construction.remove(row)
|
|
|
+ this.inputForm.cwProjectConstructionList.splice(rowIndex, 1)
|
|
|
+ }
|
|
|
},
|
|
|
// 打开客户选择组件
|
|
|
openWorkClient () {
|