Commit 9da6bfad by xin.yang

fix bug

parent d755e5e9
...@@ -536,6 +536,15 @@ export default { ...@@ -536,6 +536,15 @@ export default {
this.addstatus = '1';//状态 1可用 0停用 this.addstatus = '1';//状态 1可用 0停用
}, },
addPost() { addPost() {
if(!this.toolingId1){
this.$Message.error("请选择父工装");
return false;
}
if(!this.toolingId2){
this.$Message.error("请选择子工装");
return false;
}
let url = ""; let url = "";
let data = { let data = {
parentid: this.toolingId1, //父级工装ID parentid: this.toolingId1, //父级工装ID
......
...@@ -292,15 +292,6 @@ export default { ...@@ -292,15 +292,6 @@ export default {
}, },
//添加提交 //添加提交
addPost(){ addPost(){
if(!this.stid){
this.$Message.error("请填写ID");
return false;
}
if(!this.whid1){
this.$Message.error("请选择仓库");
return false;
}
let code = 0; let code = 0;
if(!this.stid){ if(!this.stid){
code = 1; code = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment