This commit is contained in:
jiangyinzhi
2024-07-26 10:33:01 +08:00
parent e19c6fa4ea
commit ec2f27d196
18 changed files with 258 additions and 119 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ module.exports = {
menuExclude: [], menuExclude: [],
// ${process.env.VUE_APP_BASE_API} // ${process.env.VUE_APP_BASE_API}
// https://portal.xt.nfjbill.ren:30004 // https://portal.xt.nfjbill.ren:30004
downloadUrl: `${process.env.VUE_APP_BASE_API}/proxy-nx/file/minio/download/`, downloadUrl: `${process.env.VUE_APP_BASE_API}/file/minio/download/`,
// downloadUrl: `https://www.greensgcc.com/proxy-xj/file/minio/download/`, // downloadUrl: `https://www.greensgcc.com/proxy-xj/file/minio/download/`,
// downloadUrl: `http://172.29.69.38:19012/proxy-sx/file/minio/download/`, // downloadUrl: `http://172.29.69.38:19012/proxy-sx/file/minio/download/`,
uploadUrl: `${process.env.VUE_APP_BASE_API}/file/minio/upload/`, uploadUrl: `${process.env.VUE_APP_BASE_API}/file/minio/upload/`,
+1 -1
View File
@@ -35,7 +35,7 @@ const getDefaultState = () => ({
to: { to: {
path: '' path: ''
}, },
cityType: process.env.VUE_APP_CITY_TYPE=='sx', //外观图片必填 cityType: true, //外观图片必填
cityIsNx: process.env.VUE_APP_CITY_TYPE=='sx', //位置必填 cityIsNx: process.env.VUE_APP_CITY_TYPE=='sx', //位置必填
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', // 大区间校验
+8 -1
View File
@@ -8,7 +8,7 @@
</template> </template>
</van-nav-bar> --> </van-nav-bar> -->
<div class="energyReport-detail"> <div class="energyReport-detail">
<div class="detail1">公共建筑|公共机构</div> <div class="detail1">{{getName}}</div>
<div class="float-clear"></div> <div class="float-clear"></div>
<div class="detail2"> <div class="detail2">
<div class="detail2-left"> <div class="detail2-left">
@@ -200,6 +200,13 @@ export default {
return true return true
} }
return false return false
},
getName(){
let res = ''
if(this.EnergyReportInfo.buildType&&this.EnergyReportInfo.buildType.indexOf('/')>0){
res ='|' + this.EnergyReportInfo.buildType.split('/')[0]
}
return '公共机构'+res
} }
}, },
+8 -1
View File
@@ -24,7 +24,7 @@
></anchorPoint> ></anchorPoint>
<!-- 客户详情信息 --> <!-- 客户详情信息 -->
<div class="energyReport-detail"> <div class="energyReport-detail">
<div class="detail1">公共建筑|公共机构</div> <div class="detail1">{{getName}}</div>
<div class="float-clear"></div> <div class="float-clear"></div>
<div class="detail2"> <div class="detail2">
<div class="detail2-left"> <div class="detail2-left">
@@ -416,6 +416,13 @@ export default {
}) })
}, },
computed: { computed: {
getName(){
let res = ''
if(this.EnergyReportInfo.buildType&&this.EnergyReportInfo.buildType.indexOf('/')>0){
res ='|' + this.EnergyReportInfo.buildType.split('/')[0]
}
return '公共机构'+res
}
}, },
// beforeDestroy() { // beforeDestroy() {
+1 -1
View File
@@ -628,7 +628,7 @@ export default {
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({
message: '请在完成打卡之后提交', message: '必须先在app打卡以后才能提交',
duration: 1000, duration: 1000,
type: 'warning' type: 'warning'
}) })
@@ -12,6 +12,7 @@
input-align="right" input-align="right"
placeholder="请输入" placeholder="请输入"
required required
:rules="[{ required: true }]"
/> />
<van-field <van-field
v-model="formData.ltitude" v-model="formData.ltitude"
@@ -19,6 +20,7 @@
input-align="right" input-align="right"
placeholder="请输入" placeholder="请输入"
required required
:rules="[{ required: true }]"
/> />
<van-field <van-field
v-model="formData.addressName" v-model="formData.addressName"
@@ -26,6 +28,7 @@
input-align="right" input-align="right"
placeholder="请输入" placeholder="请输入"
required required
:rules="[{ required: true }]"
/> />
<van-field <van-field
v-model="formData.clockType" v-model="formData.clockType"
@@ -33,6 +36,7 @@
input-align="right" input-align="right"
placeholder="请输入" placeholder="请输入"
required required
:rules="[{ required: true }]"
/> />
<van-field <van-field
v-model="formData.clockNum" v-model="formData.clockNum"
@@ -42,6 +46,7 @@
v-input.numNo0 v-input.numNo0
type="number" type="number"
required required
:rules="[{ required: true }]"
/> />
<!-- <van-field <!-- <van-field
v-model="formData.clockTime" v-model="formData.clockTime"
@@ -70,6 +75,7 @@
</div> </div>
<div class="pic"> <div class="pic">
<Uploader <Uploader
ref="uploaderRef"
type="text1" type="text1"
:value="text1" :value="text1"
:maxCount="1" :maxCount="1"
@@ -228,6 +234,26 @@ export default {
}, },
// 保存 // 保存
save() { save() {
if (this.$refs.uploaderRef.checkImgisUpload(this.text1)) {
this.$notify({
message: '图片尚在上传或上传失败',
duration: 1000,
background: 'red',
})
return
}
if (
this.text1 == null ||
this.text1 == [] ||
this.text1.length == 0
) {
this.$notify({
message: '请上传打卡照片',
duration: 1000,
background: 'red',
})
return
}
let params = { let params = {
...this.formData, ...this.formData,
// clockAbout: JSON.stringify(this.text1), // clockAbout: JSON.stringify(this.text1),
+30 -29
View File
@@ -45,11 +45,11 @@
<van-uploader v-model="fileList" :max-count="3" :after-read="afterRead" :before-delete="delImg" @click-upload="onUpload" preview-size="100px" class="uploader" ref="file" /> <van-uploader v-model="fileList" :max-count="3" :after-read="afterRead" :before-delete="delImg" @click-upload="onUpload" preview-size="100px" class="uploader" ref="file" />
<div class="tips tipImage" v-if="$store.getters.cityType&&fileList.length<1">请上传建筑外观照片</div> <div class="tips tipImage" v-if="$store.getters.cityType&&fileList.length<1">请上传建筑外观照片</div>
<!-- <van-uploader v-model="fileList" multiple :max-count="3" :after-read="afterRead" :before-delete="delImg" @click-upload="onUpload" preview-size="100px" class="uploader" ref="file" /> --> <!-- <van-uploader v-model="fileList" multiple :max-count="3" :after-read="afterRead" :before-delete="delImg" @click-upload="onUpload" preview-size="100px" class="uploader" ref="file" /> -->
<van-field v-model="formData.buildAddr" :required="$store.getters.cityIsNx" :rules="[{ required: $store.getters.cityIsNx}]" center disabled clearable label="定位" placeholder="位置信息" class="location"> <!-- <van-field v-model="formData.buildAddr" :required="$store.getters.cityIsNx" :rules="[{ required: $store.getters.cityIsNx}]" center disabled clearable label="定位" placeholder="位置信息" class="location">
<template #button> <template #button>
<van-button :disabled="showForm" native-type="button" size="small" type="primary" style="background: #0caea0" @click="getLocation">获取</van-button> <van-button :disabled="showForm" native-type="button" size="small" type="primary" style="background: #0caea0" @click="getLocation">获取</van-button>
</template> </template>
</van-field> </van-field> -->
</van-cell-group> </van-cell-group>
</div> </div>
</div> </div>
@@ -339,7 +339,7 @@ export default {
tips7: false, tips7: false,
newAnswer: [], // 问答题存 newAnswer: [], // 问答题存
loading:false, loading:false,
result1: '', result1: '无',
result222: '', result222: '',
result333: '', result333: '',
result444: '', result444: '',
@@ -499,12 +499,12 @@ export default {
roomArea: '', // 数据机房面积 roomArea: '', // 数据机房面积
operationYear: '', // 建筑投运年份 operationYear: '', // 建筑投运年份
peopleNum: '', // 用能人数 peopleNum: '', // 用能人数
purchasePower: '', // 购电方式 purchasePower: '1', // 购电方式
basicCharge: '', // 基本电费 basicCharge: '1', // 基本电费
valleyElectricityPrices: '', // 是否享受峰谷平电价 valleyElectricityPrices: '2', // 是否享受峰谷平电价
photovoltaicArea: '', // 光伏总建设面积 photovoltaicArea: '0', // 光伏总建设面积
photovoltaicPhotovoltaic: '', // 光伏总装机容量 photovoltaicPhotovoltaic: '0', // 光伏总装机容量
reclaimedWater: '', // 是否采用再生水 reclaimedWater: '2', // 是否采用再生水
reclaimedWaterType: '', // 再生水类型 reclaimedWaterType: '', // 再生水类型
wallMaterials: '', // 外墙结构 wallMaterials: '', // 外墙结构
doorWindowGlass: '', // 门窗玻璃 doorWindowGlass: '', // 门窗玻璃
@@ -517,26 +517,26 @@ export default {
energyAudit: '', // 近三年是否进行过能源审计 energyAudit: '', // 近三年是否进行过能源审计
heatPump: '', // 是否已使用热泵 heatPump: '', // 是否已使用热泵
solarWater: '', // 是否已使用太阳能热水 solarWater: '', // 是否已使用太阳能热水
photovoltaic: '', // 是否已使用光伏 photovoltaic: '2', // 是否已使用光伏
enquireIds: '', // 问询中确认为是的选项id用逗号隔开(只保存为问询是的选项) enquireIds: '', // 问询中确认为是的选项id用逗号隔开(只保存为问询是的选项)
text1: '', // 图一 text1: '', // 图一
text2: '', // 图二 text2: '', // 图二
text3: '', // 图三 text3: '', // 图三
greenElectricityTrading: '' // 是否使用绿电交易 greenElectricityTrading: '2' // 是否使用绿电交易
}, },
// 页面回显数据 // 页面回显数据
showData: { showData: {
buildType1: '请选择', // 建筑类型 buildType1: '请选择', // 建筑类型
buildTypepCode: '', buildTypepCode: '',
purchasePower1: '请选择', // 购电方式 purchasePower1: '普通代理', // 购电方式
reclaimedWaterType1: '请选择', // 再生水类型 reclaimedWaterType1: '请选择', // 再生水类型
wallMaterials1: '请选择', // 外墙结构 wallMaterials1: '请选择', // 外墙结构
doorWindowGlass1: '请选择', // 门窗玻璃 doorWindowGlass1: '请选择', // 门窗玻璃
windowFrameMaterial1: '请选择', // 窗框材料 windowFrameMaterial1: '请选择', // 窗框材料
itemizedMeasurementType1: '请选择', // 分项计量类型 itemizedMeasurementType1: '请选择', // 分项计量类型
basicCharge1: '请选择', // 基本电费 basicCharge1: '有', // 基本电费
valleyElectricityPrices1: '请选择', // 是否享受峰谷平电价 valleyElectricityPrices1: '否', // 是否享受峰谷平电价
reclaimedWater1: '请选择', // 是否采用再生水 reclaimedWater1: '否', // 是否采用再生水
itemizedMeter1: '请选择', // 是否有分项计量 itemizedMeter1: '请选择', // 是否有分项计量
energyPlatform1: '请选择', // 是否具有能源管理平台 energyPlatform1: '请选择', // 是否具有能源管理平台
energyAudit1: '请选择', // 近三年是否进行过能源审计 energyAudit1: '请选择', // 近三年是否进行过能源审计
@@ -555,10 +555,10 @@ export default {
index15: '', // 近三年是否进行过能源审计 index15: '', // 近三年是否进行过能源审计
heatPump: '', // 是否已使用热泵 heatPump: '', // 是否已使用热泵
solarWater: '', // 是否已使用太阳能热水 solarWater: '', // 是否已使用太阳能热水
photovoltaic: '', // 是否已使用光伏 photovoltaic: '否', // 是否已使用光伏
gfShow: '', gfShow: '',
greenElectricityTrading1: '请选择', // 是否使用绿电交易 greenElectricityTrading1: '否', // 是否使用绿电交易
indexLd: '' // 是否使用绿电交易 indexLd: '2' // 是否使用绿电交易
}, },
qjnyArr: [], // 已使用清洁能源 qjnyArr: [], // 已使用清洁能源
wqjgArr: [], // 外墙结构 wqjgArr: [], // 外墙结构
@@ -1987,12 +1987,12 @@ export default {
roomArea: '', // 数据机房面积 roomArea: '', // 数据机房面积
operationYear: '请选择', // 建筑投运年份 operationYear: '请选择', // 建筑投运年份
peopleNum: '', // 用能人数 peopleNum: '', // 用能人数
purchasePower: '', // 购电方式 purchasePower: '1', // 购电方式
basicCharge: '', // 基本电费 basicCharge: '1', // 基本电费
valleyElectricityPrices: '', // 是否享受峰谷平电价 valleyElectricityPrices: '2', // 是否享受峰谷平电价
photovoltaicArea: '', // 光伏总建设面积 photovoltaicArea: '', // 光伏总建设面积
photovoltaicPhotovoltaic: '', // 光伏总装机容量 photovoltaicPhotovoltaic: '', // 光伏总装机容量
reclaimedWater: '', // 是否采用再生水 reclaimedWater: '2', // 是否采用再生水
reclaimedWaterType: '', // 再生水类型 reclaimedWaterType: '', // 再生水类型
wallMaterials: '', // 外墙结构 wallMaterials: '', // 外墙结构
doorWindowGlass: '', // 门窗玻璃 doorWindowGlass: '', // 门窗玻璃
@@ -2005,24 +2005,25 @@ export default {
energyAudit: '', // 近三年是否进行过能源审计 energyAudit: '', // 近三年是否进行过能源审计
heatPump: '', // 是否已使用热泵 heatPump: '', // 是否已使用热泵
solarWater: '', // 是否已使用太阳能热水 solarWater: '', // 是否已使用太阳能热水
photovoltaic: '', // 是否已使用光伏 photovoltaic: '2', // 是否已使用光伏
enquireIds: '', // 问询中确认为是的选项id用逗号隔开(只保存为问询是的选项) enquireIds: '', // 问询中确认为是的选项id用逗号隔开(只保存为问询是的选项)
text1: '', // 图一 text1: '', // 图一
text2: '', // 图二 text2: '', // 图二
text3: '', // 图三 text3: '', // 图三
greenElectricityTrading: '2', // 是否使用绿电交易
}), }),
// 页面回显数据 // 页面回显数据
(this.showData = { (this.showData = {
buildType1: '请选择', // 建筑类型 buildType1: '请选择', // 建筑类型
purchasePower1: '请选择', // 购电方式 purchasePower1: '普通代理', // 购电方式
reclaimedWaterType1: '请选择', // 再生水类型 reclaimedWaterType1: '请选择', // 再生水类型
wallMaterials1: '请选择', // 外墙结构 wallMaterials1: '请选择', // 外墙结构
doorWindowGlass1: '请选择', // 门窗玻璃 doorWindowGlass1: '请选择', // 门窗玻璃
windowFrameMaterial1: '请选择', // 窗框材料 windowFrameMaterial1: '请选择', // 窗框材料
itemizedMeasurementType1: '请选择', // 分项计量类型 itemizedMeasurementType1: '请选择', // 分项计量类型
basicCharge1: '请选择', // 基本电费 basicCharge1: '有', // 基本电费
valleyElectricityPrices1: '请选择', // 是否享受峰谷平电价 valleyElectricityPrices1: '否', // 是否享受峰谷平电价
reclaimedWater1: '请选择', // 是否采用再生水 reclaimedWater1: '否', // 是否采用再生水
itemizedMeter1: '请选择', // 是否有分项计量 itemizedMeter1: '请选择', // 是否有分项计量
energyPlatform1: '请选择', // 是否具有能源管理平台 energyPlatform1: '请选择', // 是否具有能源管理平台
energyAudit1: '请选择', // 近三年是否进行过能源审计 energyAudit1: '请选择', // 近三年是否进行过能源审计
@@ -2041,9 +2042,9 @@ export default {
index15: '', // 近三年是否进行过能源审计 index15: '', // 近三年是否进行过能源审计
heatPump: '', // 是否已使用热泵 heatPump: '', // 是否已使用热泵
solarWater: '', // 是否已使用太阳能热水 solarWater: '', // 是否已使用太阳能热水
photovoltaic: '', // 是否已使用光伏 photovoltaic: '否', // 是否已使用光伏
gfShow: '', gfShow: '',
greenElectricityTrading1: '请选择', // 是否使用绿电交易 greenElectricityTrading1: '否', // 是否使用绿电交易
indexLd: '' // 是否使用绿电交易 indexLd: '' // 是否使用绿电交易
}), }),
(this.qjnyArr = []), // 已使用清洁能源 (this.qjnyArr = []), // 已使用清洁能源
+112 -44
View File
@@ -25,7 +25,9 @@
<!-- 状态popup --> <!-- 状态popup -->
<van-popup v-model="statusPopup" position="top"> <van-popup v-model="statusPopup"
:zIndex="2010"
:overlayStyle="{ 'z-index': 2000 }" position="top">
<van-radio-group v-model="radio"> <van-radio-group v-model="radio">
<van-cell-group> <van-cell-group>
<van-cell <van-cell
@@ -40,17 +42,8 @@
</van-cell-group> </van-cell-group>
</van-radio-group> </van-radio-group>
</van-popup> </van-popup>
<!-- 日期popup -->
<!-- <van-popup v-model="datePopup" position="top"> -->
<!-- <van-datetime-picker
v-model="currentDate"
type="date"
@confirm="onConfirm"
@cancel="datePopup = false"
/> -->
<Year <Year
ref="yearPopup"
:show="datePopup" :show="datePopup"
:startYear="1950" :startYear="1950"
v-model="currentDate" v-model="currentDate"
@@ -60,10 +53,9 @@
title="" title=""
@onConfirmYear="onConfirmYear" @onConfirmYear="onConfirmYear"
@onCancelYear="onCancelYear" /> @onCancelYear="onCancelYear" />
<!-- </van-popup> -->
<!-- 数据列表 --> <!-- 数据列表 -->
<div class="list"> <div class="list" v-if="isList" ref="scrollableDiv">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list <van-list
v-model="loading" v-model="loading"
:finished="finished" :finished="finished"
@@ -228,6 +220,7 @@
</div> </div>
</div> </div>
</van-list> </van-list>
</van-pull-refresh>
</div> </div>
<div class="btn" @click="Initiateappointment"> <div class="btn" @click="Initiateappointment">
@@ -277,17 +270,65 @@ export default {
pageNum: 1, //当前页数 pageNum: 1, //当前页数
pageSize: 5, //每页多少条 pageSize: 5, //每页多少条
taskType: null, //当前选择任务状态 taskType: null, //当前选择任务状态
appointmentTime: null, //当前选择的预约日期
year: null, //当前选择的预约日期 year: null, //当前选择的预约日期
consName: null, //客户名称 consName: null, //客户名称
},
refreshing: false,
timer: null,
scrollPosition: 0,
pageN: 1,
isList: false,
}
},
watch: {
'page.consName': {
handler() {
if (this.timer) {
clearTimeout(this.timer)
}
this.timer = setTimeout(() => {
this.onSearch()
}, 1500)
} }
} }
}, },
beforeDestroy() { beforeDestroy() {
// sessionStorage.removeItem('tidCid') // sessionStorage.removeItem('tidCid')
}, },
mounted() { async mounted() {
this.getTaskType() this.scrollPosition = sessionStorage.getItem('scrollableDiv') || 0
this.pageN = sessionStorage.getItem('pageNum') || 1
await this.getTaskType()
if (sessionStorage.getItem('taskTypeList')) {
this.page.taskType = sessionStorage.getItem('taskTypeList')
this.radio = this.taskType.findIndex(
item => item.code == this.page.taskType
)
}
if (sessionStorage.getItem('year')) {
this.page.year = sessionStorage.getItem('year')
}
if (sessionStorage.getItem('consName')) {
this.page.consName = sessionStorage.getItem('consName')
} else {
this.getTaskList()
}
},
methods: {
onRefresh() {
// 清空列表数据
this.finished = false
// 重新加载数据
// 将 loading 设置为 true,表示处于加载状态
// this.loading = true
this.page.taskType = ''
this.page.consName = ''
this.page.year = ''
sessionStorage.removeItem('year')
sessionStorage.removeItem('taskTypeList')
this.radio = ''
this.page.pageNum = 1
const data = { const data = {
child:null, child:null,
code: null, code: null,
@@ -296,9 +337,21 @@ export default {
value: null value: null
} }
this.clickRadio(data, 0) this.clickRadio(data, 0)
this.getTaskList()
},
//滚动DOM位置
scroll() {
this.$nextTick(() => {
const scrollableDiv = this.$refs.scrollableDiv
if (scrollableDiv) {
this.$refs.scrollableDiv.scrollTop = this.scrollPosition
this.scrollPosition = 0
sessionStorage.removeItem('scrollableDiv')
this.page.pageNum = this.pageN
this.page.pageSize = 5
}
})
}, },
methods: {
aaa() { aaa() {
var hhh = this.statusPopup var hhh = this.statusPopup
this.statusPopup = !hhh this.statusPopup = !hhh
@@ -308,6 +361,9 @@ export default {
var qqq = this.datePopup var qqq = this.datePopup
this.datePopup = !qqq this.datePopup = !qqq
this.statusPopup = false this.statusPopup = false
this.$nextTick(()=> {
this.$refs.yearPopup.defaultIndex(this.page.year)
})
}, },
// 滑动加载 // 滑动加载
@@ -403,6 +459,12 @@ export default {
}, },
// 生成诊断报告 // 生成诊断报告
togenReport(item) { togenReport(item) {
this.pageN = this.page.pageNum
this.page.pageNum = 1
const scrollableDiv = this.$refs.scrollableDiv
if (scrollableDiv) {
this.scrollPosition = scrollableDiv.scrollTop || 0
}
const data = { const data = {
taskId: item.id, taskId: item.id,
customerId: item.customerId customerId: item.customerId
@@ -448,6 +510,12 @@ export default {
}, },
// 获取任务管理列表 // 获取任务管理列表
async getTaskList() { async getTaskList() {
this.isList = false
if (this.pageN + 1 > 1) {
this.page.pageSize = this.pageN * 5
sessionStorage.removeItem('pageNum')
}
console.log(this.page, 'ppppp');
const res = await taskList(this.page) const res = await taskList(this.page)
if (res.code == 0) { if (res.code == 0) {
this.taskList1 = res.data.list this.taskList1 = res.data.list
@@ -459,15 +527,17 @@ export default {
this.immediateCheck = true this.immediateCheck = true
this.finished = false this.finished = false
} }
this.isList = true
} }
this.scroll()
}, },
// 获取状态下拉 // 获取状态下拉
getTaskType() { async getTaskType() {
const info = { const info = {
codeSortId: 80000001031, codeSortId: 80000001031,
codeType: 'sbwxlx', codeType: 'sbwxlx',
} }
getCode(info).then((res) => { await getCode(info).then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.taskType = res.data this.taskType = res.data
this.taskType.unshift({ this.taskType.unshift({
@@ -484,46 +554,31 @@ export default {
clickRadio(item, index) { clickRadio(item, index) {
this.radio = index this.radio = index
this.page.taskType = item.code this.page.taskType = item.code
this.page.appointmentTime = ''
this.page.year = '' this.page.year = ''
this.page.pageNum = 1 this.page.pageNum = 1
this.allPage = 0 this.allPage = 0
sessionStorage.setItem('taskTypeList', item.code||'')
sessionStorage.setItem('year', '')
this.getTaskList() this.getTaskList()
this.statusPopup = false this.statusPopup = false
}, },
// 日期选择赋值
onConfirm(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
let dateTime = y + '-' + m + '-' + d
this.page.pageNum = 1
this.page.appointmentTime = dateTime
this.allPage = 0
this.getTaskList()
this.datePopup = false
},
onConfirmYear(data) { onConfirmYear(data) {
this.page.pageNum = 1 this.page.pageNum = 1
this.page.year = data.value this.page.year = data.value
this.allPage = 0 this.allPage = 0
sessionStorage.setItem('year', data.value)
this.getTaskList() this.getTaskList()
this.datePopup = false; this.datePopup = false;
}, },
onCancelYear() { onCancelYear() {
this.page.year = ''
this.datePopup = false; this.datePopup = false;
}, },
// 客户名称关键字查询 // 客户名称关键字查询
onSearch(){ onSearch(){
this.page.pageNum = 1 this.page.pageNum = 1
this.allPage = 0 this.allPage = 0
sessionStorage.setItem('consName', this.page.consName)
this.getTaskList() this.getTaskList()
}, },
goClockIn(item){ goClockIn(item){
@@ -532,12 +587,21 @@ export default {
name: 'clockIn', name: 'clockIn',
}) })
} }
},
beforeRouteLeave(to, from, next) {
const scrollableDiv = this.$refs.scrollableDiv
if (scrollableDiv) {
this.scrollPosition = scrollableDiv.scrollTop || 0
sessionStorage.setItem('scrollableDiv', this.scrollPosition)
sessionStorage.setItem('pageNum', this.page.pageNum)
}
next()
} }
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.container { .container {
height: calc(100vh - 50px); height: 100vh;
overflow-y: auto; overflow-y: auto;
} }
@@ -546,6 +610,8 @@ export default {
background: #fff; background: #fff;
font-size: 15px; font-size: 15px;
padding-bottom: 10px; padding-bottom: 10px;
position: fixed;
z-index: 2013;
} }
.select { .select {
// // width: 100%; // // width: 100%;
@@ -585,7 +651,9 @@ export default {
} }
.list { .list {
padding: 0 10px 100px; padding: 90px 10px 20px;
height: calc(100% - 100px);
overflow: auto;
.list-item { .list-item {
width: 100%; width: 100%;
margin-top: 16px; margin-top: 16px;
@@ -742,7 +810,7 @@ export default {
} }
::v-deep .van-popup--top { ::v-deep .van-popup--top {
top: unset; top: 90px;
left: 0; left: 0;
width: 100%; width: 100%;
} }
+5 -3
View File
@@ -75,7 +75,7 @@
</div> </div>
</div> --> </div> -->
<div class="picStyle borderBot"> <div class="picStyle borderBot">
<div class="title">设备铭牌</div> <van-cell class="title" title="设备铭牌" :required="$store.getters.cityType"/>
<div class="pic"> <div class="pic">
<Uploader <Uploader
type="text2" type="text2"
@@ -85,9 +85,10 @@
@onUpload="onUpload" @onUpload="onUpload"
/> />
</div> </div>
<div class="tips tipImage" v-if="$store.getters.cityType&&text2.length<1">请上传设备铭牌</div>
</div> </div>
<div class="picStyle"> <div class="picStyle">
<div class="title">设备能效标识</div> <van-cell class="title" title="设备能效标识" :required="$store.getters.cityType"/>
<div class="pic"> <div class="pic">
<Uploader <Uploader
type="text3" type="text3"
@@ -97,6 +98,7 @@
@onUpload="onUpload" @onUpload="onUpload"
/> />
</div> </div>
<div class="tips tipImage" v-if="$store.getters.cityType&&text3.length<1">请上传设备能效标识</div>
</div> </div>
</div> </div>
<div class="footer-btn" @click="save"> <div class="footer-btn" @click="save">
@@ -394,7 +396,7 @@ export default {
save() { save() {
if(this.showForm||(this.$store.getters.cityType&&this.text1.length<1)) { if(this.showForm||(this.$store.getters.cityType&&(this.text1.length<1||this.text2.length<1||this.text3.length<1))) {
return return
} }
const text2 = this.fomattPic() const text2 = this.fomattPic()
+2 -2
View File
@@ -93,12 +93,12 @@
<van-uploader v-model="fileList" :max-count="3" :after-read="afterRead" :before-delete="delImg" @click-upload="onUpload" preview-size="100px" class="uploader" ref="file" /> <van-uploader v-model="fileList" :max-count="3" :after-read="afterRead" :before-delete="delImg" @click-upload="onUpload" preview-size="100px" class="uploader" ref="file" />
<!-- <van-uploader v-model="fileList" multiple :max-count="3" :after-read="afterRead" :before-delete="delImg" @click-upload="onUpload" preview-size="100px" class="uploader" ref="file" /> --> <!-- <van-uploader v-model="fileList" multiple :max-count="3" :after-read="afterRead" :before-delete="delImg" @click-upload="onUpload" preview-size="100px" class="uploader" ref="file" /> -->
</div> </div>
<div class="little-title">位置信息</div> <!-- <div class="little-title">位置信息</div>
<van-field v-model="address" center disabled clearable label="" placeholder="位置信息" class="location"> <van-field v-model="address" center disabled clearable label="" placeholder="位置信息" class="location">
<template #button> <template #button>
<van-button :disabled="showForm" native-type="button" size="small" type="primary" style="background: #0caea0" @click="getLocation">获取</van-button> <van-button :disabled="showForm" native-type="button" size="small" type="primary" style="background: #0caea0" @click="getLocation">获取</van-button>
</template> </template>
</van-field> </van-field> -->
</div> </div>
</van-tab> </van-tab>
<van-tab title="能源管理信息" class="padding"> <van-tab title="能源管理信息" class="padding">
+5 -3
View File
@@ -71,7 +71,7 @@
</div> </div>
</div> --> </div> -->
<div class="picStyle borderBot"> <div class="picStyle borderBot">
<div class="title">设备铭牌</div> <van-cell class="title" title="设备铭牌" :required="$store.getters.cityType"/>
<div class="pic"> <div class="pic">
<Uploader <Uploader
type="text2" type="text2"
@@ -81,9 +81,10 @@
@onUpload="onUpload" @onUpload="onUpload"
/> />
</div> </div>
<div class="tips tipImage" v-if="$store.getters.cityType&&text2.length<1">请上传设备铭牌</div>
</div> </div>
<div class="picStyle"> <div class="picStyle">
<div class="title">设备能效标识</div> <van-cell class="title" title="设备能效标识" :required="$store.getters.cityType"/>
<div class="pic"> <div class="pic">
<Uploader <Uploader
type="text3" type="text3"
@@ -93,6 +94,7 @@
@onUpload="onUpload" @onUpload="onUpload"
/> />
</div> </div>
<div class="tips tipImage" v-if="$store.getters.cityType&&text3.length<1">请上传设备能效标识</div>
</div> </div>
</div> </div>
<div class="footer-btn" @click="save"> <div class="footer-btn" @click="save">
@@ -397,7 +399,7 @@ export default {
}, },
save() { save() {
if(this.showForm||(this.$store.getters.cityType&&this.text1.length<1)) { if(this.showForm||(this.$store.getters.cityType&&(this.text1.length<1||this.text2.length<1||this.text3.length<1))) {
return return
} }
const text3 = this.fomattPic() const text3 = this.fomattPic()
+7 -3
View File
@@ -75,7 +75,8 @@
</div> </div>
</div> --> </div> -->
<div class="picStyle borderBot"> <div class="picStyle borderBot">
<div class="title">设备铭牌</div> <van-cell class="img-box box1" title="设备铭牌" :required="$store.getters.cityType"/>
<!-- <div class="title">设备铭牌</div> -->
<div class="pic"> <div class="pic">
<Uploader <Uploader
type="text2" type="text2"
@@ -85,9 +86,11 @@
@onUpload="onUpload" @onUpload="onUpload"
/> />
</div> </div>
<div class="tips tipImage" v-if="$store.getters.cityType&&text2.length<1">请上传设备铭牌</div>
</div> </div>
<div class="picStyle"> <div class="picStyle">
<div class="title">设备能效标识</div> <van-cell class="img-box box1" title="设备能效标识" :required="$store.getters.cityType"/>
<!-- <div class="title">设备能效标识</div> -->
<div class="pic"> <div class="pic">
<Uploader <Uploader
type="text3" type="text3"
@@ -97,6 +100,7 @@
@onUpload="onUpload" @onUpload="onUpload"
/> />
</div> </div>
<div class="tips tipImage" v-if="$store.getters.cityType&&text3.length<1">请上传设备能效标识</div>
</div> </div>
</div> </div>
<div class="footer-btn" @click="save"> <div class="footer-btn" @click="save">
@@ -382,7 +386,7 @@ export default {
// 保存 // 保存
save() { save() {
if(this.showForm||(this.$store.getters.cityType&&this.text1.length<1)) { if(this.showForm||(this.$store.getters.cityType&&(this.text1.length<1||this.text2.length<1||this.text3.length<1))) {
return return
} }
const text1 = this.fomattPic() const text1 = this.fomattPic()
+5 -3
View File
@@ -71,7 +71,7 @@
</div> </div>
</div> --> </div> -->
<div class="picStyle borderBot"> <div class="picStyle borderBot">
<div class="title">设备铭牌</div> <van-cell class="title" title="设备铭牌" :required="$store.getters.cityType"/>
<div class="pic"> <div class="pic">
<Uploader <Uploader
type="text2" type="text2"
@@ -81,9 +81,10 @@
@onUpload="onUpload" @onUpload="onUpload"
/> />
</div> </div>
<div class="tips tipImage" v-if="$store.getters.cityType&&text2.length<1">请上传设备铭牌</div>
</div> </div>
<div class="picStyle"> <div class="picStyle">
<div class="title">设备能效标识</div> <van-cell class="title" title="设备能效标识" :required="$store.getters.cityType"/>
<div class="pic"> <div class="pic">
<Uploader <Uploader
type="text3" type="text3"
@@ -93,6 +94,7 @@
@onUpload="onUpload" @onUpload="onUpload"
/> />
</div> </div>
<div class="tips tipImage" v-if="$store.getters.cityType&&text3.length<1">请上传设备能效标识</div>
</div> </div>
</div> </div>
<div class="footer-btn" @click="save"> <div class="footer-btn" @click="save">
@@ -396,7 +398,7 @@ export default {
}, },
save() { save() {
if(this.showForm||(this.$store.getters.cityType&&this.text1.length<1)) { if(this.showForm||(this.$store.getters.cityType&&(this.text1.length<1||this.text2.length<1||this.text3.length<1))) {
return return
} }
const text4 = this.fomattPic() const text4 = this.fomattPic()
@@ -27,10 +27,12 @@
<van-cell class="img-box box1" title="设备外观" :required="$store.getters.cityType"/> <van-cell class="img-box box1" title="设备外观" :required="$store.getters.cityType"/>
<Uploader type="exteriorImage1" :value="exteriorImage1" @afterRead="afterRead1" @delImg="delImg1" @onUpload="onUpload1" /> <Uploader type="exteriorImage1" :value="exteriorImage1" @afterRead="afterRead1" @delImg="delImg1" @onUpload="onUpload1" />
<div class="tips tipImage" v-if="$store.getters.cityType&&form.exteriorImage.length<1">请上传设备外观照片</div> <div class="tips tipImage" v-if="$store.getters.cityType&&form.exteriorImage.length<1">请上传设备外观照片</div>
<van-cell class="img-box" title="设备铭牌" /> <van-cell class="img-box" title="设备铭牌" :required="$store.getters.cityType"/>
<Uploader type="tagImage1" :value="tagImage1" @afterRead="afterRead2" @delImg="delImg2" @onUpload="onUpload2" /> <Uploader type="tagImage1" :value="tagImage1" @afterRead="afterRead2" @delImg="delImg2" @onUpload="onUpload2" />
<van-cell class="img-box" title="设备能效标识" /> <div class="tips tipImage" v-if="$store.getters.cityType&&form.tagImage.length<1">请上传设备铭牌</div>
<van-cell class="img-box" title="设备能效标识" :required="$store.getters.cityType"/>
<Uploader type="markImage1" :value="markImage1" @afterRead="afterRead3" @delImg="delImg3" @onUpload="onUpload3" /> <Uploader type="markImage1" :value="markImage1" @afterRead="afterRead3" @delImg="delImg3" @onUpload="onUpload3" />
<div class="tips tipImage" v-if="$store.getters.cityType&&form.markImage.length<1">请上传设备能效标识</div>
</div> </div>
<VanPickerNew :show="show" :columns="list" :loading="loading" @onConfirm="onConfirm" @onCancel="onCancel" /> <VanPickerNew :show="show" :columns="list" :loading="loading" @onConfirm="onConfirm" @onCancel="onCancel" />
@@ -61,10 +63,12 @@
<van-cell class="img-box box1" title="设备外观" :required="$store.getters.cityType"/> <van-cell class="img-box box1" title="设备外观" :required="$store.getters.cityType"/>
<Uploader type="exteriorImage1" :value="exteriorImage1" @afterRead="afterRead1" @delImg="delImg1" @onUpload="onUpload1" /> <Uploader type="exteriorImage1" :value="exteriorImage1" @afterRead="afterRead1" @delImg="delImg1" @onUpload="onUpload1" />
<div class="tips tipImage" v-if="$store.getters.cityType&&form.exteriorImage.length<1">请上传设备外观照片</div> <div class="tips tipImage" v-if="$store.getters.cityType&&form.exteriorImage.length<1">请上传设备外观照片</div>
<van-cell class="img-box" title="设备铭牌" /> <van-cell class="img-box" title="设备铭牌" :required="$store.getters.cityType"/>
<Uploader type="tagImage1" :value="tagImage1" @afterRead="afterRead2" @delImg="delImg2" @onUpload="onUpload2" /> <Uploader type="tagImage1" :value="tagImage1" @afterRead="afterRead2" @delImg="delImg2" @onUpload="onUpload2" />
<van-cell class="img-box" title="设备能效标识" /> <div class="tips tipImage" v-if="$store.getters.cityType&&form.tagImage.length<1">请上传设备铭牌</div>
<van-cell class="img-box" title="设备能效标识" :required="$store.getters.cityType"/>
<Uploader type="markImage1" :value="markImage1" @afterRead="afterRead3" @delImg="delImg3" @onUpload="onUpload3" /> <Uploader type="markImage1" :value="markImage1" @afterRead="afterRead3" @delImg="delImg3" @onUpload="onUpload3" />
<div class="tips tipImage" v-if="$store.getters.cityType&&form.markImage.length<1">请上传设备能效标识</div>
</div> </div>
<VanPickerNew :show="show" :columns="list" :loading="loading" @onConfirm="onConfirm" @onCancel="onCancel" /> <VanPickerNew :show="show" :columns="list" :loading="loading" @onConfirm="onConfirm" @onCancel="onCancel" />
<Year :show="yearShow" :num="1" @onConfirmYear="onConfirmYear" @onCancelYear="onCancelYear" /> <Year :show="yearShow" :num="1" @onConfirmYear="onConfirmYear" @onCancelYear="onCancelYear" />
@@ -90,10 +94,12 @@
<van-cell class="img-box box1" title="设备外观" :required="$store.getters.cityType"/> <van-cell class="img-box box1" title="设备外观" :required="$store.getters.cityType"/>
<Uploader type="exteriorImage1" :value="exteriorImage1" @afterRead="afterRead1" @delImg="delImg1" @onUpload="onUpload1" /> <Uploader type="exteriorImage1" :value="exteriorImage1" @afterRead="afterRead1" @delImg="delImg1" @onUpload="onUpload1" />
<div class="tips tipImage" v-if="$store.getters.cityType&&form1.exteriorImage.length<1">请上传设备外观照片</div> <div class="tips tipImage" v-if="$store.getters.cityType&&form1.exteriorImage.length<1">请上传设备外观照片</div>
<van-cell class="img-box" title="设备铭牌" /> <van-cell class="img-box" title="设备铭牌" :required="$store.getters.cityType"/>
<Uploader type="tagImage1" :value="tagImage1" @afterRead="afterRead2" @delImg="delImg2" @onUpload="onUpload2" /> <Uploader type="tagImage1" :value="tagImage1" @afterRead="afterRead2" @delImg="delImg2" @onUpload="onUpload2" />
<van-cell class="img-box" title="设备能效标识" /> <div class="tips tipImage" v-if="$store.getters.cityType&&form1.tagImage.length<1">请上传设备铭牌</div>
<van-cell class="img-box" title="设备能效标识" :required="$store.getters.cityType"/>
<Uploader type="markImage1" :value="markImage1" @afterRead="afterRead3" @delImg="delImg3" @onUpload="onUpload3" /> <Uploader type="markImage1" :value="markImage1" @afterRead="afterRead3" @delImg="delImg3" @onUpload="onUpload3" />
<div class="tips tipImage" v-if="$store.getters.cityType&&form1.markImage.length<1">请上传设备能效标识</div>
</div> </div>
<VanPickerNew :show="show" :columns="list" :loading="loading" @onConfirm="onConfirm" @onCancel="onCancel" /> <VanPickerNew :show="show" :columns="list" :loading="loading" @onConfirm="onConfirm" @onCancel="onCancel" />
<Year :show="yearShow" :num="1" @onConfirmYear="onConfirmYear1" @onCancelYear="onCancelYear" /> <Year :show="yearShow" :num="1" @onConfirmYear="onConfirmYear1" @onCancelYear="onCancelYear" />
@@ -650,7 +656,7 @@ export default {
if(this.form.refrigeNum<1 || this.ratio){ if(this.form.refrigeNum<1 || this.ratio){
return return
} }
if(this.$store.getters.cityType&&this.form.exteriorImage.length<1){ if(this.$store.getters.cityType&&(this.form.exteriorImage.length<1||this.form.tagImage.length<1||this.form.markImage.length<1)){
return return
} }
if(item) { if(item) {
@@ -687,7 +693,7 @@ export default {
}) })
} }
} else if (this.type == 2) { } else if (this.type == 2) {
if(this.$store.getters.cityType&&this.form.exteriorImage.length<1){ if(this.$store.getters.cityType&&(this.form.exteriorImage.length<1||this.form.tagImage.length<1||this.form.markImage.length<1)){
return return
} }
if(item) { if(item) {
@@ -723,7 +729,7 @@ export default {
}) })
} }
} else if (this.type == 3) { } else if (this.type == 3) {
if(this.$store.getters.cityType&&this.form1.exteriorImage.length<1){ if(this.$store.getters.cityType&&(this.form1.exteriorImage.length<1||this.form1.tagImage.length<1||this.form1.markImage.length<1)){
return return
} }
if(item) { if(item) {
@@ -98,6 +98,13 @@ export default {
this.$emit('delImg', file, detail, this.type) this.$emit('delImg', file, detail, this.type)
}, },
checkImgisUpload(list){
if(this.fileList&&list&&this.fileList.length==list.length){
return false;
}else{
return true;
}
}
}, },
} }
@@ -71,6 +71,11 @@ export default {
this.columns = [...new Set(this.columns)] this.columns = [...new Set(this.columns)]
this.middleIndex = this.columns.findIndex((ele) => ele == date) this.middleIndex = this.columns.findIndex((ele) => ele == date)
}, },
defaultIndex(date){
if(date){
this.middleIndex = this.columns.findIndex((ele) => ele == date)
}
},
onConfirmYear(value) { onConfirmYear(value) {
this.$emit('onConfirmYear', { value, name: this.name }) this.$emit('onConfirmYear', { value, name: this.name })
}, },
@@ -42,7 +42,7 @@
<van-field v-model="form.coldPerArea" v-input.float label="单位面积冷量(kw/平方米)" type="number" required :rules="[{ required: true }]" label-width="220" input-align="right" placeholder="请输入" /> <van-field v-model="form.coldPerArea" v-input.float label="单位面积冷量(kw/平方米)" type="number" required :rules="[{ required: true }]" label-width="220" input-align="right" placeholder="请输入" />
</van-cell-group> </van-cell-group>
<div v-if="form.refrigeNum"> <div v-if="form.refrigeNum">
<van-cell class="img-box box1" style="padding:10px;" title="设备外观" :required="$store.getters.cityType"/> <van-cell class="img-box box1" style="padding:10px 15px;" title="设备外观" :required="$store.getters.cityType"/>
<Uploader type="exteriorImage" :value="exteriorImage" style="padding: 0 10px;" <Uploader type="exteriorImage" :value="exteriorImage" style="padding: 0 10px;"
@afterRead="afterRead" @afterRead="afterRead"
@delImg="delImg" @delImg="delImg"
@@ -61,7 +61,7 @@
</div> </div>
</div> --> </div> -->
<div class="picStyle borderBot"> <div class="picStyle borderBot">
<div class="title">设备铭牌</div> <van-cell class="img-box box1" style="padding:10px 15px;" title="设备铭牌" :required="$store.getters.cityType"/>
<div class="pic"> <div class="pic">
<Uploader <Uploader
type="tagImage" type="tagImage"
@@ -71,9 +71,10 @@
@onUpload="onUpload" @onUpload="onUpload"
/> />
</div> </div>
<div class="tips tipImage" v-if="$store.getters.cityType&&form.tagImage.length<1">请上传设备铭牌</div>
</div> </div>
<div class="picStyle"> <div class="picStyle">
<div class="title">设备能效标识</div> <van-cell class="img-box box1" style="padding:10px 15px;" title="设备能效标识" :required="$store.getters.cityType"/>
<div class="pic"> <div class="pic">
<Uploader <Uploader
type="markImage" type="markImage"
@@ -83,6 +84,7 @@
@onUpload="onUpload" @onUpload="onUpload"
/> />
</div> </div>
<div class="tips tipImage" v-if="$store.getters.cityType&&form.markImage.length<1">请上传设备能效标识</div>
</div> </div>
</div> </div>
</div> </div>
+1 -1
View File
@@ -348,7 +348,7 @@ export default {
break; break;
case 'multipleAir': case 'multipleAir':
// eslint-disable-next-line no-case-declarations // eslint-disable-next-line no-case-declarations
if(this.$refs.component.ratio||(this.$store.getters.cityType&&this.$refs.component.exteriorImage.length<1)){ if(this.$refs.component.ratio||(this.$store.getters.cityType&&(this.$refs.component.exteriorImage.length<1||this.$refs.component.tagImage.length<1||this.$refs.component.markImage.length<1))){
return return
} }
const index1 = this.commonForm.nxzdRefrigeSystemDTO.findIndex((ele)=> ele.refrigeType == 8) const index1 = this.commonForm.nxzdRefrigeSystemDTO.findIndex((ele)=> ele.refrigeType == 8)