Lou
2024-01-16 db8e416fec0ab844026eb7bc91d9f59a457f4e6e
subPackage/workbench/views/hotelReportDetail.vue
@@ -66,7 +66,7 @@
         <u-button type="primary" @click="submit">提交审核</u-button>
      </view> -->
      <footer-btn v-if="roleType == 2 && status == 3" text="重新编辑" @click="navToEdit"></footer-btn>
      <audit-action @handle="submit" v-if="roleType == 1 && status == 1"></audit-action>
      <u-picker :closeOnClickOverlay="true" @close="isPickerShow = false" :show="isPickerShow" ref="uPicker"
@@ -91,11 +91,12 @@
      },
      data() {
         return {
            basicData: [{
                  label: '社区名称',
                  name: "districtName",
                  value: '未完善'
               },
            basicData: [
               // {
               //    label: '社区名称',
               //    name: "districtName",
               //    value: '未完善'
               // },
               {
                  label: '酒店名称',
                  name: 'hotelName',
@@ -208,13 +209,20 @@
      },
      onLoad(option) {
         this.taskId = option.id;
         this.getDetailInfo(option.id);
         let roleName = uni.getStorageSync("activeRole").roleName
         if (roleName == "居民") {
            this.roleType = 2
            this.roleType = 2;
            uni.setNavigationBarTitle({
               title: "详情"
            })
         } else {
            this.roleType = 1
         }
      },
      onShow() {
         this.getDetailInfo(this.taskId);
      },
      methods: {
@@ -270,18 +278,10 @@
            let data = {
               id: this.id,
               taskId: this.taskId,
               // status: this.selectStatus,
               status: val.type,
               // remark: this.remark
               remark: val.remark
            }
            // if (this.selectStatus == 3 && !this.remark) {
            //    uni.showToast({
            //       title: "请输入拒绝原因",
            //       icon: "none"
            //    })
            //    return;
            // }
            setHotelReporting(data).then(res => {
               if (res.code !== 200) {
                  uni.showToast({
@@ -308,6 +308,13 @@
            prePage.$vm.getList();
            uni.navigateBack();
         },
         navToEdit() {
            uni.navigateTo({
               url: `/subPackage/label/hotel?id=${this.id}`
            })
         }
      }
   }
</script>