|
|
@@ -167,6 +167,7 @@
|
|
|
style="margin-bottom: 20px; float: right; margin-right: 20px"
|
|
|
type="primary"
|
|
|
@click="addStock"
|
|
|
+ v-if="isEdit"
|
|
|
>添加</el-button
|
|
|
>
|
|
|
</div>
|
|
|
@@ -333,7 +334,10 @@
|
|
|
<el-table-column label="操作" width="120" align="center">
|
|
|
<template slot="header" slot-scope="scope"> 操作 </template>
|
|
|
<template slot-scope="{ row, $index }">
|
|
|
- <el-link type="danger" @click="deleteProductList(row, $index)"
|
|
|
+ <el-link
|
|
|
+ type="danger"
|
|
|
+ @click="deleteProductList(row, $index)"
|
|
|
+ v-if="isEdit"
|
|
|
>删除</el-link
|
|
|
>
|
|
|
</template>
|
|
|
@@ -554,7 +558,8 @@
|
|
|
detailList: { type: Array, default: () => [] },
|
|
|
saleProductList: { type: Array, default: () => [] },
|
|
|
extractedList: { type: Array, default: () => [] },
|
|
|
- wwType: { type: Number, default: null }
|
|
|
+ wwType: { type: Number, default: null },
|
|
|
+ isEdit: { type: Boolean, default: true } //是否可编辑
|
|
|
},
|
|
|
directives: {
|
|
|
'el-table-infinite-scroll': elTableInfiniteScroll
|