| | |
| | | |
| | | let radioValue = '' //单选框选中的项 |
| | | |
| | | |
| | | |
| | | // 扫描点检工位返回时执行方法 |
| | | function scaned(r) { |
| | | // let flag = false |
| | |
| | | |
| | | <div class="head" |
| | | :style="{marginTop:topContent.length===0?'100px':'0',minHeight:topContent.length===0?'0':'220px'}" |
| | | style="margin-bottom: 130px;padding-bottom: 10px;overflow-y: ;" |
| | | style="margin-bottom: 10px;padding-bottom: 10px;overflow-y: ;" |
| | | :style="{marginTop:topContent.length===0?'78px':'0'}"> |
| | | <div class="head_block" style="margin-bottom:10px;"> |
| | | <div class="head_left"> |
| | |
| | | </div> |
| | | |
| | | |
| | | <div class="head" style="margin-bottom: 10px;padding-bottom: 10px;overflow-y: ;"> |
| | | <div class="head_block"> |
| | | <div class="head_left"> |
| | | <div class="head_bar"></div> |
| | | <div class="head_title"> |
| | | 停机维修 |
| | | </div> |
| | | </div> |
| | | |
| | | <div style="margin-right: 10px;"> |
| | | <div class="flex_center" style="width: 100%;display: flex;justify-content: space-around;"> |
| | | <van-button class="buttonSmall" size="small" :plain="isStop!=='Y'" |
| | | style="margin-right: 10px;" @click="isStopClick('Y')" type="primary"> |
| | | 是</van-button> |
| | | <van-button class="buttonSmall" size="small" :plain="isStop!=='N'" |
| | | @click="isStopClick('N')" type="danger">否</van-button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | |
| | | <div class="head" v-if="isStop==='N'" style="margin-bottom: 10px;padding-bottom: 10px;overflow-y: ;"> |
| | | <div class="head_block" style="margin-bottom:10px;"> |
| | | <div class="head_left"> |
| | | <div class="head_bar"></div> |
| | | <div class="head_title"> |
| | | 维修内容 |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div style="display:flex;flex-direction: column;width: 96%;margin: auto;"> |
| | | <van-field v-model="messageContent" rows="2" autosize type="textarea" placeholder="请输入" /> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <div class="head" v-if="isStop==='N'" style="margin-bottom: 10px;padding-bottom: 70px;overflow-y: ;"> |
| | | <div class="head_block" style="margin-bottom:10px;"> |
| | | <div class="head_left"> |
| | | <div class="head_bar"></div> |
| | | <div class="head_title"> |
| | | 更换备件 |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | |
| | | <div style="display:flex;flex-direction: column;width: 96%;margin: auto;"> |
| | | <van-field v-model="messageDescr2" rows="2" autosize type="textarea" placeholder="请输入" /> |
| | | </div> |
| | | <div style="width: 96%;margin: auto;margin-top: 10px;"> |
| | | <van-uploader v-model="fileList2" :after-read="afterRead2" multiple :max-count="3" /> |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | |
| | | |
| | | <div style=""> |
| | | <div class="footer" style="min-height:50px;"> |
| | | <div |
| | | style="position:fixed;bottom: 0;width: 96%;display: flex;justify-content: center;flex-direction: column;align-items: center"> |
| | | <van-button class="vanButtonInfo" @click="submit" type="info"> |
| | | <van-button class="vanButtonInfo" @click="submit" type="info"> |
| | | 确认提交</van-button> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </body> |
| | | <script> |
| | | |
| | | var app = new Vue({ |
| | | el: '#app', |
| | | data: function() { |
| | |
| | | // url: 'https://img01.yzcdn.cn/vant/leaf.jpg' |
| | | // }, |
| | | ], |
| | | isStop: 'Y', |
| | | messageContent: '', |
| | | messageDescr2: '', |
| | | fileList2: [], |
| | | photoList: [], |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | created() {}, |
| | | mounted() {}, |
| | | methods: { |
| | | afterRead2(file) { |
| | | |
| | | }, |
| | | isStopClick(val) { |
| | | this.isStop = val |
| | | this.$forceUpdate() |
| | | }, |
| | | afterRead(file) { |
| | | // 此时可以自行将文件上传至服务器 |
| | | console.log(file); |
| | | |
| | | |
| | | //创建FormData对象。上传图片需要转换二进制,这里要用到FormData |
| | | let forms = new FormData(); |
| | | let forms = new FormData(); |
| | | console.log(file.file); |
| | | //"file"表示给后台传的属性名字 |
| | | forms.append("file", file.file); //获取上传图片信息 |
| | | console.log(forms, 1); |
| | | |
| | | this.photoList = forms |
| | | }, |
| | | submit() {}, |
| | | submit() { |
| | | console.log(this.photoList, 1) |
| | | }, |
| | | // 输入框失焦触发事件 |
| | | vanFieldBlur() { |
| | | this.$forceUpdate() |
| | |
| | | } |
| | | |
| | | .buttonSmall { |
| | | /* border-radius: 5px; */ |
| | | width: 40px; |
| | | } |
| | | |
| | | .vanButtonInfo { |