|
@@ -162,6 +162,8 @@
|
|
|
|
|
|
<div class="mymain-container">
|
|
<div class="mymain-container">
|
|
<div class="btn-group clearfix">
|
|
<div class="btn-group clearfix">
|
|
|
|
+ <el-button type="primary" size="small" @click="handleEliminate">剔除账单</el-button>
|
|
|
|
+
|
|
<div class="fr">
|
|
<div class="fr">
|
|
<ExportButton :ex-url="'retail/exec/listTotalExport'" :ex-params="exParams" />
|
|
<ExportButton :ex-url="'retail/exec/listTotalExport'" :ex-params="exParams" />
|
|
</div>
|
|
</div>
|
|
@@ -177,7 +179,12 @@
|
|
stripe
|
|
stripe
|
|
show-summary
|
|
show-summary
|
|
:summary-method="$getSummaries"
|
|
:summary-method="$getSummaries"
|
|
|
|
+ @selection-change="handleSelectionChange"
|
|
>
|
|
>
|
|
|
|
+ <el-table-column
|
|
|
|
+ type="selection"
|
|
|
|
+ width="55"
|
|
|
|
+ />
|
|
<el-table-column align="left" label="标识" min-width="100" show-overflow-tooltip>
|
|
<el-table-column align="left" label="标识" min-width="100" show-overflow-tooltip>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-tag
|
|
<el-tag
|
|
@@ -210,6 +217,23 @@
|
|
min-width="200"
|
|
min-width="200"
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
/>
|
|
/>
|
|
|
|
+ <el-table-column align="left" label="是否剔除" min-width="100" show-overflow-tooltip>
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-tag
|
|
|
|
+ type="warning"
|
|
|
|
+ size="mini"
|
|
|
|
+ >
|
|
|
|
+ {{ scope.row.isCost==='NO'?'否':'是' }}
|
|
|
|
+ </el-tag>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="left"
|
|
|
|
+ label="使用单位"
|
|
|
|
+ prop="refUseUnit"
|
|
|
|
+ min-width="200"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ />
|
|
<el-table-column
|
|
<el-table-column
|
|
align="left"
|
|
align="left"
|
|
label="制单日期"
|
|
label="制单日期"
|
|
@@ -508,7 +532,7 @@
|
|
<script>
|
|
<script>
|
|
import TemplatePage from '@/components/template/template-page-1.vue'
|
|
import TemplatePage from '@/components/template/template-page-1.vue'
|
|
|
|
|
|
-import { getTotalList } from '@/api/supply/implement'
|
|
|
|
|
|
+import { getTotalList, setUpdateOrderCost } from '@/api/supply/implement'
|
|
import { getCategoryList } from '@/api/common'
|
|
import { getCategoryList } from '@/api/common'
|
|
import DisplaceDetail from '@/views/supply/implement/components/displace_detail'
|
|
import DisplaceDetail from '@/views/supply/implement/components/displace_detail'
|
|
import { getNoRebateWalletList } from '@/api/policy_list'
|
|
import { getNoRebateWalletList } from '@/api/policy_list'
|
|
@@ -631,20 +655,20 @@ export default {
|
|
return defaultData
|
|
return defaultData
|
|
},
|
|
},
|
|
// 监听勾选变化
|
|
// 监听勾选变化
|
|
- selectionChange(data) {
|
|
|
|
- this.recordSelected = data
|
|
|
|
- },
|
|
|
|
- operation() {
|
|
|
|
- return (h, { row, index, column }) => {
|
|
|
|
- return (
|
|
|
|
- <div class='operation-btns'>
|
|
|
|
- <el-button size='mini' type='text' onClick={async() => {}}>
|
|
|
|
- 查看
|
|
|
|
- </el-button>
|
|
|
|
- </div>
|
|
|
|
- )
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
|
|
+ // selectionChange(data) {
|
|
|
|
+ // this.recordSelected = data
|
|
|
|
+ // },
|
|
|
|
+ // operation() {
|
|
|
|
+ // return (h, { row, index, column }) => {
|
|
|
|
+ // return (
|
|
|
|
+ // <div class='operation-btns'>
|
|
|
|
+ // <el-button size='mini' type='text' onClick={async() => {}}>
|
|
|
|
+ // 查看
|
|
|
|
+ // </el-button>
|
|
|
|
+ // </div>
|
|
|
|
+ // )
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
|
|
|
|
// 查询列表
|
|
// 查询列表
|
|
getList() {
|
|
getList() {
|
|
@@ -738,6 +762,20 @@ export default {
|
|
backList() {
|
|
backList() {
|
|
this.queryItem = {}
|
|
this.queryItem = {}
|
|
this.isShowDisplaceDetail = false
|
|
this.isShowDisplaceDetail = false
|
|
|
|
+ },
|
|
|
|
+ handleSelectionChange(data) {
|
|
|
|
+ this.recordSelected = data
|
|
|
|
+ },
|
|
|
|
+ handleEliminate() {
|
|
|
|
+ if (!this.recordSelected.length) {
|
|
|
|
+ this.$message.error('请选择需要剔除的数据')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ const ids = this.recordSelected.map(k => k.id)
|
|
|
|
+ setUpdateOrderCost({ orderId: ids.toString() }).then(res => {
|
|
|
|
+ this.$successMsg('剔除成功')
|
|
|
|
+ this.getList()
|
|
|
|
+ })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|