刘路加质检情况查询增加考核状态大于等于7不能修改
This commit is contained in:
@@ -127,7 +127,7 @@
|
|||||||
<el-table-column label="质检数量" align="center" width="120px">
|
<el-table-column label="质检数量" align="center" width="120px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<template v-if="scope.row.edit">
|
<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>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
{{ scope.row.数量 }}
|
{{ scope.row.数量 }}
|
||||||
@@ -316,14 +316,14 @@
|
|||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tooltip :open-delay="1200" effect="dark" content="编辑" placement="top">
|
<el-tooltip :open-delay="1200" effect="dark" content="编辑" placement="top">
|
||||||
<div style="display: inline-block;margin-right: 10px">
|
<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="confirmEdit(scope.row)">确定</el-button>
|
||||||
<el-button v-if="scope.row.edit" type="text" plain size="small" @click="cancel(scope.row)">取消</el-button>
|
<el-button v-if="scope.row.edit" type="text" plain size="small" @click="cancel(scope.row)">取消</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<el-tooltip :open-delay="1200" effect="dark" content="删除" placement="top">
|
<el-tooltip :open-delay="1200" effect="dark" content="删除" placement="top">
|
||||||
<div style="display: inline-block">
|
<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>
|
</div>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user