1
zhang
2025-08-21 65def89a0bd8548db777d0c2c4b7f8b67519a8d5
1
1个文件已修改
57 ■■■■■ 已修改文件
pages/pakin/review.vue 57 ●●●●● 补丁 | 查看 | 原始文档 | 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>
@@ -106,15 +110,17 @@
                orderNoList: [],
                orderNo: '',
                orderList: [],
                checkUser:[],
                checkUser: [],
                matnr: '',
                matFocus: true,
                msgType: 'success',
                messageText: '',
                title: '',
                content: '',
                threeCode:'',
                memo:'',
                threeCode: '',
                memo: '',
                check: 0,
                total: 0,
            }
        },
        onShow() {
@@ -132,7 +138,7 @@
                //     return
                // }
                uni.request({
                    url: `${_this.baseUrl}/mobile/getReviewList?orderNo=`+_this.orderNo,
                    url: `${_this.baseUrl}/mobile/getReviewList?orderNo=` + _this.orderNo,
                    header: {
                        'token': uni.getStorageSync('token')
                    },
@@ -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,14 +303,16 @@
            },
            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)
                    console.info(data.anfme == k.anfme)
                    console.info(data.anfme )
                    console.info(k.anfme)
                    console.info(data.batch == k.batch)
                    console.info(data.specs == k.specs)
                    console.info(data.anfme == k.anfme)
                    console.info(data.anfme)
                    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()
@@ -352,7 +369,7 @@
            },
            comb() {
                let _this = this
                // if (!_this.memo) {
                //     this.messageText = "请选择复核备注"
                //     this.messageToggle('error')
@@ -362,10 +379,10 @@
                    this.messageText = "请选择复核人"
                    this.messageToggle('error')
                    return;
                }
                }
                for (let k of this.orderList) {
                    k.memo =this.memo
                    k.threeCode =this.threeCode
                    k.memo = this.memo
                    k.threeCode = this.threeCode
                }
                uni.request({
                    url: `${_this.baseUrl}/mobile/reviewCheck`,