xiugai
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
ENV = 'development'
|
ENV = 'development'
|
||||||
|
|
||||||
# 定义变量
|
# 定义变量
|
||||||
VUE_APP_CITY_TYPE = 'xj'
|
VUE_APP_CITY_TYPE = ''
|
||||||
|
|
||||||
# 开发环境接口调用前缀
|
# 开发环境接口调用前缀
|
||||||
# VUE_APP_BASE_API = '/dev-api'
|
# VUE_APP_BASE_API = '/dev-api'
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ NODE_ENV=production
|
|||||||
# 测试0 生产1
|
# 测试0 生产1
|
||||||
VUE_APP_ENV = '1'
|
VUE_APP_ENV = '1'
|
||||||
# 定义变量
|
# 定义变量
|
||||||
VUE_APP_CITY_TYPE = ''
|
VUE_APP_CITY_TYPE = 'cq'
|
||||||
|
|
||||||
# base api
|
# base api
|
||||||
VUE_APP_BASE_API = ''
|
VUE_APP_BASE_API = ''
|
||||||
|
|||||||
Generated
-47
@@ -5633,11 +5633,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dompurify": {
|
|
||||||
"version": "3.0.3",
|
|
||||||
"resolved": "https://registry.npmmirror.com/dompurify/-/dompurify-3.0.3.tgz",
|
|
||||||
"integrity": "sha512-axQ9zieHLnAnHh0sfAamKYiqXMJAVwu+LM/alQ7WDagoWessyWvMSFyW65CqF3owufNu8HBcE4cM2Vflu7YWcQ=="
|
|
||||||
},
|
|
||||||
"domutils": {
|
"domutils": {
|
||||||
"version": "1.7.0",
|
"version": "1.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/domutils/-/domutils-1.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/domutils/-/domutils-1.7.0.tgz",
|
||||||
@@ -15099,48 +15094,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"vue-pdf": {
|
|
||||||
"version": "4.3.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/vue-pdf/-/vue-pdf-4.3.0.tgz",
|
|
||||||
"integrity": "sha512-zd3lJj6CbtrawgaaDDciTDjkJMUKiLWtbEmBg5CvFn9Noe9oAO/GNy/fc5c59qGuFCJ14ibIV1baw4S07e5bSQ==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"babel-plugin-syntax-dynamic-import": "^6.18.0",
|
|
||||||
"loader-utils": "^1.4.0",
|
|
||||||
"pdfjs-dist": "2.6.347",
|
|
||||||
"raw-loader": "^4.0.2",
|
|
||||||
"vue-resize-sensor": "^2.0.0",
|
|
||||||
"worker-loader": "^2.0.0"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"emojis-list": {
|
|
||||||
"version": "3.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz",
|
|
||||||
"integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"json5": {
|
|
||||||
"version": "1.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz",
|
|
||||||
"integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"minimist": "^1.2.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"loader-utils": {
|
|
||||||
"version": "1.4.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz",
|
|
||||||
"integrity": "sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"big.js": "^5.2.2",
|
|
||||||
"emojis-list": "^3.0.0",
|
|
||||||
"json5": "^1.0.1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"vue-resize-sensor": {
|
"vue-resize-sensor": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/vue-resize-sensor/-/vue-resize-sensor-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/vue-resize-sensor/-/vue-resize-sensor-2.0.0.tgz",
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
"core-js": "^3.21.1",
|
"core-js": "^3.21.1",
|
||||||
"crypto-js": "^4.0.0",
|
"crypto-js": "^4.0.0",
|
||||||
"cube-ui": "~1.12.15",
|
"cube-ui": "~1.12.15",
|
||||||
"dompurify": "^3.0.3",
|
|
||||||
"dsbridge": "^3.1.4",
|
"dsbridge": "^3.1.4",
|
||||||
"echarts": "^4.9.0",
|
"echarts": "^4.9.0",
|
||||||
"es6-promise": "^4.2.8",
|
"es6-promise": "^4.2.8",
|
||||||
@@ -64,7 +63,6 @@
|
|||||||
"stylus": "^0.54.5",
|
"stylus": "^0.54.5",
|
||||||
"stylus-loader": "^3.0.2",
|
"stylus-loader": "^3.0.2",
|
||||||
"vue-cli-plugin-cube-ui": "^0.2.5",
|
"vue-cli-plugin-cube-ui": "^0.2.5",
|
||||||
"vue-pdf": "^4.3.0",
|
|
||||||
"vue-template-compiler": "^2.7.14",
|
"vue-template-compiler": "^2.7.14",
|
||||||
"webpack-bundle-analyzer": "^4.9.0"
|
"webpack-bundle-analyzer": "^4.9.0"
|
||||||
},
|
},
|
||||||
|
|||||||
+1
-1
@@ -18,7 +18,7 @@
|
|||||||
content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
|
content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
|
||||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||||
<script src="static/lib/echarts.min.js"></script>
|
<script src="static/lib/echarts.min.js"></script>
|
||||||
<!-- <script src="https://cdn.bootcss.com/html2canvas/0.5.0-beta4/html2canvas.min.js"></script> -->
|
<script src="https://cdn.bootcss.com/html2canvas/0.5.0-beta4/html2canvas.min.js"></script>
|
||||||
|
|
||||||
<!-- <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
|
<!-- <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
+17
-1
@@ -295,4 +295,20 @@ export function duplicateCheck(params) {
|
|||||||
method: 'POST',
|
method: 'POST',
|
||||||
data: params
|
data: params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 催办详情查重
|
||||||
|
export function getList(params) {
|
||||||
|
return myAxios({
|
||||||
|
url: `${sx}/energy-effcicency-net-service/nxzdUrgingTaskNet/list`,
|
||||||
|
method: 'POST',
|
||||||
|
data: params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
//复核记录
|
||||||
|
export const queryCheckList = (params) => {
|
||||||
|
return myAxios({
|
||||||
|
url: `${sx}/energy-effcicency-net-service/nxzdReportTemplaNet/queryCheckList`,
|
||||||
|
method: 'post',
|
||||||
|
data:params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
+2
-2
@@ -13,8 +13,8 @@ if (process.env.NODE_ENV === 'development') {
|
|||||||
// baseURL = '/proxy-ah' //安徽 打包以后的路径
|
// baseURL = '/proxy-ah' //安徽 打包以后的路径
|
||||||
// baseURL = '/proxy-nx' //宁夏 打包以后的路径
|
// baseURL = '/proxy-nx' //宁夏 打包以后的路径
|
||||||
// baseURL = '/proxy-xj' //新疆 打包以后的路径
|
// baseURL = '/proxy-xj' //新疆 打包以后的路径
|
||||||
baseURL = '/proxy-sx' //山西 打包以后的路径
|
// baseURL = '/proxy-sx' //山西 打包以后的路径
|
||||||
// baseURL = '/proxy-cq' //重庆 打包以后的路径
|
baseURL = '/proxy-cq' //重庆 打包以后的路径
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -29,7 +29,7 @@ const mixin = {
|
|||||||
datePicker: false,
|
datePicker: false,
|
||||||
currentDate: new Date(),
|
currentDate: new Date(),
|
||||||
maxDate: new Date(),
|
maxDate: new Date(),
|
||||||
minDate: new Date('1900/1/1'),
|
minDate: new Date('1980/1/2'),
|
||||||
equipTypeOption: {
|
equipTypeOption: {
|
||||||
'01':[
|
'01':[
|
||||||
{value: "0101", text: "螺杆式空压机"},
|
{value: "0101", text: "螺杆式空压机"},
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ const getDefaultState = () => ({
|
|||||||
cityType: true, //外观图片必填
|
cityType: true, //外观图片必填
|
||||||
cityIsNx: process.env.VUE_APP_CITY_TYPE=='nx', //宁夏特供-公共机构配电获取
|
cityIsNx: process.env.VUE_APP_CITY_TYPE=='nx', //宁夏特供-公共机构配电获取
|
||||||
imageRecognition: process.env.VUE_APP_CITY_TYPE=='ah', // 图像识别
|
imageRecognition: process.env.VUE_APP_CITY_TYPE=='ah', // 图像识别
|
||||||
validate: process.env.VUE_APP_CITY_TYPE=='ah', // 大区间校验
|
validate: process.env.VUE_APP_CITY_TYPE=='ah', // 大区间校验 任务列表 用户客户标识
|
||||||
cityisXj: process.env.VUE_APP_CITY_TYPE=='xj', // 报告-二氧化碳系数
|
cityisXj: process.env.VUE_APP_CITY_TYPE=='xj', // 报告-二氧化碳系数
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,18 @@
|
|||||||
{{ EnergyReportInfo.refrigeType }}
|
{{ EnergyReportInfo.refrigeType }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
class="device-table"
|
||||||
|
v-if="EnergyReportInfo.existSplitting == 'true'"
|
||||||
|
>
|
||||||
|
<div class="device-table-header">分体式空调</div>
|
||||||
|
<div class="device-table-main con">
|
||||||
|
合计{{ EnergyReportInfo.splittingNum }}台,<span>负载系数为{{ EnergyReportInfo.splittingLoadFactor }},每日运行{{
|
||||||
|
EnergyReportInfo.splittingRunHours
|
||||||
|
}}小时,</span>年平均运行时间为{{ EnergyReportInfo.splittingRunDays }}天,单位面积冷量为{{ EnergyReportInfo.splittingColdPerArea
|
||||||
|
}}千瓦/平方米,淘汰设备数量{{EnergyReportInfo.splittingDieoutNum}}台。
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
class="device-table"
|
class="device-table"
|
||||||
v-if="EnergyReportInfo.existCentralize == 'true'"
|
v-if="EnergyReportInfo.existCentralize == 'true'"
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="detail2-right-bottom">
|
<div class="detail2-right-bottom">
|
||||||
用电户号:
|
{{userCode}}:
|
||||||
<div>{{ EnergyReportInfo.consNo }}</div>
|
<div>{{ EnergyReportInfo.consNo }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -191,6 +191,9 @@ export default {
|
|||||||
localStorage.removeItem('firstEnter')
|
localStorage.removeItem('firstEnter')
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
userCode(){
|
||||||
|
return this.$store.getters.validate? '用户编号':'用电户号'
|
||||||
|
},
|
||||||
timeSelectShow() {
|
timeSelectShow() {
|
||||||
if(sessionStorage.getItem('level') == 2 && this.taskType != 5 && this.energyData.taskId && !this.EnergyReportInfo.handState && this.EnergyReportInfo.grsgState == '2') {
|
if(sessionStorage.getItem('level') == 2 && this.taskType != 5 && this.energyData.taskId && !this.EnergyReportInfo.handState && this.EnergyReportInfo.grsgState == '2') {
|
||||||
return true
|
return true
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
</div> -->
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="detail2-right-bottom">
|
<div class="detail2-right-bottom">
|
||||||
用电户号:{{ EnergyReportInfo.consNo }}
|
{{userCode}}:{{ EnergyReportInfo.consNo }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -416,6 +416,9 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
userCode(){
|
||||||
|
return this.$store.getters.validate? '用户编号':'用电户号'
|
||||||
|
},
|
||||||
getName(){
|
getName(){
|
||||||
let res = ''
|
let res = ''
|
||||||
if(this.EnergyReportInfo.buildType&&this.EnergyReportInfo.buildType.indexOf('/')>0){
|
if(this.EnergyReportInfo.buildType&&this.EnergyReportInfo.buildType.indexOf('/')>0){
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
<van-cell-group>
|
<van-cell-group>
|
||||||
|
|
||||||
<van-cell required title="客户名称" is-link :value="customerName" @click="clientSelect" />
|
<van-cell required :title="userName" is-link :value="customerName" @click="clientSelect" />
|
||||||
|
|
||||||
<van-field v-model="address" label="地址" placeholder="请输入" input-align="right">
|
<van-field v-model="address" label="地址" placeholder="请输入" input-align="right">
|
||||||
|
|
||||||
@@ -83,6 +83,9 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed:{
|
computed:{
|
||||||
|
userName(){
|
||||||
|
return this.$store.getters.validate? '用户名称':'客户名称'
|
||||||
|
},
|
||||||
maxDate(){
|
maxDate(){
|
||||||
const now = new Date()
|
const now = new Date()
|
||||||
return new Date(now.getFullYear(), 11, 31)
|
return new Date(now.getFullYear(), 11, 31)
|
||||||
|
|||||||
@@ -625,6 +625,18 @@ export default {
|
|||||||
},
|
},
|
||||||
//提交页面信息
|
//提交页面信息
|
||||||
saveAllInfo() {
|
saveAllInfo() {
|
||||||
|
const city = process.env.VUE_APP_CITY_TYPE=='cq'
|
||||||
|
const must = this.iconList&&this.iconList.some(ele => ele.typeId == '1'||ele.typeId=='8'||ele.typeId=='9')&&this.iconList.some(ele => ele.typeId=='3')&&this.iconList.some(ele => ele.typeId=='4')
|
||||||
|
// )&&ele.typeId=='3'&&ele.typeId=='4'}
|
||||||
|
console.log(city, must ,this.iconList, 'lllllllllllllllllll')
|
||||||
|
if(!must&&city){
|
||||||
|
this.$notify({
|
||||||
|
message: '主要用能设备空调至少填一个、照明系统与配电系统必填',
|
||||||
|
duration: 1000,
|
||||||
|
type: 'warning'
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
let item = JSON.parse(sessionStorage.getItem('tidCid')).item
|
let item = JSON.parse(sessionStorage.getItem('tidCid')).item
|
||||||
if(!item.isPosition){
|
if(!item.isPosition){
|
||||||
this.$notify({
|
this.$notify({
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -2,7 +2,7 @@
|
|||||||
<div class="list">
|
<div class="list">
|
||||||
<!-- <Header :title="title" @onClickLeft="onClickLeft" /> -->
|
<!-- <Header :title="title" @onClickLeft="onClickLeft" /> -->
|
||||||
<van-search
|
<van-search
|
||||||
placeholder="请输入客户名称/联系人/联系电话/地址"
|
:placeholder="placeholder"
|
||||||
v-model="value"
|
v-model="value"
|
||||||
@search="search"
|
@search="search"
|
||||||
/>
|
/>
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
@click="clickRadio(item, index)"
|
@click="clickRadio(item, index)"
|
||||||
>
|
>
|
||||||
<p>{{item.customerName}}</p>
|
<p>{{item.customerName}}</p>
|
||||||
用电户号:{{ item.consNo }}
|
{{userCode}}:{{ item.consNo }}
|
||||||
<!-- <van-radio :name="index" /> -->
|
<!-- <van-radio :name="index" /> -->
|
||||||
</van-cell>
|
</van-cell>
|
||||||
</van-list>
|
</van-list>
|
||||||
@@ -62,6 +62,14 @@ export default {
|
|||||||
pages: 1, // 页数
|
pages: 1, // 页数
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
computed:{
|
||||||
|
placeholder(){
|
||||||
|
return this.$store.getters.validate? '请输入用户名称/联系人/联系电话/地址':'请输入客户名称/联系人/联系电话/地址'
|
||||||
|
},
|
||||||
|
userCode(){
|
||||||
|
return this.$store.getters.validate? '用户编号':'用电户号'
|
||||||
|
},
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getData();
|
this.getData();
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<van-field v-model="formData.buildName" label="建筑名称" required :rules="[{ required: true, message: '请填写建筑名称' }]" placeholder="请输入" input-align="right">
|
<van-field v-model="formData.buildName" label="建筑名称" required :rules="[{ required: true, message: '请填写建筑名称' }]" placeholder="请输入" input-align="right">
|
||||||
</van-field>
|
</van-field>
|
||||||
<van-cell title="建筑类型" is-link :value="showData.buildType1" required @click="showPicker = !showForm"/>
|
<van-cell title="建筑类型" is-link :value="showData.buildType1" required @click="showPicker = !showForm"/>
|
||||||
<van-cell title="用电户名称" :value="formData.consNo" />
|
<van-cell :title="userCode" :value="formData.consNo" />
|
||||||
<van-cell title="统一社会识别编码" :value="formData.creditCode" />
|
<van-cell title="统一社会识别编码" :value="formData.creditCode" />
|
||||||
<van-cell title="联系人" :value="formData.contactName" />
|
<van-cell title="联系人" :value="formData.contactName" />
|
||||||
<van-cell title="联系人手机号" :value="formData.contactPhone" />
|
<van-cell title="联系人手机号" :value="formData.contactPhone" />
|
||||||
@@ -607,6 +607,10 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
userCode(){
|
||||||
|
console.log(this.$store.getters.validate, 'this.$store.getters.validate')
|
||||||
|
return this.$store.getters.validate? '用户编号':'用电户号'
|
||||||
|
},
|
||||||
resulta() {
|
resulta() {
|
||||||
if (!this.result) {
|
if (!this.result) {
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -287,7 +287,7 @@ export default {
|
|||||||
const id = JSON.parse(sessionStorage.getItem('tidCid')).customerId
|
const id = JSON.parse(sessionStorage.getItem('tidCid')).customerId
|
||||||
const res = await getCustomerStatisticAPI(id)
|
const res = await getCustomerStatisticAPI(id)
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.customerStatistic = res.data
|
this.customerStatistic = res.data||{}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//获取当前页面信息
|
//获取当前页面信息
|
||||||
|
|||||||
@@ -217,7 +217,15 @@ export default {
|
|||||||
return {
|
return {
|
||||||
ai: '',
|
ai: '',
|
||||||
title: '能效管理',
|
title: '能效管理',
|
||||||
total: [
|
total0: [
|
||||||
|
{ name: '已完成用户数', num: '', color: '#00ad9f' },
|
||||||
|
{ name: '已完成公共机构', num: '', color: '#ffae00' },
|
||||||
|
{ name: '已完成工业企业', num: '', color: '#0078ff' },
|
||||||
|
{ name: '用户总数', num: '', color: '#00ad9f' },
|
||||||
|
{ name: '公共机构', num: '', color: '#ffae00' },
|
||||||
|
{ name: '工业企业', num: '', color: '#0078ff' }
|
||||||
|
],
|
||||||
|
total1: [
|
||||||
{ name: '已完成客户数', num: '', color: '#00ad9f' },
|
{ name: '已完成客户数', num: '', color: '#00ad9f' },
|
||||||
{ name: '已完成公共机构', num: '', color: '#ffae00' },
|
{ name: '已完成公共机构', num: '', color: '#ffae00' },
|
||||||
{ name: '已完成工业企业', num: '', color: '#0078ff' },
|
{ name: '已完成工业企业', num: '', color: '#0078ff' },
|
||||||
@@ -248,6 +256,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
total(){
|
||||||
|
return this.$store.getters.validate? this.total0: this.total1
|
||||||
|
},
|
||||||
fomtList() {
|
fomtList() {
|
||||||
this.list.forEach(v => {
|
this.list.forEach(v => {
|
||||||
this.typeList.forEach(ev => {
|
this.typeList.forEach(ev => {
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
v-model="page.consName"
|
v-model="page.consName"
|
||||||
@keydown.enter="onSearch"
|
@keydown.enter="onSearch"
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="请输入客户名称"
|
:placeholder="placeholder"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -173,13 +173,15 @@
|
|||||||
<div class="location">
|
<div class="location">
|
||||||
<img src="@/assets/gyqy/three.png" alt="" />
|
<img src="@/assets/gyqy/three.png" alt="" />
|
||||||
</div>
|
</div>
|
||||||
<div class="address">用电户号: {{ item.consNo }}</div>
|
<div class="address">{{userCode}}: {{ item.consNo }}</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
|
|
||||||
<div class="list-bot">
|
<div class="list-bot">
|
||||||
<div >
|
<div >
|
||||||
<van-tag v-if="item.checkState" :type="item.checkState=='10'?'danger':item.checkState=='20'?'warning':'success'" round >
|
<van-tag
|
||||||
|
@click="stateShow(item)"
|
||||||
|
v-if="item.checkState" :type="item.checkState=='0'?'danger':item.checkState=='10'?'warning':item.checkState=='20'?'warning':'success'" round >
|
||||||
{{checkStateObj[item.checkState]}}
|
{{checkStateObj[item.checkState]}}
|
||||||
</van-tag>
|
</van-tag>
|
||||||
</div>
|
</div>
|
||||||
@@ -191,6 +193,13 @@
|
|||||||
>
|
>
|
||||||
留言
|
留言
|
||||||
</button>
|
</button>
|
||||||
|
<button
|
||||||
|
v-if="item.urgingStatus =='1'&&!$store.getters.validate"
|
||||||
|
@click="cuiban(item)"
|
||||||
|
style="margin-left: 10px;"
|
||||||
|
>
|
||||||
|
催办详情
|
||||||
|
</button>
|
||||||
<button
|
<button
|
||||||
@click="goClockIn(item)"
|
@click="goClockIn(item)"
|
||||||
style="margin-left: 10px;"
|
style="margin-left: 10px;"
|
||||||
@@ -253,10 +262,27 @@
|
|||||||
</van-field>
|
</van-field>
|
||||||
|
|
||||||
</van-dialog>
|
</van-dialog>
|
||||||
|
<van-dialog class="cuiban" v-model="showCuiban" :title="isCuiban?'催办详情':'驳回详情'" show-confirm-button :show-cancel-button="false" :lazy-render="false" @confirm="showCuiban=false" >
|
||||||
|
<div class="item-user-time" v-for="(item, index) in cuibanList" :key="index">
|
||||||
|
<div class="user-time">
|
||||||
|
<div class="item-user">
|
||||||
|
<span class="label">{{isCuiban?'催办人':item.stateName+'人'}}:</span>
|
||||||
|
<span>{{item.urgingUser}}</span>
|
||||||
|
</div>
|
||||||
|
<div class="item-time">
|
||||||
|
<span>{{item.urgingTime}}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="cuiban-content">
|
||||||
|
<span class="label">{{isCuiban?'催办内容':item.stateName+'意见'}}:</span>
|
||||||
|
{{ item.text }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</van-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { taskList, genReport } from '@/api/api.js'
|
import { taskList, genReport, getList, queryCheckList } from '@/api/api.js'
|
||||||
import { getCurrentPersonInfoAPI } from "@/api/customerIformation.js";
|
import { getCurrentPersonInfoAPI } from "@/api/customerIformation.js";
|
||||||
import { getCode } from '@/api/common.js'
|
import { getCode } from '@/api/common.js'
|
||||||
import Year from '@/views/facilityManage/common-vue/year.vue'
|
import Year from '@/views/facilityManage/common-vue/year.vue'
|
||||||
@@ -271,6 +297,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
checkStateObj: {
|
checkStateObj: {
|
||||||
|
'0': '审批驳回',
|
||||||
'10': '地市待审批',
|
'10': '地市待审批',
|
||||||
'20': '省级待审批',
|
'20': '省级待审批',
|
||||||
'90': '审批通过',
|
'90': '审批通过',
|
||||||
@@ -313,6 +340,10 @@ export default {
|
|||||||
pageN: 1,
|
pageN: 1,
|
||||||
isList: false,
|
isList: false,
|
||||||
doDebounce: null,
|
doDebounce: null,
|
||||||
|
cuibanList: [],
|
||||||
|
showCuiban: false,
|
||||||
|
isCuiban: false,
|
||||||
|
gridData: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -330,6 +361,14 @@ export default {
|
|||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
// sessionStorage.removeItem('tidCid')
|
// sessionStorage.removeItem('tidCid')
|
||||||
},
|
},
|
||||||
|
computed:{
|
||||||
|
placeholder(){
|
||||||
|
return this.$store.getters.validate? '请输入用户名称':'请输入客户名称'
|
||||||
|
},
|
||||||
|
userCode(){
|
||||||
|
return this.$store.getters.validate? '用户编号':'用电户号'
|
||||||
|
},
|
||||||
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
this.doDebounce = debounce(function (item) {
|
this.doDebounce = debounce(function (item) {
|
||||||
this.getReport(item)
|
this.getReport(item)
|
||||||
@@ -354,6 +393,44 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
async stateShow(item){
|
||||||
|
if(item.checkState == '0'){
|
||||||
|
|
||||||
|
let obj = {
|
||||||
|
templaId: item.templaId,
|
||||||
|
}
|
||||||
|
let res = await queryCheckList(obj)
|
||||||
|
let {code, data} = res
|
||||||
|
if (code === 0) {
|
||||||
|
data.forEach((item) => {
|
||||||
|
item.urgingUser = item.checkUserName
|
||||||
|
item.urgingTime = item.createTime
|
||||||
|
item.text = item.checkDesc
|
||||||
|
if (item.state == '1') {
|
||||||
|
item.stateName = '通过'
|
||||||
|
}
|
||||||
|
if (item.state == '2') {
|
||||||
|
item.stateName = '驳回'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
this.cuibanList = data
|
||||||
|
this.isCuiban = false
|
||||||
|
this.showCuiban = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
async cuiban(data){
|
||||||
|
let params = {taskId: data.id}
|
||||||
|
let res = await getList(params)
|
||||||
|
if(res.code == 0 ){
|
||||||
|
this.cuibanList = res.data&&res.data.records||[]
|
||||||
|
}
|
||||||
|
|
||||||
|
this.isCuiban = true
|
||||||
|
this.showCuiban = true
|
||||||
|
},
|
||||||
onRefresh() {
|
onRefresh() {
|
||||||
// 清空列表数据
|
// 清空列表数据
|
||||||
this.finished = false
|
this.finished = false
|
||||||
@@ -653,7 +730,11 @@ export default {
|
|||||||
height: 100vh;
|
height: 100vh;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
/deep/.van-dialog__content{
|
||||||
|
max-height: 250px;
|
||||||
|
overflow-y: auto;
|
||||||
|
|
||||||
|
}
|
||||||
.select-box {
|
.select-box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
@@ -879,5 +960,36 @@ export default {
|
|||||||
::v-deep .van-picker__confirm {
|
::v-deep .van-picker__confirm {
|
||||||
color: #34baae;
|
color: #34baae;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.item-user-time {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
font-size: 12px;
|
||||||
|
align-items: center;
|
||||||
|
color: #646566;;
|
||||||
|
justify-content: space-around;
|
||||||
|
.label{
|
||||||
|
width: 60px;
|
||||||
|
display: inline-block;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.user-time {
|
||||||
|
justify-content: space-between;
|
||||||
|
width: 85%;
|
||||||
|
height: 20px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.item-user{
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
.cuiban-content {
|
||||||
|
margin: 5px 0 20px;
|
||||||
|
text-align: left;
|
||||||
|
width: 85%;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
@@ -250,7 +250,19 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
enterpriseenergy() {
|
enterpriseenergy() {
|
||||||
|
taskList({ consNo: this.info.consNo }).then((res) => {
|
||||||
|
this.records = res.data.list[0]
|
||||||
|
if (!this.records.enterpriseId) {
|
||||||
|
this.$notify({
|
||||||
|
message: '请填写能源管理信息',
|
||||||
|
duration: 1000,
|
||||||
|
// background: '#34baae',
|
||||||
|
type: 'danger'
|
||||||
|
})
|
||||||
|
return false
|
||||||
|
}
|
||||||
this.$router.push('./enterpriseenergy')
|
this.$router.push('./enterpriseenergy')
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 返回
|
// 返回
|
||||||
onClickLeft() {
|
onClickLeft() {
|
||||||
@@ -302,13 +314,14 @@ export default {
|
|||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.info = res.data
|
this.info = res.data
|
||||||
// const data = {
|
// const data = {
|
||||||
|
console.log(res.data, 'pppp')
|
||||||
// customerId: JSON.parse(sessionStorage.getItem('tidCid')).customerId,
|
// customerId: JSON.parse(sessionStorage.getItem('tidCid')).customerId,
|
||||||
// taskId: JSON.parse(sessionStorage.getItem('tidCid')).taskId,
|
// taskId: JSON.parse(sessionStorage.getItem('tidCid')).taskId,
|
||||||
// taskType: JSON.parse(sessionStorage.getItem('tidCid')).taskType,
|
// taskType: JSON.parse(sessionStorage.getItem('tidCid')).taskType,
|
||||||
// enterpriseSystemId: JSON.parse(sessionStorage.getItem('tidCid')).enterpriseSystemId,
|
// enterpriseSystemId: JSON.parse(sessionStorage.getItem('tidCid')).enterpriseSystemId,
|
||||||
// item: res.data
|
// item: res.data
|
||||||
// }
|
// }
|
||||||
// sessionStorage.setItem('tidCid', JSON.stringify(data))
|
sessionStorage.setItem('inVoltage', this.info.inVoltage)
|
||||||
}else{
|
}else{
|
||||||
this.info = JSON.parse(sessionStorage.getItem('tidCid')).item
|
this.info = JSON.parse(sessionStorage.getItem('tidCid')).item
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -404,7 +404,11 @@ export default {
|
|||||||
this.doDebounce()
|
this.doDebounce()
|
||||||
},
|
},
|
||||||
|
|
||||||
save() {
|
save() {
|
||||||
|
if(!(this.list&&this.list.length>0)){
|
||||||
|
this.$toast('请输入泵机系统信息')
|
||||||
|
return
|
||||||
|
}
|
||||||
if(this.showForm||(this.$store.getters.cityType&&(this.text1.length<1||this.text2.length<1||this.text3.length<1))) {
|
if(this.showForm||(this.$store.getters.cityType&&(this.text1.length<1||this.text2.length<1||this.text3.length<1))) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -330,7 +330,7 @@ export default {
|
|||||||
dataDetail: {},
|
dataDetail: {},
|
||||||
active: 0,
|
active: 0,
|
||||||
list: [], // 企业具有的通用能源系统
|
list: [], // 企业具有的通用能源系统
|
||||||
listValue: [], //企业具有的通用能源系统value值
|
listValue: ['01'], //企业具有的通用能源系统value值
|
||||||
list2: [], // 一级计量(进出用能企业)
|
list2: [], // 一级计量(进出用能企业)
|
||||||
listValue2: ['01'],
|
listValue2: ['01'],
|
||||||
listValue3: [],
|
listValue3: [],
|
||||||
@@ -380,6 +380,7 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
result: function(newVal, oldVal) {
|
result: function(newVal, oldVal) {
|
||||||
|
console.log(newVal,'12344');
|
||||||
if (oldVal != newVal) {
|
if (oldVal != newVal) {
|
||||||
if (this.listValue != []) {
|
if (this.listValue != []) {
|
||||||
this.listValue = []
|
this.listValue = []
|
||||||
@@ -784,9 +785,11 @@ export default {
|
|||||||
let res1 = await getCode(info1)
|
let res1 = await getCode(info1)
|
||||||
if (res1.code === 0) {
|
if (res1.code === 0) {
|
||||||
res1.data.forEach(v => {
|
res1.data.forEach(v => {
|
||||||
|
|
||||||
this.list.push({ name: v.name, value: v.value })
|
this.list.push({ name: v.name, value: v.value })
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
handleClick(){
|
handleClick(){
|
||||||
this.doDebounce()
|
this.doDebounce()
|
||||||
@@ -796,7 +799,12 @@ export default {
|
|||||||
if(this.showForm) {
|
if(this.showForm) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
console.log(this.listValue2, 'this.listValue2');
|
if( this.listValue.indexOf("01") === -1){
|
||||||
|
this.$toast('通用能源系统必须有配电系统')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
console.log(this.listValue2, 'this.listValue2', this.list);
|
||||||
|
return
|
||||||
if( this.listValue2.indexOf("01") === -1){
|
if( this.listValue2.indexOf("01") === -1){
|
||||||
this.$toast('一级计量必须有勾选电')
|
this.$toast('一级计量必须有勾选电')
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -407,6 +407,10 @@ export default {
|
|||||||
this.doDebounce()
|
this.doDebounce()
|
||||||
},
|
},
|
||||||
save() {
|
save() {
|
||||||
|
if(!(this.list&&this.list.length>0)){
|
||||||
|
this.$toast('请输入风机系统信息')
|
||||||
|
return
|
||||||
|
}
|
||||||
if(this.showForm||(this.$store.getters.cityType&&(this.text1.length<1||this.text2.length<1||this.text3.length<1))) {
|
if(this.showForm||(this.$store.getters.cityType&&(this.text1.length<1||this.text2.length<1||this.text3.length<1))) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
<span>型号 {{ item.systemModel }} </span><span><van-icon name="arrow" color="#fff" /></span>
|
<span>型号 {{ item.systemModel }} </span><span><van-icon name="arrow" color="#fff" /></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="space-between" style="margin-top: 10px;font-size: 12px;">
|
<div class="space-between" style="margin-top: 10px;font-size: 12px;">
|
||||||
<span>单台额定容量:{{ item.ratedCapacityValue }} kVA</span><span>额定一次电压:{{ item.ratedVoltageValue }} kV</span>
|
<span>单台额定容量:{{ item.ratedCapacityValue }} kVA</span><span>额定一次电压:{{ getData(item.ratedVoltageValue) }} </span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -136,6 +136,37 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
voltageLevelData:[{
|
||||||
|
name:'10kV',
|
||||||
|
value:"01",
|
||||||
|
// },{
|
||||||
|
// name:'380V',
|
||||||
|
// value:"02",
|
||||||
|
// },{
|
||||||
|
// name:'6kV',
|
||||||
|
// value:"03",
|
||||||
|
},{
|
||||||
|
name:'35kV',
|
||||||
|
value:"04",
|
||||||
|
},{
|
||||||
|
name:'110kV',
|
||||||
|
value:"05",
|
||||||
|
},{
|
||||||
|
name:'220kV',
|
||||||
|
value:"06",
|
||||||
|
},{
|
||||||
|
name:'20kV',
|
||||||
|
value:"07",
|
||||||
|
// },{
|
||||||
|
// name:'220V',
|
||||||
|
// value:"08",
|
||||||
|
},{
|
||||||
|
name:'66kV',
|
||||||
|
value:"09",
|
||||||
|
},{
|
||||||
|
name:'330kV',
|
||||||
|
value:"10",
|
||||||
|
}],
|
||||||
newAnswer: [], // 问答题存
|
newAnswer: [], // 问答题存
|
||||||
title: '配电系统',
|
title: '配电系统',
|
||||||
userMsg: {}, // 任务列表单条数据
|
userMsg: {}, // 任务列表单条数据
|
||||||
@@ -198,6 +229,10 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getData(value){
|
||||||
|
let res = this.voltageLevelData.filter(ele => {return ele.value == value})
|
||||||
|
return res&&res[0]&&res[0].name
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 图片方法
|
* 图片方法
|
||||||
*/
|
*/
|
||||||
@@ -393,6 +428,10 @@ export default {
|
|||||||
},
|
},
|
||||||
// 保存
|
// 保存
|
||||||
save() {
|
save() {
|
||||||
|
if(!(this.list&&this.list.length>0)){
|
||||||
|
this.$toast('请输入配电系统信息')
|
||||||
|
return
|
||||||
|
}
|
||||||
if(this.showForm||(this.$store.getters.cityType&&(this.text1.length<1||this.text2.length<1||this.text3.length<1))) {
|
if(this.showForm||(this.$store.getters.cityType&&(this.text1.length<1||this.text2.length<1||this.text3.length<1))) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,12 +9,13 @@
|
|||||||
<van-field v-model="form.systemModel" required :rules="[{ required: true },{pattern:/^.{2,20}$/, message:'2≤型号长度≤20'}]" label="型号" maxlength="20" placeholder="请输入型号"/>
|
<van-field v-model="form.systemModel" required :rules="[{ required: true },{pattern:/^.{2,20}$/, message:'2≤型号长度≤20'}]" label="型号" maxlength="20" placeholder="请输入型号"/>
|
||||||
<van-field v-input.numNo0 v-model="form.systemNum" type="number" required :rules="[{ required: true }]" label="台数(台)" placeholder="请输入台数" />
|
<van-field v-input.numNo0 v-model="form.systemNum" type="number" required :rules="[{ required: true }]" label="台数(台)" placeholder="请输入台数" />
|
||||||
<van-field v-input.numNo0 v-model="form.ratedCapacityValue" required :rules="[{ required: true }]" ltype="number" label="单台额定容量(kVA)" placeholder="请输入" @blur="handelChange('ratedCapacityValue',50,'单台额定容量')"/>
|
<van-field v-input.numNo0 v-model="form.ratedCapacityValue" required :rules="[{ required: true }]" ltype="number" label="单台额定容量(kVA)" placeholder="请输入" @blur="handelChange('ratedCapacityValue',50,'单台额定容量')"/>
|
||||||
<van-field v-input.floatNo0 v-model="form.ratedVoltageValue" required :rules="[{ required: true }]" type="number" label="额定一次电压(kV)" input-align="right" is-link placeholder="请选择" readonly @click="levelShow = true"/>
|
<van-field v-input.floatNo0 v-model="form.ratedVoltageValueText" required :rules="[{ required: true }]" type="number" label="额定一次电压(kV)" input-align="right" is-link placeholder="请选择" readonly @click="levelShow = true"/>
|
||||||
<van-field v-input.num v-model="form.absoleteElecNum" type="number" label="淘汰电机数量" placeholder="请输入" />
|
<van-field v-input.num v-model="form.absoleteElecNum" type="number" label="淘汰电机数量" placeholder="请输入" />
|
||||||
<van-field v-input.num v-model="form.absoleteNum" type="number" label="淘汰变压器数量" placeholder="请输入" />
|
<van-field v-input.num v-model="form.absoleteNum" type="number" label="淘汰变压器数量" placeholder="请输入" />
|
||||||
<van-field v-input.floatNo0 v-model="form.loadRate" required :rules="[{ required: true }]" type="number" label="负载率(%)" placeholder="请输入" @input="handelChangeNumber('loadRate','负载率')" />
|
<van-field v-input.floatNo0 v-model="form.loadRate" required :rules="[{ required: true }]" type="number" label="负载率(%)" placeholder="请输入" @input="handelChangeNumber('loadRate','负载率')" />
|
||||||
<van-field v-input.num v-model="form.userYear" required :rules="[{ required: true }]" type="number" label="投入年份" placeholder="请选择投入年份" is-link readonly @click="handelClickYear('userYear', 'SET_CON_YEAR')" />
|
<van-field v-input.num v-model="form.userYear" required :rules="[{ required: true }]" type="number" label="投入年份" placeholder="请选择投入年份" is-link readonly @click="handelClickYear('userYear', 'SET_CON_YEAR')" />
|
||||||
<van-cell title="设备生产日期" v-model="form.produceDate" required :rules="[{ required: true }]" type="number" placeholder="请选择设备生产日期" is-link readonly @click="datePicker = true" />
|
<van-cell title="设备生产日期" v-model="form.produceDate" required :rules="[{ required: true }]" type="number" placeholder="请选择设备生产日期" is-link readonly @click="datePicker = true" />
|
||||||
|
<van-field label="设备能效等级" v-model="form.equipEfficiencyName" required :rules="[{ required: true }]" placeholder="请选择设备能效等级" is-link readonly @click="handelClickOptionShow('equipEfficiency')" />
|
||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -43,8 +44,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="content-main">
|
<div class="content-main">
|
||||||
<van-cell v-for="item in levelList" :key="item.value" clickable style="font-weight: 400 !important; font-size: 15px !important">
|
<van-cell v-for="item in levelList" :key="item.value" clickable style="font-weight: 400 !important; font-size: 15px !important">
|
||||||
<van-checkbox :name="item" checked-color="#009999" v-model="item.checked" @click="clickCheckbox(item)">
|
<van-checkbox :name="item" checked-color="#009999" v-model="item.checked" @click="clickCheckbox(item)"
|
||||||
{{ item.value }}kV
|
:disabled="parseFloat(inVoltage)<parseFloat(item.name)"
|
||||||
|
|
||||||
|
>
|
||||||
|
{{ item.name }}
|
||||||
</van-checkbox>
|
</van-checkbox>
|
||||||
</van-cell>
|
</van-cell>
|
||||||
</div>
|
</div>
|
||||||
@@ -54,6 +58,7 @@
|
|||||||
<van-popup v-model="datePicker" position="bottom">
|
<van-popup v-model="datePicker" position="bottom">
|
||||||
<van-datetime-picker v-model="currentDate" type="date" :min-date="minDate" :max-date="maxDate" @confirm="onConfirmDate" @cancel="datePicker = false" />
|
<van-datetime-picker v-model="currentDate" type="date" :min-date="minDate" :max-date="maxDate" @confirm="onConfirmDate" @cancel="datePicker = false" />
|
||||||
</van-popup>
|
</van-popup>
|
||||||
|
<VanPickerNew :show="showOption" :columns="columnsList" :loading="loading" @onConfirm="onConfirmOption" @onCancel="showOption=false" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -72,17 +77,49 @@ export default {
|
|||||||
mixins: [mixin],
|
mixins: [mixin],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
inVoltage: '',
|
||||||
datePicker: false,
|
datePicker: false,
|
||||||
currentDate: new Date(),
|
currentDate: new Date(),
|
||||||
maxDate: new Date(),
|
maxDate: new Date(),
|
||||||
levelShow: false,
|
levelShow: false,
|
||||||
levelList:[
|
levelList:[{
|
||||||
{value:'10', checked: false},
|
name:'10',
|
||||||
{value:'35', checked: false},
|
value:"01",
|
||||||
{value:'110', checked: false},
|
checked: false
|
||||||
{value:'220', checked: false},
|
},{
|
||||||
{value:'330', checked: false},
|
name:'35',
|
||||||
],
|
value:"04",
|
||||||
|
checked: false
|
||||||
|
},{
|
||||||
|
name:'110',
|
||||||
|
value:"05",
|
||||||
|
checked: false
|
||||||
|
},{
|
||||||
|
name:'220',
|
||||||
|
value:"06",
|
||||||
|
checked: false
|
||||||
|
},{
|
||||||
|
name:'20',
|
||||||
|
value:"07",
|
||||||
|
checked: false
|
||||||
|
},{
|
||||||
|
name:'66',
|
||||||
|
value:"09",
|
||||||
|
checked: false
|
||||||
|
},{
|
||||||
|
name:'330',
|
||||||
|
value:"10",
|
||||||
|
checked: false
|
||||||
|
}],
|
||||||
|
// [
|
||||||
|
// {value:'10', checked: false},
|
||||||
|
// {value:'20', checked: false},
|
||||||
|
// {value:'35', checked: false},
|
||||||
|
// {value:'66', checked: false},
|
||||||
|
// {value:'110', checked: false},
|
||||||
|
// {value:'220', checked: false},
|
||||||
|
// {value:'330', checked: false},
|
||||||
|
// ],
|
||||||
//电压等级选中的数据
|
//电压等级选中的数据
|
||||||
resultCheckboxLevel: [],
|
resultCheckboxLevel: [],
|
||||||
addeditId: '', // 新增修改提交id
|
addeditId: '', // 新增修改提交id
|
||||||
@@ -104,6 +141,8 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
activated() {
|
activated() {
|
||||||
|
let inVoltage = sessionStorage.getItem('inVoltage')
|
||||||
|
this.inVoltage = this.getData(inVoltage)
|
||||||
this.id = '',
|
this.id = '',
|
||||||
this.form = {
|
this.form = {
|
||||||
systemModel: "",
|
systemModel: "",
|
||||||
@@ -143,6 +182,10 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getData(value){
|
||||||
|
let res = this.levelList.filter(ele => {return ele.value == value})
|
||||||
|
return res&&res[0]&&res[0].name
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 电压等级
|
* 电压等级
|
||||||
*/
|
*/
|
||||||
@@ -160,6 +203,7 @@ export default {
|
|||||||
const leName = this.levelList.filter((ele) => ele.checked)
|
const leName = this.levelList.filter((ele) => ele.checked)
|
||||||
this.resultCheckboxLevel = leName
|
this.resultCheckboxLevel = leName
|
||||||
this.form.ratedVoltageValue = leName.map((ele)=> ele.value).join(',')
|
this.form.ratedVoltageValue = leName.map((ele)=> ele.value).join(',')
|
||||||
|
this.form.ratedVoltageValueText = leName.map((ele)=> ele.name).join(',')
|
||||||
this.levelShow = false
|
this.levelShow = false
|
||||||
},
|
},
|
||||||
clickCheckbox(item){
|
clickCheckbox(item){
|
||||||
@@ -218,6 +262,8 @@ export default {
|
|||||||
const res = await distributeGetInfo(this.id);
|
const res = await distributeGetInfo(this.id);
|
||||||
if(res.code == 0) {
|
if(res.code == 0) {
|
||||||
this.form = res.data
|
this.form = res.data
|
||||||
|
let Efficiency = res.data.equipEfficiency&&this.equipEfficiencyOption.find(item => item.value == res.data.equipEfficiency)
|
||||||
|
this.form.equipEfficiencyName = Efficiency&&Efficiency.text
|
||||||
this.show = false
|
this.show = false
|
||||||
if (this.form.ratedVoltageValue) {
|
if (this.form.ratedVoltageValue) {
|
||||||
this.resultCheckboxLevel=[]
|
this.resultCheckboxLevel=[]
|
||||||
@@ -230,6 +276,7 @@ export default {
|
|||||||
})
|
})
|
||||||
|
|
||||||
this.form.ratedVoltageValue = this.resultCheckboxLevel.map((ele) => ele.value).join(',')
|
this.form.ratedVoltageValue = this.resultCheckboxLevel.map((ele) => ele.value).join(',')
|
||||||
|
this.form.ratedVoltageValueText = this.resultCheckboxLevel.map((ele) => ele.name).join(',')
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
this.show = false
|
this.show = false
|
||||||
|
|||||||
@@ -407,6 +407,10 @@ export default {
|
|||||||
this.doDebounce()
|
this.doDebounce()
|
||||||
},
|
},
|
||||||
save() {
|
save() {
|
||||||
|
if(!(this.list&&this.list.length>0)){
|
||||||
|
this.$toast('请输入空压机系统信息')
|
||||||
|
return
|
||||||
|
}
|
||||||
if(this.showForm||(this.$store.getters.cityType&&(this.text1.length<1||this.text2.length<1||this.text3.length<1))) {
|
if(this.showForm||(this.$store.getters.cityType&&(this.text1.length<1||this.text2.length<1||this.text3.length<1))) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -106,7 +106,7 @@
|
|||||||
/>
|
/>
|
||||||
<van-field
|
<van-field
|
||||||
v-input.reset
|
v-input.reset
|
||||||
v-input.floatNo0
|
v-input.float
|
||||||
:disabled="showForm"
|
:disabled="showForm"
|
||||||
type="number"
|
type="number"
|
||||||
@blur="checkData"
|
@blur="checkData"
|
||||||
@@ -518,13 +518,13 @@ export default {
|
|||||||
readOnly(){
|
readOnly(){
|
||||||
return this.yearForm.energyUnutilizedVO&&this.yearForm.energyUnutilizedVO.notUsedResidueEnergyType!='01'
|
return this.yearForm.energyUnutilizedVO&&this.yearForm.energyUnutilizedVO.notUsedResidueEnergyType!='01'
|
||||||
},
|
},
|
||||||
tips2(){
|
// tips2(){
|
||||||
let rate = Number(this.yearForm.actualPowerValue)/Number(this.yearForm.installedCapacityValue)
|
// let rate = Number(this.yearForm.actualPowerValue)/Number(this.yearForm.installedCapacityValue)
|
||||||
if(0 < rate && 2000 > rate){
|
// if(0 < rate && 2000 > rate){
|
||||||
return false
|
// return false
|
||||||
}
|
// }
|
||||||
return true
|
// return true
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.doDebounce=debounce(async function () {
|
this.doDebounce=debounce(async function () {
|
||||||
@@ -756,6 +756,9 @@ export default {
|
|||||||
Notify({ type: 'danger', duration: 500, message: '请选择年份' })
|
Notify({ type: 'danger', duration: 500, message: '请选择年份' })
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if(this.tabName == 'a'){
|
||||||
|
this.checkData()
|
||||||
|
}
|
||||||
if(this.tabName == 'b') {
|
if(this.tabName == 'b') {
|
||||||
if(this.heatDemandOtherName) {
|
if(this.heatDemandOtherName) {
|
||||||
this.yearForm.energyUnutilizedVO.heatDemandOther = this.heatDemandOtherName
|
this.yearForm.energyUnutilizedVO.heatDemandOther = this.heatDemandOtherName
|
||||||
@@ -766,14 +769,14 @@ export default {
|
|||||||
this.yearForm.energyUnutilizedVO = Object.assign( this.yearForm.energyUnutilizedVO ,this.customerInfo)
|
this.yearForm.energyUnutilizedVO = Object.assign( this.yearForm.energyUnutilizedVO ,this.customerInfo)
|
||||||
}
|
}
|
||||||
if(this.tabName == 'a'&&this.tips1){
|
if(this.tabName == 'a'&&this.tips1){
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if(this.tabName == 'c'&&this.tips0){
|
if(this.tabName == 'c'&&this.tips0){
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if(this.yearForm.isPvInstallCondition == '1'&&this.tips2){
|
// if(this.yearForm.isPvInstallCondition == '1'&&this.tips2){
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
let params = Object.assign(this.customerInfo, this.yearForm)
|
let params = Object.assign(this.customerInfo, this.yearForm)
|
||||||
params.taskId = this.tidCid.taskId
|
params.taskId = this.tidCid.taskId
|
||||||
if(this.$route.query.id) {
|
if(this.$route.query.id) {
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
<van-field v-model="refrigeNum" v-input.numNo0 label="数量(台)" readonly type="number" required :rules="[{ required: true }]" input-align="right" placeholder="自动计算" />
|
<van-field v-model="refrigeNum" v-input.numNo0 label="数量(台)" readonly type="number" required :rules="[{ required: true }]" input-align="right" placeholder="自动计算" />
|
||||||
<div class="tips" v-if="refrigeNum+''=='0'">数量>0</div>
|
<div class="tips" v-if="refrigeNum+''=='0'">数量>0</div>
|
||||||
<van-field v-model="edgl" v-input.floatNo0 label="额定功率(kW)" type="number" required :rules="[{ required: true }]" input-align="right" placeholder="请输入" />
|
<van-field v-model="edgl" v-input.floatNo0 label="额定功率(kW)" type="number" required :rules="[{ required: true }]" input-align="right" placeholder="请输入" />
|
||||||
|
<div class="tips" v-if="ratio1">0<额定功率<1000</div>
|
||||||
<div class="tips" v-if="ratio">{{ refrigeTypeData[form.refrigeType][0]}} ≤额定制冷量/额定功率≤ {{refrigeTypeData[form.refrigeType][1]}}</div>
|
<div class="tips" v-if="ratio">{{ refrigeTypeData[form.refrigeType][0]}} ≤额定制冷量/额定功率≤ {{refrigeTypeData[form.refrigeType][1]}}</div>
|
||||||
<van-field v-model="hyl" v-input.float label="耗用量(t或m3)" type="number" label-width="100" input-align="right" placeholder="请输入" />
|
<van-field v-model="hyl" v-input.float label="耗用量(t或m3)" type="number" label-width="100" input-align="right" placeholder="请输入" />
|
||||||
<van-field v-model="form.coolCapacity" v-input.floatNo0 label="额定制冷量(kW)" required :rules="[{ required: true }]" type="number" input-align="right" placeholder="请输入" />
|
<van-field v-model="form.coolCapacity" v-input.floatNo0 label="额定制冷量(kW)" required :rules="[{ required: true }]" type="number" input-align="right" placeholder="请输入" />
|
||||||
@@ -50,12 +51,13 @@
|
|||||||
<!-- 设备类型选择 -->
|
<!-- 设备类型选择 -->
|
||||||
<div class="inputStyle">
|
<div class="inputStyle">
|
||||||
<van-cell-group>
|
<van-cell-group>
|
||||||
<van-field v-model="formColumns.refrigeTypeName" label="设备类型" required :rules="[{ required: true }]" input-align="right" is-link placeholder="请选择" @click="handelClickHeatingShow('jzlx', 80000001016,'refrigeTypeName','refrigeType','lqt' )" readonly />
|
<van-field v-model="formColumns.refrigeTypeName" label="设备类型1" required :rules="[{ required: true }]" input-align="right" is-link placeholder="请选择" @click="handelClickHeatingShow('jzlx', 80000001016,'refrigeTypeName','refrigeType','lqt' )" readonly />
|
||||||
<!-- <van-cell title="设备类型" is-link :value="form.refrigeTypeName" @click="showPicker = true" readonly /> -->
|
<!-- <van-cell title="设备类型" is-link :value="form.refrigeTypeName" @click="showPicker = true" readonly /> -->
|
||||||
<van-field v-model="form.model" label="设备型号" required :rules="[{ required: true },{pattern:/^.{2,30}$/, message:'2≤型号长度≤30'}]" input-align="right" maxlength="30" placeholder="请输入设备型号"/>
|
<van-field v-model="form.model" label="设备型号" required :rules="[{ required: true },{pattern:/^.{2,30}$/, message:'2≤型号长度≤30'}]" input-align="right" maxlength="30" placeholder="请输入设备型号"/>
|
||||||
<van-field v-model="refrigeNum" v-input.numNo0 label="数量(台)" readonly type="number" required :rules="[{ required: true }]" input-align="right" placeholder="自动计算" />
|
<van-field v-model="refrigeNum" v-input.numNo0 label="数量(台)" readonly type="number" required :rules="[{ required: true }]" input-align="right" placeholder="自动计算" />
|
||||||
<div class="tips" v-if="refrigeNum+''=='0'">数量>0</div>
|
<div class="tips" v-if="refrigeNum+''=='0'">数量>0</div>
|
||||||
<van-field v-model="form.ratedPower" v-input.floatNo0 label="额定功率(kW)" type="number" required :rules="[{ required: true }]" input-align="right" placeholder="请输入" />
|
<van-field v-model="form.ratedPower" v-input.floatNo0 label="额定功率(kW)" type="number" required :rules="[{ required: true }]" input-align="right" placeholder="请输入" />
|
||||||
|
<div class="tips" v-if="ratio2">0<额定功率<500</div>
|
||||||
<van-field v-model="form.useExpl" v-input.num label="在用台数(台)" required :rules="[{ required: true }]" input-align="right" placeholder="请输入" />
|
<van-field v-model="form.useExpl" v-input.num label="在用台数(台)" required :rules="[{ required: true }]" input-align="right" placeholder="请输入" />
|
||||||
<van-field v-model="form.backupExpl" v-input.num label="备用台数(台)" required :rules="[{ required: true }]" input-align="right" placeholder="请输入" />
|
<van-field v-model="form.backupExpl" v-input.num label="备用台数(台)" required :rules="[{ required: true }]" input-align="right" placeholder="请输入" />
|
||||||
<van-field v-model="form.useYear" label="设备投用年份" label-width="140" required :rules="[{ required: true }]" input-align="right" is-link placeholder="请选择" readonly @click="handelClickYear('useYear')" />
|
<van-field v-model="form.useYear" label="设备投用年份" label-width="140" required :rules="[{ required: true }]" input-align="right" is-link placeholder="请选择" readonly @click="handelClickYear('useYear')" />
|
||||||
@@ -178,6 +180,12 @@ export default {
|
|||||||
return !data
|
return !data
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
ratio1(){
|
||||||
|
return this.edgl==0 || this.edgl>1000
|
||||||
|
},
|
||||||
|
ratio2(){
|
||||||
|
return this.form.ratedPower==0 || this.form.ratedPower>500
|
||||||
|
},
|
||||||
heatNum: {
|
heatNum: {
|
||||||
get(){
|
get(){
|
||||||
if( this.form1.useExpl && this.form1.backupExpl ){
|
if( this.form1.useExpl && this.form1.backupExpl ){
|
||||||
@@ -689,7 +697,7 @@ export default {
|
|||||||
const item = this.$route.params.item
|
const item = this.$route.params.item
|
||||||
console.log(this.type, this.exteriorImage1.length);
|
console.log(this.type, this.exteriorImage1.length);
|
||||||
if (this.type == 1) {
|
if (this.type == 1) {
|
||||||
if(this.form.refrigeNum<1 || this.ratio){
|
if(this.form.refrigeNum<1 || this.ratio||this.ratio1){
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if(this.$store.getters.cityType&&(this.form.exteriorImage.length<1||this.form.tagImage.length<1||this.form.markImage.length<1)){
|
if(this.$store.getters.cityType&&(this.form.exteriorImage.length<1||this.form.tagImage.length<1||this.form.markImage.length<1)){
|
||||||
@@ -729,6 +737,9 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else if (this.type == 2) {
|
} else if (this.type == 2) {
|
||||||
|
if(this.ratio2){
|
||||||
|
return
|
||||||
|
}
|
||||||
if(this.$store.getters.cityType&&(this.form.exteriorImage.length<1||this.form.tagImage.length<1||this.form.markImage.length<1)){
|
if(this.$store.getters.cityType&&(this.form.exteriorImage.length<1||this.form.tagImage.length<1||this.form.markImage.length<1)){
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -411,31 +411,31 @@ export default {
|
|||||||
voltageLevelData:[
|
voltageLevelData:[
|
||||||
{
|
{
|
||||||
text:'10kV',name:'10kV',
|
text:'10kV',name:'10kV',
|
||||||
value:'1',code:'1',
|
value:'01',code:'01',
|
||||||
},{
|
},{
|
||||||
text:'380V',name:'380V',
|
text:'380V',name:'380V',
|
||||||
value:'2',code:'2',
|
value:'02',code:'02',
|
||||||
},{
|
},{
|
||||||
text:'6kV',name:'6kV',
|
text:'6kV',name:'6kV',
|
||||||
value:'3',code:'3',
|
value:'03',code:'03',
|
||||||
},{
|
},{
|
||||||
text:'35kV',name:'35kV',
|
text:'35kV',name:'35kV',
|
||||||
value:'4',code:'4',
|
value:'04',code:'04',
|
||||||
},{
|
},{
|
||||||
text:'110kV',name:'110kV',
|
text:'110kV',name:'110kV',
|
||||||
value:'5',code:'5',
|
value:'05',code:'05',
|
||||||
},{
|
},{
|
||||||
text:'220kV',name:'220kV',
|
text:'220kV',name:'220kV',
|
||||||
value:'6',code:'6',
|
value:'06',code:'06',
|
||||||
},{
|
},{
|
||||||
text:'20kV',name:'20kV',
|
text:'20kV',name:'20kV',
|
||||||
value:'7',code:'7',
|
value:'07',code:'07',
|
||||||
},{
|
},{
|
||||||
text:'200V',name:'200V',
|
text:'200V',name:'200V',
|
||||||
value:'8',code:'8',
|
value:'08',code:'08',
|
||||||
},{
|
},{
|
||||||
text:'66kV',name:'66kV',
|
text:'66kV',name:'66kV',
|
||||||
value:'9',code:'9',
|
value:'09',code:'09',
|
||||||
},{
|
},{
|
||||||
text:'330kV',name:'330kV',
|
text:'330kV',name:'330kV',
|
||||||
value:'10',code:'10',
|
value:'10',code:'10',
|
||||||
|
|||||||
@@ -8,13 +8,13 @@
|
|||||||
|
|
||||||
<van-field v-model="radioName" label="主要灯具类型" input-align="right" is-link placeholder="请选择" required :rules="[{ required: true, message:'请至少选择一个灯具类型' }]" readonly @click="handelClickRadioName" />
|
<van-field v-model="radioName" label="主要灯具类型" input-align="right" is-link placeholder="请选择" required :rules="[{ required: true, message:'请至少选择一个灯具类型' }]" readonly @click="handelClickRadioName" />
|
||||||
|
|
||||||
<van-field v-input.float v-show="ledRatioShow" required :rules="[{ required: ledRatioShow, message: '请填写占比' }]" v-model="form.ledRatio" label="LED灯占比(%)" type="number" label-width="140" input-align="right" placeholder="请输入" @input="handelChangeNumber('ledRatio')" />
|
<van-field v-input.floatNo0 v-show="ledRatioShow" required :rules="[{ required: ledRatioShow}]" v-model="form.ledRatio" label="LED灯占比(%)" type="number" label-width="140" input-align="right" placeholder="请输入" @input="handelChangeNumber('ledRatio')" />
|
||||||
|
|
||||||
<van-field v-input.float v-show="fluorescentRadioShow" required :rules="[{ required: fluorescentRadioShow, message:'请填写占比' }]" v-model="form.fluorescentRadio" label="普通荧光灯占比(%)" type="number" label-width="140" input-align="right" placeholder="请输入" @input="handelChangeNumber('fluorescentRadio')" />
|
<van-field v-input.float v-show="fluorescentRadioShow" required :rules="[{ required: fluorescentRadioShow}]" v-model="form.fluorescentRadio" label="普通荧光灯占比(%)" type="number" label-width="140" input-align="right" placeholder="请输入" @input="handelChangeNumber('fluorescentRadio')" />
|
||||||
|
|
||||||
<van-field v-input.float v-show="incandescentRadioShow" required :rules="[{ required: incandescentRadioShow, message:'请填写占比' }]" v-model="form.incandescentRadio" label="白炽灯占比(%)" type="number" label-width="140" input-align="right" placeholder="请输入" @input="handelChangeNumber('incandescentRadio')" />
|
<van-field v-input.float v-show="incandescentRadioShow" required :rules="[{ required: incandescentRadioShow}]" v-model="form.incandescentRadio" label="白炽灯占比(%)" type="number" label-width="140" input-align="right" placeholder="请输入" @input="handelChangeNumber('incandescentRadio')" />
|
||||||
|
|
||||||
<van-field v-input.float v-show="energySaviRatioShow" required :rules="[{ required: energySaviRatioShow, message:'请填写占比' }]" v-model="form.energySaviRatio" label="非LED节能灯占比(%)" type="number" label-width="148" input-align="right" placeholder="请输入" @input="handelChangeNumber('energySaviRatio')" />
|
<van-field v-input.float v-show="energySaviRatioShow" required :rules="[{ required: energySaviRatioShow}]" v-model="form.energySaviRatio" label="非LED节能灯占比(%)" type="number" label-width="148" input-align="right" placeholder="请输入" @input="handelChangeNumber('energySaviRatio')" />
|
||||||
|
|
||||||
<van-field v-input.float v-show="showOther" required v-model="form.otherRatio" label="其它灯具占比(%)" type="number" label-width="140" input-align="right" placeholder="请输入" readonly />
|
<van-field v-input.float v-show="showOther" required v-model="form.otherRatio" label="其它灯具占比(%)" type="number" label-width="140" input-align="right" placeholder="请输入" readonly />
|
||||||
|
|
||||||
@@ -635,15 +635,20 @@ export default {
|
|||||||
}
|
}
|
||||||
if(!this.form.energySaviRatio) {
|
if(!this.form.energySaviRatio) {
|
||||||
this.form.energySaviRatio = 0
|
this.form.energySaviRatio = 0
|
||||||
}
|
}
|
||||||
|
console.log(this.resultCheckbox, 'this.resultCheckbox')
|
||||||
if(this.resultCheckbox.length > 0) {
|
if(this.resultCheckbox.length > 0) {
|
||||||
let num = 0
|
let num = null
|
||||||
this.resultCheckbox.forEach((v)=> {
|
this.resultCheckbox.forEach((v)=> {
|
||||||
|
this.form[v.field] = this.form[v.field] || ''
|
||||||
num += Number(this.form[v.field])
|
num += Number(this.form[v.field])
|
||||||
})
|
})
|
||||||
|
if(this.form[title] == 0){
|
||||||
|
this.form[title] = null
|
||||||
|
}
|
||||||
if(num > 100) {
|
if(num > 100) {
|
||||||
Notify({ type: "danger", message: '不可超过100%' });
|
Notify({ type: "danger", message: '不可超过100%' });
|
||||||
this.form[title] = 0
|
this.form[title] = null
|
||||||
}else{
|
}else{
|
||||||
this.form.otherRatio = 100 - num
|
this.form.otherRatio = 100 - num
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
<div class="focusItem">
|
<div class="focusItem">
|
||||||
<div class="inputStyle">
|
<div class="inputStyle">
|
||||||
<van-cell-group>
|
<van-cell-group>
|
||||||
|
<van-field v-model="form.model" required :rules="[{ required: true },{pattern:/^.{2,20}$/, message:'2≤型号长度≤20'}]" maxlength="20" label="型号" label-width="120" input-align="right" placeholder="请输入型号"/>
|
||||||
<van-field v-model="form.refrigeNum" v-input.numNo0 label="空调数量" type="number" required :rules="[{ required: true}]" input-align="right" placeholder="请输入" />
|
<van-field v-model="form.refrigeNum" v-input.numNo0 label="空调数量" type="number" required :rules="[{ required: true}]" input-align="right" placeholder="请输入" />
|
||||||
<van-field v-model="edgl" v-input.floatNo0 label="总额定功率(kW)" type="number" required :rules="[{ required: true }]" input-align="right" placeholder="请输入" />
|
<van-field v-model="edgl" v-input.floatNo0 label="总额定功率(kW)" type="number" required :rules="[{ required: true }]" input-align="right" placeholder="请输入" />
|
||||||
<div class="tips" v-if="ratio">{{validateData[0]}}≤额定制冷量/额定功率≤{{validateData[1]}}</div>
|
<div class="tips" v-if="ratio">{{validateData[0]}}≤额定制冷量/额定功率≤{{validateData[1]}}</div>
|
||||||
@@ -158,6 +159,7 @@ export default {
|
|||||||
},
|
},
|
||||||
eqid: '',
|
eqid: '',
|
||||||
form: {
|
form: {
|
||||||
|
model: '',
|
||||||
modifyMode: '', //改造方式
|
modifyMode: '', //改造方式
|
||||||
conEquipModiy: '', //是否进行过设备改造
|
conEquipModiy: '', //是否进行过设备改造
|
||||||
ratedPower: "",
|
ratedPower: "",
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
</div> -->
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="detail2-right-bottom">
|
<div class="detail2-right-bottom">
|
||||||
用电户号: <div>{{ EnergyReportInfo.consNo }}</div>
|
{{userCode}}: <div>{{ EnergyReportInfo.consNo }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -234,6 +234,9 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
userCode(){
|
||||||
|
return this.$store.getters.validate? '用户编号':'用电户号'
|
||||||
|
},
|
||||||
changeTime() {
|
changeTime() {
|
||||||
return formatymd(this.EnergyReportInfo.changeTime)
|
return formatymd(this.EnergyReportInfo.changeTime)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="detail2-right-bottom">
|
<div class="detail2-right-bottom">
|
||||||
用电户号: <div>{{ EnergyReportInfo.consNo }}</div>
|
{{userCode}}: <div>{{ EnergyReportInfo.consNo }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -213,6 +213,9 @@ export default {
|
|||||||
// this.getTime()
|
// this.getTime()
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
userCode(){
|
||||||
|
return this.$store.getters.validate? '用户编号':'用电户号'
|
||||||
|
},
|
||||||
reportYear() {
|
reportYear() {
|
||||||
if (this.EnergyReportInfo.reportYear) {
|
if (this.EnergyReportInfo.reportYear) {
|
||||||
return this.EnergyReportInfo.reportYear
|
return this.EnergyReportInfo.reportYear
|
||||||
|
|||||||
+25
-7
@@ -127,15 +127,33 @@ module.exports = {
|
|||||||
devServer: {
|
devServer: {
|
||||||
host: '0.0.0.0',
|
host: '0.0.0.0',
|
||||||
port: port,
|
port: port,
|
||||||
|
hot: true,
|
||||||
open: true,
|
open: true,
|
||||||
proxy: {
|
proxy: {
|
||||||
[process.env.VUE_APP_BASE_API]: {
|
|
||||||
target: `http://172.29.69.38:28083`,
|
"/admin": {
|
||||||
changeOrigin: true,
|
// target: "http://121.28.84.19:9004",
|
||||||
pathRewrite: {
|
target: "http://172.29.69.38:19012",
|
||||||
['^' + process.env.VUE_APP_BASE_API]: ''
|
changeOrigin: true,
|
||||||
}
|
pathRewrite: {
|
||||||
}
|
"^/admin": "",
|
||||||
|
},
|
||||||
|
}, "/energy-effcicency-net-service": {
|
||||||
|
// target: "http://121.28.84.19:9004",
|
||||||
|
target: "http://172.29.69.38:19012",
|
||||||
|
changeOrigin: true,
|
||||||
|
pathRewrite: {
|
||||||
|
"^/energy-effcicency-net-service": "",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
// [process.env.VUE_APP_BASE_API]: {
|
||||||
|
// target: process.env.VUE_APP_SERVER_Url,
|
||||||
|
// changeOrigin: true,
|
||||||
|
// secure: false,
|
||||||
|
// pathRewrite: {
|
||||||
|
// [`^${process.env.VUE_APP_BASE_API}`]: '',
|
||||||
|
// },
|
||||||
|
// },
|
||||||
},
|
},
|
||||||
disableHostCheck: true
|
disableHostCheck: true
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user