linwe
2024-08-08 3c738f4fe2762bba8087e5a22fc0dc06560eab0e
subPackage/workbench/views/audit.vue
@@ -22,7 +22,10 @@
         <view class="list-item bgc-ff mb-20" v-for="(i,k) in list" :key="k"
            @click="navTo(i.id,i.reportType,i.status,i.type)">
            <view class="item-title flex a-i-c j-c-s-b mb-20">
               <text class="f-32 fw">{{i.name}}</text>
               <text class="f-32 fw" v-if="i.reportType == 4">{{i.placeName}}</text>
               <text class="f-32 fw" v-else>{{i.name}}</text>
               <u-tag v-if="i.color" :bgColor='i.color' :borderColor='i.color' color="#191919"
                  :text="i.categoryName"></u-tag>
               <u-tag v-if="i.status == 4" text="待完成" type="warning" plain plainFill></u-tag>
               <u-tag v-if="i.status == 1" text="待审批" type="warning" plain plainFill></u-tag>
               <u-tag v-if="i.status == 2" text="审核通过" type="success" plain plainFill></u-tag>
@@ -96,18 +99,29 @@
         console.log(option);
         if (option.reportType) {
            this.reportType = option.reportType;
            if (option.from == "task") {
               this.tabIndex = 2;
               this.currentStatus = 1;
            }
            if (option.reportType == 1) {
               uni.setNavigationBarTitle({
                  title: "取保候审"
                  title: "取保监居"
               })
            } else if (option.reportType == 2) {
            } else if (option.reportType == 7) {
               uni.setNavigationBarTitle({
                  title: "消防自查"
               })
            } else if (option.reportType == 4) {
               uni.setNavigationBarTitle({
                  title: "校园安全检查"
               })
            } else if (option.reportType == 5) {
               uni.setNavigationBarTitle({
                  title: "二手交易"
               })
               // 去掉已完成状态
               this.tabList.splice(1, 1);
               this.tabIndex = 1;
            }
         }
@@ -116,10 +130,7 @@
               title: "场所任务"
            })
         }
         if (option.from == "task") {
            this.tabIndex = 2;
            this.currentStatus = 1;
         }
         if (option.code) {
            this.houseCode = option.code;
         }
@@ -252,15 +263,18 @@
            if (reportType == 1) {
               this.$u.func.globalNavigator(`bailReportDetail?id=${id}`)
            } else if (reportType == 2) {
               this.$u.func.globalNavigator(`selfCheckDetail?id=${id}`)
            } else if (reportType == 7 || reportType == 4) {
               if (reportType == 4) {
                  this.$u.func.globalNavigator(`/subPackage/school/securityDetail?id=${id}&type=2`)
               } else {
                  this.$u.func.globalNavigator(`selfCheckDetail?id=${id}`)
               }
            } else if (reportType == 5) {
               this.$u.func.globalNavigator(`labelReportDetail?id=${id}`)
            } else {
               this.$u.func.globalNavigator(`checkReform?id=${id}`)
            }
         },
         showDateModal() {