| | |
| | | </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 || "" }} |
| | |
| | | </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"> |
| | |
| | | <img src="../../public/btn1.png" /> |
| | | </div> |
| | | <div class="btn" v-if="showBtn == 1"> |
| | | <div v-if='taskData&&taskData.canStarted' @click="confirmClick1"><img src="../../public/confirm1.png" /></div> |
| | | <div v-if='taskData&&taskData.CanStarted' @click="confirmClick1"><img src="../../public/confirm1.png" /></div> |
| | | <div v-else><img src="../../public/confirm2.png" /></div> |
| | | </div> |
| | | <div class="btn" v-if="showBtn == 2"> |
| | |
| | | return []; |
| | | }, |
| | | }, |
| | | ArrError:{ |
| | | type: [String], |
| | | default: () => { |
| | | return ''; |
| | | }, |
| | | }, |
| | | safeProduce:{ |
| | | type: [String], |
| | | default: () => { |
| | | return ''; |
| | | }, |
| | | } |
| | | }, |
| | | activeName:{ |
| | | type: [String,Number], |
| | | default: () => { |
| | | return 1; |
| | | }, |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | this.num = 0; |
| | | this.showBtn=1; |
| | | this.isLoading=false |
| | | this.sencond=0 |
| | | this.sencondTimer=null |
| | | this.messageError='' |
| | | this.resParams= {}, |
| | | this.$emit('isTip',this.islook) |
| | | }, |
| | | }, |
| | |
| | | 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; |
| | | |
| | | } |
| | | |
| | | }, |
| | |
| | | this.num = 0; |
| | | this.showBtn= 1 |
| | | this.shutdown(); |
| | | this.$emit('getSetProductNumber') |
| | | this.$emit('getSetProductNumber',this.activeName) |
| | | // this.$message.success("下发生产数量成功!"); |
| | | } |
| | | } else { |