-
zhangwei
2025-01-22 9f0f5d7767506658ab5ca47ba8ff4ede423e47e3
src/pages/reimbursement/reimbursement.vue
@@ -25,10 +25,10 @@
                     <view class="c-p-20 chuany-font26">
                        <view class="chuany-flex chuany-justify-between">
                           <text class="chuany-width8">{{index+1}}</text>
                           <view class="chuany-width15" v-if="item.sentStaff">
                           <view class="chuany-width13" v-if="item.sentStaff">
                              {{item.sentStaff.name}}
                           </view>
                           <view class="chuany-width22">
                           <view class="chuany-width25">
                              {{$util.formatDate(item.planStartTime)}}
                           </view>
                           <view class="chuany-width30">
@@ -115,6 +115,9 @@
      // workTime.value = getFirstDayOfMonth() + '至' + $util.formatDate(new Date())
      // state.planStartTimeStart = getFirstDayOfMonth() //工作开始时间
      // state.planStartTimeEnd = $util.formatDate(new Date())
   })
   onShow(() => {
      getcaiwuplanelist()
   })
   const getFirstDayOfMonth = () => {
@@ -190,6 +193,9 @@
      if (state.planStartTimeEnd) {
         data.planStartTimeEnd = state.planStartTimeEnd
      }
      if (workerUserName.value) {
         data.staffName = workerUserName.value
      }
      loadStatus.value = 'loading';
      $api.getcaiwuplanelist(data).then(res => {
         console.log(res, res.code, '-----------123’');
@@ -222,15 +228,9 @@
      // if (state.planStartTimeEnd) {
      //    data.planStartTimeEnd = state.planStartTimeEnd
      // }
      if (item.evaluationStatus == 'NotReimbursed') {
         uni.navigateTo({
            url: `/pages/reimbursement/payment?detailId=${item.keyid}`
         });
      } else {
         $util.showToast({
            title: '此报销单已报销!'
         })
      }
      uni.navigateTo({
         url: `/pages/reimbursement/payment?detailId=${item.keyid}`
      });
      // $db.set('detailItem',JSON.stringify(item))
   }