| | |
| | | </view> |
| | | |
| | | <view class="marginRight20"> |
| | | <u-icon name="scan" @click="topScanClick" color="red" size="56"></u-icon> |
| | | <u-icon name="scan" @click="topScanClick" color="red" size="28"></u-icon> |
| | | </view> |
| | | |
| | | </view> |
| | |
| | | </view> |
| | | |
| | | </view> |
| | | <u-gap height="20" bgColor="#eff0f1"></u-gap> |
| | | <u-gap height="10" bgColor="#eff0f1"></u-gap> |
| | | |
| | | <view class="head" style="padding-bottom: 10rpx;"> |
| | | <view class="head_block" style="margin-bottom: 10rpx;margin-top:20rpx;"> |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <u-gap height="20" bgColor="#eff0f1"></u-gap> |
| | | <u-gap height="10" bgColor="#eff0f1"></u-gap> |
| | | |
| | | <view class="head" style="padding-bottom: 10rpx;"> |
| | | <view class="head_block" style="margin-bottom: 10rpx;margin-top:20rpx;"> |
| | |
| | | </view> |
| | | </view> |
| | | <view class='inputClass contentFont' style="margin: 0 20rpx; width: 95%;"> |
| | | <u--textarea placeholder="请输入" confirm-type="send" border="surround" height='140' |
| | | <u--textarea placeholder="请输入" confirm-type="send" border="surround" height='100' |
| | | v-model="descMessage"> |
| | | </u--textarea> |
| | | </view> |
| | |
| | | <view style="display: flex;"> |
| | | <view v-for="(pic,index) in fileList" :key="pic.name"> |
| | | <view style="margin: 20rpx 0rpx 20rpx 20rpx;position: relative;"> |
| | | <u-icon name="close" color="#fff" size="26" |
| | | <u-icon name="close" color="#fff" size="13" |
| | | style="position: absolute;z-index: 10;right: 0;background-color: black;border-radius:50%;" |
| | | @click="deletePic(pic)"></u-icon> |
| | | |
| | |
| | | }, |
| | | mounted() { |
| | | this.init() |
| | | this.getMaintainScanDeviceApplyQrCodeData('111') |
| | | // this.getMaintainScanDeviceApplyQrCodeData('101') |
| | | |
| | | }, |
| | | methods: { |
| | |
| | | async submit() { |
| | | const header = { |
| | | // 'Content-Type': 'multipart/form-data', |
| | | 'Content-Type': 'application/x-www-form-urlencoded', |
| | | 'rediskey': uni.getStorageSync('rediskey'), |
| | | 'admin': uni.getStorageSync('usercode'), |
| | | 'username': encodeURIComponent(uni.getStorageSync('username')), |
| | | 'navTabId': uni.getStorageSync('usercode'), |
| | | 'userid': uni.getStorageSync('userid'), |
| | | 'guid': uni.getStorageSync('guid'), |
| | | 'usertype': 'APP' |
| | | // 'Content-Type': 'application/x-www-form-urlencoded', |
| | | 'Token': uni.getStorageSync('Token') |
| | | // 'rediskey': uni.getStorageSync('rediskey'), |
| | | // 'admin': uni.getStorageSync('usercode'), |
| | | // 'username': encodeURIComponent(uni.getStorageSync('username')), |
| | | // 'navTabId': uni.getStorageSync('usercode'), |
| | | // 'userid': uni.getStorageSync('userid'), |
| | | // 'guid': uni.getStorageSync('guid'), |
| | | // 'usertype': 'APP' |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | |
| | | // #ifdef APP-PLUS ||MP |
| | | // const temp = [{ |
| | | // name: 'files1' |
| | | // }] |
| | | |
| | | let formData = { |
| | | username: uni.getStorageSync('username'), |
| | | eqpcode: this.topContent[0].code, |
| | | wkshpcode: this.topContent[0].wksp_code, |
| | | faultsourcecode: this.selectValue, |
| | |
| | | |
| | | |
| | | console.log(formData) |
| | | console.log(this.fileList, 'fileList') |
| | | |
| | | |
| | | this.isDisabledSubmitButton = true |
| | | uni.uploadFile({ |
| | | url: this.$baseUrl + '/AppDeviceManage/MaintainScanDeviceApplySave', |
| | | url: this.$baseUrl + '/DeviceManager/MaintainScanDeviceApplySave', |
| | | files: this.fileList.length === 0 ? [{ |
| | | uri: '/' |
| | | }] : this.fileList, |
| | |
| | | header: header, |
| | | formData: formData, |
| | | success: (res) => { |
| | | // console.log(res, '1') |
| | | let result = JSON.parse(res.data) |
| | | if (res.statusCode == 200 && result.code == '200') { |
| | | uni.$u.toast('提交成功!') |
| | |
| | | this.isDisabledSubmitButton = false |
| | | }, |
| | | fail(res) { |
| | | // console.log(res, '1') |
| | | uni.$u.toast('提交失败!') |
| | | this.isDisabledSubmitButton = false |
| | | }, |