feat: 增加物料复制功能
This commit is contained in:
parent
5c7a61089b
commit
9afbeaa891
|
@ -25,12 +25,13 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="型号" prop="model">
|
<el-table-column label="型号" prop="model">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="物料类别" prop="type" width="200">
|
<el-table-column label="物料特征" prop="type" width="230">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span><el-tag>{{ typeOptions[scope.row.type] }}</el-tag>
|
<span><el-tag>{{ typeOptions[scope.row.type] }}</el-tag>
|
||||||
<el-tag type="warning" v-if="scope.row.is_assemb">组</el-tag>
|
<el-tag type="warning" v-if="scope.row.is_assemb" effect="plain">组</el-tag>
|
||||||
<el-tag type="warning" v-if="scope.row.process_name">{{ scope.row.process_name }}</el-tag>
|
<el-tag type="warning" v-if="scope.row.process_name" effect="plain">{{ scope.row.process_name
|
||||||
<el-tag type="warning" v-if="scope.row.is_hidden">隐</el-tag></span>
|
}}</el-tag>
|
||||||
|
<el-tag type="warning" v-if="scope.row.is_hidden" effect="plain">隐</el-tag></span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
@ -47,15 +48,17 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="安全库存" prop="count_safe" width="80">
|
<el-table-column label="安全库存" prop="count_safe" width="80">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" fixed="right" align="center" width="100">
|
<el-table-column label="操作" fixed="right" align="center" width="140">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-link type="primary" @click="table_edit(scope.row)" v-auth="'material.update'">
|
<el-button link type="primary" @click="table_edit(scope.row)" v-auth="'material.update'">
|
||||||
编辑
|
编辑
|
||||||
</el-link>
|
</el-button>
|
||||||
<el-divider direction="vertical"></el-divider>
|
<el-button link type="warning" @click="table_copy(scope.row)" v-auth="'material.create'">
|
||||||
<el-link type="danger" @click="table_del(scope.row)" v-auth="'material.delete'">
|
复制
|
||||||
|
</el-button>
|
||||||
|
<el-button link type="danger" @click="table_del(scope.row)" v-auth="'material.delete'">
|
||||||
删除
|
删除
|
||||||
</el-link>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</scTable>
|
</scTable>
|
||||||
|
@ -129,6 +132,12 @@ export default {
|
||||||
this.$refs.saveDialog.open("add");
|
this.$refs.saveDialog.open("add");
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
table_copy(row) {
|
||||||
|
this.dialog.save = true;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.saveDialog.open("add").setData(row);
|
||||||
|
});
|
||||||
|
},
|
||||||
//编辑
|
//编辑
|
||||||
table_edit(row) {
|
table_edit(row) {
|
||||||
this.dialog.save = true;
|
this.dialog.save = true;
|
||||||
|
|
Loading…
Reference in New Issue