819527061@qq.com
2023-11-24 5c8906cc4aaa7fcf70ee37de2dd1069161d80a61
pages/home/home.vue
@@ -19,7 +19,7 @@
               </view>
            </template>
            <template v-slot:center>
               <view class="center-container">
               <view class="center-container" @click="() => shenqingDetail(item)">
                  <view class="center-content__one center-margin">
                     <view class="">
                        <text>所属流程:{{ item.processName }}</text>
@@ -102,7 +102,7 @@
               </view>
            </template>
            <template v-slot:center>
               <view class="center-container">
               <view class="center-container" @click="() => daibanDetail(item)">
                  <view class="center-content__one center-margin">
                     <view class="">
                        <text>任务名称:{{ item.name || '' }}</text>
@@ -156,7 +156,7 @@
               </view>
            </template>
            <template v-slot:center>
               <view class="center-container">
               <view class="center-container" @click="() => shenqingDetail(item)">
                  <view class="center-content__one center-margin">
                     <view>
                        <text>任务名称:{{ item.name }}</text>
@@ -491,6 +491,32 @@
         this.doneList(); // 我的已办
         this.xscarshippingdayplan(); // 日计划
      },
    //代办详情
    daibanDetail(item) {
      if(item?.actBusiness?.actType == 'Offsetting') {  //收款 actType = ‘Offsetting’
        uni.navigateTo({
          url: `/pages/payment-form-data/payment-form-data?id=${item.tableId}`,
        })
      }else if(item?.actBusiness?.actType == 'WAY_BILL') {
        uni.navigateTo({
          url: `/pages/new-application-form-data/new-application-form-data?id=${item.tableId}`
        })
      }
    },
    //代办详情
    shenqingDetail(item) {
      if(item.actType == 'Offsetting') {  //收款 actType = ‘Offsetting’
        uni.navigateTo({
          url: `/pages/payment-form-data/payment-form-data?id=${item.tableId}`,
        })
      }else if(item.actType == 'WAY_BILL') {
        uni.navigateTo({
          url: `/pages/new-application-form-data/new-application-form-data?id=${item.tableId}`
        })
      }
    },
      getUserInfo() {
         this.$reqGet('getUserInfo').then(res => {
            if (res.code == 0) {
@@ -1110,4 +1136,4 @@
      }
   }
}
</style>
</style>