#
whycq
2024-01-12 59666efbb197c83fc3fa71ceb2e0c96240e6cc1c
#
1个文件已修改
45 ■■■■ 已修改文件
pages/pakin/modulePakin.vue 45 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/pakin/modulePakin.vue
@@ -46,15 +46,17 @@
                            <uni-tag :text="item.batch" type="warning"></uni-tag>
                        </view>
                    </view>
                    <!-- <view class="list-left-item">
                        <view class="desc">重量:</view>
                        <view class="left-item">
                            <uni-tag :text="item.weight" type="warning"></uni-tag>
                    <view class="list-left-item">
                        <view class="desc">组成数量:</view>
                        <view class="left-item">{{item.beBatch}}</view>
                        </view>
                    </view> -->
                    <view class="list-left-item">
                        <view class="desc">数量:</view>
                        <view class="left-item">{{item.anfme}}</view>
                    </view>
                    <view class="list-left-item">
                        <view class="desc">备注:</view>
                        <view class="left-item">{{item.memo}}</view>
                    </view>
                </view>
                <view class="list-right">
@@ -90,6 +92,10 @@
                        <view class="popup-item-left">重量:</view>
                        <view class="popup-item-right"><input type="text" v-model="weight"></view>
                    </view> -->
                    <view class="popup-item">
                        <view class="popup-item-left">备注:</view>
                        <view class="popup-item-right"><input type="text" v-model="memo"></view>
                    </view>
                    <view class="popup-item">
                        <view class="popup-item-left">数量:</view>
                        <view class="popup-item-right" style="border: none;justify-content: center;">
@@ -161,6 +167,7 @@
                matnr: '',
                batch: '',
                weight: '',
                memo: '',
                msgType1: 'success',
                msgType: 'success',
                messageText: '',
@@ -237,25 +244,12 @@
                    success(result) {
                        result = result.data
                        if (result.code === 200 && result.data) {
                            that.matData = result.data
                            for(let k of result.data) {
                                k.anfme = k.beBatch
                                that.dataList.push(k)
                                that.$refs.inputDialog.close()
                            that.matnr = ''
                            that.matData['batch'] = ''
                            uni.navigateTo({
                                url: "../mat/matSelected",
                                // 通过eventChannel向被打开页面传送数据
                                success: function(res) {
                                    res.eventChannel.emit('mat', {
                                        data: result.data
                                    })
                                },
                                // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据
                                events: {
                                    matList: function(data) {
                                        that.checkMat(data.data)
                                        that.focuss()
                                    },
                                },
                            });
                            }
                        } else if (result.code == 403) {
                            uni.showToast({
                                title: result.msg,
@@ -338,6 +332,7 @@
                this.count = this.dataList[i].anfme
                this.batch = this.dataList[i].batch
                this.weight = this.dataList[i].weight
                this.memo = this.dataList[i].memo
                this.rowNum = i
                this.eject()
            },
@@ -367,6 +362,7 @@
                this.dataList[this.rowNum].anfme = this.count
                this.dataList[this.rowNum].batch = this.batch
                this.dataList[this.rowNum].weight = this.weight
                this.dataList[this.rowNum].memo = this.memo
                this.matnr = ''
                this.messageText = "修改成功"
                this.messageToggle('success')
@@ -478,6 +474,9 @@
        z-index: 10;
    }
    .list:first-child {
        margin-top: 320rpx;
    }
    .item {
        display: flex;
        align-items: center;