1
zhang
2025-08-21 65def89a0bd8548db777d0c2c4b7f8b67519a8d5
1
1个文件已修改
33 ■■■■ 已修改文件
pages/pakin/review.vue 33 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/pakin/review.vue
@@ -25,7 +25,7 @@
            <text>订单明细</text>
        </view>
        <!-- 包装组号:{{item.packageGroupNo}} -->
        <view class="order-item" v-for="item in orderList">
        <view class="order-item" v-for="item in orderList" v-show="item.show">
            <view class="list-left">
                <!-- <view class="list-left-item">
                    <view class="desc">物料编码:</view>
@@ -69,9 +69,13 @@
        <view style="height: 60px;"></view>
        <view class="orderDetl-none" v-if="orderList.length == 0">暂无明细</view>
        <!-- 底部操作按钮 -->
        <view class="buttom">
            <button size="mini" @click="reset('warn')">重置</button>
            <div>{{check}}</div>
            <div>/</div>
            <div>{{total}}</div>
            <button size="mini" type="primary" @click="combConfirm('warn')">单据核对</button>
        </view>
        <view>
@@ -115,6 +119,8 @@
                content: '',
                threeCode:'',
                memo:'',
                check: 0,
                total: 0,
            }
        },
        onShow() {
@@ -174,8 +180,14 @@
                        res = res.data
                        if (res.code === 200) {
                            _this.orderList.length = 0
                            console.log(_this.orderList);
                            _this.check = 0
                            _this.orderList = res.data
                            _this.total = res.data.length
                            for (let key of res.data) {
                                if (key.inspect == 1) {
                                    _this.check = _this.check + 1
                                }
                            }
                        } else if (res.code === 403) {
                            uni.showToast({
                                title: res.msg,
@@ -209,7 +221,6 @@
                        res = res.data
                        if (res.code === 200) {
                            _this.checkUser.length = 0
                            console.log( res.data);
                            _this.checkUser = res.data
                        } else if (res.code === 403) {
                            uni.showToast({
@@ -292,6 +303,7 @@
            },
            secAnalysis(data) {
                let flag = false;
                let sortOrderList = [];
                for (let k of this.orderList) {
                    console.info(data.batch == k.batch)    
                    console.info(data.specs == k.specs)    
@@ -300,6 +312,7 @@
                    console.info(k.anfme)    
                    if (data.batch == k.batch && data.specs == k.specs && data.anfme == k.anfme) {
                        flag = true
                        sortOrderList.unshift(k)
                        if (k.inspect == 1) {
                            uni.showToast({
                                title: '当前条码已确认',
@@ -314,16 +327,20 @@
                                duration: 2000
                            })
                            k.inspect = 1
                            this.check = this.check + 1
                        }
                    } else {
                        sortOrderList.push(k)
                        }
                    }
                }
                this.orderList = sortOrderList;
                if (!flag) {
                    this.msgType = 'warn'
                    this.title = '警告'
                    this.content = "箱号:" + data.batch + "\n"
                    + "规格:"+ data.specs + "\n"
                    + "净重:"+ data.anfme + "\n"
                    + '不存在,请检查!'
                    this.content = "箱号:" + data.batch + "\n" +
                        "规格:" + data.specs + "\n" +
                        "净重:" + data.anfme + "\n" +
                        '不存在,请检查!'
                    this.$refs.combConfirm2.open()
                }
                this.focuss()