This commit is contained in:
linfso 2025-04-07 11:07:42 +08:00
parent 32c28fecfb
commit b321a8969c
2 changed files with 21 additions and 3 deletions

View File

@ -44,3 +44,12 @@ export function delEmisSettlePayRecord(id) {
method: 'delete' method: 'delete'
}) })
} }
// 删除账单收退款记录
export function payRecordReturn(id) {
return request({
url: '/emis/emisSettlePayRecord/payRecordReturn/' + id,
method: 'post',
})
}

View File

@ -27,8 +27,8 @@
plain plain
icon="el-icon-download" icon="el-icon-download"
size="mini" size="mini"
@click="handleReturn" @click="handlePayRecordReturn"
v-hasPermi="['emis:payRecordReturn']" v-hasPermi="['emis:emisSettlePayRecord:return']"
>收款回退</el-button> >收款回退</el-button>
</div> </div>
@ -122,7 +122,7 @@
</template> </template>
<script> <script>
import { listEmisSettlePayRecord, getEmisSettlePayRecord, delEmisSettlePayRecord, addEmisSettlePayRecord, updateEmisSettlePayRecord } from "@/api/emis/emisSettlePayRecord"; import { listEmisSettlePayRecord, getEmisSettlePayRecord, delEmisSettlePayRecord, addEmisSettlePayRecord, updateEmisSettlePayRecord,payRecordReturn } from "@/api/emis/emisSettlePayRecord";
import elDateSimplePicker from '@/components/DatePickerAdv/elDateSimplePicker'; import elDateSimplePicker from '@/components/DatePickerAdv/elDateSimplePicker';
import PayRecordSubBillRelList from '@/views/emis/emisSettlePayRecord/panel/PayRecordSubBillRelList.vue'; import PayRecordSubBillRelList from '@/views/emis/emisSettlePayRecord/panel/PayRecordSubBillRelList.vue';
@ -241,6 +241,15 @@ export default {
}); });
}, },
handlePayRecordReturn(row){
const id = row.id;
this.$modal.confirm('是否回退').then(function() {
return payRecordReturn(id);
}).then(() => {
this.getList();
this.$modal.msgSuccess("操作成功");
}).catch(() => {});
},
/** 搜索按钮操作 */ /** 搜索按钮操作 */
handleQuery() { handleQuery() {
this.queryParams.pageNum = 1; this.queryParams.pageNum = 1;