#
whycq
2023-02-07 e2b07afb71e112babef573c8dad089d0a2aef5da
#
4个文件已修改
87 ■■■■ 已修改文件
App.vue 55 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/basics/pakin.vue 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/basics/stockQuery.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/index/index.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
App.vue
@@ -181,6 +181,61 @@
                });
                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>
pages/basics/pakin.vue
@@ -98,19 +98,19 @@
        <!-- 弹窗 -->
        <!-- 修改数量 -->
        <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>
@@ -122,8 +122,8 @@
            </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>
@@ -193,6 +193,9 @@
            },
            comb1() {
                this.$refs.alertDialog.open()
            },
            close() {
                this.$refs.alertDialog.close()
            },
            // 托盘码有误重置
            barcodeFocuss() {
@@ -515,9 +518,10 @@
    @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 {
pages/basics/stockQuery.vue
@@ -74,7 +74,7 @@
        data () {
            return {
                commonUrl:null,
                matList: [{}],
                matList: [],
                locNo: null,
                matnr: null
                
pages/index/index.vue
@@ -72,12 +72,12 @@
                    //     color: 'blue',
                    //     cuIcon: 'video'
                    // },
                    {
                        title: '库存盘点',
                        name: 'stoCheck',
                        color: 'blue',
                        cuIcon: 'safe'
                    },
                    // {
                    //     title: '库存盘点',
                    //     name: 'stoCheck',
                    //     color: 'blue',
                    //     cuIcon: 'safe'
                    // },
                    // {
                    //     title: '平仓库存盘点',
                    //     name: 'manStoCheck',