diff --git a/src/api/api.js b/src/api/api.js index 091a587..282d868 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -288,3 +288,11 @@ export function getNxzdPower(params) { params: { "customerId": params } }) } +// 建筑面积查重 +export function duplicateCheck(params) { + return myAxios({ + url: `${sx}/energy-effcicency-net-service/nxzdBuildInfoNet/duplicateCheck`, + method: 'POST', + data: params + }) +} \ No newline at end of file diff --git a/src/mixins/mixin.js b/src/mixins/mixin.js index 95f26f2..ee827b0 100644 --- a/src/mixins/mixin.js +++ b/src/mixins/mixin.js @@ -3,6 +3,7 @@ import { getCodeCommon } from '../views/facilityManage/common' const mixin = { data() { return { + showOption: false, /** * 字典表数据 */ @@ -23,10 +24,69 @@ const mixin = { * vuex方法 */ vuexFunc: '', - vuexChangeFun: '' + vuexChangeFun: '', + + datePicker: false, + currentDate: new Date(), + maxDate: new Date(), + equipTypeOption: { + '01':[ + {value: "0101", text: "螺杆式空压机"}, + {value: "0102", text: "活塞式空压机"}, + {value: "0103", text: "离心式空压机"}, + {value: "0104", text: "涡旋式空压机"}, + {value: "0105", text: "滑片式空压机"}, + {value: "0106", text: "无油空压机"}, + ], + '02':[ + {value: "0201", text: "离心泵"}, + {value: "0202", text: "轴流泵"}, + {value: "0203", text: "混流泵"}, + {value: "0204", text: "往复泵"}, + {value: "0205", text: "旋转泵"}, + {value: "0206", text: "喷射泵"}, + {value: "0207", text: "空气提升泵"}, + ], + '03':[ + {value: "0301", text: "离心式风机"}, + {value: "0302", text: "轴流式风机"}, + {value: "0303", text: "混流式(斜流式)风机"}, + {value: "0304", text: "横流式(贯流式)风机"}, + {value: "0305", text: "罗茨风机(容积式)"}, + ] + }, + equipEfficiencyOption: [ + { value: '01', text: '一级能效'}, + { value: '02', text: '二级能效'}, + { value: '03', text: '三级能效'}, + { value: '04', text: '四级能效'}, + { value: '05', text: '五级能效'}, + ], + element: '', + columnsList: [], } }, methods: { + // 企业公用弹窗 + handelClickOptionShow(name, key){ + this.element = name + if(key){ + this.columnsList = this[name+'Option'][key] + }else{ + this.columnsList = this[name+'Option'] + } + this.showOption = true + }, + onConfirmOption(data){ + if(this.$route.params&&this.$route.params.type=='3'){ + this.$set(this.form1, this.element, data.value) + this.form1[this.element+'Name'] = data.text + }else{ + this.form[this.element] = data.value + this.form[this.element+'Name'] = data.text + } + this.showOption = false + }, //通用的弹框获取数据 async handelClickHeatingShow(type, id, feildName, feild, title) { this.show = !this.showForm @@ -153,7 +213,26 @@ const mixin = { //控制年份取消 onCancelYear() { this.yearShow = false - } + }, + + // 日期选择赋值 + onConfirmDate(val) { + var date2 = new Date(val); + var y = date2.getFullYear(); + var m = date2.getMonth() + 1; + m = m < 10 ? "0" + m : m; + var d = date2.getDate(); + d = d < 10 ? "0" + d : d; + this.form.produceDate = y + "-" + m + "-" + d; + console.log(this.form.produceDate); + if(this.$route.query&&this.$route.query.id=='heating'){ + this.$store.commit('search/SET_HEAT_YEAR', this.form) + } + if(this.$route.params&&this.$route.params.type=='3'){ + this.form1.produceDate = y + "-" + m + "-" + d; + } + this.datePicker = false; + }, // change(data) { // console.log(data); // } diff --git a/src/store/getters.js b/src/store/getters.js index 131d62b..fedf40a 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -57,6 +57,7 @@ export default { heatMode: state => state.search.heatMode, //采暖方式 pumpYear: state => state.search.pumpYear, //输送泵组设备年份 pumpNum: state => state.search.pumpNum, //输送泵组台数 + produceDate: state => state.search.produceDate, //输送泵组台数 /** * 集中式空调 */ diff --git a/src/store/module/search.js b/src/store/module/search.js index 29797bc..469f329 100644 --- a/src/store/module/search.js +++ b/src/store/module/search.js @@ -30,6 +30,7 @@ const getDefaultState = () => ({ pumpNum: '', pumpTotalPower: '', pumpYear: '', + produceDate: '', /** * 集中式空调 */ @@ -104,7 +105,9 @@ const mutations = { state.heatIntellectModifyYear = data.heatIntellectModifyYear state.heatModifyYear = data.heatModifyYear state.pumpYear = data.pumpYear + state.produceDate = data.produceDate }, + /** * 集中式空调 */ diff --git a/src/views/comment/components/energyReport-bar.vue b/src/views/comment/components/energyReport-bar.vue index 29e5f86..da50353 100644 --- a/src/views/comment/components/energyReport-bar.vue +++ b/src/views/comment/components/energyReport-bar.vue @@ -74,7 +74,7 @@

贵单位无相关节能改造措施,评定不得分。


-

注:各个维度满分为5分。

+

注:各个维度满分为100分。

@@ -33,10 +37,16 @@ + + + + + diff --git a/src/views/enterprise/kongyajiSystemAddEdit.vue b/src/views/enterprise/kongyajiSystemAddEdit.vue index 91d276b..208ae6b 100644 --- a/src/views/enterprise/kongyajiSystemAddEdit.vue +++ b/src/views/enterprise/kongyajiSystemAddEdit.vue @@ -8,6 +8,8 @@ + + @@ -15,6 +17,8 @@ + + @@ -33,10 +37,16 @@ - + + + + + +