|
@@ -154,7 +154,7 @@ export default {
|
|
|
currentRow: null, // 当前选择的行
|
|
|
|
|
|
spanArr: [], // 【组序】合并单元格
|
|
|
- spanArr2: [], // 【优先级】合并单元格
|
|
|
+ spanArr2: [], // 【优先级】合并单元格
|
|
|
}
|
|
|
},
|
|
|
// 实例已经在内存中创建好,此时data和methods已将ok,如果要操作data中的数据或是调用methods中的方法,最早只能在created中操作
|
|
@@ -193,6 +193,17 @@ export default {
|
|
|
submitForm(){
|
|
|
// 更新改任务的开始时间
|
|
|
// TODO 写入rfid内容,工件信息、原材料R
|
|
|
+ this.confirmDisabled = true
|
|
|
+ let valid = this.uniqueCode!=''? true: false;
|
|
|
+ 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) {
|
|
@@ -201,7 +212,9 @@ export default {
|
|
|
// 通知列表-并关闭弹出框
|
|
|
this.$emit("close");
|
|
|
}
|
|
|
- });
|
|
|
+ }).finally(()=>{
|
|
|
+ this.confirmDisabled = false
|
|
|
+ });
|
|
|
},
|
|
|
// table的当前行值变化后
|
|
|
handleCurrentChange(val) {
|