|
|
@@ -154,11 +154,14 @@
|
|
|
<el-input style="width:80%;" ref="add-price-input" focus size="mini" v-else v-model="scope.row.weight" @blur="changeInputValue(scope.row, 'weight')"></el-input>
|
|
|
</template>
|
|
|
|
|
|
+ <template #slot-download-price-btn>
|
|
|
+ <el-button type="primary" size="mini" @click="downloadPrice('gatheringCode', scope.row.id)">下载价格表</el-button>
|
|
|
+ </template>
|
|
|
|
|
|
<template #slot-add-goods-btn>
|
|
|
- <!-- <el-button type="primary" size="mini" @click="addFn()">从平台导入</el-button> -->
|
|
|
<el-button type="primary" size="mini" @click="$util.pageTo({url: '/item/import'})">从平台导入</el-button>
|
|
|
</template>
|
|
|
+
|
|
|
<template #slot-addNew-goods-btn>
|
|
|
<el-button type="primary" size="mini" @click="replaceBtnFn(0)">新增</el-button>
|
|
|
</template>
|
|
|
@@ -430,6 +433,7 @@ export default {
|
|
|
this.init();
|
|
|
},
|
|
|
methods: {
|
|
|
+
|
|
|
copyProduct(id){
|
|
|
this.$service.product.copy({id:id}).then(res => {
|
|
|
this.$message.success('操作成功!')
|
|
|
@@ -696,7 +700,7 @@ export default {
|
|
|
.set('pagination', {
|
|
|
size: 50
|
|
|
})
|
|
|
- .set('layout', [['slot-tabs'],['search-key'],['flex1', 'slot-addNew-goods-btn','slot-add-goods-btn', 'refresh-btn'],['data-table'],['flex1', 'pagination']])
|
|
|
+ .set('layout', [['slot-tabs'],['search-key'],['flex1', 'slot-addNew-goods-btn','slot-add-goods-btn','slot-download-price-btn', 'refresh-btn'],['data-table'],['flex1', 'pagination']])
|
|
|
.on('refresh', async (params, { next }) => {
|
|
|
// 继续执行刷新
|
|
|
let asset = await next(params);
|