#
whycq
2023-11-22 3913b3c5c8cde03f8c92d1c738d28c4a9bae7e55
pages/business/goBusiness/reimburseOnlineDetl.vue
@@ -136,25 +136,14 @@
         <view class="box">
            <view class="box-title">流程动态</view>
            <u-steps :current="1" direction="column">
               <u-steps-item title="开始 2023-11-09 13:30:54" desc="张芬创建了审批">
               </u-steps-item>
               <u-steps-item title="部门经理审核 2023-11-09 13:31:42" desc="部门经理张芬审批通过">
               </u-steps-item>
               <u-steps-item title="俞晓审核" desc="">
               </u-steps-item>
               <u-steps-item title="周春松审核" desc="">
               </u-steps-item>
               <u-steps-item title="罗萍审核" desc="">
               </u-steps-item>
               <u-steps-item title="俞晓审核" desc="">
               </u-steps-item>
               <u-steps-item :title="`${item.title} ${item.time ? item.time : ''}`" :desc="item.msg" v-for="item in steps" />
            </u-steps>
         </view>
      </view>
      
      <view style="height: 70rpx;">
      <view style="height: 100rpx;">
         
      </view>w
      </view>
      <view class="floor">
         <view class="wran">删除</view>
@@ -168,6 +157,7 @@
   export default {
      data() {
         return {
            steps: [],
            list: [{
               templateName: '项目未完成',
               checkData: '否',
@@ -176,7 +166,7 @@
               name$: '浙江天成自控股份有限公司',
               status$: '未完成',
               settle$: '等待节点3审核',
               detl: '报销明细',
               // detl: '报销明细',
               updateUserId$: '张芬',
               updateTime$: '2023-11-09 13:31:42'
            }, ],
@@ -209,10 +199,10 @@
                  label: "进度",
                  attribute: "settle$",
               },
               {
                  label: "报销明细",
                  attribute: "detl",
               },
               // {
               //    label: "报销明细",
               //    attribute: "detl",
               // },
               {
                  label: "更新人员",
                  attribute: "updateUserId$",
@@ -244,10 +234,79 @@
            ]
         }
      },
      onLoad(option) {
         let _this = this
         _this.list = []
         const eventChannel = this.getOpenerEventChannel();
         eventChannel.on('busunessDetl', function(data) {
            _this.list.push(data.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({
               url: `${_this.baseUrl}/reimburseOnline/${id}/auth`,
               header: { 'token': uni.getStorageSync('token') },
               success(res) {
                  res = res.data
                  _this.steps = JSON.parse(res.data.settleMsg)
               }
            })
         },
         getTableData(id) {
            let _this = this
            uni.request({
               url: `${_this.baseUrl}/reimburseOnlineDetl/list/auth`,
               header: { 'token': uni.getStorageSync('token') },
               data: {order_id: id},
               success(res) {
                  res = res.data
                  if (res.code === 200) {
                     _this.onlineDetl = res.data.records
                  }
               }
            })
         },
         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() {