刘路加质检情况查询增加考核状态大于等于7不能修改

This commit is contained in:
liulujia1
2020-04-17 11:07:33 +08:00
parent 4e686dbd1b
commit eddd85d4dd

View File

@@ -127,7 +127,7 @@
<el-table-column label="质检数量" align="center" width="120px">
<template slot-scope="scope">
<template v-if="scope.row.edit">
<el-input-number v-model="scope.row.数量" :min="0" :step="1" style="width: 90%" size="mini"/>
<el-input-number v-model="scope.row.数量" :min="0" :max="scope.row.零件数量" :step="1" style="width: 90%" size="mini"/>
</template>
<template v-else>
{{ scope.row.数量 }}
@@ -316,14 +316,14 @@
<template slot-scope="scope">
<el-tooltip :open-delay="1200" effect="dark" content="编辑" placement="top">
<div style="display: inline-block;margin-right: 10px">
<el-button v-if="!scope.row.edit" type="text" size="mini" icon="el-icon-edit" @click="scope.row.edit=!scope.row.edit"/>
<el-button v-if="!scope.row.edit" :disabled="scope.row.考核状态 >= 7" type="text" size="mini" icon="el-icon-edit" @click="scope.row.edit=!scope.row.edit"/>
<el-button v-if="scope.row.edit" type="text" plain size="small" @click="confirmEdit(scope.row)">确定</el-button>
<el-button v-if="scope.row.edit" type="text" plain size="small" @click="cancel(scope.row)">取消</el-button>
</div>
</el-tooltip>
<el-tooltip :open-delay="1200" effect="dark" content="删除" placement="top">
<div style="display: inline-block">
<el-button v-if="!scope.row.edit" type="text" size="mini" icon="el-icon-delete" @click="deleterow(scope.row)"/>
<el-button v-if="!scope.row.edit" :disabled="scope.row.考核状态 >= 7" type="text" size="mini" icon="el-icon-delete" @click="deleterow(scope.row)"/>
</div>
</el-tooltip>
</template>