feat: 退火页面按钮控制
This commit is contained in:
parent
f1c6c409b0
commit
6e6186d143
|
|
@ -30,22 +30,24 @@
|
|||
<el-table-column label="不合格数" prop="count_notok">
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" fixed="right" align="center" width="180">
|
||||
|
||||
<template #default="scope">
|
||||
<el-button link type="primary" :disabled="scope.row.submit_user != null"
|
||||
<el-button link type="primary" v-if="scope.row.submit_time == null"
|
||||
@click="table_edit(scope.row)" v-auth="'mlog.update'">
|
||||
编辑
|
||||
</el-button>
|
||||
<el-button link type="danger" @click="table_del(scope.row)" v-auth="'mlog.delete'"
|
||||
v-if="scope.row.submit_time == null">
|
||||
删除
|
||||
</el-button>
|
||||
<el-button link type="success" v-if="scope.row.submit_user == null"
|
||||
@click="table_submit(scope.row)" v-auth="'mlog.submit'">
|
||||
提交
|
||||
</el-button>
|
||||
<el-button link type="warning" v-else @click="table_revert(scope.row)"
|
||||
v-auth="'mlog.submit'">
|
||||
<el-button link type="warning" v-if="scope.row.submit_time != null"
|
||||
@click="table_revert(scope.row)" v-auth="'mlog.submit'">
|
||||
撤回
|
||||
</el-button>
|
||||
<el-button link type="danger" @click="table_del(scope.row)" v-auth="'mlog.delete'">
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</scTable>
|
||||
|
|
@ -71,6 +73,7 @@
|
|||
<el-table-column label="送料日期" prop="send_date">
|
||||
</el-table-column>
|
||||
<el-table-column label="产物" prop="material" show-overflow-tooltip>
|
||||
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.material_out_">
|
||||
{{ scope.row.material_out_.full_name }}
|
||||
|
|
@ -85,12 +88,14 @@
|
|||
<el-table-column label="接收人" prop="recive_user_name">
|
||||
</el-table-column>
|
||||
<el-table-column label="是否确认" prop="submit_time">
|
||||
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.submit_time">是</span>
|
||||
<span v-else>否</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" fixed="right" align="left" width="100">
|
||||
|
||||
<template #default="scope">
|
||||
<el-button link type="primary" @click="handover_edit(scope.row)"
|
||||
v-auth="'handover.update'" v-if="scope.row.submit_time == null">
|
||||
|
|
@ -121,21 +126,25 @@
|
|||
<scTable ref="table_wm" :apiObj="apiObjWm" row-key="id" :params="paramsWm" stripe
|
||||
hidePagination>
|
||||
<el-table-column label="物料名" prop="material">
|
||||
|
||||
<template #default="scope">{{
|
||||
scope.row.material_.name
|
||||
}}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="规格" prop="material">
|
||||
|
||||
<template #default="scope">{{
|
||||
scope.row.material_.specification
|
||||
}}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="型号" prop="material">
|
||||
|
||||
<template #default="scope">{{
|
||||
scope.row.material_.model
|
||||
}}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="已到工序" prop="material">
|
||||
|
||||
<template #default="scope">{{
|
||||
scope.row.material_.process_name
|
||||
}}</template>
|
||||
|
|
@ -213,6 +222,7 @@
|
|||
@closed="dialogSave = false">
|
||||
</save-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import saveDialog from "./worktask_form.vue";
|
||||
export default {
|
||||
|
|
|
|||
Loading…
Reference in New Issue