#
whycq
2024-03-21 8f9fdc8da87fb3e097e61e9b4086e5be84cbe0be
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