|
@@ -11,25 +11,31 @@
|
|
|
<view class="item ddflex">
|
|
<view class="item ddflex">
|
|
|
<view class="label">类型</view>
|
|
<view class="label">类型</view>
|
|
|
<view class="item-input fflex">
|
|
<view class="item-input fflex">
|
|
|
- 整柜巡检
|
|
|
|
|
|
|
+ 整柜定期检修
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="item ddflex">
|
|
<view class="item ddflex">
|
|
|
<view class="label">机柜编号</view>
|
|
<view class="label">机柜编号</view>
|
|
|
<view class="item-input fflex">
|
|
<view class="item-input fflex">
|
|
|
- CHZD04TTCC200329109
|
|
|
|
|
|
|
+ {{detail.devId}}
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="item ddflex">
|
|
<view class="item ddflex">
|
|
|
<view class="label">描述</view>
|
|
<view class="label">描述</view>
|
|
|
<view class="item-input fflex">
|
|
<view class="item-input fflex">
|
|
|
- 定期巡检提醒
|
|
|
|
|
|
|
+ {{detail.content}}
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="item ddflex">
|
|
<view class="item ddflex">
|
|
|
<view class="label">提醒时间</view>
|
|
<view class="label">提醒时间</view>
|
|
|
<view class="item-input fflex">
|
|
<view class="item-input fflex">
|
|
|
- 2022-12-31 17:16:37
|
|
|
|
|
|
|
+ {{detail.createDate}}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="item ddflex">
|
|
|
|
|
+ <view class="label">检修状态</view>
|
|
|
|
|
+ <view class="item-input fflex">
|
|
|
|
|
+ {{detail.status==1?'已处理':'待处理'}}
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- <view class="item ddflex">
|
|
<!-- <view class="item ddflex">
|
|
@@ -46,11 +52,13 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view> -->
|
|
</view> -->
|
|
|
|
|
|
|
|
- <view class="img-box ddflex" @click="choiceImages" v-if="imageList.length==0">
|
|
|
|
|
|
|
+ <view class="img-box ddflex" @click="detail.status!=1?choiceImages():''" v-if="imageList.length==0">
|
|
|
<image style="width: 54rpx;height: 54rpx;margin-bottom: 12rpx;" src="../static/images/xj.png"></image>
|
|
<image style="width: 54rpx;height: 54rpx;margin-bottom: 12rpx;" src="../static/images/xj.png"></image>
|
|
|
<view>添加图片</view>
|
|
<view>添加图片</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <image v-else style="width: 100%;margin: 30rpx;" :src="imageList[0]" mode="widthFix" @click="choiceImages"></image>
|
|
|
|
|
|
|
+ <view v-else style="padding: 30rpx;">
|
|
|
|
|
+ <image style="width: 100%;" :src="imageList[0]" mode="widthFix" @click="detail.status!=1?choiceImages():previewImg([detail.url],0)"></image>
|
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
<!-- <view class="ddflex" style="margin-bottom: 40rpx;padding: 30rpx;">
|
|
<!-- <view class="ddflex" style="margin-bottom: 40rpx;padding: 30rpx;">
|
|
|
<view class="product-image" v-for="item,index in imageList">
|
|
<view class="product-image" v-for="item,index in imageList">
|
|
@@ -62,8 +70,9 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<!-- 保存按钮 -->
|
|
<!-- 保存按钮 -->
|
|
|
- <view class="savepadding submit-box">
|
|
|
|
|
- <view class="submit-btn">
|
|
|
|
|
|
|
+ <view style="height: 120rpx;" v-if="detail.status!=1"></view>
|
|
|
|
|
+ <view class="savepadding submit-box" v-if="detail.status!=1">
|
|
|
|
|
+ <view class="submit-btn" @click="submit">
|
|
|
保存
|
|
保存
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -86,6 +95,8 @@
|
|
|
systems: {},
|
|
systems: {},
|
|
|
isTop:0,
|
|
isTop:0,
|
|
|
|
|
|
|
|
|
|
+ id:'',
|
|
|
|
|
+ detail:{},
|
|
|
name:'白云科技门店',
|
|
name:'白云科技门店',
|
|
|
time:'',
|
|
time:'',
|
|
|
|
|
|
|
@@ -95,7 +106,8 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
|
-
|
|
|
|
|
|
|
+ this.id = options.id
|
|
|
|
|
+ this.getInfo()
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|
|
|
|
|
|
|
@@ -104,6 +116,13 @@
|
|
|
changeEndDatetimePicker(val) {
|
|
changeEndDatetimePicker(val) {
|
|
|
this.time = val.f1 + " " + val.hh+":"+val.mm+":"+"00"
|
|
this.time = val.f1 + " " + val.hh+":"+val.mm+":"+"00"
|
|
|
},
|
|
},
|
|
|
|
|
+ previewImg(list,index) {
|
|
|
|
|
+ uni.previewImage({
|
|
|
|
|
+ current: index,
|
|
|
|
|
+ // 当前显示图片的http链接
|
|
|
|
|
+ urls: list
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
// 图片移除
|
|
// 图片移除
|
|
|
// 移除产品图片
|
|
// 移除产品图片
|
|
|
removeProductImage(index){
|
|
removeProductImage(index){
|
|
@@ -113,7 +132,7 @@
|
|
|
choiceImages(event) {
|
|
choiceImages(event) {
|
|
|
let that = this;
|
|
let that = this;
|
|
|
uni.chooseImage({
|
|
uni.chooseImage({
|
|
|
- count: 9,
|
|
|
|
|
|
|
+ count: 1,
|
|
|
sourceType: ['album', 'camera'],
|
|
sourceType: ['album', 'camera'],
|
|
|
sizeType: ['compressed'],
|
|
sizeType: ['compressed'],
|
|
|
async success(res) {
|
|
async success(res) {
|
|
@@ -210,7 +229,9 @@
|
|
|
return new Promise(function(resolve, reject) {
|
|
return new Promise(function(resolve, reject) {
|
|
|
req.loadIng("上传中");
|
|
req.loadIng("上传中");
|
|
|
req.uploadFile('/api/nocheck/upload', tempFilePath.filePath, res => {
|
|
req.uploadFile('/api/nocheck/upload', tempFilePath.filePath, res => {
|
|
|
- that.imageList = that.imageList.concat(res.src);
|
|
|
|
|
|
|
+ // that.imageList = that.imageList.concat(res.src);
|
|
|
|
|
+ that.imageList[0] = res.src;
|
|
|
|
|
+ that.imageList = JSON.parse(JSON.stringify(that.imageList))
|
|
|
resolve()
|
|
resolve()
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
@@ -228,6 +249,31 @@
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
+ getInfo(){
|
|
|
|
|
+ req.getRequest('/admin/v2/alarm/reconditionInfo',{id:this.id},res=>{
|
|
|
|
|
+ this.detail = res
|
|
|
|
|
+ if(res.url) this.imageList[0] = res.url
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ submit(){
|
|
|
|
|
+ if(this.imageList.length==0) return req.msg('请上传检修图片')
|
|
|
|
|
+ let dataP = JSON.parse(JSON.stringify(this.detail))
|
|
|
|
|
+ dataP.url = this.imageList[0]
|
|
|
|
|
+ uni.showModal({
|
|
|
|
|
+ title:'提示',
|
|
|
|
|
+ content:'确定提交检修记录?',
|
|
|
|
|
+ success: (res) => {
|
|
|
|
|
+ if(res.confirm){
|
|
|
|
|
+ req.postRequest('/admin/v2/alarm/reconditionManage',dataP,rres=>{
|
|
|
|
|
+ req.msg('已检修')
|
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
|
+ uni.navigateBack()
|
|
|
|
|
+ },1000)
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
const systemInfo = uni.getSystemInfoSync();
|
|
const systemInfo = uni.getSystemInfoSync();
|