|
|
|
@ -172,6 +172,7 @@ import website from "@/config/website"; |
|
|
|
|
import {readonly} from "vue"; |
|
|
|
|
import {getToken} from "@/util/auth"; |
|
|
|
|
import {getListByTaskNo} from "@/api/inspection/inspectionresult"; |
|
|
|
|
import request from "@/router/axios"; |
|
|
|
|
export default { |
|
|
|
|
name: "toolinventoryrecordDetail", |
|
|
|
|
data () { |
|
|
|
@ -225,11 +226,35 @@ export default { |
|
|
|
|
{ |
|
|
|
|
label: "工器具编码", |
|
|
|
|
prop: "toolsCodeId", |
|
|
|
|
disabled: false, |
|
|
|
|
rules: [{ |
|
|
|
|
required: true, |
|
|
|
|
message: "请输入工器具编码", |
|
|
|
|
trigger: "blur" |
|
|
|
|
}], |
|
|
|
|
event: { |
|
|
|
|
blur: (val) => { |
|
|
|
|
if (!val) return |
|
|
|
|
if (val) { |
|
|
|
|
request({ |
|
|
|
|
url: '/api/leger/toolinventoryrecord/getToolsCodeId', |
|
|
|
|
method: 'get', |
|
|
|
|
params: { |
|
|
|
|
toolsCodeId: val |
|
|
|
|
} |
|
|
|
|
}).then((res) => { |
|
|
|
|
if (res.data.data.toolsCodeId !== undefined ){ |
|
|
|
|
this.$message({ |
|
|
|
|
type: "error", |
|
|
|
|
message: this.tab1_form.toolsCodeId + "已存在,请检查后重新输入!" |
|
|
|
|
} |
|
|
|
|
) |
|
|
|
|
this.tab1_form.toolsCodeId=""; |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
span: 24, |
|
|
|
|
maxlength: 20, |
|
|
|
|
}, |
|
|
|
@ -631,6 +656,8 @@ export default { |
|
|
|
|
this.frame_class = 'frame_class1'; |
|
|
|
|
this.checkStatusValue = this.$route.query.checkstatus; |
|
|
|
|
this.SearchDetail(); |
|
|
|
|
const toolsCodeId = this.findObject(this.tab1_option.column, "toolsCodeId"); |
|
|
|
|
toolsCodeId.disabled =true; |
|
|
|
|
}else{ |
|
|
|
|
this.readonlyForm=false; |
|
|
|
|
this.shouldShowButton=false; |
|
|
|
|