whycq
2022-10-15 c038caf7b08e3a8cd5573b00bac4fa1ee4076571
Merge branch 'bfwms' of http://47.97.1.152:5880/r/wms_app into bfwms
3个文件已修改
47 ■■■■ 已修改文件
pages/basics/matQuery.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/basics/matSelect3.vue 43 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/basics/pakin.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/basics/matQuery.vue
@@ -22,7 +22,7 @@
                    <view class="text-title"><text>数量</text></view>
                    <view class="text-title">
                        <view>
                            <uni-number-box :value="matData.anfme" :max="999999" color="#747474" @change="changeValue"/>
                            <uni-number-box :value="matData.anfme" :max="9999999" color="#747474" @change="changeValue"/>
                        </view>
                    </view>
                </view>
pages/basics/matSelect3.vue
@@ -38,17 +38,17 @@
        <view class="footer flex" style="height: 100rpx;">
            <view class="bottom">
                <view style="display: inline-block;">
                    <button size="mini">上一页</button>
                    <button size="mini" @click="pageUp()">上一页</button>
                </view>
                <view style="display: flex;align-items: center;">
                    <text>当前页:</text>
                    <input v-model="limit" type="text" style="width: 50rpx;border: 1px solid #ccc;height: 30rpx;font-size: 14rpx;">
                    <input v-model="limit" @blur="toPage()" type="text" style="width: 50rpx;border: 1px solid #ccc;height: 30rpx;font-size: 14rpx;">
                </view>
                <view style="display: flex;align-items: center;">
                    <text style="font-size: 14rpx;">共{{pages}}页</text>
                </view>
                <view style="display: inline-block;">
                    <button size="mini">下一页</button>
                    <button size="mini" @click="pageDown()">下一页</button>
                </view>
            </view>
        </view>
@@ -64,7 +64,9 @@
                tag: [],
                data: [],
                limit: 1,
                pages: 10
                pages: 10,
                curr: 1,
                parentId:''
            }
        },
        onLoad() {
@@ -79,6 +81,23 @@
            })
        },
        methods: {
            pageUp() {
                this.curr = this.curr - 1
                this.showMat(this.parentId,this.curr,16)
                this.limit = this.curr
                console.log(this.curr);
            },
            pageDown() {
                this.curr = this.curr + 1
                this.limit = this.curr
                this.showMat(this.parentId,this.curr,16)
                console.log(this.curr);
            },
            toPage() {
                this.curr = this.pages
                this.showMat(this.parentId,this.curr,16)
            },
            checkbox() {
                
            },
@@ -147,7 +166,7 @@
                            if (res.data != null && res.data.length > 0) {
                                that.tag = res.data
                            } else {
                                that.showMat(parentId)
                                that.showMat(parentId,"1","16")
                            }
                        } else if (res.code === 403 ) {
                            uni.showToast({title: res.msg, icon: "none", position: 'top'})
@@ -163,25 +182,27 @@
                    }
                });
            },
            showMat(tagId) {
            showMat(tagId,curr,limit) {
                uni.showLoading();
                let that = this
                if (tagId == null || tagId == '' || tagId == undefined) {
                    return;
                }
                uni.request({
                    url: that.commonUrl + '/mat/list/auth2',
                    url: that.commonUrl + '/mat/list/pad/page/auth',
                    data: {
                        param: {
                            curr: 1,
                            limit: 16,
                            tag_id:tagId}
                            curr: curr,
                            limit: limit,
                            tagId:tagId,
                            }
                    },
                    method:"GET",
                    method:"POST",
                    header: {
                        'token':uni.getStorageSync('token'),
                    },
                    success(result) {
                        console.log(result);
                        uni.hideLoading();
                        that.tag = null
                        var res = result.data
pages/basics/pakin.vue
@@ -100,7 +100,7 @@
                <view class="changeBox">
                    <view class="num-box">
                        <text style="display: inline-block;float: left;width: 50px;">批号:</text>
                        <uni-number-box :value="count" :max="999999" color="#747474"  @change="changeValue"/>
                        <uni-number-box :value="count" :max="9999999" color="#747474"  @change="changeValue"/>
                    </view> 
                </view>
                <view class="revise-box-buttom">