|
@@ -73,6 +73,9 @@
|
|
|
<el-tooltip v-show="chargeStatus == 1" class="item" effect="light" placement="bottom" content="收款">
|
|
|
<i class="zoniot_font zoniot-icon-shoukuan" @click="collections('single', 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>
|
|
@@ -277,6 +280,24 @@ export default {
|
|
|
this.mixins_search();
|
|
|
});
|
|
|
},
|
|
|
+ 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(() => {});
|
|
|
+ },
|
|
|
selectionChange(val) {
|
|
|
this.selectRow = val;
|
|
|
},
|