This commit is contained in:
parent
50781379d3
commit
b20ecdf6d3
|
@ -43,12 +43,12 @@ export function deleteData(ids) {
|
||||||
// 查询
|
// 查询
|
||||||
export function treelist(planType,speclevel) {
|
export function treelist(planType,speclevel) {
|
||||||
return request({
|
return request({
|
||||||
url: '/technicalPlan/treeCapacityEquipment/'+planType,
|
url: '/technicalPlan/treeCapacityEquipment',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
baseURL: "/plan-api",
|
baseURL: "/plan-api",
|
||||||
params: {
|
params: {
|
||||||
planType: planType,
|
planType: planType,
|
||||||
speclevel:speclevel
|
specLevel:speclevel
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="类型选择">
|
<el-form-item label="类型选择">
|
||||||
<el-radio-group v-model="form.speclevel">
|
<el-radio-group v-model="form.specLevel">
|
||||||
<el-radio
|
<el-radio
|
||||||
size="large"
|
size="large"
|
||||||
v-for="item in spec_level"
|
v-for="item in plan_spel_level"
|
||||||
v-key="item.value"
|
v-key="item.value"
|
||||||
:label="item.value"
|
:label="item.value"
|
||||||
>{{ item.label }}</el-radio
|
>{{ item.label }}</el-radio
|
||||||
|
@ -370,11 +370,11 @@ import {
|
||||||
multipleConsumption,
|
multipleConsumption,
|
||||||
} from "@/api/renovation/scheme/equipmentEnergyConsumption";
|
} from "@/api/renovation/scheme/equipmentEnergyConsumption";
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
const { coliform_removal, technical_plan_type, packing_method,spec_level } = proxy.useDict(
|
const { coliform_removal, technical_plan_type, packing_method,plan_spel_level } = proxy.useDict(
|
||||||
"coliform_removal",
|
"coliform_removal",
|
||||||
"technical_plan_type",
|
"technical_plan_type",
|
||||||
"packing_method",
|
"packing_method",
|
||||||
"spec_level"
|
"plan_spel_level"
|
||||||
);
|
);
|
||||||
import {
|
import {
|
||||||
list as equipmentList,
|
list as equipmentList,
|
||||||
|
@ -419,7 +419,7 @@ watch(
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
watch(
|
watch(
|
||||||
() => form.value.speclevel,
|
() => form.value.specLevel,
|
||||||
(newval, oldval) => {
|
(newval, oldval) => {
|
||||||
if(newval){
|
if(newval){
|
||||||
gettreelist(null,newval);
|
gettreelist(null,newval);
|
||||||
|
@ -439,6 +439,10 @@ const inletlist = ref([
|
||||||
name: "bod",
|
name: "bod",
|
||||||
value: "0~400",
|
value: "0~400",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "ss",
|
||||||
|
value: "100~200",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "nh3",
|
name: "nh3",
|
||||||
value: "30~50",
|
value: "30~50",
|
||||||
|
@ -451,10 +455,7 @@ const inletlist = ref([
|
||||||
name: "tp",
|
name: "tp",
|
||||||
value: "2.5~5.0",
|
value: "2.5~5.0",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: "ss",
|
|
||||||
value: "100~200",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: "ph",
|
name: "ph",
|
||||||
value: "6~9",
|
value: "6~9",
|
||||||
|
@ -491,7 +492,7 @@ function watchData() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
gettreelist(newForm.planType,newForm.speclevel);
|
gettreelist(newForm.planType,newForm.specLevel);
|
||||||
form.value.equipmentParamId = newForm.equipmentDetail.map((item) => {
|
form.value.equipmentParamId = newForm.equipmentDetail.map((item) => {
|
||||||
return `${item.capacityId}-${item.equipmentId}`;
|
return `${item.capacityId}-${item.equipmentId}`;
|
||||||
});
|
});
|
||||||
|
@ -503,7 +504,7 @@ function watchData() {
|
||||||
// changeSelect(form.value.equipmentParamId);
|
// changeSelect(form.value.equipmentParamId);
|
||||||
form.value.coliformRemoval = newForm.coliformRemoval;
|
form.value.coliformRemoval = newForm.coliformRemoval;
|
||||||
form.value.packingMethod = newForm.packingMethod;
|
form.value.packingMethod = newForm.packingMethod;
|
||||||
form.value.speclevel = newForm.speclevel
|
form.value.specLevel = newForm.specLevel
|
||||||
form.value.na2co3 = newForm.na2co3;
|
form.value.na2co3 = newForm.na2co3;
|
||||||
form.value.pac = newForm.pac;
|
form.value.pac = newForm.pac;
|
||||||
form.value.naclo = newForm.naclo;
|
form.value.naclo = newForm.naclo;
|
||||||
|
@ -601,7 +602,7 @@ function rest() {
|
||||||
waterQualityStandardId: null,
|
waterQualityStandardId: null,
|
||||||
coliformRemoval: null,
|
coliformRemoval: null,
|
||||||
equipmentParamId: null,
|
equipmentParamId: null,
|
||||||
speclevel:0
|
specLevel:0
|
||||||
|
|
||||||
};
|
};
|
||||||
cost.value={
|
cost.value={
|
||||||
|
@ -629,6 +630,7 @@ function handleSubmit() {
|
||||||
return {
|
return {
|
||||||
capacityId: data[0],
|
capacityId: data[0],
|
||||||
equipmentId: data[1],
|
equipmentId: data[1],
|
||||||
|
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
debugger
|
debugger
|
||||||
|
@ -641,7 +643,9 @@ defineExpose({
|
||||||
});
|
});
|
||||||
async function gettreelist(type,level) {
|
async function gettreelist(type,level) {
|
||||||
type =type||props.planType
|
type =type||props.planType
|
||||||
level = level||form.value.speclevel
|
level = level||form.value.specLevel
|
||||||
|
debugger
|
||||||
|
if((type!=""&&type!=null&&type!=undefined)&&(level!=""&&level!=null&&level!=undefined)){
|
||||||
let res = await treelist(type,level);
|
let res = await treelist(type,level);
|
||||||
let data = res.data;
|
let data = res.data;
|
||||||
data.forEach((element) => {
|
data.forEach((element) => {
|
||||||
|
@ -651,6 +655,9 @@ async function gettreelist(type,level) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
treeListData.value = data;
|
treeListData.value = data;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
|
@ -665,6 +672,8 @@ watch(
|
||||||
return {
|
return {
|
||||||
equipmentId: item.split("-")[1],
|
equipmentId: item.split("-")[1],
|
||||||
capacityId: item.split("-")[0],
|
capacityId: item.split("-")[0],
|
||||||
|
specLevel:form.value.specLevel
|
||||||
|
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
multipleConsumption(data).then((res) => {
|
multipleConsumption(data).then((res) => {
|
||||||
|
@ -685,4 +694,7 @@ onMounted(() => {
|
||||||
padding: 0 0 4px;
|
padding: 0 0 4px;
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
}
|
}
|
||||||
|
.cell-item{
|
||||||
|
white-space: pre;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in spec_level"
|
v-for="dict in plan_spel_level "
|
||||||
:key="dict.value"
|
:key="dict.value"
|
||||||
:label="dict.label"
|
:label="dict.label"
|
||||||
:value="dict.value"
|
:value="dict.value"
|
||||||
|
@ -196,12 +196,8 @@ import { list, postData, putData
|
||||||
,deleteData,updateComponentRunTime}
|
,deleteData,updateComponentRunTime}
|
||||||
from "@/api/renovation/scheme/equipmentEnergyConsumption";
|
from "@/api/renovation/scheme/equipmentEnergyConsumption";
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
const { spec_level
|
const { plan_spel_level
|
||||||
} = proxy.useDict(
|
} = proxy.useDict("plan_spel_level");
|
||||||
|
|
||||||
|
|
||||||
"spec_level"
|
|
||||||
);
|
|
||||||
const showDetail = ref(false);
|
const showDetail = ref(false);
|
||||||
const backCall = () => {
|
const backCall = () => {
|
||||||
if (!document.startViewTransition) {
|
if (!document.startViewTransition) {
|
||||||
|
|
|
@ -1,17 +1,32 @@
|
||||||
<template>
|
<template>
|
||||||
<el-form :model="form" ref="userRef" label-width="100px">
|
<el-form :model="form" ref="userRef" label-width="100px">
|
||||||
<el-row>
|
<el-row>
|
||||||
|
<el-col :span="24">
|
||||||
<el-form-item label="类型选择">
|
<el-form-item label="类型选择">
|
||||||
<el-radio-group v-model="form.speclevel">
|
<el-radio-group v-model="form.specLevel">
|
||||||
<el-radio
|
<el-radio
|
||||||
size="large"
|
size="large"
|
||||||
v-for="item in spec_level"
|
v-for="item in plan_spec_level_foreign"
|
||||||
v-key="item.value"
|
v-key="item.value"
|
||||||
:label="item.value"
|
:label="item.value"
|
||||||
>{{ item.label }}</el-radio
|
>{{ item.label }}</el-radio
|
||||||
>
|
>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-form-item label="电压选择">
|
||||||
|
<el-radio-group v-model="form.voltage">
|
||||||
|
<el-radio
|
||||||
|
size="large"
|
||||||
|
v-for="item in regional_voltage"
|
||||||
|
v-key="item.value"
|
||||||
|
:label="item.value"
|
||||||
|
>{{ item.label }}</el-radio
|
||||||
|
>
|
||||||
|
</el-radio-group>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="进水指标" prop="phonenumber">
|
<el-form-item label="进水指标" prop="phonenumber">
|
||||||
<el-descriptions
|
<el-descriptions
|
||||||
|
@ -211,12 +226,13 @@ import { list } from "@/api/renovation/technicalplan/capacity";
|
||||||
import { list as equipmentEnergyConsumptionList,multipleConsumption }
|
import { list as equipmentEnergyConsumptionList,multipleConsumption }
|
||||||
from "@/api/renovation/technicalplan/equipmentEnergyConsumption";
|
from "@/api/renovation/technicalplan/equipmentEnergyConsumption";
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
const { coliform_removal, technical_plan_type,packing_method,equipment_component_system,spec_level } =
|
const { coliform_removal, technical_plan_type,packing_method,regional_voltage,equipment_component_system,plan_spec_level_foreign } =
|
||||||
proxy.useDict(
|
proxy.useDict(
|
||||||
"coliform_removal",
|
"coliform_removal",
|
||||||
"technical_plan_type","packing_method",
|
"technical_plan_type","packing_method",
|
||||||
"equipment_component_system",
|
"equipment_component_system",
|
||||||
"spec_level"
|
"plan_spec_level_foreign",
|
||||||
|
"regional_voltage"
|
||||||
);
|
);
|
||||||
// import {
|
// import {
|
||||||
// list as equipmentList,
|
// list as equipmentList,
|
||||||
|
@ -276,6 +292,10 @@ const inletlist = ref([
|
||||||
name: "bod",
|
name: "bod",
|
||||||
value: "0~400",
|
value: "0~400",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "ss",
|
||||||
|
value: "100~200",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "nh3",
|
name: "nh3",
|
||||||
value: "30~50",
|
value: "30~50",
|
||||||
|
@ -288,10 +308,7 @@ const inletlist = ref([
|
||||||
name: "tp",
|
name: "tp",
|
||||||
value: "2.5~5.0",
|
value: "2.5~5.0",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: "ss",
|
|
||||||
value: "100~200",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: "ph",
|
name: "ph",
|
||||||
value: "6~9",
|
value: "6~9",
|
||||||
|
@ -330,6 +347,7 @@ function watchData(){
|
||||||
|
|
||||||
|
|
||||||
form.value.speclevel=newForm.speclevel
|
form.value.speclevel=newForm.speclevel
|
||||||
|
form.value.voltage = newForm.voltage
|
||||||
form.value.processCapacity=newForm.processCapacity
|
form.value.processCapacity=newForm.processCapacity
|
||||||
cost.value=newForm?.cost||{
|
cost.value=newForm?.cost||{
|
||||||
laborCost:'',
|
laborCost:'',
|
||||||
|
@ -520,4 +538,7 @@ onMounted(() => {
|
||||||
padding: 0 0 4px;
|
padding: 0 0 4px;
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
}
|
}
|
||||||
|
.cell-item{
|
||||||
|
white-space: pre;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -109,6 +109,15 @@
|
||||||
label-width="100px"
|
label-width="100px"
|
||||||
>
|
>
|
||||||
<el-row>
|
<el-row>
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-form-item label="地区名称" >
|
||||||
|
<el-input
|
||||||
|
v-model="form.country"
|
||||||
|
placeholder="地区名称"
|
||||||
|
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="公司名称" >
|
<el-form-item label="公司名称" >
|
||||||
<el-input
|
<el-input
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue