|
@@ -94,6 +94,9 @@
|
|
|
<el-tooltip v-show="chargeStatus == 1" class="item" effect="light" placement="bottom" content="修改金额">
|
|
|
<i class="zoniot_font zoniot-icon-koufeijilu" @click="editAmount(scope.row)"></i>
|
|
|
</el-tooltip>
|
|
|
+ <el-tooltip v-show="chargeStatus == 1" class="item" effect="light" placement="bottom" content="删除">
|
|
|
+ <i class="zoniot_font zoniot-icon-shanchu redText" @click="deluserbyidFn(scope.row.id)"></i>
|
|
|
+ </el-tooltip>
|
|
|
<el-tooltip v-show="chargeStatus == 2" class="item" effect="light" placement="bottom" content="详情">
|
|
|
<i class="zoniot_font zoniot-icon-xiangqing" @click="lookDetails(scope.row)"></i>
|
|
|
</el-tooltip>
|
|
@@ -323,6 +326,24 @@ export default {
|
|
|
this.mixins_query.startTime = arr[0];
|
|
|
this.mixins_query.endTime = arr[1];
|
|
|
},
|
|
|
+ deluserbyidFn(id) {
|
|
|
+ const h = this.$createElement;
|
|
|
+ this.$msgBox(`删除账单`, '删除后将无法恢复,请问是否继续?')
|
|
|
+ .then(() => {
|
|
|
+ this.$http.get('/sc-charge/charge/bill/delete', { billId: id }).then(({ status, data, msg }) => {
|
|
|
+ if (0 === status) {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '删除成功!'
|
|
|
+ });
|
|
|
+ this.mixins_search();
|
|
|
+ } else {
|
|
|
+ this.$message.error(msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+ },
|
|
|
lookDetails(row) {
|
|
|
new Promise((resolve) => {
|
|
|
this.$store.dispatch('addPopup', {
|