Houjie
2025-06-03 2fda34643bc22e25f6c569415da5f955c81536bf
pages/reportRepair/reportRepair.vue
@@ -46,7 +46,7 @@
      <view class="padding flex flex-direction">
         <view class="flex-sub bg-blue padding-sm margin-xl radius text-sm text-center text-white"
            @click.stop="ProductionTask()" hover-class="is-hover">提交</view>
            @click.stop="ProductionTask()"   hover-class="is-hover">提交</view>
      </view>
@@ -57,6 +57,7 @@
   import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js";
   export default {
      mixins: [MescrollMixin], // 使用mixin
      data() {
         return {
            // 图片回显
@@ -90,7 +91,7 @@
               faultNameList: [],
               faultName: '',
               faultType: '',
               breakdownFlag: '',
               breakdownFlag: '1',
               loadTime: Date.now(),
               faultDescription: ''
            },
@@ -126,7 +127,9 @@
            announcement1: [],
            msg1Count: 0,
            msg2Count: 0,
            msg1Title: ""
            msg1Title: "",
            equipmentId: '',
            AuthLsit:[]
         }
      },
      computed: {
@@ -164,7 +167,7 @@
         this.getSera()
      },
      created() {
         // this.getEquipment();
         this.getfaultReasonList();
      },
      methods: {
@@ -184,6 +187,7 @@
               console.log(this.announcement1);
               //设置列表数据
               if (res.data.success) {
                  this.equipmentId = this.announcement1.id
                  this.formData.numSear = this.announcement1.equipmentCode + '[' + this.announcement1
                     .equipmentName +
                     ']'
@@ -315,6 +319,14 @@
               });
               return false
            }
            if (this.formData.breakdownFlag == 0 || this.formData.breakdownFlag == undefined) {
               uni.showToast({
                  icon: "none",
                  title: '是否停机为空!',
                  duration: 2000
               });
               return false
            }
            // 请求开始 增加遮罩层
            uni.showLoading({
               mask: true,
@@ -338,16 +350,23 @@
                     title: '提交成功',
                     duration: 2000
                  });
                  this.$Router.replaceAll({
                     name: 'index'
                  console.log(this.equipmentId)
                  uni.reLaunch({
                     url: `/pages/reportRepair/reportRepairList/reportRepairList?equipmentId=${this.equipmentId}`
                  })
               } else {
                  uni.showToast({
                     icon: "error",
                     title: res.data.message,
                     duration: 2000
                  });
               }
            }).catch(() => {
               this.$tip.loaded();
               uni.hideLoading();
               uni.showToast({
                  icon: "error",
                  title: '提交失败',
                  title: '网络连接失败',
                  duration: 2000
               });
            });