haoxuan
2023-10-11 a1a6630f2eabfc78a379b5808b1bf7231a084d0b
src/components/AddIssue.vue
@@ -41,7 +41,7 @@
            </div>
            
          </template>
          <template v-else>
          <template v-else-if="Object.keys(taskData).length > 0 ">
            <div class="title-box margin_bottom_13">
              <div class="title-item color_4efefa font_size_20 title-bng">
                当前任务:{{ taskData.Procedure.procedure.procedureName || "" }}
@@ -167,7 +167,7 @@
      </div>
      <div slot="footer" :class="messageError?'dialog-footer tac btn-error':'dialog-footer tac'" style="overflow: hidden">
        <template v-if="messageError">
          <div class="btn" v-if="messageError =='下发成功!'"  @click="closeClick">
          <div class="btn" v-if="messageError =='下发成功!'||ArrError"  @click="closeClick">
            <img  src="../../public/close-btn.png" />
          </div>
          <div class="btn" v-else  @click="confirmClick2">
@@ -229,12 +229,24 @@
        return [];
      },
    },
    ArrError:{
      type: [String],
      default: () => {
        return '';
      },
    },
    safeProduce:{
      type: [String],
      default: () => {
        return '';
      },
    }
    },
    activeName:{
      type: [String,Number],
      default: () => {
        return 1;
      },
    },
  },
  data() {
    return {
@@ -278,6 +290,10 @@
      this.num = 0;
      this.showBtn=1;
      this.isLoading=false
      this.sencond=0
      this.sencondTimer=null
      this.messageError=''
      this.resParams= {},
      this.$emit('isTip',this.islook)
    },
  },
@@ -304,16 +320,20 @@
    getInfo() {
      // 1 未生产 2生产中 3生产完成
      if (
        Object.keys(this.taskData).length > 0 &&
        this.taskData.Procedure.ID &&
        this.taskData.Procedure.Status == 1
        Object.keys(this.taskData).length > 0 && this.taskData.Procedure.ID &&
          this.taskData.Procedure.Status == 1
      ) {
        this.num = 0;
        this.showBtn = 1;
        this.islook = true;
          this.num = 0;
          this.showBtn = 1;
          this.islook = true;
      } else {
        this.islook = false;
        // this.islook = true;
        //  this.islook = true;
      }
      if(this.ArrError){
        this.messageError=this.ArrError;
      }
      
    },
@@ -401,7 +421,7 @@
          this.num = 0;
          this.showBtn= 1
          this.shutdown();
          this.$emit('getSetProductNumber')
          this.$emit('getSetProductNumber',this.activeName)
          // this.$message.success("下发生产数量成功!");
        }
      } else {