Просмотр исходного кода

最终下料完成后优先执行同订单同零件的上料任务

BSWYZ 6 дней назад
Родитель
Сommit
aef0c784d4
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      imcs-ui/src/views/zuihou/machiningClient/touchScreen/components/View3.vue

+ 4 - 4
imcs-ui/src/views/zuihou/machiningClient/touchScreen/components/View3.vue

@@ -81,7 +81,7 @@
         <!--<el-button v-if="xbkValid && unFeedingCount>0 || (unFeedingCount==0 && unBaitingCount==1 && xbkValid)"  type="primary" :disabled="confirmDisabled" @click="submitForm">{{ $t('machining.buttons.finished') }}</el-button>
         <!--<el-button v-if="xbkValid && unFeedingCount>0 || (unFeedingCount==0 && unBaitingCount==1 && xbkValid)"  type="primary" :disabled="confirmDisabled" @click="submitForm">{{ $t('machining.buttons.finished') }}</el-button>
 	      <el-button v-if="(unFeedingCount==0 && unBaitingCount>0) || !xbkValid" type="primary" :disabled="confirmDisabled" @click="storageForm">{{ $t('machining.buttons.inFinished') }}</el-button>-->
 	      <el-button v-if="(unFeedingCount==0 && unBaitingCount>0) || !xbkValid" type="primary" :disabled="confirmDisabled" @click="storageForm">{{ $t('machining.buttons.inFinished') }}</el-button>-->
         <!--<el-button v-if="xbkValid"  type="primary" :disabled="confirmDisabled" @click="submitForm">{{ $t('machining.buttons.finished') }}</el-button>-->
         <!--<el-button v-if="xbkValid"  type="primary" :disabled="confirmDisabled" @click="submitForm">{{ $t('machining.buttons.finished') }}</el-button>-->
-        <el-button type="primary" :disabled="confirmDisabled" @click="submitForm">{{ $t('machining.buttons.finished') }}</el-button>
+        <el-button type="primary" :disabled="confirmDisabled" @click="submitForm(true)">{{ $t('machining.buttons.finished') }}</el-button>
         <el-button type="primary" :disabled="confirmDisabled" @click="storageForm">{{ $t('machining.buttons.inFinished') }}</el-button>
         <el-button type="primary" :disabled="confirmDisabled" @click="storageForm">{{ $t('machining.buttons.inFinished') }}</el-button>
 
 
       </div>
       </div>
@@ -209,16 +209,16 @@ export default {
             res = res.data;
             res = res.data;
             if (res.isSuccess) {                   
             if (res.isSuccess) {                   
               if(res.data){
               if(res.data){
-                  this.submitForm()   
+                  this.submitForm(false)
               }else{
               }else{
                   this.callRobot()
                   this.callRobot()
               }
               }
             }
             }
       })
       })
     },
     },
-  	submitForm(){
+    submitForm(priorityNextLoading){
         this.confirmDisabled = true
         this.confirmDisabled = true
-        taskMgrApi.updateTaskStatus({ "id" : this.tenant.id, "updateType" : "end","processType" : "3","updateUser" : this.$store.state.account.user.id}).then((res) => {
+        taskMgrApi.updateTaskStatus({ "id" : this.tenant.id, "updateType" : "end","processType" : "3","updateUser" : this.$store.state.account.user.id, "priorityNextLoading": priorityNextLoading === true}).then((res) => {
             res = res.data;
             res = res.data;
             if (res.isSuccess) {
             if (res.isSuccess) {
                 // 通知列表
                 // 通知列表