Commit 1b611e3c by qiaoyanqi

查询列表的删除

parent aadaa0d6
......@@ -281,6 +281,31 @@ export default {
],
queryAction: [
{
"value": "queryDeleteBill",
"discard": false,
"path": "云报销",
"extends": {
"paramDes": [
{
"isRequired": true,
"ref": "bill",
"type": "metaData",
"title": "单据billDefine",
"key": "billDefine"
},
{
"isRequired": true,
"ref": "columnField",
"type": "field",
"title": "单据id",
"key": "billId"
}
]
},
"description": "通过指定单据id与单据定义,进行列表数据的删除(云报销专用)",
"title": "删除"
},
{
"discard": false,
"path": "云报销",
"extends": {
......
......@@ -60,7 +60,8 @@ import batchPayment from "./query-actions/payments/batchPayment";
import offlinePayment from "./query-actions/payments/offlinePayment";
import queryAccount from "./query-actions/payments/queryAccount";
import refreshTransactionStatus from "./query-actions/payments/refreshTransactionStatus";
import throughQuery from"./query-actions/throughQuery";
import throughQuery from "./query-actions/throughQuery";
import queryDeleteBill from "./query-actions/queryDeleteBill";
//control
import applyDetail from './control/applyDetail';
import linkShowDetail from './control/linkShowDetail';
......@@ -213,6 +214,7 @@ export default {
throughQuery,
deleteInvoiceAction,
simpleAdvanceDeleteAction,
queryDeleteBill
},
billAction: {
printMultiAction,
......
export default {
execute(context, param) {
if(!param.billDefine || !param.billId){
GMS.$hideContainer.$Message.info("请配置按钮指定参数");
return;
}
GMS.$hideContainer.$Modal.confirm({
title: "提示",
content: "确认删除吗?",
loading: true,
onOk: () => {
this.billDeleted(context, param);
}
})
},
billDeleted(context, param) {
GMS.$http.post(
`/rbc/bill/action/deleted/${param.billDefine}/${context.selects[0][param.billId]} `
).then((data) => {
if (data.status == 200 && data.data.code == 0) {
GMS.$hideContainer.$Modal.remove();
GMS.$hideContainer.$Message.success('删除成功');
GMS.vbus.$emit('custom-query-refresh');
GMS.vbus.$emit('tab-count-refresh');
} else {
GMS.$hideContainer.$Modal.remove();
GMS.$hideContainer.$Message.error(data.data.message);
}
})
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment