浏览代码

上下料站人工操作完成最后一个el-card不刷新问题修改

yejian 3 年之前
父节点
当前提交
0f4afe1094

+ 3 - 2
imcs-ui/src/views/zuihou/machiningClient/touchScreen/Index.vue

@@ -371,9 +371,9 @@ export default {
               taskMgrApi.getStationTasks({ resourceId : this.currentStationId,type : "0" }).then((res) => {
                 res = res.data;
                 if (res.isSuccess) {
-                    if (res.data.length > 0) {
+                    // if (res.data.length > 0) {
                         this.taskData = res.data;
-                    }
+                    // }
                 }
               });
             }
@@ -422,6 +422,7 @@ export default {
     editSuccess(){
       // this.getStation()
       // this.taskData.shift();
+      console.log("init query task")
        this.$nextTick(() => {
           this.getStation()
       });

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

@@ -193,20 +193,21 @@ export default {
   	submitForm(){
       // 更新改任务的开始时间
       // TODO 写入rfid内容,工件信息、原材料R
-	  this.confirmDisabled = true
+	    this.confirmDisabled = true
       let valid = this.uniqueCode!=''? true: false;
-	  if(!valid){
+	    if(!valid){
           this.$message({
 	          message: "零件编码" + this.$t("rules.require"),
 	          type: "warning"
 	      })
 		  this.confirmDisabled = false
 		  return false
-	  }
+	    }
 
       taskMgrApi.updateTaskStatus({ "id" : this.tenant.id,"meterialId":this.tenant.meterialId, "uniqueCode":this.uniqueCode, "updateType" : "end", "processType" : "1", "updateUser" : this.$store.state.account.user.id}).then((res) => {
           res = res.data;
           if (res.isSuccess) {
+              console.log(res.isSuccess);
               // 通知列表
               this.$emit("success");
               // 通知列表-并关闭弹出框