| | |
| | | }); |
| | | complete: () => {} |
| | | }, |
| | | downWgt() { |
| | | let that = this; |
| | | const downloadUrl = that.baseUrll + "/static/appupload/" + that.upVersion + ".apk" |
| | | uni.showLoading({ |
| | | title: '更新中……' |
| | | }) |
| | | // return |
| | | const downloadTask = uni.downloadFile({ //执行下载 |
| | | url: downloadUrl, //下载地址 |
| | | timeout: 1000 * 30, //30秒超时时间 |
| | | success: downloadResult => { //下载成功 |
| | | console.log(downloadResult); |
| | | that.showdownLine = false |
| | | uni.hideLoading(); |
| | | console.log('downloadResult.statusCode' + downloadResult.statusCode) |
| | | if (downloadResult.statusCode == 200) { |
| | | console.log('更新中') |
| | | uni.showModal({ |
| | | title: '', |
| | | content: '更新成功,确定现在重启吗?', |
| | | confirmText: '重启', |
| | | confirmColor: '#EE8F57', |
| | | success: function(res) { |
| | | if (res.confirm == true) { |
| | | plus.runtime.install( //安装 |
| | | downloadResult.tempFilePath, { |
| | | force: true |
| | | }, |
| | | function(res) { |
| | | utils.showToast('更新成功,重启中'); |
| | | plus.runtime.restart(); |
| | | } |
| | | ); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | }, |
| | | fail: err => { |
| | | uni.hideLoading(); |
| | | that.showdownLine = false |
| | | that.$u.toast(err.errMsg) |
| | | console.log(err) |
| | | }, |
| | | complete: com => { |
| | | console.log(com) |
| | | } |
| | | }); |
| | | |
| | | // 下载进度 |
| | | downloadTask.onProgressUpdate(res => { |
| | | that.downloadNum = res.progress |
| | | console.log('下载进度' + that.downloadNum); |
| | | }); |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | |
| | | |
| | | <!-- 弹窗 --> |
| | | <!-- 修改数量 --> |
| | | <uni-popup ref="revise" background-color="#fff"> |
| | | <uni-popup ref="revise"> |
| | | <view class="revise-box "> |
| | | <view class="revise-box-top"> |
| | | <view class="color-block-blue"></view> |
| | | <text class="title">修改批号/数量</text> |
| | | </view> |
| | | <view class="" style="position: relative;left: 50px;margin-bottom: 20px;"> |
| | | <view class="" style="position: relative;left: 75rpx;margin-bottom: 20px;"> |
| | | <text style="display: inline-block;float: left;width: 60px;">合同号:</text> |
| | | <input type="text" style="width: 100px;border-bottom: 1px solid #9e9e9e;" v-model="batch"> |
| | | </view> |
| | | <view class="changeBox"> |
| | | <view class="num-box"> |
| | | <text style="display: inline-block;float: left;width: 60px;">数量:</text> |
| | | <text style="display: inline-block;float: left;width: 90rpx;">数量:</text> |
| | | <uni-number-box :value="count" :step='0.01' :max="99999999" color="#747474" @change="changeValue" /> |
| | | </view> |
| | | </view> |
| | |
| | | </view> |
| | | </uni-popup> |
| | | <uni-popup ref="alertDialog" type="dialog"> |
| | | <uni-popup-dialog :type="msgType" cancelText="取消" confirmText="确认" title="组托" content="确认是否现在组托!" |
| | | @confirm="comb" @close="dialogClose"></uni-popup-dialog> |
| | | <uni-popup-dialog cancelText="取消" confirmText="确认" title="组托" content="确认是否现在组托!" |
| | | @confirm="comb" @close="close"></uni-popup-dialog> |
| | | </uni-popup> |
| | | </view> |
| | | </template> |
| | |
| | | }, |
| | | comb1() { |
| | | this.$refs.alertDialog.open() |
| | | }, |
| | | close() { |
| | | this.$refs.alertDialog.close() |
| | | }, |
| | | // 托盘码有误重置 |
| | | barcodeFocuss() { |
| | |
| | | @import "../../colorui/icon.css"; */ |
| | | .revise-box { |
| | | position: relative; |
| | | width: 500rpx; |
| | | width: 550rpx; |
| | | height: 400rpx; |
| | | border-radius: 25px; |
| | | background-color: #fff; |
| | | border-radius: 15px; |
| | | } |
| | | |
| | | .revise-box-top { |
| | |
| | | data () { |
| | | return { |
| | | commonUrl:null, |
| | | matList: [{}], |
| | | matList: [], |
| | | locNo: null, |
| | | matnr: null |
| | | |
| | |
| | | // color: 'blue', |
| | | // cuIcon: 'video' |
| | | // }, |
| | | { |
| | | title: '库存盘点', |
| | | name: 'stoCheck', |
| | | color: 'blue', |
| | | cuIcon: 'safe' |
| | | }, |
| | | // { |
| | | // title: '库存盘点', |
| | | // name: 'stoCheck', |
| | | // color: 'blue', |
| | | // cuIcon: 'safe' |
| | | // }, |
| | | // { |
| | | // title: '平仓库存盘点', |
| | | // name: 'manStoCheck', |