|
@@ -142,10 +142,10 @@ export default {
|
|
|
status: [
|
|
|
{ required: true, message: this.$t("rules.require"), trigger: 'change' }
|
|
|
],
|
|
|
- toolId: [
|
|
|
- /*{ validator: validateToolNoExsit, trigger: 'blur',required: true}*/
|
|
|
+ /* toolId: [
|
|
|
+ /!*{ validator: validateToolNoExsit, trigger: 'blur',required: true}*!/
|
|
|
{ required: true, message: this.$t("rules.require"), trigger: 'change' }
|
|
|
- ],
|
|
|
+ ],*/
|
|
|
toolManagementId: [
|
|
|
{ required: true, message: this.$t("rules.require"), trigger: 'change' }
|
|
|
]
|
|
@@ -217,10 +217,10 @@ export default {
|
|
|
this.$emit('close')
|
|
|
},
|
|
|
checkExist(name){
|
|
|
- return locationMgrApi.checkField({"name":name})
|
|
|
+ return locationMgrApi.checkField({"name":name,"toolManagementId":this.tenant.toolManagementId})
|
|
|
},
|
|
|
checkNoExist(no){
|
|
|
- return locationMgrApi.checkField({"no":no})
|
|
|
+ return locationMgrApi.checkField({"no":no,"toolManagementId":this.tenant.toolManagementId})
|
|
|
},
|
|
|
checkToolNoExist(toolNo){
|
|
|
return locationMgrApi.checkField({"toolNo":toolNo})
|