|
@@ -1,45 +1,63 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view>
|
|
<view>
|
|
|
- <view class="input-box ddflex">
|
|
|
|
|
|
|
+ <!-- <view class="input-box ddflex">
|
|
|
<view class="input fflex">
|
|
<view class="input fflex">
|
|
|
<input class="fflex" placeholder="请输入设备编号"/>
|
|
<input class="fflex" placeholder="请输入设备编号"/>
|
|
|
</view>
|
|
</view>
|
|
|
<image class="saoma" src="../../static/pages/images/saoma.png"></image>
|
|
<image class="saoma" src="../../static/pages/images/saoma.png"></image>
|
|
|
- </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">
|
|
|
- <input v-model="name" :disabled="true" class="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">
|
|
|
- <input v-model="name" :disabled="true" class="fflex"/>
|
|
|
|
|
|
|
+ CHZD04TTCC200329109
|
|
|
</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">
|
|
|
- <biaofundatetimepicker class="biao fflex" :dateStr="time"
|
|
|
|
|
- placeholder="巡检时间" fields="minute" @change="changeEndDatetimePicker"></biaofundatetimepicker>
|
|
|
|
|
|
|
+ 定期巡检提醒
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="item ddflex">
|
|
<view class="item ddflex">
|
|
|
|
|
+ <view class="label">提醒时间</view>
|
|
|
|
|
+ <view class="item-input fflex">
|
|
|
|
|
+ 2022-12-31 17:16:37
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <!-- <view class="item ddflex">
|
|
|
|
|
+ <view class="label">提醒时间</view>
|
|
|
|
|
+ <view class="item-input fflex">
|
|
|
|
|
+ <biaofundatetimepicker class="biao fflex" :dateStr="time"
|
|
|
|
|
+ placeholder="提醒时间" fields="minute" @change="changeEndDatetimePicker"></biaofundatetimepicker>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view> -->
|
|
|
|
|
+ <!-- <view class="item ddflex">
|
|
|
<view class="label">检修记录表</view>
|
|
<view class="label">检修记录表</view>
|
|
|
<view class="item-input fflex" style="color: #2A82E4;" @click="choiceImages">
|
|
<view class="item-input fflex" style="color: #2A82E4;" @click="choiceImages">
|
|
|
点击上传
|
|
点击上传
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ </view> -->
|
|
|
|
|
+
|
|
|
|
|
+ <view class="img-box ddflex" @click="choiceImages" v-if="imageList.length==0">
|
|
|
|
|
+ <image style="width: 54rpx;height: 54rpx;margin-bottom: 12rpx;" src="../static/images/xj.png"></image>
|
|
|
|
|
+ <view>添加图片</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <image v-else style="width: 100%;margin: 30rpx;" :src="imageList[0]" mode="widthFix" @click="choiceImages"></image>
|
|
|
|
|
|
|
|
- <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">
|
|
|
<image style="width: 100%;height: 100%;margin-bottom: 0;" :src="item"></image>
|
|
<image style="width: 100%;height: 100%;margin-bottom: 0;" :src="item"></image>
|
|
|
<image class="product-image-delete" src="../static/images/imagecuo.png" @click="removeProductImage(index)"></image>
|
|
<image class="product-image-delete" src="../static/images/imagecuo.png" @click="removeProductImage(index)"></image>
|
|
|
</view>
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
|
|
+ </view> -->
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -191,7 +209,7 @@
|
|
|
var promise = Promise.all(allList.map(tempFilePath => {
|
|
var promise = Promise.all(allList.map(tempFilePath => {
|
|
|
return new Promise(function(resolve, reject) {
|
|
return new Promise(function(resolve, reject) {
|
|
|
req.loadIng("上传中");
|
|
req.loadIng("上传中");
|
|
|
- req.uploadFile('/api/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);
|
|
|
resolve()
|
|
resolve()
|
|
|
});
|
|
});
|