|
|
|
@ -100,35 +100,35 @@ |
|
|
|
|
</span> |
|
|
|
|
<div class="container"> |
|
|
|
|
<span > |
|
|
|
|
<el-button type="primary" |
|
|
|
|
size="large" |
|
|
|
|
@click="handleFormSubmit" |
|
|
|
|
v-if="addUpdateShowButton && permission.toolinventoryrecord_add"> |
|
|
|
|
确定</el-button> |
|
|
|
|
<el-button type="text" |
|
|
|
|
size="large" |
|
|
|
|
@click="back" |
|
|
|
|
v-if="addUpdateShowButton"> |
|
|
|
|
v-if="addUpdateShowButton "> |
|
|
|
|
取消</el-button> |
|
|
|
|
<el-button type="primary" |
|
|
|
|
size="large" |
|
|
|
|
@click="handleFormSubmit" |
|
|
|
|
v-if="addUpdateShowButton"> |
|
|
|
|
确定</el-button> |
|
|
|
|
<el-button type="primary" |
|
|
|
|
size="small" |
|
|
|
|
@click="auditing" |
|
|
|
|
v-if="shouldShowButton"> |
|
|
|
|
v-if="shouldShowButton && permission.toolinventoryrecord_audit"> |
|
|
|
|
审核</el-button> |
|
|
|
|
<el-button type="primary" |
|
|
|
|
size="small" |
|
|
|
|
@click="reject" |
|
|
|
|
v-if="shouldShowButton"> |
|
|
|
|
v-if="shouldShowButton && permission.toolinventoryrecord_reject"> |
|
|
|
|
驳回</el-button> |
|
|
|
|
<el-button type="primary" |
|
|
|
|
size="small" |
|
|
|
|
@click="seachToUpdate" |
|
|
|
|
v-if="UpdateShowButton"> |
|
|
|
|
v-if="UpdateShowButton && permission.toolinventoryrecord_edit"> |
|
|
|
|
修改</el-button> |
|
|
|
|
<el-button type="primary" |
|
|
|
|
size="small" |
|
|
|
|
@click="del" |
|
|
|
|
v-if="shouldShowButton"> |
|
|
|
|
v-if="shouldShowButton && permission.toolinventoryrecord_delete"> |
|
|
|
|
删除</el-button> |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
@ -173,8 +173,20 @@ import {readonly} from "vue"; |
|
|
|
|
import {getToken} from "@/util/auth"; |
|
|
|
|
import {getListByTaskNo} from "@/api/inspection/inspectionresult"; |
|
|
|
|
export default { |
|
|
|
|
name: "equipmentledgerDetail", |
|
|
|
|
name: "toolinventoryrecordDetail", |
|
|
|
|
data () { |
|
|
|
|
var validatePage = (rule, value, callback) => { |
|
|
|
|
if (value === '') { |
|
|
|
|
callback(new Error('请输入页数')); |
|
|
|
|
} else { |
|
|
|
|
var r = /^\+?[0-9][0-9]*$/; |
|
|
|
|
if(!r.test(value)) { |
|
|
|
|
callback(new Error('输入的页数不合法')); |
|
|
|
|
} else { |
|
|
|
|
callback(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
return { |
|
|
|
|
checkStatusValue:{}, |
|
|
|
|
optionCheckStatus: [{ |
|
|
|
@ -552,11 +564,7 @@ export default { |
|
|
|
|
label: "页数", |
|
|
|
|
prop: "page", |
|
|
|
|
span: 20, |
|
|
|
|
rules: [{ |
|
|
|
|
required: true, |
|
|
|
|
message: "请输入页数", |
|
|
|
|
trigger: "blur" |
|
|
|
|
}], |
|
|
|
|
rules: [{required: true, validator: validatePage, trigger: 'blur' }] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "关键字", |
|
|
|
|