|
@@ -71,11 +71,24 @@
|
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
|
<el-table-column label="工程名称" align="center" prop="enginName"/>
|
|
|
<el-table-column label="工程类型" align="center" prop="enginType"/>
|
|
|
- <el-table-column label="工程名称" align="center" prop="enginName"/>
|
|
|
+<!-- <el-table-column label="工程分类" align="center" prop="enginClassification">-->
|
|
|
+<!-- <template slot-scope="scope">-->
|
|
|
+<!-- <dict-tag :options="dict.type.engin_classification" :value="scope.row.enginClassification"/>-->
|
|
|
+<!-- </template>-->
|
|
|
+<!-- </el-table-column>-->
|
|
|
<el-table-column label="现场负责人" align="center" prop="sceneHead"/>
|
|
|
<el-table-column label="设计负责人" align="center" prop="designHead"/>
|
|
|
<el-table-column label="监理负责人" align="center" prop="supervisionHead"/>
|
|
|
- <el-table-column label="监理单位" align="center" prop="supervisionUnit"/>
|
|
|
+
|
|
|
+ <el-table-column label="用料比" align="center" prop="enginClassification" width="300px">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>
|
|
|
+ <span>PE{实际:{{scope.row.pesj}},预计:{{scope.row.pePreset}},占比:{{scope.row.peys == 0 ? 100:(scope.row.pesj / scope.row.pePreset * 100).toFixed(1)}}%}</span><br>
|
|
|
+ <span>钢材{实际:{{scope.row.gsj}},预计:{{scope.row.gcPreset}},占比:{{scope.row.gys == 0 ? 100:(scope.row.gsj / scope.row.gcPreset * 100).toFixed(1)}}%}</span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
<el-table-column label="审核状态" align="center" prop="nodeReViewStateList" width="250">
|
|
|
<template slot-scope="scope">
|
|
|
<div style="text-align:center">
|
|
@@ -84,9 +97,11 @@
|
|
|
placement="top-start"
|
|
|
trigger="hover"
|
|
|
:content="item.Type">
|
|
|
- <span slot="reference" v-if="(item.state == '1'||item.state == '2')"
|
|
|
+ <span slot="reference" v-if="item.state == '0' && item.content=='暂未审核'"
|
|
|
+ style="height: 20px;margin-right: 5px;width: 20px; border-radius: 50%; display: inline-block; background-color: #e0c794;"></span>
|
|
|
+ <span slot="reference" v-else-if="item.state == '1' "
|
|
|
style="height: 20px;margin-right: 5px;width: 20px; border-radius: 50%; display: inline-block; background-color: #30B08F;"></span>
|
|
|
- <span slot="reference" v-if="item.state == '0' "
|
|
|
+ <span slot="reference" v-else
|
|
|
style="height: 20px;margin-right: 5px;width: 20px; border-radius: 50%; display: inline-block; background-color: #C03639;"></span>
|
|
|
</el-popover>
|
|
|
</div>
|
|
@@ -214,6 +229,14 @@
|
|
|
<el-input v-model="form.supervisionPhone" placeholder="请填写监理联系电话" maxlength="13"
|
|
|
:readonly="title == '添加用料' "></el-input>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="PE管材预设" prop="pePreset">
|
|
|
+ <el-input v-model="form.pePreset" placeholder="请填写PE管材预设" maxlength="20" oninput="value=value.match(/\d+(\.\d{0,1})?/) ? value.match(/\d+(\.\d{0,1})?/)[0] : ''"
|
|
|
+ :readonly="title == '添加用料' "></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="钢材预设" prop="gcPreset">
|
|
|
+ <el-input v-model="form.gcPreset" placeholder="请填写钢材预设" maxlength="13" oninput="value=value.match(/\d+(\.\d{0,1})?/) ? value.match(/\d+(\.\d{0,1})?/)[0] : ''"
|
|
|
+ :readonly="title == '添加用料' "></el-input>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="工程类型" prop="enginType">
|
|
|
<el-select v-model="form.enginType" placeholder="请选择工程类型" style="width: 100%"
|
|
|
:disabled="title == '添加用料' ">
|
|
@@ -225,6 +248,16 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+<!-- <el-form-item label="工程分类" prop="enginClassification">-->
|
|
|
+<!-- <el-select v-model="form.enginClassification" placeholder="请选择工程分类" style="width: 100%">-->
|
|
|
+<!-- <el-option-->
|
|
|
+<!-- v-for="e in dict.type.engin_classification"-->
|
|
|
+<!-- :key="e.value"-->
|
|
|
+<!-- :label="e.label"-->
|
|
|
+<!-- :value="e.value"-->
|
|
|
+<!-- ></el-option>-->
|
|
|
+<!-- </el-select>-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="附件" v-if="form.id" style="width: 100%">
|
|
@@ -401,7 +434,7 @@ import EnginNodeInfo from "@/components/EnginNodeInfo/indexSZ.vue";
|
|
|
|
|
|
export default {
|
|
|
name: "市政",
|
|
|
- dicts: [],
|
|
|
+ dicts: ['engin_classification'],
|
|
|
components: {
|
|
|
EnginNodeInfo,
|
|
|
ConstructionDetails,
|
|
@@ -474,6 +507,8 @@ export default {
|
|
|
supervisionUnit: '', // 监理单位
|
|
|
supervisionHead: '', // 监理负责人
|
|
|
supervisionPhone: '', // 监理联系电话
|
|
|
+ pePreset: 0, // PE管材预设量
|
|
|
+ gcPreset: 0, // 钢材预设量
|
|
|
zEngineeringNodeBo: { // 工程节点
|
|
|
type: '', // 节点类型
|
|
|
zEngineeringInfoBo: { // 施工信息
|
|
@@ -922,11 +957,11 @@ export default {
|
|
|
this.form.zEngineeringNodeBo = this.zEngineeringNodeBo
|
|
|
this.form.zEngineeringNodeBo.zEngineeringInfoBo.zEngineeringMaterialBo = this.zEngineeringMaterialBo
|
|
|
}
|
|
|
- if (this.form.enginClassification && this.form.enginClassification != [] && this.form.enginClassification.length > 0) {
|
|
|
- this.form.enginClassification = this.form.enginClassification.join(',');
|
|
|
- } else {
|
|
|
- this.form.enginClassification = ""
|
|
|
- }
|
|
|
+ // if (this.form.enginClassification && this.form.enginClassification != [] && this.form.enginClassification.length > 0) {
|
|
|
+ // this.form.enginClassification = this.form.enginClassification.join(',');
|
|
|
+ // } else {
|
|
|
+ // this.form.enginClassification = ""
|
|
|
+ // }
|
|
|
|
|
|
if (this.form.id == null) {
|
|
|
addEngineeEngineeIndustry(this.form).then(res => {
|