#
whycq
2024-03-22 d47f466dfcf0fad3f4d51298c6ab84b33f83274d
#
4个文件已修改
59 ■■■■ 已修改文件
pages/phyz/AGV/AGVPakin2.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/phyz/order/orderList.vue 32 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/phyz/order/purchaseOrder.vue 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/css/common/order.css 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/phyz/AGV/AGVPakin2.vue
@@ -523,10 +523,6 @@
                        return;
                    }
                }
                console.log(that.dataList);
                console.log(that.barcode);
                console.log(that.orderNo);
                // return
                uni.request({
                    url: that.baseUrl + '/agvMobile/comb/auth',
                    data: JSON.stringify({
pages/phyz/order/orderList.vue
@@ -16,13 +16,14 @@
                <view>名称:{{item.maktx}}</view>
                <view>规格:{{item.specs}}</view>
                <view>批号:{{item.batch}}</view>
                <view>数量:{{item.anfme}}</view>
                <view>作业数量:{{item.qty}}</view>
                <view class="list-anfme">数量:{{item.anfme}}</view>
                <view class="list-qty-1" v-if="item.anfme > item.qty">作业数量:{{item.qty}}</view>
                <view class="list-qty-2" v-if="item.anfme <= item.qty">作业数量:{{item.qty}}</view>
                <view class="card-id">{{i + 1}}</view>
            </view>
            <view class="list-right" @click="checkboxChange(item)">
                <label >
                    <checkbox :value="item.orderNo" :checked="item.checked" color="" style="transform:scale(0.7)" /><text></text>
                    <checkbox :value="item.orderNo" :checked="item.checked" color="" :disabled="item.anfme <= item.qty" style="transform:scale(0.7)" /><text></text>
                </label>
            </view>
        </view>
@@ -141,7 +142,12 @@
                if (e.checked) {
                    this.$set(e,'checked',false)
                } else {
                    if (e.anfme == e.qty) {
                        this.$set(e,'checked',false)
                    } else {
                    this.$set(e,'checked',true)
                    }
                }
            },
            allChecked() {
@@ -154,7 +160,11 @@
                }
                for (let item of this.dataList) {
                    if (this.allCheck) {
                        if (item.anfme == item.qty) {
                            this.$set(item,'checked',false)
                        } else {
                        this.$set(item,'checked',true)
                        }
                    } else {
                        this.$set(item,'checked',false)
                    }
@@ -173,8 +183,7 @@
                    }
                }
                if (combList.length == 0) {
                    uni.showToast({ title: '请选择组托商品', icon: "error", position: 'top'
                    })
                    uni.showToast({ title: '请选择组托商品', icon: "error", position: 'top'})
                    return
                }
                uni.navigateTo({
@@ -193,5 +202,16 @@
<style>
    @import url('../../../static/css/common/order.css');
    .list-anfme {
        color: #0082ff;
        font-weight: bold;
    }
    .list-qty-1 {
        color: #33ba43;
        font-weight: bold;
    }
    .list-qty-2 {
        color: #e2231a;
        font-weight: bold;
    }
</style>
pages/phyz/order/purchaseOrder.vue
@@ -17,7 +17,8 @@
                <view>单据类型:{{item.docType$}}</view>
                <view>创建时间:{{item.createTime$}}</view>
                <!-- <view class="card-id">{{i + 1}}</view> -->
                <view class="card-status">{{item.settle$}}</view>
                <view class="card-status-1" v-if="item.settle == 1">{{item.settle$}}</view>
                <view class="card-status-2" v-if="item.settle == 2">{{item.settle$}}</view>
            </view>
            <!-- <view class="list-right" @click="checkboxChange(item)">
                <label >
@@ -162,16 +163,28 @@
<style>
    @import url('../../../static/css/common/order.css');
    .card-status {
    .card-status-1 {
        position: absolute;
        right: 20rpx;
        top: 30rpx;
        padding: 10rpx 20rpx;
        padding: 4rpx 20rpx;
        text-align: center;
        font-size: 10px;
        color: #ffa39e;
        color: #f5222d;
        background-color: #fff1f0;
        border: 1px solid #ffa39e;
        border-radius: 6rpx;
    }
    .card-status-2 {
        position: absolute;
        right: 20rpx;
        top: 30rpx;
        padding: 4rpx 20rpx;
        text-align: center;
        font-size: 10px;
        color: #52c41a;
        background-color: #f6ffed;
        border: 1px solid #b7eb8f;
        border-radius: 6rpx;
    }
</style>
static/css/common/order.css
@@ -27,7 +27,7 @@
        line-height: 1.2;
        text-align: center;
        color: #eeeeee;
        background-color: #ddd844;
        background-color: #30ddb2;
        border-radius: 50%;
        font-size: 10px;
    }