819527061@qq.com
2023-12-01 c56e67c77e2a36c894346830c1ab1e6df36fe935
pages/my-application/my-application.vue
@@ -86,34 +86,38 @@
        <view class="bottom-container">
          <!-- 按钮区域 -->
          <view class="bottom-content__chulizhong bottom-content__item">
            <view @click="withDrawClick(item.procInstId)" v-if="item.status == 1">
            <!-- <view @click="withDrawClick(item.procInstId)" v-if="item.status == 1">
              <image src="@/static/home/cehui.png" mode=""></image>
              <view>撤回</view>
            </view>
            <view @click="checkTheScheduleClick(item.procInstId)" v-if="item.status == 1">
            </view> -->
            <view @click="() => checkTheScheduleClick(item.procInstId)" v-if="item.status == 1">
              <image src="@/static/home/jindu.png" mode=""></image>
              <view>查看进度</view>
            </view>
            <view @click="theFormDataClick(item.tableId)" v-if="(item.status == 1 || item.status == 2 || item.status == 3 ) && (item.processName == '发运通知单')">
            <view @click="() => shenqingDetail(item)" v-if="item.actType == 'Offsetting' || item.actType == 'XsWaybill'">
              <image src="@/static/home/biaodan.png" mode=""></image>
              <view>申请详情</view>
            </view>
<!--            <view @click="() => shenqingDetail(item)" v-if="(item.status == 1 || item.status == 2 || item.status == 3 ) && (item.processName == '发运通知单')">-->
<!--              <image src="@/static/home/biaodan.png" mode=""></image>-->
<!--              <view>申请详情</view>-->
<!--            </view>-->
            <!-- <view v-if="item.status == 3" @click="apply(item)">
              <image src="@/static/home/history.png" mode=""></image>
              <view>重新申请</view>
            </view> -->
            <view @click="editMyApplication(item)" v-if="item.status == 1 && item.processName == '发运通知单'">
            <!-- <view @click="editMyApplication(item)" v-if="item.status == 1 && item.processName == '发运通知单'">
              <image src="@/static/home/history.png" mode=""></image>
              <view>编辑</view>
            </view>
            </view> -->
            <view @click="approvalHistoryClick(item.procInstId)" v-if="item.status == 2 || item.status == 3">
              <image src="@/static/home/history.png" mode=""></image>
              <view>审批历史</view>
            </view>
                  <view @click="deleteWithDrawApplication(item.tableId)" v-if="item.status == 3">
                  <!-- <view @click="deleteWithDrawApplication(item.tableId)" v-if="item.status == 3">
                     <image src="@/static/home/delete.png" mode=""></image>
                     <view>删除</view>
                  </view>
                  </view> -->
          </view>
        </view>
      </template>
@@ -306,6 +310,20 @@
    this.init();
  },
  methods: {
    shenqingDetail(item) { //跳转详情页面
      console.log(item,'item=====')
      if(item.actType == 'Offsetting') {  //收款 actType = ‘Offsetting’
        uni.navigateTo({
          url: `/pages/payment-form-data/payment-form-data?id=${item.tableId}`,
        })
      }else if(item.actType == 'XsWaybill') {
        uni.navigateTo({
          url: `/pages/new-application-form-data/new-application-form-data?id=${item.tableId}`
        })
      }
    },
    init() {
      this.myApplication.pageNumber = 1;
      this.loadingType = 0;
@@ -546,6 +564,7 @@
    },
    // 查看进度
    checkTheScheduleClick(v) {
      console.log(v,'v====查看进度====')
      uni.navigateTo({
        url: `/pages/check-the-schedule/check-the-schedule?index=${v}`
      });
@@ -562,6 +581,14 @@
        url: `/pages/approval-history/approval-history?index=${v}`
      });
    },
      // 删除已撤回申请
      deleteWithDrawApplication(id){
         this.deleteWithDrawApplicationGlobal(id).then(res=>{
            console.log('shenqing,回显',res);
         }).catch(err=>{
            console.log('shenqing,删除错误');
         })
      },
    // 新增申请
    newApplicationClick() {
      uni.navigateTo({
@@ -787,7 +814,7 @@
      right:vww(20)!important;
    }
  }
   // 底部占位
   .empty-placeH{
      height:vww(50);