|
@@ -140,10 +140,32 @@
|
|
|
>删除</el-button
|
|
|
>
|
|
|
</el-popconfirm>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ style="margin-left:10px"
|
|
|
+ size="mini"
|
|
|
+ @click="handleRevokeAll"
|
|
|
+ >批量作废</el-button>
|
|
|
<!-- <el-button type="primary" size="mini">导出</el-button>-->
|
|
|
<!-- <el-button type="primary" size="mini">打印</el-button> -->
|
|
|
</div>
|
|
|
+ <div class="fl">
|
|
|
+ <!-- <el-popconfirm
|
|
|
+ style="margin-right: 10px"
|
|
|
+ title="批量作废吗?"
|
|
|
+ @onConfirm="handleRevokeAll"
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ slot="reference"
|
|
|
+ type="text"
|
|
|
+ size="mini"
|
|
|
+ >批量作废</el-button>
|
|
|
+
|
|
|
+ </el-popconfirm> -->
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+
|
|
|
+
|
|
|
<div class="mymain-container">
|
|
|
<!-- 列表 -->
|
|
|
<div class="table">
|
|
@@ -466,7 +488,13 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
handleRevoke(id) {
|
|
|
- handlePriceRevoke({ id }).then((res) => {
|
|
|
+ handlePriceRevoke({ ids:id }).then((res) => {
|
|
|
+ this.$successMsg('操作成功')
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handleRevokeAll() {
|
|
|
+ handlePriceRevoke({ ids:this.ids.join('') }).then((res) => {
|
|
|
this.$successMsg('操作成功')
|
|
|
this.getList()
|
|
|
})
|