#
whycq
2024-03-21 8f9fdc8da87fb3e097e61e9b4086e5be84cbe0be
#
2个文件已修改
43 ■■■■■ 已修改文件
pages/phyz/order/orderList.vue 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/phyz/order/purchaseOrder.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/phyz/order/orderList.vue
@@ -32,6 +32,9 @@
    export default {
        data() {
            return {
                baseUrl: '',
                token: '',
                orderId: '',
                matFocus: true,
                matnr: '',
                checck: true,
@@ -121,10 +124,46 @@
                allCheckBtnTitle: '全选'
            }
        },
        onLoad() {
            let that = this
            // const eventChannel = this.$scope.eventChannel; // 兼容APP-NVUE
            const eventChannel = this.getOpenerEventChannel();
            // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据
            eventChannel.on('item', function(data) {
                console.log(data);
                that.orderId = data.item.orderId
            })
        },
        onShow() {
            this.baseUrl = uni.getStorageSync('baseUrl');
            this.token = uni.getStorageSync('token');
            this.oldDataList = [...this.dataList]
            this.getOrderDetl(this.orderId)
        },
        methods: {
            // 订单明细
            getOrderDetl(id) {
                let _this = this
                uni.request({
                    url: `${_this.baseUrl}/orderDetl/list/auth`,
                    header: {'token': uni.getStorageSync('token')},
                    data: {
                        curr: 1,
                        limit: 1000,
                        order_id: id
                    },
                    method: 'GET',
                    success(res) {
                        res = res.data
                        console.log(res);
                        if (res.code === 200) {
                            _this.dataList = res.data.records
                        }
                    }
                })
            },
            matInput() {
                let count = 0
                let sign = 0
pages/phyz/order/purchaseOrder.vue
@@ -45,7 +45,7 @@
                oldDataList: [],
                newDataList: [],
                allCheck: false,
                allCheckBtnTitle: '全选'
                allCheckBtnTitle: '全选',
            }
        },
        onShow() {
@@ -121,7 +121,7 @@
                    header: {'token': uni.getStorageSync('token')},
                    data: {
                        curr: 1,
                        limit: 1000
                        limit: 1000,
                    },
                    method: 'GET',
                    success(res) {