最新同步
This commit is contained in:
parent
12ca363fe6
commit
50781379d3
|
@ -4,12 +4,18 @@
|
|||
"description": "力鼎后台管理系统",
|
||||
"author": "LionLi",
|
||||
"license": "MIT",
|
||||
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"build:prod": "vite build && node ./built.js",
|
||||
"built": "node ./built.js",
|
||||
"preview": "vite preview"
|
||||
"preview": "vite preview",
|
||||
"提示":{
|
||||
"打包上传服务器": "npm run build:prod",
|
||||
"打包": "npm run build",
|
||||
"开发环境fang": "npm run dev"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -40,3 +40,17 @@ export function deleteData(ids) {
|
|||
})
|
||||
}
|
||||
|
||||
// 查询
|
||||
export function treelist(planType,speclevel) {
|
||||
return request({
|
||||
url: '/technicalPlan/treeCapacityEquipment/'+planType,
|
||||
method: 'get',
|
||||
baseURL: "/plan-api",
|
||||
params: {
|
||||
planType: planType,
|
||||
speclevel:speclevel
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,8 @@ export function list(query) {
|
|||
url: '/technicalPlan/equipmentEnergyConsumption/list',
|
||||
method: 'get',
|
||||
baseURL: "/plan-api",
|
||||
params: query
|
||||
params: query,
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -48,3 +49,14 @@ export function updateComponentRunTime(data) {
|
|||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 查询
|
||||
export function multipleConsumption(data) {
|
||||
return request({
|
||||
url: '/technicalPlan/equipmentEnergyConsumption/multipleConsumption',
|
||||
method: 'post',
|
||||
baseURL: "/plan-api",
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
const a =1
|
|
@ -1 +0,0 @@
|
|||
export const a =2
|
|
@ -0,0 +1,42 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询
|
||||
export function list(query) {
|
||||
return request({
|
||||
url: '/waterQualityRegion/list',
|
||||
method: 'get',
|
||||
baseURL: "/plan-api",
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 新增
|
||||
export function postData(data) {
|
||||
return request({
|
||||
url: '/waterQualityRegion',
|
||||
baseURL: "/plan-api",
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改
|
||||
export function putData(data) {
|
||||
return request({
|
||||
url: '/waterQualityRegion',
|
||||
baseURL: "/plan-api",
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function deleteData(regionIds) {
|
||||
return request({
|
||||
url: '/waterQualityRegion/'+regionIds,
|
||||
baseURL: "/plan-api",
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询
|
||||
export function list(query) {
|
||||
return request({
|
||||
url: '/technicalPlanForeign/capacity/list',
|
||||
method: 'get',
|
||||
baseURL: "/plan-api",
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 新增
|
||||
export function postData(data) {
|
||||
return request({
|
||||
url: '/technicalPlanForeign/capacity',
|
||||
baseURL: "/plan-api",
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改
|
||||
export function putData(data) {
|
||||
return request({
|
||||
url: '/technicalPlanForeign/capacity',
|
||||
baseURL: "/plan-api",
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function deleteData(planIds) {
|
||||
return request({
|
||||
url: '/technicalPlanForeign/capacity/'+planIds,
|
||||
baseURL: "/plan-api",
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,58 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询
|
||||
export function list(query) {
|
||||
return request({
|
||||
url: '/waterQualityStandardForeign/list',
|
||||
method: 'get',
|
||||
baseURL: "/plan-api",
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 新增
|
||||
export function postData(data) {
|
||||
return request({
|
||||
url: '/waterQualityStandardForeign',
|
||||
baseURL: "/plan-api",
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改
|
||||
export function putData(data) {
|
||||
return request({
|
||||
url: '/waterQualityStandardForeign',
|
||||
baseURL: "/plan-api",
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function deleteData(standardIds) {
|
||||
return request({
|
||||
url: '/waterQualityStandardForeign/'+standardIds,
|
||||
baseURL: "/plan-api",
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
//树形水质标准
|
||||
export function treeRegionLevel() {
|
||||
return request({
|
||||
url: '/waterQualityStandardForeign/treeRegionLevel',
|
||||
baseURL: "/plan-api",
|
||||
method: 'get',
|
||||
|
||||
})
|
||||
}
|
||||
//根据水质标准ID查询
|
||||
export function getData(id) {
|
||||
return request({
|
||||
url: '/waterQualityStandardForeign/queryById/'+id,
|
||||
baseURL: "/plan-api",
|
||||
method: 'get',
|
||||
})
|
||||
}
|
|
@ -0,0 +1,43 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询
|
||||
export function list(query) {
|
||||
return request({
|
||||
url: '/equipmentParam/list',
|
||||
method: 'get',
|
||||
baseURL: "/plan-api",
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 新增
|
||||
export function postData(data) {
|
||||
return request({
|
||||
url: '/equipmentParam',
|
||||
baseURL: "/plan-api",
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改
|
||||
export function putData(data) {
|
||||
return request({
|
||||
url: '/equipmentParam',
|
||||
baseURL: "/plan-api",
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function deleteData(paramIds) {
|
||||
return request({
|
||||
url: '/equipmentParam/'+paramIds,
|
||||
baseURL: "/plan-api",
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询外贸技术方案配置列表
|
||||
export function list(query) {
|
||||
return request({
|
||||
url: '/technicalPlanForeign/config/list',
|
||||
method: 'get',
|
||||
baseURL: "/plan-api",
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询外贸技术方案配置详细
|
||||
export function getByid(configId) {
|
||||
return request({
|
||||
url: '/technicalPlanForeign/config/' + configId,
|
||||
method: 'get',
|
||||
baseURL: "/plan-api",
|
||||
})
|
||||
}
|
||||
|
||||
// 新增外贸技术方案配置
|
||||
export function postData(data) {
|
||||
return request({
|
||||
url: '/technicalPlanForeign/config',
|
||||
method: 'post',
|
||||
data: data,
|
||||
baseURL: "/plan-api",
|
||||
})
|
||||
}
|
||||
|
||||
// 修改外贸技术方案配置
|
||||
export function putData(data) {
|
||||
return request({
|
||||
url: '/technicalPlanForeign/config',
|
||||
method: 'put',
|
||||
data: data,
|
||||
baseURL: "/plan-api",
|
||||
})
|
||||
}
|
||||
|
||||
// 删除外贸技术方案配置
|
||||
export function delData(configId) {
|
||||
return request({
|
||||
url: '/technicalPlanForeign/config/' + configId,
|
||||
method: 'delete',
|
||||
baseURL: "/plan-api",
|
||||
})
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询
|
||||
export function list(query) {
|
||||
return request({
|
||||
url: '/technicalPlanForeign/equipmentComponent/list',
|
||||
method: 'get',
|
||||
baseURL: "/plan-api",
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 新增
|
||||
export function postData(data) {
|
||||
return request({
|
||||
url: '/technicalPlanForeign/equipmentComponent',
|
||||
baseURL: "/plan-api",
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改
|
||||
export function putData(data) {
|
||||
return request({
|
||||
url: '/technicalPlanForeign/equipmentComponent',
|
||||
baseURL: "/plan-api",
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function deleteData(ids) {
|
||||
return request({
|
||||
url: '/technicalPlanForeign/equipmentComponent/'+ids,
|
||||
baseURL: "/plan-api",
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,58 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询
|
||||
export function list(query) {
|
||||
return request({
|
||||
url: '/technicalPlanForeign/equipmentEnergyConsumption/list',
|
||||
method: 'get',
|
||||
baseURL: "/plan-api",
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 新增
|
||||
export function postData(data) {
|
||||
return request({
|
||||
url: '/equipmentParam',
|
||||
baseURL: "/plan-api",
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改
|
||||
export function putData(data) {
|
||||
return request({
|
||||
url: '/equipmentParam',
|
||||
baseURL: "/plan-api",
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function deleteData(paramIds) {
|
||||
return request({
|
||||
url: '/equipmentParam/'+paramIds,
|
||||
baseURL: "/plan-api",
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
// 修改
|
||||
export function updateComponentRunTime(data) {
|
||||
return request({
|
||||
url: '/technicalPlanForeign/equipmentEnergyConsumption/updateComponentRunTime',
|
||||
baseURL: "/plan-api",
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}// 查询
|
||||
export function multipleConsumption(query) {
|
||||
return request({
|
||||
url: '/technicalPlanForeign/equipmentEnergyConsumption/consumption',
|
||||
method: 'get',
|
||||
baseURL: "/plan-api",
|
||||
params: query
|
||||
})
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询
|
||||
export function list(query) {
|
||||
return request({
|
||||
url: '/technicalPlanForeign/list',
|
||||
method: 'get',
|
||||
baseURL: "/plan-api",
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 新增
|
||||
export function postData(data) {
|
||||
|
||||
|
||||
|
||||
|
||||
return request({
|
||||
url: '/technicalPlanForeign',
|
||||
baseURL: "/plan-api",
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改
|
||||
export function putData(data) {
|
||||
return request({
|
||||
url: '/technicalPlanForeign',
|
||||
baseURL: "/plan-api",
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function deleteData(planIds) {
|
||||
return request({
|
||||
url: '/technicalPlanForeign/'+planIds,
|
||||
baseURL: "/plan-api",
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询
|
||||
export function list(query) {
|
||||
return request({
|
||||
url: '/waterQualityRegionForeign/list',
|
||||
method: 'get',
|
||||
baseURL: "/plan-api",
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 新增
|
||||
export function postData(data) {
|
||||
return request({
|
||||
url: '/waterQualityRegionForeign',
|
||||
baseURL: "/plan-api",
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改
|
||||
export function putData(data) {
|
||||
return request({
|
||||
url: '/waterQualityRegionForeign',
|
||||
baseURL: "/plan-api",
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function deleteData(regionIds) {
|
||||
return request({
|
||||
url: '/waterQualityRegionForeign/'+regionIds,
|
||||
baseURL: "/plan-api",
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
|
@ -57,7 +57,7 @@ const props = defineProps({
|
|||
// 文件类型, 例如['png', 'jpg', 'jpeg']
|
||||
fileType: {
|
||||
type: Array,
|
||||
default: () => ["doc", "xls", "ppt", "txt", "pdf"],
|
||||
default: () => ["doc", "xls","xlsx", "ppt", "txt", "pdf"],
|
||||
},
|
||||
// 是否显示提示
|
||||
isShowTip: {
|
||||
|
@ -79,7 +79,9 @@ const showTip = computed(
|
|||
);
|
||||
|
||||
watch(() => props.modelValue, async val => {
|
||||
|
||||
if (val) {
|
||||
|
||||
let temp = 1;
|
||||
// 首先将值转为数组
|
||||
let list;
|
||||
|
@ -168,6 +170,7 @@ function uploadedSuccessfully() {
|
|||
fileList.value = fileList.value.filter(f => f.url !== undefined).concat(uploadList.value);
|
||||
uploadList.value = [];
|
||||
number.value = 0;
|
||||
debugger
|
||||
emit("update:modelValue", listToString(fileList.value));
|
||||
proxy.$modal.closeLoading();
|
||||
}
|
||||
|
@ -185,6 +188,7 @@ function getFileName(name) {
|
|||
|
||||
// 对象转成指定字符串分隔
|
||||
function listToString(list, separator) {
|
||||
debugger
|
||||
let strs = "";
|
||||
separator = separator || ",";
|
||||
for (let i in list) {
|
||||
|
|
|
@ -38,6 +38,7 @@ service.interceptors.request.use(config => {
|
|||
url = url.slice(0, -1);
|
||||
config.params = {};
|
||||
config.url = url;
|
||||
|
||||
}
|
||||
if (!isRepeatSubmit && (config.method === 'post' || config.method === 'put')) {
|
||||
const requestObj = {
|
||||
|
@ -62,6 +63,7 @@ service.interceptors.request.use(config => {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
return config
|
||||
}, error => {
|
||||
console.log(error)
|
||||
|
|
|
@ -2,11 +2,24 @@
|
|||
<el-form :model="form" ref="userRef" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="进水指标" prop="phonenumber">
|
||||
<el-form-item label="类型选择">
|
||||
<el-radio-group v-model="form.speclevel">
|
||||
<el-radio
|
||||
size="large"
|
||||
v-for="item in spec_level"
|
||||
v-key="item.value"
|
||||
:label="item.value"
|
||||
>{{ item.label }}</el-radio
|
||||
>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="进水指标">
|
||||
<el-descriptions
|
||||
class="margin-top"
|
||||
direction="vertical"
|
||||
:column="6"
|
||||
:column="8"
|
||||
border
|
||||
>
|
||||
<el-descriptions-item v-for="item in inletlist">
|
||||
|
@ -15,18 +28,14 @@
|
|||
{{ item.name }}
|
||||
</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="item.value"
|
||||
placeholder="请输入"
|
||||
maxlength="11"
|
||||
/>
|
||||
<el-input v-model="item.value" placeholder="请输入" />
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
<!-- <el-icon :size="30" color="red"><CirclePlus /></el-icon> -->
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="出水指标" prop="phonenumber">
|
||||
<el-form-item label="出水指标">
|
||||
<el-cascader
|
||||
v-model="cityValue"
|
||||
:options="citytype"
|
||||
|
@ -47,12 +56,7 @@
|
|||
</div>
|
||||
</template>
|
||||
|
||||
<el-input
|
||||
v-model="item.value"
|
||||
placeholder="请输入"
|
||||
disabled
|
||||
maxlength="11"
|
||||
/>
|
||||
<el-input v-model="item.value" placeholder="请输入" disabled />
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</el-form-item>
|
||||
|
@ -84,22 +88,199 @@
|
|||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="吨数选型" prop="phonenumber">
|
||||
<el-select
|
||||
v-model="form.equipmentParamId"
|
||||
multiple
|
||||
:max-collapse-tags="3"
|
||||
placeholder="吨数选择"
|
||||
@change="changeSelect"
|
||||
<el-form-item label="加药量">
|
||||
<el-descriptions
|
||||
class="margin-top"
|
||||
style="width: 100%"
|
||||
:column="4"
|
||||
:size="size"
|
||||
border
|
||||
>
|
||||
<el-option
|
||||
v-for="item in tonnageData"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
<!-- <template #title>
|
||||
<el-button type="primary">Operation</el-button>
|
||||
</template> -->
|
||||
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">葡萄糖</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="form.glucose"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">碳酸钠</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="form.na2co3"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">PAC(28%)</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="form.pac"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">氯片</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="form.naclo"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="费用价格">
|
||||
<el-descriptions
|
||||
class="margin-top"
|
||||
style="width: 100%"
|
||||
:column="3"
|
||||
:size="size"
|
||||
border
|
||||
>
|
||||
<!-- <template #title>
|
||||
<el-button type="primary">Operation</el-button>
|
||||
</template> -->
|
||||
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">人工费</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="cost.laborCost"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">okr提成</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="cost.royaltyOKR"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">其他部门提成</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="cost.royaltyOther"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">包装费</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="cost.packingFee"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">企业综合管理费</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="cost.manageFee"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">运输费</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="cost.shippingFee"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">管线安装/吊装/搬运费</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="cost.buildingFee"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">服务器租赁费</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="cost.serverFee"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">融资成本</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="cost.financingCost"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">投标代理费/场地/专家费/配合费</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="cost.biddingFee"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">増值税</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="cost.vat"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">其他</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="cost.other"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
|
||||
</el-descriptions>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="处理量选型">
|
||||
<el-tree-select
|
||||
v-model="form.equipmentParamId"
|
||||
:data="treeListData"
|
||||
:render-after-expand="false"
|
||||
multiple
|
||||
style="width: 100%"
|
||||
/>
|
||||
</el-select>
|
||||
<el-divider content-position="left"
|
||||
>相关设备参数与电费计算</el-divider
|
||||
>
|
||||
|
@ -111,7 +292,6 @@
|
|||
prop="processingCapacity"
|
||||
>
|
||||
<template #default="scope">
|
||||
|
||||
<div>{{ scope.row.equipment.equipmentName }}</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -121,7 +301,6 @@
|
|||
prop="processingCapacity"
|
||||
>
|
||||
<template #default="scope">
|
||||
|
||||
<div>{{ scope.row.capacityTonnage }}</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -186,12 +365,22 @@
|
|||
<script setup>
|
||||
import { treeRegionLevel, getData } from "@/api/renovation/scheme/discharge";
|
||||
import { list } from "@/api/renovation/scheme/capacity";
|
||||
import { list as equipmentEnergyConsumptionList } from "@/api/renovation/scheme/equipmentEnergyConsumption";
|
||||
import {
|
||||
list as equipmentEnergyConsumptionList,
|
||||
multipleConsumption,
|
||||
} from "@/api/renovation/scheme/equipmentEnergyConsumption";
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { coliform_removal, technical_plan_type,packing_method } = proxy.useDict(
|
||||
const { coliform_removal, technical_plan_type, packing_method,spec_level } = proxy.useDict(
|
||||
"coliform_removal",
|
||||
"technical_plan_type","packing_method"
|
||||
"technical_plan_type",
|
||||
"packing_method",
|
||||
"spec_level"
|
||||
);
|
||||
import {
|
||||
list as equipmentList,
|
||||
treelist,
|
||||
} from "@/api/renovation/scheme/equipment";
|
||||
import { list as capList } from "@/api/renovation/scheme/capacity";
|
||||
|
||||
const props = defineProps({
|
||||
modelValue: {
|
||||
|
@ -207,7 +396,13 @@ const props = defineProps({
|
|||
default: () => {
|
||||
return [];
|
||||
},
|
||||
}
|
||||
},
|
||||
planType: {
|
||||
type: String,
|
||||
default: () => {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
const form = ref({
|
||||
|
@ -216,42 +411,68 @@ const form = ref({
|
|||
coliformRemoval: null,
|
||||
equipmentParamId: null,
|
||||
});
|
||||
watch(
|
||||
() => props.planType,
|
||||
(val) => {
|
||||
form.equipmentParamId = [];
|
||||
if (val) gettreelist(val,null);
|
||||
}
|
||||
);
|
||||
watch(
|
||||
() => form.value.speclevel,
|
||||
(newval, oldval) => {
|
||||
if(newval){
|
||||
gettreelist(null,newval);
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
{ deep: true }
|
||||
|
||||
)
|
||||
const inletlist = ref([
|
||||
{
|
||||
name: "CODcr",
|
||||
name: "cod",
|
||||
value: "250~400",
|
||||
},
|
||||
{
|
||||
name: "NH3-N",
|
||||
name: "bod",
|
||||
value: "0~400",
|
||||
},
|
||||
{
|
||||
name: "nh3",
|
||||
value: "30~50",
|
||||
},
|
||||
{
|
||||
name: "TN",
|
||||
name: "tn",
|
||||
value: "40~65",
|
||||
},
|
||||
{
|
||||
name: "TP",
|
||||
name: "tp",
|
||||
value: "2.5~5.0",
|
||||
},
|
||||
{
|
||||
name: "SS",
|
||||
name: "ss",
|
||||
value: "100~200",
|
||||
},
|
||||
{
|
||||
name: "PH",
|
||||
name: "ph",
|
||||
value: "6~9",
|
||||
},
|
||||
{
|
||||
name: "animalVegetableOil",
|
||||
value: "0~1",
|
||||
},
|
||||
]);
|
||||
const outletlist = ref([]);
|
||||
const tonnageData = ref([]);
|
||||
|
||||
const treeListData = ref([]);
|
||||
const tableDevice = ref([]);
|
||||
const tableDict = ref([]);
|
||||
const devicelist = ref([]);
|
||||
const cityValue = ref([]);
|
||||
const dataList = ref([]);
|
||||
const citytype = ref(proxy.citytype)
|
||||
const citytype = ref(proxy.citytype);
|
||||
console.log(proxy.modelValue);
|
||||
function watchData() {
|
||||
watch(
|
||||
|
@ -260,7 +481,6 @@ function watchData(){
|
|||
(newval, oldval) => {
|
||||
if (newval) {
|
||||
let newForm = proxy.modelValue;
|
||||
debugger
|
||||
citytype.value.forEach((element) => {
|
||||
let val = element.children.filter(
|
||||
(item) => newForm.waterQualityStandardId == item.value
|
||||
|
@ -271,26 +491,48 @@ function watchData(){
|
|||
}
|
||||
});
|
||||
|
||||
gettreelist(newForm.planType,newForm.speclevel);
|
||||
form.value.equipmentParamId = newForm.equipmentDetail.map((item) => {
|
||||
return item?.capacityId;
|
||||
return `${item.capacityId}-${item.equipmentId}`;
|
||||
});
|
||||
|
||||
changeSelect(form.value.equipmentParamId);
|
||||
// form.value.equipmentParamId = newForm.equipmentDetail.map((item) => {
|
||||
// return item?.capacityId;
|
||||
// });
|
||||
|
||||
// changeSelect(form.value.equipmentParamId);
|
||||
form.value.coliformRemoval = newForm.coliformRemoval;
|
||||
form.value.packingMethod =newForm.packingMethod
|
||||
form.value.packingMethod = newForm.packingMethod;
|
||||
form.value.speclevel = newForm.speclevel
|
||||
form.value.na2co3 = newForm.na2co3;
|
||||
form.value.pac = newForm.pac;
|
||||
form.value.naclo = newForm.naclo;
|
||||
form.value.glucose = newForm.glucose;
|
||||
cost.value=newForm?.cost||{
|
||||
laborCost:'',
|
||||
royaltyOKR:'',
|
||||
royaltyOther:'',
|
||||
packingFee:'',
|
||||
manageFee:'',
|
||||
shippingFee:'',
|
||||
buildingFee:'',
|
||||
serverFee:'',
|
||||
financingCost:'',
|
||||
biddingFee:'',
|
||||
vat:''
|
||||
}
|
||||
} else {
|
||||
rest();
|
||||
}
|
||||
},
|
||||
{ immediate: true }
|
||||
);
|
||||
|
||||
|
||||
}
|
||||
|
||||
async function handleChange(params) {
|
||||
console.log(params);
|
||||
outletlist.value = [];
|
||||
if (params[1]) {
|
||||
let data = await getData(params[1]);
|
||||
form.value.waterQualityStandardId = params[1];
|
||||
const keyValue = [
|
||||
|
@ -300,6 +542,7 @@ async function handleChange(params) {
|
|||
"createTime",
|
||||
"level",
|
||||
"region",
|
||||
"regionId",
|
||||
"updateBy",
|
||||
"updateTime",
|
||||
];
|
||||
|
@ -311,9 +554,11 @@ async function handleChange(params) {
|
|||
});
|
||||
}
|
||||
}
|
||||
} else {
|
||||
proxy.$modal.msgError("出水指标配置项错误,请联系管理员");
|
||||
}
|
||||
}
|
||||
function changeSelect(value) {
|
||||
|
||||
console.log(devicelist.value);
|
||||
dataList.value = [];
|
||||
dataList.value = devicelist.value.filter((item) =>
|
||||
|
@ -341,22 +586,37 @@ async function getList() {
|
|||
let equipData = await equipmentEnergyConsumptionList();
|
||||
devicelist.value = equipData.rows;
|
||||
|
||||
|
||||
tonnageData.value = data.data.map((item, index) => {
|
||||
return {
|
||||
value: item.capacityId,
|
||||
label: item.capacityTonnage + "吨",
|
||||
};
|
||||
});
|
||||
watchData()
|
||||
watchData();
|
||||
}
|
||||
const cost=ref({})
|
||||
function rest() {
|
||||
form.value = {
|
||||
waterIn: null,
|
||||
waterQualityStandardId: null,
|
||||
coliformRemoval: null,
|
||||
equipmentParamId: null,
|
||||
speclevel:0
|
||||
|
||||
};
|
||||
cost.value={
|
||||
laborCost:'',
|
||||
royaltyOKR:'',
|
||||
royaltyOther:'',
|
||||
packingFee:'',
|
||||
manageFee:'',
|
||||
shippingFee:'',
|
||||
buildingFee:'',
|
||||
serverFee:'',
|
||||
financingCost:'',
|
||||
biddingFee:'',
|
||||
vat:''
|
||||
}
|
||||
dataList.value = [];
|
||||
}
|
||||
function handleSubmit() {
|
||||
|
@ -364,16 +624,59 @@ function handleSubmit() {
|
|||
obj[item.name] = item.value;
|
||||
return obj;
|
||||
}, {});
|
||||
form.value.equipmentDetail = dataList.value;
|
||||
return form.value;
|
||||
form.value.equipmentDetail = form.value.equipmentParamId.map((item) => {
|
||||
let data = item.split("-");
|
||||
return {
|
||||
capacityId: data[0],
|
||||
equipmentId: data[1],
|
||||
};
|
||||
});
|
||||
debugger
|
||||
form.value.cost=cost.value
|
||||
return { ...form.value };
|
||||
}
|
||||
defineExpose({
|
||||
handleSubmit,
|
||||
rest,
|
||||
});
|
||||
async function gettreelist(type,level) {
|
||||
type =type||props.planType
|
||||
level = level||form.value.speclevel
|
||||
let res = await treelist(type,level);
|
||||
let data = res.data;
|
||||
data.forEach((element) => {
|
||||
element.children.forEach((item) => {
|
||||
(item.label = `${item.label}(${element.label})`),
|
||||
(item.value = element.value + "-" + item.value);
|
||||
});
|
||||
});
|
||||
treeListData.value = data;
|
||||
}
|
||||
|
||||
watch(
|
||||
() => form.value.equipmentParamId,
|
||||
(newVal, oldVal) => {
|
||||
console.log("新值:", newVal);
|
||||
if (
|
||||
Object.prototype.toString.call(newVal) == "[object Array]" &&
|
||||
newVal.length
|
||||
) {
|
||||
let data = newVal.map((item) => {
|
||||
return {
|
||||
equipmentId: item.split("-")[1],
|
||||
capacityId: item.split("-")[0],
|
||||
};
|
||||
});
|
||||
multipleConsumption(data).then((res) => {
|
||||
dataList.value = res.data;
|
||||
});
|
||||
}
|
||||
|
||||
// 在这里处理值变化后的逻辑
|
||||
}
|
||||
);
|
||||
onMounted(() => {
|
||||
getList();
|
||||
|
||||
});
|
||||
</script>
|
||||
<style scope>
|
||||
|
|
|
@ -17,8 +17,9 @@
|
|||
node-key="id"
|
||||
highlight-current
|
||||
default-expand-all
|
||||
style="height: 85vh; overflow-y: scroll"
|
||||
style="height: 80vh; overflow-y: scroll"
|
||||
@node-click="handleNodeClick"
|
||||
:render-content="renderContent"
|
||||
/>
|
||||
</div>
|
||||
</el-col>
|
||||
|
@ -157,6 +158,7 @@
|
|||
<el-button type="primary" plain icon="Plus" @click="handleAdd"
|
||||
>新增</el-button
|
||||
>
|
||||
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
style="margin-top: 20px"
|
||||
|
@ -173,6 +175,7 @@
|
|||
prop="param"
|
||||
/>
|
||||
<el-table-column label="数量" align="center" prop="quantity" />
|
||||
|
||||
<el-table-column label="单位" align="center" prop="quantity" >
|
||||
<template #default="scope">
|
||||
|
||||
|
@ -180,12 +183,21 @@
|
|||
</template>
|
||||
|
||||
</el-table-column>
|
||||
<el-table-column label="单价" align="center" prop="price" />
|
||||
<el-table-column label="总价" align="center" prop="totalPrice" />
|
||||
<el-table-column label="品牌" align="center" prop="componentBrand" >
|
||||
<template #default="scope">
|
||||
|
||||
{{equipment_component_brand.filter(item=>item.value==scope.row.componentBrand)[0].label}}
|
||||
</template>
|
||||
|
||||
</el-table-column>
|
||||
<el-table-column label="组件归属" align="center" >
|
||||
<template #default="scope">
|
||||
|
||||
{{scope.row.specLevel&&spec_level.filter(item=>item.value==scope.row.specLevel)[0].label}}
|
||||
</template>
|
||||
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="备注"
|
||||
|
@ -227,14 +239,14 @@
|
|||
<el-input
|
||||
v-model="form.componentName"
|
||||
placeholder="请输入"
|
||||
maxlength="30"
|
||||
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="参数">
|
||||
<el-input
|
||||
v-model="form.param"
|
||||
placeholder="请输入"
|
||||
maxlength="30"
|
||||
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="组件类型">
|
||||
|
@ -252,10 +264,25 @@
|
|||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="组件归属">
|
||||
<el-select
|
||||
v-model="form.specLevel"
|
||||
placeholder="归属"
|
||||
clearable
|
||||
style="width: 100%"
|
||||
>
|
||||
<el-option
|
||||
v-for="dict in spec_level"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="单位">
|
||||
<el-select
|
||||
v-model="form.unit"
|
||||
placeholder="品牌"
|
||||
placeholder="单位"
|
||||
clearable
|
||||
style="width: 100%"
|
||||
>
|
||||
|
@ -271,7 +298,14 @@
|
|||
<el-input
|
||||
v-model="form.quantity"
|
||||
placeholder="请输入"
|
||||
maxlength="30"
|
||||
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="价格">
|
||||
<el-input
|
||||
v-model="form.price"
|
||||
placeholder="请输入"
|
||||
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="品牌">
|
||||
|
@ -290,11 +324,12 @@
|
|||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
|
||||
<el-form-item label="备注">
|
||||
<el-input
|
||||
v-model="form.remark"
|
||||
placeholder="请输入"
|
||||
maxlength="30"
|
||||
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
@ -316,14 +351,14 @@
|
|||
<el-input
|
||||
v-model="form.equipmentName"
|
||||
placeholder="请输入"
|
||||
maxlength="30"
|
||||
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="设备尺寸">
|
||||
<el-input
|
||||
v-model="form.equipmentSize"
|
||||
placeholder="请输入"
|
||||
maxlength="30"
|
||||
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="处理量">
|
||||
|
@ -363,7 +398,7 @@
|
|||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
<el-button @click="()=>{openExit=false}">取 消</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
@ -377,7 +412,7 @@
|
|||
<el-input
|
||||
v-model="form.capacityTonnage"
|
||||
placeholder="请输入"
|
||||
maxlength="30"
|
||||
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
@ -386,7 +421,7 @@
|
|||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button type="primary" @click="submitCapacity">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
<el-button @click="()=>{openCapacity=false}">取 消</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
@ -412,13 +447,17 @@ import {
|
|||
putData,
|
||||
deleteData,
|
||||
} from "@/api/renovation/scheme/capacity";
|
||||
|
||||
import { ElMessage, ElMessageBox, ElButton } from "element-plus";
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { equipment_component_brand, equipment_type,equipment_component_type,equipment_component_unit } = proxy.useDict(
|
||||
const { equipment_component_brand, equipment_type,equipment_component_type,
|
||||
equipment_component_unit,spec_level
|
||||
} = proxy.useDict(
|
||||
|
||||
"equipment_component_brand",
|
||||
"equipment_type",
|
||||
"equipment_component_type",
|
||||
"equipment_component_unit"
|
||||
"equipment_component_unit",
|
||||
"spec_level"
|
||||
);
|
||||
|
||||
const showDetail = ref(false);
|
||||
|
@ -567,6 +606,7 @@ function handleAdd() {
|
|||
title.value = "添加";
|
||||
form.value = {
|
||||
equipmentId: equipmentId.value,
|
||||
specLevel:"0"
|
||||
};
|
||||
openDist.value = true;
|
||||
}
|
||||
|
@ -631,6 +671,68 @@ function handleDelete(row) {
|
|||
})
|
||||
.catch(() => {});
|
||||
}
|
||||
const renderContent = (h, { node, data, store }) => {
|
||||
|
||||
return h(
|
||||
"div",
|
||||
{
|
||||
class: "custom-tree-node",
|
||||
style: {
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
width: "100%",
|
||||
},
|
||||
},
|
||||
h("div", null, node.label),
|
||||
|
||||
node.level == 1
|
||||
? ""
|
||||
: h(
|
||||
"div",
|
||||
null,
|
||||
h(
|
||||
ElButton,
|
||||
{
|
||||
type: "primary",
|
||||
link: true,
|
||||
onClick: (e) => exitData(data,e),
|
||||
},
|
||||
"修改"
|
||||
),
|
||||
h(
|
||||
ElButton,
|
||||
{
|
||||
type: "danger",
|
||||
link: true,
|
||||
style: "margin-left: 4px",
|
||||
onClick: (e) => removeData(node, data,e),
|
||||
},
|
||||
"删除"
|
||||
)
|
||||
)
|
||||
);
|
||||
};
|
||||
function exitData(data,e) {
|
||||
|
||||
e.stopPropagation()
|
||||
form.value = Object.assign(data.val);
|
||||
title.value = "编辑区域";
|
||||
openCapacity.value = true;
|
||||
}
|
||||
function removeData(node, data,e) {
|
||||
e.stopPropagation()
|
||||
proxy.$modal
|
||||
.confirm("是否确认删除吨位为" + data.val.capacityTonnage + "的数据项?")
|
||||
.then(function () {
|
||||
return deleteData(data.val.capacityId);
|
||||
})
|
||||
.then(() => {
|
||||
getcapacityList();
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
})
|
||||
.catch(() => {});
|
||||
}
|
||||
//详情
|
||||
const arrSite = ref([]);
|
||||
const planData = ref({});
|
||||
|
@ -683,6 +785,7 @@ function getcapacityList() {
|
|||
return {
|
||||
label: item.capacityTonnage + " 吨",
|
||||
value: item.capacityId,
|
||||
val:item
|
||||
};
|
||||
});
|
||||
deptOptions.value[0].children = data;
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="24" :xs="24">
|
||||
<el-button type="primary" plain icon="Plus" @click="handleAddRegion"
|
||||
>新增</el-button
|
||||
>
|
||||
</el-col>
|
||||
<!--部门数据-->
|
||||
<el-col :span="4" :xs="24">
|
||||
<div class="head-container">
|
||||
|
@ -8,13 +13,13 @@
|
|||
:data="deptOptions"
|
||||
:props="{ label: 'label', children: 'children' }"
|
||||
:expand-on-click-node="false"
|
||||
|
||||
ref="deptTreeRef"
|
||||
node-key="id"
|
||||
highlight-current
|
||||
default-expand-all
|
||||
style="height: 85vh; overflow-y: scroll"
|
||||
style="height: 80vh; overflow-y: scroll"
|
||||
@node-click="handleNodeClick"
|
||||
:render-content="renderContent"
|
||||
/>
|
||||
</div>
|
||||
</el-col>
|
||||
|
@ -22,17 +27,11 @@
|
|||
<el-col :span="20" :xs="24">
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="Plus"
|
||||
@click="handleAdd"
|
||||
|
||||
<el-button type="primary" plain icon="Plus" @click="handleAdd"
|
||||
>新增</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
||||
|
||||
<right-toolbar
|
||||
v-model:showSearch="showSearch"
|
||||
@queryTable="getList"
|
||||
|
@ -44,7 +43,6 @@
|
|||
:data="standardList"
|
||||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
|
||||
<el-table-column label="检测指标" align="center" prop="level" />
|
||||
<el-table-column
|
||||
label="COD(mg/L)"
|
||||
|
@ -83,12 +81,7 @@
|
|||
prop="tp"
|
||||
width="120"
|
||||
/>
|
||||
<el-table-column
|
||||
label="PH"
|
||||
align="center"
|
||||
prop="ph"
|
||||
width="120"
|
||||
/>
|
||||
<el-table-column label="PH" align="center" prop="ph" width="120" />
|
||||
<el-table-column
|
||||
label="动植物油(mg/L)"
|
||||
align="center"
|
||||
|
@ -108,7 +101,6 @@
|
|||
type="primary"
|
||||
icon="Edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
|
||||
></el-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip content="删除" placement="top">
|
||||
|
@ -117,7 +109,6 @@
|
|||
type="primary"
|
||||
icon="Delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
|
||||
></el-button>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
|
@ -137,10 +128,18 @@
|
|||
<el-dialog :title="title" v-model="open" width="600px" append-to-body>
|
||||
<el-form :model="form" :rules="rules" ref="waterRef" label-width="100px">
|
||||
<el-form-item label="出水标准">
|
||||
<el-input v-model="form.region" placeholder="请输入" disabled />
|
||||
<el-input
|
||||
v-model="gendictryData.regionName"
|
||||
placeholder="请输入"
|
||||
disabled
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="依据文件名">
|
||||
<el-input v-model="form.basisDoc" placeholder="请输入" />
|
||||
<el-input
|
||||
v-model="gendictryData.basisDoc"
|
||||
placeholder="请输入"
|
||||
disabled
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="检测指标">
|
||||
<el-input v-model="form.level" placeholder="请输入" />
|
||||
|
@ -177,6 +176,23 @@
|
|||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog :title="title" v-model="gendictry" width="600px" append-to-body>
|
||||
<el-form :model="form" :rules="rules" label-width="100px">
|
||||
<el-form-item label="地区名称">
|
||||
<el-input v-model="form.regionName" placeholder="请输入" />
|
||||
</el-form-item>
|
||||
<el-form-item label="依据文件名">
|
||||
<el-input v-model="form.basisDoc" placeholder="请输入" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button type="primary" @click="submitgendictry">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -188,10 +204,15 @@ import {
|
|||
putData,
|
||||
deleteData,
|
||||
} from "@/api/renovation/scheme/discharge";
|
||||
|
||||
import {
|
||||
list as waterList,
|
||||
postData as waterPost,
|
||||
putData as waterPut,
|
||||
deleteData as waterDelete,
|
||||
} from "@/api/renovation/scheme/waterQualityRegion";
|
||||
const { proxy } = getCurrentInstance();
|
||||
const loading = ref();
|
||||
|
||||
import { ElMessage, ElMessageBox, ElButton } from "element-plus";
|
||||
const data = reactive({
|
||||
form: {},
|
||||
showSearch: false,
|
||||
|
@ -203,14 +224,15 @@ const data = reactive({
|
|||
single: true,
|
||||
open: false,
|
||||
ids: [],
|
||||
gendictry: false,
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
region: city[0].children[0].label,
|
||||
region: "",
|
||||
},
|
||||
rules: {},
|
||||
});
|
||||
|
||||
const gendictryData = ref({});
|
||||
const {
|
||||
queryParams,
|
||||
form,
|
||||
|
@ -223,13 +245,49 @@ const {
|
|||
deptOptions,
|
||||
title,
|
||||
open,
|
||||
gendictry,
|
||||
multiple,
|
||||
} = toRefs(data);
|
||||
|
||||
|
||||
|
||||
function submitgendictry() {
|
||||
if (form.value.regionId) {
|
||||
waterPut(form.value).then((res) => {
|
||||
proxy.$modal.msgSuccess("修改成功");
|
||||
gendictry.value = false;
|
||||
getDeptTree();
|
||||
});
|
||||
} else {
|
||||
waterPost(form.value).then((res) => {
|
||||
proxy.$modal.msgSuccess("添加成功");
|
||||
gendictry.value = false;
|
||||
getDeptTree();
|
||||
});
|
||||
}
|
||||
}
|
||||
function getDeptTree() {
|
||||
deptOptions.value = city;
|
||||
waterList().then((response) => {
|
||||
let data = [
|
||||
{
|
||||
id: 101,
|
||||
parentId: 100,
|
||||
label: "所有指标",
|
||||
weight: 1,
|
||||
children: null,
|
||||
},
|
||||
];
|
||||
data[0].children = response.data.map((item, index) => {
|
||||
return {
|
||||
id: item.regionId,
|
||||
parentId: 101,
|
||||
label: item.regionName,
|
||||
weight: 1,
|
||||
val: item,
|
||||
};
|
||||
});
|
||||
deptOptions.value = data;
|
||||
// queryParams.value.regionId = response.data[0].regionId
|
||||
getList();
|
||||
});
|
||||
}
|
||||
/** 查询列表 */
|
||||
function getList() {
|
||||
|
@ -243,8 +301,8 @@ function getList() {
|
|||
/** 节点单击事件 */
|
||||
function handleNodeClick(data) {
|
||||
console.log(data);
|
||||
|
||||
queryParams.value.region =data.id==101?data.children[0].label: data.label;
|
||||
gendictryData.value = data.val;
|
||||
queryParams.value.regionId = data.id == 101 ? "" : data.id;
|
||||
handleQuery();
|
||||
}
|
||||
/** 搜索按钮操作 */
|
||||
|
@ -278,7 +336,6 @@ function handleExport() {
|
|||
);
|
||||
}
|
||||
|
||||
|
||||
/** 选择条数 */
|
||||
function handleSelectionChange(selection) {
|
||||
ids.value = selection.map((item) => item.userId);
|
||||
|
@ -291,8 +348,6 @@ function handleImport() {
|
|||
upload.open = true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** 重置操作表单 */
|
||||
function reset() {
|
||||
form.value = {
|
||||
|
@ -314,8 +369,14 @@ function reset() {
|
|||
/** 取消按钮 */
|
||||
function cancel() {
|
||||
open.value = false;
|
||||
gendictry.value = false;
|
||||
reset();
|
||||
}
|
||||
function handleAddRegion() {
|
||||
form.value = Object.assign({});
|
||||
title.value = "添加区域";
|
||||
gendictry.value = true;
|
||||
}
|
||||
/** 新增按钮操作 */
|
||||
function handleAdd() {
|
||||
reset();
|
||||
|
@ -327,15 +388,16 @@ function handleAdd() {
|
|||
function handleUpdate(row) {
|
||||
reset();
|
||||
open.value = true;
|
||||
form.region = queryParams.value.region;
|
||||
form.value = JSON.parse(JSON.stringify(row));
|
||||
form.value.region = queryParams.value.region;
|
||||
form.value = { ...row };
|
||||
title.value = "修改用户";
|
||||
}
|
||||
/** 提交按钮 */
|
||||
function submitForm() {
|
||||
proxy.$refs["waterRef"].validate((valid) => {
|
||||
form.value.regionId = gendictryData.value.regionId;
|
||||
if (valid) {
|
||||
if (form.value.standardId != '') {
|
||||
if (form.value.standardId != "") {
|
||||
putData(form.value).then((response) => {
|
||||
proxy.$modal.msgSuccess("修改成功");
|
||||
open.value = false;
|
||||
|
@ -351,7 +413,74 @@ function submitForm() {
|
|||
}
|
||||
});
|
||||
}
|
||||
const renderContent = (h, { node, data, store }) => {
|
||||
if (node.level == 2) {
|
||||
}
|
||||
return h(
|
||||
"div",
|
||||
{
|
||||
class: "custom-tree-node",
|
||||
style: {
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
width: "100%",
|
||||
},
|
||||
},
|
||||
h("div", null, node.label),
|
||||
|
||||
node.level == 1
|
||||
? ""
|
||||
: h(
|
||||
"div",
|
||||
null,
|
||||
h(
|
||||
ElButton,
|
||||
{
|
||||
type: "primary",
|
||||
link: true,
|
||||
onClick: (e) => exitData(data,e),
|
||||
},
|
||||
"修改"
|
||||
),
|
||||
h(
|
||||
ElButton,
|
||||
{
|
||||
type: "danger",
|
||||
link: true,
|
||||
style: "margin-left: 4px",
|
||||
onClick: (e) => removeData(node, data,e),
|
||||
},
|
||||
"删除"
|
||||
)
|
||||
)
|
||||
);
|
||||
};
|
||||
function exitData(data,e) {
|
||||
|
||||
e.stopPropagation()
|
||||
form.value = Object.assign(data.val);
|
||||
title.value = "编辑区域";
|
||||
gendictry.value = true;
|
||||
}
|
||||
function removeData(node, data,e) {
|
||||
e.stopPropagation()
|
||||
proxy.$modal
|
||||
.confirm("是否确认删除地区为" + data.val.regionName + "的数据项?")
|
||||
.then(function () {
|
||||
return waterDelete(data.val.regionId);
|
||||
})
|
||||
.then(() => {
|
||||
getDeptTree();
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
})
|
||||
.catch(() => {});
|
||||
}
|
||||
getDeptTree();
|
||||
getList();
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.custom-tree-node {
|
||||
display: flex;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
v-show="showSearch"
|
||||
label-width="68px"
|
||||
>
|
||||
<el-form-item label="设备名称" prop="userName">
|
||||
<el-form-item label="设备名称" >
|
||||
<el-input
|
||||
v-model="queryParams.equipmentName"
|
||||
placeholder="请输入设备名称"
|
||||
|
@ -19,6 +19,21 @@
|
|||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="设备所属" >
|
||||
<el-select v-model="queryParams.specLevel"
|
||||
placeholder="归属"
|
||||
clearable
|
||||
style="width: 100%"
|
||||
>
|
||||
<el-option
|
||||
v-for="dict in spec_level"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -150,14 +165,14 @@
|
|||
<el-input
|
||||
v-model="form.pumpRuntime"
|
||||
placeholder="请输入"
|
||||
maxlength="30"
|
||||
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="风机运行时间" prop="nickName">
|
||||
<el-input
|
||||
v-model="form.fanRuntime"
|
||||
placeholder="请输入"
|
||||
maxlength="30"
|
||||
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
|
@ -167,7 +182,7 @@
|
|||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
<el-button @click="open=false">取 消</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
@ -177,9 +192,16 @@
|
|||
</template>
|
||||
|
||||
<script setup name="porfiles" >
|
||||
import { list, postData, putData ,deleteData,updateComponentRunTime} from "@/api/renovation/scheme/equipmentEnergyConsumption";
|
||||
import { list, postData, putData
|
||||
,deleteData,updateComponentRunTime}
|
||||
from "@/api/renovation/scheme/equipmentEnergyConsumption";
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { spec_level
|
||||
} = proxy.useDict(
|
||||
|
||||
|
||||
"spec_level"
|
||||
);
|
||||
const showDetail = ref(false);
|
||||
const backCall = () => {
|
||||
if (!document.startViewTransition) {
|
||||
|
@ -295,7 +317,7 @@ async function handleOpen(row) {
|
|||
"pumpRuntime": row.pumpRuntime,
|
||||
"fanRuntime": row.fanRuntime
|
||||
}
|
||||
debugger
|
||||
|
||||
open.value = true;
|
||||
|
||||
}
|
||||
|
@ -311,7 +333,8 @@ function handleSelectionChange(selection) {
|
|||
function getList() {
|
||||
// loading.value = false;
|
||||
loading.value = true;
|
||||
list(queryParams.value).then((response) => {
|
||||
|
||||
list(queryParams.value,[]).then((response) => {
|
||||
dataList.value = response.rows;
|
||||
total.value = response.total;
|
||||
loading.value = false;
|
||||
|
|
|
@ -114,7 +114,7 @@
|
|||
<el-input
|
||||
v-model="form.companyName"
|
||||
placeholder="公司名称"
|
||||
maxlength="30"
|
||||
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
@ -123,7 +123,7 @@
|
|||
<el-input
|
||||
v-model="form.planName"
|
||||
placeholder="方案名称"
|
||||
maxlength="30"
|
||||
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
@ -137,6 +137,18 @@
|
|||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="项目背景" >
|
||||
<el-input
|
||||
v-model="form.planbg"
|
||||
style="width: 100%;"
|
||||
:autosize="{ minRows: 3, maxRows: 8 }"
|
||||
autosize
|
||||
type="textarea"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="方案类型" >
|
||||
<el-select
|
||||
|
@ -145,7 +157,7 @@
|
|||
style="width: 100%"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in technical_plan_type"
|
||||
v-for="item in equipment_type"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
|
@ -155,7 +167,7 @@
|
|||
</el-col>
|
||||
|
||||
</el-row>
|
||||
<scsb ref="scsbRef" :citytype="citytype" v-model="formValue"></scsb>
|
||||
<scsb ref="scsbRef" v-if="open" :citytype="citytype" :planType="form.planType" v-model="formValue"></scsb>
|
||||
|
||||
</el-form>
|
||||
<template #footer>
|
||||
|
@ -177,12 +189,14 @@ import {
|
|||
putData,
|
||||
deleteData
|
||||
} from "@/api/renovation/scheme/index";
|
||||
|
||||
import {
|
||||
treeRegionLevel,
|
||||
|
||||
} from "@/api/renovation/scheme/discharge";
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { technical_plan_type } = proxy.useDict("technical_plan_type");
|
||||
const { equipment_type } = proxy.useDict("equipment_type");
|
||||
import scsb from './compant/SCSB'
|
||||
const showDetail = ref(false);
|
||||
const backCall = () => {
|
||||
|
@ -194,6 +208,14 @@ const backCall = () => {
|
|||
getList();
|
||||
// showDetail.value = false
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const rules = ref([])
|
||||
const data = reactive({
|
||||
// 按钮loading
|
||||
|
@ -465,6 +487,7 @@ function submit() {
|
|||
let value = scsbRef.value.handleSubmit()
|
||||
console.log(value)
|
||||
form.value.planTime = formatDate(form.value.planTime)
|
||||
|
||||
value.equipmentParamId = value.equipmentParamId.toString();
|
||||
|
||||
let data = {
|
||||
|
|
|
@ -0,0 +1,220 @@
|
|||
[
|
||||
{
|
||||
"id": 101,
|
||||
"parentId": 100,
|
||||
"label": "所有指标",
|
||||
"weight": 1,
|
||||
"children": [
|
||||
{
|
||||
"id": 100000,
|
||||
"parentId": 101,
|
||||
"label": "国标",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"id": 110000,
|
||||
"parentId": 101,
|
||||
"label": "北京市",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"id": 120000,
|
||||
"parentId": 101,
|
||||
"label": "天津市",
|
||||
"weight": 2
|
||||
},
|
||||
{
|
||||
"id": 130000,
|
||||
"parentId": 101,
|
||||
"label": "河北省",
|
||||
"weight": 3
|
||||
},
|
||||
{
|
||||
"id": 140000,
|
||||
"parentId": 101,
|
||||
"label": "山西省",
|
||||
"weight": 4
|
||||
},
|
||||
{
|
||||
"id": 150000,
|
||||
"parentId": 101,
|
||||
"label": "内蒙古自治区",
|
||||
"weight": 5
|
||||
},
|
||||
{
|
||||
"id": 210000,
|
||||
"parentId": 101,
|
||||
"label": "辽宁省",
|
||||
"weight": 6
|
||||
},
|
||||
{
|
||||
"id": 220000,
|
||||
"parentId": 101,
|
||||
"label": "吉林省",
|
||||
"weight": 7
|
||||
},
|
||||
{
|
||||
"id": 230000,
|
||||
"parentId": 101,
|
||||
"label": "黑龙江省",
|
||||
"weight": 8
|
||||
},
|
||||
{
|
||||
"id": 310000,
|
||||
"parentId": 101,
|
||||
"label": "上海市",
|
||||
"weight": 9
|
||||
},
|
||||
{
|
||||
"id": 320000,
|
||||
"parentId": 101,
|
||||
"label": "江苏省",
|
||||
"weight": 10
|
||||
},
|
||||
{
|
||||
"id": 330000,
|
||||
"parentId": 101,
|
||||
"label": "浙江省",
|
||||
"weight": 11
|
||||
},
|
||||
{
|
||||
"id": 340000,
|
||||
"parentId": 101,
|
||||
"label": "安徽省",
|
||||
"weight": 12
|
||||
},
|
||||
{
|
||||
"id": 350000,
|
||||
"parentId": 101,
|
||||
"label": "福建省",
|
||||
"weight": 13
|
||||
},
|
||||
{
|
||||
"id": 360000,
|
||||
"parentId": 101,
|
||||
"label": "江西省",
|
||||
"weight": 14
|
||||
},
|
||||
{
|
||||
"id": 370000,
|
||||
"parentId": 101,
|
||||
"label": "山东省",
|
||||
"weight": 15
|
||||
},
|
||||
{
|
||||
"id": 410000,
|
||||
"parentId": 101,
|
||||
"label": "河南省",
|
||||
"weight": 16
|
||||
},
|
||||
{
|
||||
"id": 420000,
|
||||
"parentId": 101,
|
||||
"label": "湖北省",
|
||||
"weight": 17
|
||||
},
|
||||
{
|
||||
"id": 430000,
|
||||
"parentId": 101,
|
||||
"label": "湖南省",
|
||||
"weight": 18
|
||||
},
|
||||
{
|
||||
"id": 440000,
|
||||
"parentId": 101,
|
||||
"label": "广东省",
|
||||
"weight": 19
|
||||
},
|
||||
{
|
||||
"id": 450000,
|
||||
"parentId": 101,
|
||||
"label": "广西壮族自治区",
|
||||
"weight": 20
|
||||
},
|
||||
{
|
||||
"id": 460000,
|
||||
"parentId": 101,
|
||||
"label": "海南省",
|
||||
"weight": 21
|
||||
},
|
||||
{
|
||||
"id": 500000,
|
||||
"parentId": 101,
|
||||
"label": "重庆市",
|
||||
"weight": 22
|
||||
},
|
||||
{
|
||||
"id": 510000,
|
||||
"parentId": 101,
|
||||
"label": "四川省",
|
||||
"weight": 23
|
||||
},
|
||||
{
|
||||
"id": 520000,
|
||||
"parentId": 101,
|
||||
"label": "贵州省",
|
||||
"weight": 24
|
||||
},
|
||||
{
|
||||
"id": 530000,
|
||||
"parentId": 101,
|
||||
"label": "云南省",
|
||||
"weight": 25
|
||||
},
|
||||
{
|
||||
"id": 540000,
|
||||
"parentId": 101,
|
||||
"label": "西藏自治区",
|
||||
"weight": 26
|
||||
},
|
||||
{
|
||||
"id": 610000,
|
||||
"parentId": 101,
|
||||
"label": "陕西省",
|
||||
"weight": 27
|
||||
},
|
||||
{
|
||||
"id": 620000,
|
||||
"parentId": 101,
|
||||
"label": "甘肃省",
|
||||
"weight": 28
|
||||
},
|
||||
{
|
||||
"id": 630000,
|
||||
"parentId": 101,
|
||||
"label": "青海省",
|
||||
"weight": 29
|
||||
},
|
||||
{
|
||||
"id": 640000,
|
||||
"parentId": 101,
|
||||
"label": "宁夏回族自治区",
|
||||
"weight": 30
|
||||
},
|
||||
{
|
||||
"id": 650000,
|
||||
"parentId": 101,
|
||||
"label": "新疆维吾尔自治区",
|
||||
"weight": 31
|
||||
},
|
||||
{
|
||||
"id": 710000,
|
||||
"parentId": 101,
|
||||
"label": "台湾省",
|
||||
"weight": 32
|
||||
},
|
||||
{
|
||||
"id": 810000,
|
||||
"parentId": 101,
|
||||
"label": "香港特别行政区",
|
||||
"weight": 33
|
||||
},
|
||||
{
|
||||
"id": 820000,
|
||||
"parentId": 101,
|
||||
"label": "澳门特别行政区",
|
||||
"weight": 34
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
|
@ -0,0 +1,523 @@
|
|||
<template>
|
||||
<el-form :model="form" ref="userRef" label-width="100px">
|
||||
<el-row>
|
||||
<el-form-item label="类型选择">
|
||||
<el-radio-group v-model="form.speclevel">
|
||||
<el-radio
|
||||
size="large"
|
||||
v-for="item in spec_level"
|
||||
v-key="item.value"
|
||||
:label="item.value"
|
||||
>{{ item.label }}</el-radio
|
||||
>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="进水指标" prop="phonenumber">
|
||||
<el-descriptions
|
||||
class="margin-top"
|
||||
direction="vertical"
|
||||
:column="8"
|
||||
border
|
||||
>
|
||||
<el-descriptions-item v-for="item in inletlist">
|
||||
<template #label>
|
||||
<div class="cell-item">
|
||||
{{ item.name }}
|
||||
</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="item.value"
|
||||
placeholder="请输入"
|
||||
maxlength="11"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
<!-- <el-icon :size="30" color="red"><CirclePlus /></el-icon> -->
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="出水指标" prop="phonenumber">
|
||||
<el-cascader
|
||||
v-model="cityValue"
|
||||
:options="citytype"
|
||||
:props="props"
|
||||
@change="handleChange"
|
||||
/>
|
||||
<el-descriptions
|
||||
class="margin-top"
|
||||
direction="vertical"
|
||||
:column="10"
|
||||
style="margin-top: 10px"
|
||||
border
|
||||
>
|
||||
<el-descriptions-item v-for="item in outletlist">
|
||||
<template #label>
|
||||
<div class="cell-item">
|
||||
{{ item.name }}
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<el-input
|
||||
v-model="item.value"
|
||||
placeholder="请输入"
|
||||
disabled
|
||||
maxlength="11"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="费用价格">
|
||||
<el-descriptions
|
||||
class="margin-top"
|
||||
style="width: 100%"
|
||||
:column="3"
|
||||
:size="size"
|
||||
border
|
||||
>
|
||||
<!-- <template #title>
|
||||
<el-button type="primary">Operation</el-button>
|
||||
</template> -->
|
||||
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">人工费</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="cost.laborCost"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">okr提成</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="cost.royaltyOKR"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">其他部门提成</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="cost.royaltyOther"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">包装费</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="cost.packingFee"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">企业综合管理费</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="cost.manageFee"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">运输费</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="cost.shippingFee"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">管线安装/吊装/搬运费</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="cost.buildingFee"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">服务器租赁费</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="cost.serverFee"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">融资成本</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="cost.financingCost"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">投标代理费/场地/专家费/配合费</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="cost.biddingFee"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">増值税</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="cost.vat"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template #label>
|
||||
<div class="cell-item">其他</div>
|
||||
</template>
|
||||
<el-input
|
||||
v-model="cost.other"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</el-descriptions-item>
|
||||
|
||||
</el-descriptions>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="处理量" prop="phonenumber">
|
||||
<el-input
|
||||
v-model="form.processCapacity"
|
||||
placeholder="请输入"
|
||||
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
</template>
|
||||
<script setup>
|
||||
import { treeRegionLevel, getData } from "@/api/renovation/technicalplan/discharge";
|
||||
import { list } from "@/api/renovation/technicalplan/capacity";
|
||||
import { list as equipmentEnergyConsumptionList,multipleConsumption }
|
||||
from "@/api/renovation/technicalplan/equipmentEnergyConsumption";
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { coliform_removal, technical_plan_type,packing_method,equipment_component_system,spec_level } =
|
||||
proxy.useDict(
|
||||
"coliform_removal",
|
||||
"technical_plan_type","packing_method",
|
||||
"equipment_component_system",
|
||||
"spec_level"
|
||||
);
|
||||
// import {
|
||||
// list as equipmentList,
|
||||
// treelist
|
||||
// } from "@/api/renovation/technicalplan/equipment";
|
||||
import {
|
||||
list as capList,
|
||||
|
||||
} from "@/api/renovation/technicalplan/capacity";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const props = defineProps({
|
||||
modelValue: {
|
||||
type: Object,
|
||||
default: () => {
|
||||
return {
|
||||
planId: null,
|
||||
};
|
||||
},
|
||||
},
|
||||
citytype:{
|
||||
type: Array,
|
||||
default: () => {
|
||||
return [];
|
||||
},
|
||||
},
|
||||
planType:{
|
||||
type: String,
|
||||
default: () => {
|
||||
return "";
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
const form = ref({
|
||||
waterIn: null,
|
||||
waterQualityStandardId: null,
|
||||
|
||||
equipmentParamId: null,
|
||||
});
|
||||
// watch(()=>props.planType,(val)=>{
|
||||
// form.equipmentParamId=[]
|
||||
// if(val)
|
||||
// gettreelist(val);
|
||||
// })
|
||||
const inletlist = ref([
|
||||
{
|
||||
name: "cod",
|
||||
value: "250~400",
|
||||
},
|
||||
{
|
||||
name: "bod",
|
||||
value: "0~400",
|
||||
},
|
||||
{
|
||||
name: "nh3",
|
||||
value: "30~50",
|
||||
},
|
||||
{
|
||||
name: "tn",
|
||||
value: "40~65",
|
||||
},
|
||||
{
|
||||
name: "tp",
|
||||
value: "2.5~5.0",
|
||||
},
|
||||
{
|
||||
name: "ss",
|
||||
value: "100~200",
|
||||
},
|
||||
{
|
||||
name: "ph",
|
||||
value: "6~9",
|
||||
},
|
||||
{
|
||||
name: "animalVegetableOil",
|
||||
value: "0~1",
|
||||
},
|
||||
]);
|
||||
const outletlist = ref([]);
|
||||
const tonnageData = ref([]);
|
||||
const treeListData = ref([]);
|
||||
const tableDevice = ref([]);
|
||||
const tableDict = ref([]);
|
||||
const devicelist = ref([]);
|
||||
const cityValue = ref([]);
|
||||
const dataList = ref([]);
|
||||
const citytype = ref(proxy.citytype)
|
||||
console.log(proxy.modelValue);
|
||||
function watchData(){
|
||||
watch(
|
||||
() => proxy.modelValue.planId,
|
||||
|
||||
(newval, oldval) => {
|
||||
if (newval) {
|
||||
let newForm = proxy.modelValue;
|
||||
citytype.value.forEach((element) => {
|
||||
let val = element.children.filter(
|
||||
(item) => newForm.waterQualityStandardId == item.value
|
||||
);
|
||||
if (val.length > 0) {
|
||||
cityValue.value = [element.label, val[0].value];
|
||||
handleChange(cityValue.value);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
form.value.speclevel=newForm.speclevel
|
||||
form.value.processCapacity=newForm.processCapacity
|
||||
cost.value=newForm?.cost||{
|
||||
laborCost:'',
|
||||
royaltyOKR:'',
|
||||
royaltyOther:'',
|
||||
packingFee:'',
|
||||
manageFee:'',
|
||||
shippingFee:'',
|
||||
buildingFee:'',
|
||||
serverFee:'',
|
||||
financingCost:'',
|
||||
biddingFee:'',
|
||||
vat:'',
|
||||
other:''
|
||||
}
|
||||
} else {
|
||||
rest();
|
||||
}
|
||||
},
|
||||
{ immediate: true }
|
||||
);
|
||||
|
||||
|
||||
}
|
||||
|
||||
async function handleChange(params) {
|
||||
console.log(params);
|
||||
outletlist.value = [];
|
||||
if(params[1]){
|
||||
let data = await getData(params[1]);
|
||||
form.value.waterQualityStandardId = params[1];
|
||||
const keyValue = [
|
||||
"standardId",
|
||||
"basisDoc",
|
||||
"createBy",
|
||||
"createTime",
|
||||
"level",
|
||||
"region",
|
||||
"updateBy",
|
||||
"updateTime",
|
||||
"regionId"
|
||||
];
|
||||
for (let item in data.data) {
|
||||
if (!keyValue.includes(item)) {
|
||||
outletlist.value.push({
|
||||
name: item,
|
||||
value: data.data[item],
|
||||
});
|
||||
}
|
||||
}
|
||||
}else{
|
||||
proxy.$modal.msgError("出水指标配置项错误,请联系管理员");
|
||||
}
|
||||
|
||||
}
|
||||
function changeSelect(value) {
|
||||
|
||||
console.log(devicelist.value);
|
||||
dataList.value = [];
|
||||
dataList.value = devicelist.value.filter((item) =>
|
||||
value.includes(item.capacityId)
|
||||
);
|
||||
}
|
||||
|
||||
const objectSpanMethod = ({ row, column, rowIndex, columnIndex }) => {
|
||||
if (columnIndex === 0 || columnIndex > 5) {
|
||||
if (rowIndex % 2 === 0) {
|
||||
return {
|
||||
rowspan: 2,
|
||||
colspan: 1,
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
rowspan: 0,
|
||||
colspan: 0,
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
function getList() {
|
||||
// let data = await list();
|
||||
// let equipData =await equipmentEnergyConsumptionList();
|
||||
// devicelist.value = equipData.rows;
|
||||
|
||||
|
||||
// tonnageData.value = data.data.map((item, index) => {
|
||||
// return {
|
||||
// value: item.capacityId,
|
||||
// label: item.capacityTonnage + "吨",
|
||||
// };
|
||||
// });
|
||||
watchData()
|
||||
}
|
||||
const cost=ref({})
|
||||
function rest() {
|
||||
form.value = {
|
||||
waterIn: null,
|
||||
waterQualityStandardId: null,
|
||||
|
||||
equipmentParamId: null,
|
||||
};
|
||||
cost.value={
|
||||
laborCost:'',
|
||||
royaltyOKR:'',
|
||||
royaltyOther:'',
|
||||
packingFee:'',
|
||||
manageFee:'',
|
||||
shippingFee:'',
|
||||
buildingFee:'',
|
||||
serverFee:'',
|
||||
financingCost:'',
|
||||
biddingFee:'',
|
||||
vat:'',
|
||||
other:''
|
||||
}
|
||||
dataList.value = [];
|
||||
}
|
||||
function handleSubmit() {
|
||||
form.value.waterIn = inletlist.value.reduce((obj, item) => {
|
||||
obj[item.name] = item.value;
|
||||
return obj;
|
||||
}, {});
|
||||
// let data = form.value.equipmentParamId.split("-");
|
||||
// form.value.equipmentDetail ={
|
||||
// capacityId: data[0],
|
||||
// equipmentId:data[1]
|
||||
// }
|
||||
|
||||
|
||||
|
||||
form.value.cost=cost.value
|
||||
return form.value;
|
||||
}
|
||||
defineExpose({
|
||||
handleSubmit,
|
||||
rest,
|
||||
});
|
||||
// async function gettreelist(type){
|
||||
// let res = await treelist(type)
|
||||
// let data = res.data
|
||||
// data.forEach(element => {
|
||||
// element.children.forEach(item=>{
|
||||
// item.label =`${item.label}(${element.label})` ,
|
||||
// item.value = element.value+'-'+item.value
|
||||
// })
|
||||
// });
|
||||
// treeListData.value = data
|
||||
// }
|
||||
|
||||
watch(
|
||||
() => form.value.equipmentParamId,
|
||||
(newVal, oldVal) => {
|
||||
console.log('新值:', newVal);
|
||||
|
||||
if(newVal&&newVal.length>0){
|
||||
let data = {
|
||||
equipmentId:newVal.split('-')[1],
|
||||
capacityId:newVal.split('-')[0]
|
||||
}
|
||||
multipleConsumption(data).then(res=>{
|
||||
|
||||
dataList.value=[ res.data]
|
||||
})
|
||||
}
|
||||
|
||||
// 在这里处理值变化后的逻辑
|
||||
}
|
||||
);
|
||||
|
||||
watch(
|
||||
() => form.value.speclevel,
|
||||
(newVal, oldVal) => {
|
||||
console.log('新值:', newVal);
|
||||
console.log('旧值:', oldVal);
|
||||
// 在这里处理值变化后的逻辑
|
||||
},
|
||||
{ deep: true, immediate: true }
|
||||
);
|
||||
|
||||
onMounted(() => {
|
||||
getList();
|
||||
|
||||
});
|
||||
</script>
|
||||
<style scope>
|
||||
.borderBt {
|
||||
border-bottom: 1px solid #ebeef5;
|
||||
padding: 0 0 4px;
|
||||
margin: 5px;
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,245 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch">
|
||||
|
||||
<el-form-item label="类型" prop="plan_type">
|
||||
<el-select v-model="queryParams.plan_type" placeholder="类型" clearable style="width: 200px">
|
||||
<el-option
|
||||
v-for="dict in equipment_type_foreign"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="Plus"
|
||||
@click="handleAdd"
|
||||
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="Edit"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="Delete"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="noticeList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="序号" align="center" prop="configId" width="100" />
|
||||
<el-table-column
|
||||
label="标题"
|
||||
align="center"
|
||||
prop="configName"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column label="类型" align="center" prop="plan_type">
|
||||
<template #default="scope">
|
||||
<dict-tag :options="equipment_type_foreign" :value="scope.row.planType" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template #default="scope">
|
||||
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:notice:edit']">修改</el-button>
|
||||
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:notice:remove']" >删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
v-model:page="queryParams.pageNum"
|
||||
v-model:limit="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改公告对话框 -->
|
||||
<el-dialog :title="title" v-model="open" width="40%" append-to-body>
|
||||
<el-form ref="noticeRef" :model="form" :rules="rules" label-width="80px">
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="名称" >
|
||||
<el-input v-model="form.configName" placeholder="请输入名称" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="类型" >
|
||||
<el-select style="width:100%" v-model="form.planType" placeholder="请选择">
|
||||
<el-option
|
||||
v-for="dict in equipment_type_foreign"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="文件" >
|
||||
<fileUpload :limit="1" v-model="form.ossId" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
|
||||
</el-row>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="Notice">
|
||||
import { list, getByid, delData, postData, putData }
|
||||
from "@/api/renovation/technicalPlan/equipment";
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { sys_notice_status, equipment_type_foreign } = proxy.useDict("sys_notice_status", "equipment_type_foreign");
|
||||
|
||||
const noticeList = ref([]);
|
||||
const open = ref(false);
|
||||
const loading = ref(true);
|
||||
const showSearch = ref(true);
|
||||
const ids = ref([]);
|
||||
const single = ref(true);
|
||||
const multiple = ref(true);
|
||||
const total = ref(0);
|
||||
const title = ref("");
|
||||
|
||||
const data = reactive({
|
||||
form: {
|
||||
|
||||
},
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
|
||||
},
|
||||
rules: {
|
||||
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
const { queryParams, form, rules } = toRefs(data);
|
||||
|
||||
/** 查询公告列表 */
|
||||
function getList() {
|
||||
loading.value = true;
|
||||
list(queryParams.value).then(response => {
|
||||
noticeList.value = response.rows;
|
||||
total.value = response.total;
|
||||
loading.value = false;
|
||||
});
|
||||
}
|
||||
/** 取消按钮 */
|
||||
function cancel() {
|
||||
open.value = false;
|
||||
reset();
|
||||
}
|
||||
/** 表单重置 */
|
||||
function reset() {
|
||||
form.value = {
|
||||
file:213
|
||||
};
|
||||
proxy.resetForm("noticeRef");
|
||||
}
|
||||
/** 搜索按钮操作 */
|
||||
function handleQuery() {
|
||||
queryParams.value.pageNum = 1;
|
||||
getList();
|
||||
}
|
||||
/** 重置按钮操作 */
|
||||
function resetQuery() {
|
||||
proxy.resetForm("queryRef");
|
||||
handleQuery();
|
||||
}
|
||||
/** 多选框选中数据 */
|
||||
function handleSelectionChange(selection) {
|
||||
ids.value = selection.map(item => item.configId);
|
||||
single.value = selection.length != 1;
|
||||
multiple.value = !selection.length;
|
||||
}
|
||||
/** 新增按钮操作 */
|
||||
function handleAdd() {
|
||||
reset();
|
||||
open.value = true;
|
||||
title.value = "添加";
|
||||
}
|
||||
/**修改按钮操作 */
|
||||
function handleUpdate(row) {
|
||||
reset();
|
||||
const configId = row.configId || ids.value;
|
||||
getByid(configId).then(response => {
|
||||
form.value = response.data;
|
||||
|
||||
open.value = true;
|
||||
title.value = "修改";
|
||||
});
|
||||
}
|
||||
/** 提交按钮 */
|
||||
function submitForm() {
|
||||
proxy.$refs["noticeRef"].validate(valid => {
|
||||
if (valid) {
|
||||
if (form.value.configId != undefined) {
|
||||
putData(form.value).then(response => {
|
||||
proxy.$modal.msgSuccess("修改成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
} else {
|
||||
postData(form.value).then(response => {
|
||||
proxy.$modal.msgSuccess("新增成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
/** 删除按钮操作 */
|
||||
function handleDelete(row) {
|
||||
const noticeIds = row.configId || ids.value
|
||||
proxy.$modal.confirm('是否确认删除编号为"' + noticeIds + '"的数据项?').then(function() {
|
||||
return delData(noticeIds);
|
||||
}).then(() => {
|
||||
getList();
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
}
|
||||
|
||||
getList();
|
||||
</script>
|
|
@ -0,0 +1,486 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="24" :xs="24">
|
||||
<el-button type="primary" plain icon="Plus" @click="handleAddRegion"
|
||||
>新增</el-button
|
||||
>
|
||||
</el-col>
|
||||
<!--部门数据-->
|
||||
<el-col :span="4" :xs="24">
|
||||
<div class="head-container">
|
||||
<el-tree
|
||||
:data="deptOptions"
|
||||
:props="{ label: 'label', children: 'children' }"
|
||||
:expand-on-click-node="false"
|
||||
ref="deptTreeRef"
|
||||
node-key="id"
|
||||
highlight-current
|
||||
default-expand-all
|
||||
style="height: 80vh; overflow-y: scroll"
|
||||
@node-click="handleNodeClick"
|
||||
:render-content="renderContent"
|
||||
/>
|
||||
</div>
|
||||
</el-col>
|
||||
<!--用户数据-->
|
||||
<el-col :span="20" :xs="24">
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" plain icon="Plus" @click="handleAdd"
|
||||
>新增</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
||||
<right-toolbar
|
||||
v-model:showSearch="showSearch"
|
||||
@queryTable="getList"
|
||||
></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="standardList"
|
||||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
<el-table-column label="检测指标" align="center" prop="level" />
|
||||
<el-table-column
|
||||
label="COD(mg/L)"
|
||||
align="center"
|
||||
prop="cod"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column
|
||||
label="BOD(mg/L)"
|
||||
align="center"
|
||||
prop="bod"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column
|
||||
label="SS(mg/L)"
|
||||
align="center"
|
||||
prop="ss"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column
|
||||
label="氨氮(mg/L)"
|
||||
align="center"
|
||||
prop="nh3"
|
||||
width="120"
|
||||
/>
|
||||
<el-table-column
|
||||
label="总氮(mg/L)"
|
||||
align="center"
|
||||
prop="tn"
|
||||
width="120"
|
||||
/>
|
||||
|
||||
<el-table-column
|
||||
label="总磷(mg/L)"
|
||||
align="center"
|
||||
prop="tp"
|
||||
width="120"
|
||||
/>
|
||||
<el-table-column label="PH" align="center" prop="ph" width="120" />
|
||||
<el-table-column
|
||||
label="动植物油(mg/L)"
|
||||
align="center"
|
||||
prop="animalVegetableOil"
|
||||
width="120"
|
||||
/>
|
||||
<el-table-column
|
||||
label="操作"
|
||||
align="center"
|
||||
width="150"
|
||||
class-name="small-padding fixed-width"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-tooltip content="修改" placement="top">
|
||||
<el-button
|
||||
link
|
||||
type="primary"
|
||||
icon="Edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
></el-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip content="删除" placement="top">
|
||||
<el-button
|
||||
link
|
||||
type="primary"
|
||||
icon="Delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
></el-button>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
v-model:page="queryParams.pageNum"
|
||||
v-model:limit="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<!-- 添加或修改配置对话框 -->
|
||||
<el-dialog :title="title" v-model="open" width="600px" append-to-body>
|
||||
<el-form :model="form" :rules="rules" ref="waterRef" label-width="100px">
|
||||
<el-form-item label="出水标准">
|
||||
<el-input
|
||||
v-model="gendictryData.regionName"
|
||||
placeholder="请输入"
|
||||
disabled
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="依据文件名">
|
||||
<el-input
|
||||
v-model="gendictryData.basisDoc"
|
||||
placeholder="请输入"
|
||||
disabled
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="检测指标">
|
||||
<el-input v-model="form.level" placeholder="请输入" />
|
||||
</el-form-item>
|
||||
<el-form-item label="COD">
|
||||
<el-input v-model="form.cod" placeholder="请输入" />
|
||||
</el-form-item>
|
||||
<el-form-item label="BOD">
|
||||
<el-input v-model="form.bod" placeholder="请输入" />
|
||||
</el-form-item>
|
||||
<el-form-item label="SS">
|
||||
<el-input v-model="form.ss" placeholder="请输入" />
|
||||
</el-form-item>
|
||||
<el-form-item label="氨氮NH3-N">
|
||||
<el-input v-model="form.nh3" placeholder="请输入" />
|
||||
</el-form-item>
|
||||
<el-form-item label="总氮">
|
||||
<el-input v-model="form.tn" placeholder="请输入" />
|
||||
</el-form-item>
|
||||
<el-form-item label="总磷">
|
||||
<el-input v-model="form.tp" placeholder="请输入" />
|
||||
</el-form-item>
|
||||
<el-form-item label="PH">
|
||||
<el-input v-model="form.ph" placeholder="请输入" />
|
||||
</el-form-item>
|
||||
<el-form-item label="动植物油">
|
||||
<el-input v-model="form.animalVegetableOil" placeholder="请输入" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog :title="title" v-model="gendictry" width="600px" append-to-body>
|
||||
<el-form :model="form" :rules="rules" label-width="100px">
|
||||
<el-form-item label="地区名称">
|
||||
<el-input v-model="form.regionName" placeholder="请输入" />
|
||||
</el-form-item>
|
||||
<el-form-item label="依据文件名">
|
||||
<el-input v-model="form.basisDoc" placeholder="请输入" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button type="primary" @click="submitgendictry">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="Discharge">
|
||||
import city from "./city.json";
|
||||
import {
|
||||
list,
|
||||
postData,
|
||||
putData,
|
||||
deleteData,
|
||||
} from "@/api/renovation/technicalPlan/discharge";
|
||||
import {
|
||||
list as waterList,
|
||||
postData as waterPost,
|
||||
putData as waterPut,
|
||||
deleteData as waterDelete,
|
||||
} from "@/api/renovation/technicalPlan/waterQualityRegion";
|
||||
const { proxy } = getCurrentInstance();
|
||||
const loading = ref();
|
||||
import { ElMessage, ElMessageBox, ElButton } from "element-plus";
|
||||
const data = reactive({
|
||||
form: {},
|
||||
showSearch: false,
|
||||
total: "",
|
||||
title: "",
|
||||
standardList: [],
|
||||
deptOptions: [],
|
||||
multiple: true,
|
||||
single: true,
|
||||
open: false,
|
||||
ids: [],
|
||||
gendictry: false,
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
region: "",
|
||||
},
|
||||
rules: {},
|
||||
});
|
||||
const gendictryData = ref({});
|
||||
const {
|
||||
queryParams,
|
||||
form,
|
||||
ids,
|
||||
rules,
|
||||
standardList,
|
||||
total,
|
||||
single,
|
||||
showSearch,
|
||||
deptOptions,
|
||||
title,
|
||||
open,
|
||||
gendictry,
|
||||
multiple,
|
||||
} = toRefs(data);
|
||||
|
||||
function submitgendictry() {
|
||||
if (form.value.regionId) {
|
||||
waterPut(form.value).then((res) => {
|
||||
proxy.$modal.msgSuccess("修改成功");
|
||||
gendictry.value = false;
|
||||
getDeptTree();
|
||||
});
|
||||
} else {
|
||||
waterPost(form.value).then((res) => {
|
||||
proxy.$modal.msgSuccess("添加成功");
|
||||
gendictry.value = false;
|
||||
getDeptTree();
|
||||
});
|
||||
}
|
||||
}
|
||||
function getDeptTree() {
|
||||
waterList().then((response) => {
|
||||
let data = [
|
||||
{
|
||||
id: 101,
|
||||
parentId: 100,
|
||||
label: "所有指标",
|
||||
weight: 1,
|
||||
children: null,
|
||||
},
|
||||
];
|
||||
data[0].children = response.data.map((item, index) => {
|
||||
return {
|
||||
id: item.regionId,
|
||||
parentId: 101,
|
||||
label: item.regionName,
|
||||
weight: 1,
|
||||
val: item,
|
||||
};
|
||||
});
|
||||
deptOptions.value = data;
|
||||
// queryParams.value.regionId = response.data[0].regionId
|
||||
getList();
|
||||
});
|
||||
}
|
||||
/** 查询列表 */
|
||||
function getList() {
|
||||
loading.value = true;
|
||||
list(proxy.addDateRange(queryParams.value)).then((res) => {
|
||||
loading.value = false;
|
||||
standardList.value = res.rows;
|
||||
total.value = res.total;
|
||||
});
|
||||
}
|
||||
/** 节点单击事件 */
|
||||
function handleNodeClick(data) {
|
||||
console.log(data);
|
||||
gendictryData.value = data.val;
|
||||
queryParams.value.regionId = data.id == 101 ? "" : data.id;
|
||||
handleQuery();
|
||||
}
|
||||
/** 搜索按钮操作 */
|
||||
function handleQuery() {
|
||||
queryParams.value.pageNum = 1;
|
||||
getList();
|
||||
}
|
||||
|
||||
/** 删除按钮操作 */
|
||||
function handleDelete(row) {
|
||||
const level = row.level;
|
||||
proxy.$modal
|
||||
.confirm('是否确认删除指标为"' + level + '"的数据项?')
|
||||
.then(function () {
|
||||
return deleteData(row.standardId);
|
||||
})
|
||||
.then(() => {
|
||||
getList();
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
})
|
||||
.catch(() => {});
|
||||
}
|
||||
/** 导出按钮操作 */
|
||||
function handleExport() {
|
||||
proxy.download(
|
||||
"system/user/export",
|
||||
{
|
||||
...queryParams.value,
|
||||
},
|
||||
`user_${new Date().getTime()}.xlsx`
|
||||
);
|
||||
}
|
||||
|
||||
/** 选择条数 */
|
||||
function handleSelectionChange(selection) {
|
||||
ids.value = selection.map((item) => item.userId);
|
||||
single.value = selection.length != 1;
|
||||
multiple.value = !selection.length;
|
||||
}
|
||||
/** 导入按钮操作 */
|
||||
function handleImport() {
|
||||
upload.title = "用户导入";
|
||||
upload.open = true;
|
||||
}
|
||||
|
||||
/** 重置操作表单 */
|
||||
function reset() {
|
||||
form.value = {
|
||||
standardId: "",
|
||||
region: "",
|
||||
basisDoc: "",
|
||||
level: "",
|
||||
cod: "",
|
||||
bod: "",
|
||||
ss: "",
|
||||
nh3: "",
|
||||
tn: "",
|
||||
tp: "",
|
||||
ph: "",
|
||||
animalVegetableOil: "",
|
||||
};
|
||||
proxy.resetForm("waterRef");
|
||||
}
|
||||
/** 取消按钮 */
|
||||
function cancel() {
|
||||
open.value = false;
|
||||
gendictry.value = false;
|
||||
reset();
|
||||
}
|
||||
function handleAddRegion() {
|
||||
form.value = Object.assign({});
|
||||
title.value = "添加区域";
|
||||
gendictry.value = true;
|
||||
}
|
||||
/** 新增按钮操作 */
|
||||
function handleAdd() {
|
||||
reset();
|
||||
title.value = "添加数据";
|
||||
form.value.region = queryParams.value.region;
|
||||
open.value = true;
|
||||
}
|
||||
/** 修改按钮操作 */
|
||||
function handleUpdate(row) {
|
||||
reset();
|
||||
open.value = true;
|
||||
form.value.region = queryParams.value.region;
|
||||
form.value = { ...row };
|
||||
title.value = "修改用户";
|
||||
}
|
||||
/** 提交按钮 */
|
||||
function submitForm() {
|
||||
proxy.$refs["waterRef"].validate((valid) => {
|
||||
form.value.regionId = gendictryData.value.regionId;
|
||||
if (valid) {
|
||||
if (form.value.standardId != "") {
|
||||
putData(form.value).then((response) => {
|
||||
proxy.$modal.msgSuccess("修改成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
} else {
|
||||
postData(form.value).then((response) => {
|
||||
proxy.$modal.msgSuccess("新增成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
const renderContent = (h, { node, data, store }) => {
|
||||
if (node.level == 2) {
|
||||
}
|
||||
return h(
|
||||
"div",
|
||||
{
|
||||
class: "custom-tree-node",
|
||||
style: {
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
width: "100%",
|
||||
},
|
||||
},
|
||||
h("div", null, node.label),
|
||||
|
||||
node.level == 1
|
||||
? ""
|
||||
: h(
|
||||
"div",
|
||||
null,
|
||||
h(
|
||||
ElButton,
|
||||
{
|
||||
type: "primary",
|
||||
link: true,
|
||||
onClick: (e) => exitData(data,e),
|
||||
},
|
||||
"修改"
|
||||
),
|
||||
h(
|
||||
ElButton,
|
||||
{
|
||||
type: "danger",
|
||||
link: true,
|
||||
style: "margin-left: 4px",
|
||||
onClick: (e) => removeData(node, data,e),
|
||||
},
|
||||
"删除"
|
||||
)
|
||||
)
|
||||
);
|
||||
};
|
||||
function exitData(data,e) {
|
||||
|
||||
e.stopPropagation()
|
||||
form.value = Object.assign(data.val);
|
||||
title.value = "编辑区域";
|
||||
gendictry.value = true;
|
||||
}
|
||||
function removeData(node, data,e) {
|
||||
e.stopPropagation()
|
||||
proxy.$modal
|
||||
.confirm("是否确认删除地区为" + data.val.regionName + "的数据项?")
|
||||
.then(function () {
|
||||
return waterDelete(data.val.regionId);
|
||||
})
|
||||
.then(() => {
|
||||
getDeptTree();
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
})
|
||||
.catch(() => {});
|
||||
}
|
||||
getDeptTree();
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.custom-tree-node {
|
||||
display: flex;
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,327 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<transition name="fade">
|
||||
<div :gutter="20" v-if="!showDetail">
|
||||
<el-row :gutter="10">
|
||||
<el-form
|
||||
:model="queryParams"
|
||||
ref="queryRef"
|
||||
:inline="true"
|
||||
v-show="showSearch"
|
||||
label-width="68px"
|
||||
>
|
||||
<el-form-item label="设备名称" prop="userName">
|
||||
<el-input
|
||||
v-model="queryParams.equipmentName"
|
||||
placeholder="请输入设备名称"
|
||||
clearable
|
||||
style="width: 240px"
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="Search" @click="handleQuery"
|
||||
>搜索</el-button
|
||||
>
|
||||
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<right-toolbar
|
||||
v-model:showSearch="showSearch"
|
||||
@queryTable="getList"
|
||||
></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
style="margin-top: 20px"
|
||||
border
|
||||
:data="dataList"
|
||||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
<el-table-column
|
||||
label="序号"
|
||||
type="index"
|
||||
width="55"
|
||||
align="center"
|
||||
/>
|
||||
|
||||
<el-table-column
|
||||
label="设备名称"
|
||||
align="center"
|
||||
width="150"
|
||||
prop="processingCapacity"
|
||||
>
|
||||
<template #default="scope">
|
||||
{{ scope.row.equipmentName }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="处理量"
|
||||
width="90"
|
||||
align="center"
|
||||
prop="capacityTonnage"
|
||||
/>
|
||||
|
||||
<el-table-column align="center" label="组件能耗">
|
||||
<template #default="scope">
|
||||
<el-table
|
||||
:data="scope.row.componentConsumption"
|
||||
style="width: 100%"
|
||||
>
|
||||
<el-table-column
|
||||
prop="componentName"
|
||||
label="组件名称 "
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="componentParam"
|
||||
label="组件参数"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column prop="totalQuantity" label="总数量" />
|
||||
<el-table-column prop="runQuantity" label="运行数量" />
|
||||
<el-table-column prop="singlePower" label="单个功率" />
|
||||
<el-table-column prop="installedPower" label="安装功率" />
|
||||
<el-table-column prop="runtime" label="运行时间" />
|
||||
<el-table-column prop="dailyConsumption" label="日均能耗 " />
|
||||
</el-table>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
label="所有组件总数"
|
||||
align="center"
|
||||
width="120"
|
||||
prop="sumTotalQuantity"
|
||||
/>
|
||||
<el-table-column
|
||||
label="所有组件总装机功率"
|
||||
align="center"
|
||||
width="150"
|
||||
prop="sumInstalledPower"
|
||||
/>
|
||||
<el-table-column
|
||||
label="所有组件总日均能耗"
|
||||
align="center"
|
||||
width="150"
|
||||
prop="sumDailyConsumption"
|
||||
/>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
v-model:page="queryParams.pageNum"
|
||||
v-model:limit="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改公告对话框 -->
|
||||
<el-dialog :title="title" v-model="open" width="30%" append-to-body>
|
||||
<el-form
|
||||
:model="form"
|
||||
:rules="rules"
|
||||
ref="deviceRef"
|
||||
label-width="100px"
|
||||
>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="水泵运行时间" prop="nickName">
|
||||
<el-input v-model="form.pumpRuntime" placeholder="请输入" />
|
||||
</el-form-item>
|
||||
<el-form-item label="风机运行时间" prop="nickName">
|
||||
<el-input v-model="form.fanRuntime" placeholder="请输入" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</transition>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="porfiles">
|
||||
import {
|
||||
list,
|
||||
postData,
|
||||
putData,
|
||||
deleteData,
|
||||
updateComponentRunTime,
|
||||
} from "@/api/renovation/technicalplan/equipmentEnergyConsumption";
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
const showDetail = ref(false);
|
||||
const backCall = () => {
|
||||
if (!document.startViewTransition) {
|
||||
showDetail.value = false;
|
||||
return;
|
||||
}
|
||||
document.startViewTransition(() => (showDetail.value = false));
|
||||
getList();
|
||||
// showDetail.value = false
|
||||
};
|
||||
const data = reactive({
|
||||
// 按钮loading
|
||||
buttonLoading: false,
|
||||
// 遮罩层
|
||||
loading: false,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 图层管理表格数据
|
||||
dataList: [],
|
||||
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
createBy: undefined,
|
||||
layersId: undefined,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
});
|
||||
const input = ref("");
|
||||
const {
|
||||
open,
|
||||
|
||||
showSearch,
|
||||
schemetype,
|
||||
queryParams,
|
||||
form,
|
||||
ids,
|
||||
title,
|
||||
|
||||
dataList,
|
||||
|
||||
total,
|
||||
multiple,
|
||||
single,
|
||||
loading,
|
||||
|
||||
buttonLoading,
|
||||
} = toRefs(data);
|
||||
|
||||
/** 提交按钮 */
|
||||
function submitForm() {
|
||||
proxy.$refs["deviceRef"].validate((valid) => {
|
||||
if (valid) {
|
||||
updateComponentRunTime(form.value).then((response) => {
|
||||
proxy.$modal.msgSuccess("修改成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
/** 表单重置 */
|
||||
function reset() {
|
||||
form.value = {
|
||||
paramId: undefined,
|
||||
};
|
||||
proxy.resetForm("applyRef");
|
||||
}
|
||||
/** 新增按钮操作 */
|
||||
function handleAdd() {
|
||||
reset();
|
||||
open.value = true;
|
||||
title.value = "添加";
|
||||
}
|
||||
/** 删除按钮操作 */
|
||||
function handleDelete(row) {
|
||||
const level = row.processingCapacity;
|
||||
proxy.$modal
|
||||
.confirm('是否确认删除处理量为"' + level + '"的数据项?')
|
||||
.then(function () {
|
||||
return deleteData(row.paramId);
|
||||
})
|
||||
.then(() => {
|
||||
getList();
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
})
|
||||
.catch(() => {});
|
||||
}
|
||||
//详情
|
||||
const arrSite = ref([]);
|
||||
const planData = ref({});
|
||||
async function handleOpen(row) {
|
||||
title.value = "编辑";
|
||||
form.value = {
|
||||
consumptionId: row.consumptionId,
|
||||
pumpRuntime: row.pumpRuntime,
|
||||
fanRuntime: row.fanRuntime,
|
||||
};
|
||||
|
||||
open.value = true;
|
||||
}
|
||||
function handleQuery() {
|
||||
getList();
|
||||
}
|
||||
function handleSelectionChange(selection) {
|
||||
ids.value = selection.map((item) => item.id);
|
||||
single.value = selection.length !== 1;
|
||||
multiple.value = !selection.length;
|
||||
}
|
||||
/** 查询理列表 */
|
||||
function getList() {
|
||||
// loading.value = false;
|
||||
loading.value = true;
|
||||
|
||||
list(queryParams.value, []).then((response) => {
|
||||
dataList.value = response.rows;
|
||||
total.value = response.total;
|
||||
loading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
getList();
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.fade-enter-active {
|
||||
transition: all 0.3s ease-out;
|
||||
}
|
||||
.fade-leave-active {
|
||||
transition: all 0.3s cubic-bezier(1, 0.5, 0.8, 1);
|
||||
}
|
||||
.fade-enter-from,
|
||||
.fade-leave-to {
|
||||
transform: translateX(-120px);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.detail-enter-active,
|
||||
.detail-leave-active {
|
||||
transition: opacity 0.5s ease;
|
||||
}
|
||||
.detail-enter-from,
|
||||
.detail-leave-to {
|
||||
opacity: 0;
|
||||
}
|
||||
.borderBt {
|
||||
border-bottom: 1px solid #ebeef5;
|
||||
padding: 0 0 4px;
|
||||
margin: 5px;
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,544 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<transition name="fade">
|
||||
<div :gutter="20" v-if="!showDetail">
|
||||
<el-row :gutter="10">
|
||||
<el-form
|
||||
:model="queryParams"
|
||||
ref="queryForm"
|
||||
:inline="true"
|
||||
v-show="showSearch"
|
||||
label-width="68px"
|
||||
>
|
||||
|
||||
<el-form-item label ="方案名称" prop="layerName">
|
||||
<el-input
|
||||
v-model="queryParams.planName"
|
||||
placeholder="请输入方案"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="Search" @click="handleQuery"
|
||||
>搜索</el-button
|
||||
>
|
||||
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-row>
|
||||
|
||||
<el-row :gutter="10">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="Plus"
|
||||
@click="handleAdd"
|
||||
|
||||
>新增</el-button
|
||||
>
|
||||
</el-col>
|
||||
|
||||
|
||||
<right-toolbar
|
||||
v-model:showSearch="showSearch"
|
||||
@queryTable="getList"
|
||||
></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
style="margin-top: 20px"
|
||||
:data="dataList"
|
||||
|
||||
>
|
||||
<el-table-column type="index" label="序号" width="55" align="center" />
|
||||
<el-table-column label="公司名称" align="center" prop="companyName" />
|
||||
<el-table-column label="方案名称" align="center" prop="planName" />
|
||||
|
||||
<el-table-column label="创建时间" align="center" prop="createTime" />
|
||||
|
||||
<el-table-column
|
||||
label="操作"
|
||||
align="center"
|
||||
class-name="small-padding fixed-width"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
link
|
||||
type="primary"
|
||||
icon="Edit"
|
||||
@click="handleExit(scope.row)"
|
||||
>修改</el-button
|
||||
>
|
||||
<el-button
|
||||
link
|
||||
type="warning"
|
||||
icon="Download"
|
||||
@click="handleOpen(scope.row)"
|
||||
>导出</el-button
|
||||
>
|
||||
<el-button
|
||||
link
|
||||
type="danger"
|
||||
icon="Delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
|
||||
>删除</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
v-model:page="queryParams.pageNum"
|
||||
v-model:limit="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改公告对话框 -->
|
||||
<el-dialog :title="title" v-model="open" width="70%" append-to-body>
|
||||
<el-form
|
||||
:model="form"
|
||||
:rules="rules"
|
||||
ref="applyRef"
|
||||
label-width="100px"
|
||||
>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="公司名称" >
|
||||
<el-input
|
||||
v-model="form.companyName"
|
||||
placeholder="公司名称"
|
||||
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="方案名称" >
|
||||
<el-input
|
||||
v-model="form.planName"
|
||||
placeholder="方案名称"
|
||||
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="方案时间" >
|
||||
<el-date-picker
|
||||
v-model="form.planTime"
|
||||
type="month"
|
||||
style="width: 100%"
|
||||
placeholder="方案时间"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="方案类型" >
|
||||
<el-select
|
||||
v-model="form.planType"
|
||||
placeholder="选择类型"
|
||||
style="width: 100%"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in equipment_type_foreign"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
</el-row>
|
||||
<scsb ref="scsbRef" v-if="open" :citytype="citytype" :planType="form.planType" v-model="formValue"></scsb>
|
||||
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button type="primary" @click="submit">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</transition>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="porfiles">
|
||||
import {
|
||||
list,
|
||||
postData,
|
||||
putData,
|
||||
deleteData
|
||||
} from "@/api/renovation/technicalplan/index";
|
||||
|
||||
import {
|
||||
treeRegionLevel,
|
||||
|
||||
} from "@/api/renovation/technicalplan/discharge";
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { equipment_type_foreign } = proxy.useDict("equipment_type_foreign");
|
||||
import scsb from './compant/SCSB'
|
||||
const showDetail = ref(false);
|
||||
const backCall = () => {
|
||||
if (!document.startViewTransition) {
|
||||
showDetail.value = false;
|
||||
return;
|
||||
}
|
||||
document.startViewTransition(() => (showDetail.value = false));
|
||||
getList();
|
||||
// showDetail.value = false
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const rules = ref([])
|
||||
const data = reactive({
|
||||
// 按钮loading
|
||||
buttonLoading: false,
|
||||
// 遮罩层
|
||||
loading: false,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
tableDevice: [
|
||||
{
|
||||
name: "10",
|
||||
waterDict: "Q=9m3/h;H=5m;P=0.25kW;220V",
|
||||
waterNum: "2",
|
||||
airDict: "150L/min;P=0.115kW;220V",
|
||||
airNum: "1",
|
||||
},
|
||||
{
|
||||
name: "20",
|
||||
waterDict: "Q=9m3/h;H=5m;P=0.25kW;220V",
|
||||
waterNum: "2",
|
||||
airDict: "150L/min;P=0.115kW;220V",
|
||||
airNum: "1",
|
||||
},
|
||||
],
|
||||
tableDict: [
|
||||
{
|
||||
name: "10",
|
||||
device: "水泵",
|
||||
yxsj: "3",
|
||||
taishu: "1",
|
||||
zhuangjigl: "0.5",
|
||||
rijdh: "0.75",
|
||||
rzdh: "3.25",
|
||||
rduzdkh: "0.325",
|
||||
dshuidf: "0.124",
|
||||
},
|
||||
{
|
||||
name: "10",
|
||||
device: "风机",
|
||||
yxsj: "22",
|
||||
taishu: "33",
|
||||
zhuangjigl: "0.15",
|
||||
rijdh: "3.75",
|
||||
rzdh: "3.25",
|
||||
rduzdkh: "0.325",
|
||||
dshuidf: "0.124",
|
||||
},
|
||||
{
|
||||
name: "20",
|
||||
device: "水泵",
|
||||
yxsj: "6",
|
||||
taishu: "1",
|
||||
zhuangjigl: "0.5",
|
||||
rijdh: "0.75",
|
||||
rzdh: "4.25",
|
||||
rduzdkh: "0.202",
|
||||
dshuidf: "0.967",
|
||||
},
|
||||
{
|
||||
name: "20",
|
||||
device: "风机",
|
||||
yxsj: "22",
|
||||
taishu: "33",
|
||||
zhuangjigl: "0.15",
|
||||
rijdh: "3.75",
|
||||
rzdh: "4.25",
|
||||
rduzdkh: "0.202",
|
||||
dshuidf: "0.622",
|
||||
},
|
||||
],
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 图层管理表格数据
|
||||
dataList: [
|
||||
|
||||
],
|
||||
citytype:[],
|
||||
|
||||
|
||||
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
createBy: undefined,
|
||||
layersId: undefined,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
});
|
||||
const scsbRef = ref()
|
||||
const input = ref("");
|
||||
const {
|
||||
open,
|
||||
tableDevice,
|
||||
showSearch,
|
||||
schemetype,
|
||||
queryParams,
|
||||
form,
|
||||
ids,
|
||||
title,
|
||||
tonnageData,
|
||||
dataList,
|
||||
citytype,
|
||||
total,
|
||||
multiple,
|
||||
single,
|
||||
loading,
|
||||
planList,
|
||||
tableDict,
|
||||
inletlist,
|
||||
buttonLoading,
|
||||
} = toRefs(data);
|
||||
const planDialog = ref("");
|
||||
const applyDialog = ref(false);
|
||||
const layerName = ref();
|
||||
|
||||
|
||||
const arraySpanMethod = ({ row, column, rowIndex, columnIndex }) => {
|
||||
if (rowIndex % 2 === 0) {
|
||||
if (columnIndex === 0) {
|
||||
return [1, 2];
|
||||
} else if (columnIndex === 1) {
|
||||
return [0, 0];
|
||||
}
|
||||
}
|
||||
};
|
||||
const filterMethod = (query, item) => {
|
||||
return item.initial.toLowerCase().includes(query.toLowerCase());
|
||||
};
|
||||
const handleExcel = (item) => {
|
||||
excel(item.planId);
|
||||
proxy.download(
|
||||
"/technicalPlanForeign/export/word",
|
||||
{
|
||||
planId: item.planId,
|
||||
},
|
||||
`${item.planName}.xlsx`,
|
||||
{
|
||||
baseURL: "/plan-api",
|
||||
}
|
||||
);
|
||||
};
|
||||
const handleWorld = (item) => {
|
||||
excel(item.planId);
|
||||
proxy.download(
|
||||
"/technicalPlanForeign/export/word",
|
||||
{
|
||||
planId: item.planId,
|
||||
},
|
||||
`${item.planName}.docx`,
|
||||
{
|
||||
baseURL: "/plan-api",
|
||||
}
|
||||
);
|
||||
};
|
||||
function cancel(){
|
||||
open.value = false;
|
||||
}
|
||||
/** 表单重置 */
|
||||
function reset() {
|
||||
form.value = {
|
||||
"planName": "",
|
||||
"planType": "",
|
||||
"planTime": '',
|
||||
"companyName":''
|
||||
};
|
||||
|
||||
proxy.resetForm("applyRef");
|
||||
}
|
||||
const formValue = ref({})
|
||||
function handleExit(row){
|
||||
reset();
|
||||
|
||||
|
||||
open.value = true;
|
||||
title.value = "编辑方案";
|
||||
form.value ={
|
||||
planId: row.planId,
|
||||
planTime:new Date(parseInt(row.planTime.toString().substring(0,4)), parseInt(row.planTime.toString().substring(4)) - 1),//row.planTime.toString().substring(0,4)+'-'+row.planTime.toString().substring(4),
|
||||
planType:row.planType,
|
||||
planName:row.planName,
|
||||
companyName:row.companyName
|
||||
}
|
||||
|
||||
formValue.value= JSON.parse(JSON.stringify(row));
|
||||
}
|
||||
/** 新增按钮操作 */
|
||||
function handleAdd() {
|
||||
reset();
|
||||
|
||||
open.value = true;
|
||||
formValue.value={planId:null}
|
||||
title.value = "添加方案";
|
||||
}
|
||||
//详情
|
||||
const arrSite = ref([]);
|
||||
const planData = ref({});
|
||||
async function handleOpen(row) {
|
||||
proxy.download("/technicalPlanForeign/export/word/"+row.planId, {
|
||||
}, `${row.planName}.doc`,{ baseURL: "/plan-api",});
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** 删除按钮操作 */
|
||||
function handleDelete(row) {
|
||||
const planName = row.planName ;
|
||||
proxy.$modal
|
||||
.confirm('是否确认方案:' + planName )
|
||||
.then(function () {
|
||||
return deleteData(row.planId);
|
||||
})
|
||||
.then(() => {
|
||||
getList();
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
})
|
||||
.catch(() => {});
|
||||
}
|
||||
function handleSelectionChange(selection) {
|
||||
ids.value = selection.map((item) => item.id);
|
||||
single.value = selection.length !== 1;
|
||||
multiple.value = !selection.length;
|
||||
}
|
||||
/** 查询理列表 */
|
||||
function getList() {
|
||||
// loading.value = false;
|
||||
loading.value = true;
|
||||
list(queryParams.value).then((response) => {
|
||||
|
||||
dataList.value = response.rows;
|
||||
total.value = response.total;
|
||||
loading.value = false;
|
||||
});
|
||||
}
|
||||
/** 搜索按钮操作 */
|
||||
function handleQuery() {
|
||||
queryParams.value.pageNum = 1;
|
||||
getList();
|
||||
}
|
||||
/** 重置按钮操作 */
|
||||
function resetQuery() {
|
||||
proxy.resetForm("queryForm");
|
||||
handleQuery();
|
||||
}
|
||||
//格式化时间函数
|
||||
function formatDate(date) {
|
||||
let year = date.getFullYear();
|
||||
let month = date.getMonth() + 1;
|
||||
let day = date.getDate();
|
||||
|
||||
return (
|
||||
year +
|
||||
(month < 10 ? "0" + month : month)
|
||||
)
|
||||
}
|
||||
function submit() {
|
||||
console.log(form.value)
|
||||
let value = scsbRef.value.handleSubmit()
|
||||
console.log(value)
|
||||
form.value.planTime = formatDate(form.value.planTime)
|
||||
// value.equipmentParamId = value.equipmentParamId.toString();
|
||||
|
||||
let data = {
|
||||
...value,
|
||||
...form.value,
|
||||
|
||||
}
|
||||
console.log(data)
|
||||
if(form.value.planId){
|
||||
putData(data).then(res=>{
|
||||
proxy.$modal.msgSuccess(res.msg);
|
||||
scsbRef.value.rest()
|
||||
open.value = false;
|
||||
|
||||
getList()
|
||||
|
||||
})
|
||||
|
||||
}else{
|
||||
postData(data).then(res=>{
|
||||
proxy.$modal.msgSuccess(res.msg);
|
||||
scsbRef.value.rest()
|
||||
open.value = false;
|
||||
getList()
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
async function getTreeData() {
|
||||
let data = await treeRegionLevel();
|
||||
|
||||
citytype.value = data.data.map((item, index) => {
|
||||
return {
|
||||
value: item.label,
|
||||
label: item.label,
|
||||
children: item.children,
|
||||
};
|
||||
});
|
||||
}
|
||||
onMounted(() => {
|
||||
getList();
|
||||
getTreeData();
|
||||
});
|
||||
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.fade-enter-active {
|
||||
transition: all 0.3s ease-out;
|
||||
}
|
||||
.fade-leave-active {
|
||||
transition: all 0.3s cubic-bezier(1, 0.5, 0.8, 1);
|
||||
}
|
||||
.fade-enter-from,
|
||||
.fade-leave-to {
|
||||
transform: translateX(-120px);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.detail-enter-active,
|
||||
.detail-leave-active {
|
||||
transition: opacity 0.5s ease;
|
||||
}
|
||||
.detail-enter-from,
|
||||
.detail-leave-to {
|
||||
opacity: 0;
|
||||
}
|
||||
</style>
|
|
@ -302,7 +302,7 @@ const generateData = () => {
|
|||
};
|
||||
// generateData().then((res) => {
|
||||
// console.log(res)
|
||||
// debugger
|
||||
//
|
||||
// userData.value = res;
|
||||
// });
|
||||
/** 提交按钮 */
|
||||
|
|
|
@ -403,7 +403,7 @@ const { queryParams, form, rules } = toRefs(data);
|
|||
/** 通过条件过滤节点 */
|
||||
const filterNode = (value, data) => {
|
||||
if (!value) return true;
|
||||
debugger
|
||||
|
||||
return data.label.indexOf(value) !== -1;
|
||||
};
|
||||
/** 根据名称筛选部门树 */
|
||||
|
|
|
@ -23,7 +23,7 @@ const userStore = useUserStore()
|
|||
import {getDesktopRouters} from '@index/api/menu'
|
||||
const {proxy} = getCurrentInstance();
|
||||
const openMenu =(item)=>{
|
||||
debugger
|
||||
|
||||
if(item.path){
|
||||
|
||||
if(isHttp(item.path)){
|
||||
|
|
|
@ -1036,7 +1036,7 @@ const ldMap = {
|
|||
returnObj.line.push(self.getMapByPoint(item, []))
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
debugger
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1087,7 +1087,7 @@ const ldMap = {
|
|||
if (lineId && lineId != nowPointId) {
|
||||
let linedata = linelayer.filter(item => item.id == lineId)
|
||||
console.log(linedata.length)
|
||||
if(linedata.length >1){debugger}
|
||||
if(linedata.length >1){}
|
||||
linedata = linedata[0]
|
||||
if (!linedata) { return data }
|
||||
let val = [geometry.x, geometry.y, attributes.data.pointType, parseInt(linedata.attributes.data.styleId), nowPointId]
|
||||
|
@ -1097,8 +1097,8 @@ const ldMap = {
|
|||
let nextItem = point.filter(item => item.id == nextPointId)
|
||||
|
||||
nextItem=nextItem[0]
|
||||
if(nextItem.length >1){debugger}
|
||||
if (!nextItem) { debugger }
|
||||
if(nextItem.length >1){}
|
||||
if (!nextItem) { }
|
||||
return this.getMapByPoint(nextItem, data)
|
||||
} else {
|
||||
//到终点
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -92,7 +92,7 @@ export default defineConfig(({ mode, command }) => {
|
|||
terserOptions: {
|
||||
compress: {
|
||||
drop_console: true,
|
||||
drop_debugger: true
|
||||
// drop_debugger: true
|
||||
}
|
||||
},
|
||||
rollupOptions:{
|
||||
|
|
Loading…
Reference in New Issue