#
zjj
2023-12-14 7947d8e88bbfa1bc434213324c38fad83005a50b
#
3个文件已修改
19 ■■■■ 已修改文件
pages/mat/matSelected.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/pakin/goodsDown.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/pakin/goodsUp.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/mat/matSelected.vue
@@ -17,14 +17,14 @@
                <view class="form-item-desc"><text>产地</text></view>
                <view class="form-item-content"><text>{{mat.origin}}</text></view>
            </view>
            <!-- <view class="form-item">
            <view class="form-item">
                <view class="form-item-desc"><text>批号</text></view>
                <view class="form-item-content">
                    <view class="form-input">
                        <input type="text" v-model="mat.batch">
                    </view>
                </view>
            </view> -->
            </view>
            <view class="form-item">
                <view class="form-item-desc"><text>公斤</text></view>
                <view class="form-item-content">
pages/pakin/goodsDown.vue
@@ -33,9 +33,9 @@
                        </view>
                    </view> -->
                    <view class="list-left-item">
                        <view class="desc">料号:</view>
                        <view class="desc">编码:</view>
                        <view class="left-item">
                            <uni-tag :text="item.matnr" type="primary" style="width: 350rpx; overflow: auto;"></uni-tag>
                            <view class="left-item">{{item.matnr}}</view>
                        </view>
                    </view>
                    <view class="list-left-item">
@@ -444,7 +444,7 @@
        box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.2);
    }
    .list:first-child {
        margin-top: 410rpx;
        margin-top:320rpx;
    }
    .list:last-child {
        margin-bottom: 120rpx;
pages/pakin/goodsUp.vue
@@ -79,6 +79,7 @@
                        <view class="popup-item-right">
                            <input type="text" v-model="matnr" disabled="true"
                                style="background-color: #f7f7f7;padding: 0;color: #d5d5d5;">
                        </view>
                    </view>
                    <!-- <view class="popup-item">
@@ -274,6 +275,13 @@
                                // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据
                                events: {
                                    matList: function(data) {
                                        if(data.data.batch == "" || data.data.batch == null){
                                            const now = new Date();
                                            const year = now.getFullYear();
                                            const month = now.getMonth() + 1; // 月份从0开始,需要加1
                                            const day = now.getDate();
                                            data.data.batch = (""+year+month+day)
                                        }
                                        that.checkMat(data.data)
                                    },
                                },
@@ -327,6 +335,7 @@
                var len = this.dataList.length
                var add = true ,sameItem = false
                for (var i = 0; i < len; i++) {
                    if (mat.matnr == this.dataList[i].matnr) {
                        for (var j = 0; j < len; j++) {
                            if (mat.batch == this.dataList[j].batch) {