|
@@ -131,7 +131,7 @@
|
|
<el-button v-show="this.active==1 && this.existed==0" size="medium" type="primary" :disabled="callRobotFlag" @click="callRobot" round>呼叫托盘工装</el-button>
|
|
<el-button v-show="this.active==1 && this.existed==0" size="medium" type="primary" :disabled="callRobotFlag" @click="callRobot" round>呼叫托盘工装</el-button>
|
|
<el-button v-show="this.active==1 && this.existed==2 && !this.matched" size="medium" type="primary" :disabled="confirmDisabled" @click="callRobot" round>替换托盘工装</el-button>
|
|
<el-button v-show="this.active==1 && this.existed==2 && !this.matched" size="medium" type="primary" :disabled="confirmDisabled" @click="callRobot" round>替换托盘工装</el-button>
|
|
<el-button plain type="info" @click.native="prev" v-show="this.active>1" >返回上一步</el-button>
|
|
<el-button plain type="info" @click.native="prev" v-show="this.active>1" >返回上一步</el-button>
|
|
- <el-button type="primary" :disabled="confirmDisabled" @click.native="next" v-show="this.active==1 && this.existed==2 && this.matched">已完成,下一步</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click.native="next" v-show="this.active==1 && this.existed==2 && this.matched">已完成,下一步</el-button>
|
|
<el-button type="primary" :disabled="confirmDisabled" @click.native="submitForm" v-show="this.active>1">上料完成</el-button>
|
|
<el-button type="primary" :disabled="confirmDisabled" @click.native="submitForm" v-show="this.active>1">上料完成</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -275,7 +275,7 @@
|
|
});
|
|
});
|
|
},
|
|
},
|
|
confirmCode(){
|
|
confirmCode(){
|
|
- let valid = this.uniqueCode!=''? true: false;
|
|
|
|
|
|
+ let valid = this.tenant.completeBatchNo!=''? true: false;
|
|
if(!valid){
|
|
if(!valid){
|
|
this.$message({
|
|
this.$message({
|
|
message: "零件编码" + this.$t("rules.require"),
|
|
message: "零件编码" + this.$t("rules.require"),
|
|
@@ -284,13 +284,16 @@
|
|
this.confirmDisabled = false
|
|
this.confirmDisabled = false
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
- taskMgrApi.confirmCode({ "uniqueCode" : this.uniqueCode, "orderId":this.tenant.orderId}).then((res) => {
|
|
|
|
|
|
+ taskMgrApi.confirmCode({ "completeBatchNo" : this.tenant.completeBatchNo, "orderId":this.tenant.orderId, "procedureSort": this.tenant.procedureSort}).then((res) => {
|
|
res = res.data;
|
|
res = res.data;
|
|
if (res.isSuccess) {
|
|
if (res.isSuccess) {
|
|
this.confirmDisabled = false
|
|
this.confirmDisabled = false
|
|
|
|
+ this.uniqueCode = res.data.uniqueCode
|
|
|
|
+ }else{
|
|
|
|
+ this.confirmDisabled = true
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- this.confirmDisabled = true
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
submitForm(){
|
|
submitForm(){
|
|
// 更新改任务的开始时间
|
|
// 更新改任务的开始时间
|