#
whycq
2023-11-22 3913b3c5c8cde03f8c92d1c738d28c4a9bae7e55
pages/business/goBusiness/reimburseOnlineDetl.vue
@@ -141,7 +141,7 @@
         </view>
      </view>
      
      <view style="height: 70rpx;">
      <view style="height: 100rpx;">
         
      </view>
@@ -240,13 +240,36 @@
         const eventChannel = this.getOpenerEventChannel();
         eventChannel.on('busunessDetl', function(data) {
            _this.list.push(data.data)
            console.log(data)
            _this.getTableData(data.data.id)
            _this.getSetps(data.data.id)
         })
         
      },
      methods: {
         // 审批
         submit() {
            let _this = this,param = {planld: 13}
            uni.request({
               url: `${_this.baseUrl}/reimburseOnline/approval2/auth`,
               header: {
                  'token': uni.getStorageSync('token'),
                  'content-type': 'application/x-www-form-urlencoded;charset=UTF-8'
               },
               method: 'POST',
               sslVerify: false,
               data: { planId: 13 },
               success(res) {
                  res = res.data
                  if (res.code === 200) {
                  } else if (res.code === 500) {
                     uni.showToast({title: res.msg, icon: "none", position: 'top'})
                  }
               }
            })
         },
         getSetps(id) {
            let _this = this
            uni.request({
@@ -254,7 +277,6 @@
               header: { 'token': uni.getStorageSync('token') },
               success(res) {
                  res = res.data
                  console.log(JSON.parse(res.data.settleMsg));
                  _this.steps = JSON.parse(res.data.settleMsg)
               }
            })
@@ -271,13 +293,20 @@
                     _this.onlineDetl = res.data.records
                     
                  }
                  console.log(res);
               }
            })
         },
         modiReimburse() {
            let _this = this
            _this.list[0]['detl'] = _this.onlineDetl
            uni.navigateTo({
               url: '/pages/business/goBusiness/modiReimburseOnlineDetl'
               url: '/pages/business/goBusiness/modiReimburseOnlineDetl',
               success: function(res) {
                  res.eventChannel.emit('reimburseOnlineDetl', {
                     data: 'modi',
                     detl: {list: _this.list[0]}
                  })
               }
            })
         },
         back() {