Commit 35df4a8c by chenwq

流量方对账单,确认对账,去掉拆分和不拆分的逻辑,默认不拆分

1 parent 0b18058b
...@@ -144,17 +144,6 @@ ...@@ -144,17 +144,6 @@
@dialogClose="handleEditVisible" @dialogClose="handleEditVisible"
@handleConfirm="handleEditConfirm"> @handleConfirm="handleEditConfirm">
</EditPayReceive> </EditPayReceive>
<glsk-form-dialog v-if="billSplitVisible"
label-width="200px"
:base-data="baseData"
:dialog-config="billSplitDialogConfig"
:edit-data="billSplitEditData"
:edit-form-data="billSplitEditFormData"
:form-rules="billSplitRules"
:select-visible="billSplitVisible"
@handleClose="splitDialogVisible"
@handleConfirm="handleSplitConfirm">
</glsk-form-dialog>
<CreateServiceDialog v-if="accountVisible" <CreateServiceDialog v-if="accountVisible"
:account-visible="accountVisible" :account-visible="accountVisible"
:edit-form="serviceInfo" :edit-form="serviceInfo"
...@@ -370,26 +359,6 @@ export default { ...@@ -370,26 +359,6 @@ export default {
}, },
billVisible: false, billVisible: false,
billTmplInfo: [], billTmplInfo: [],
// 确认对账-拆分
billSplitVisible: false,
billSplitDialogConfig: {
title: "确认对账",
okText: "确定",
},
billSplitRules: {
splitBill: [{ required: true, message: "请选择是否拆分对账单", trigger: "blur" }],
},
billSplitEditData: {},
billSplitEditFormData: [{
name: "splitBill",
label: "是否按支付类型拆分对账单",
type: "radio",
optionId: "confId",
optionLabel: "confLabel",
optionsName: "splitBillList",
optionList: [],
handleRadioChange: () => { },
}],
accountVisible: false, accountVisible: false,
marketTransferVisible: false, marketTransferVisible: false,
importBillVisible: false, importBillVisible: false,
...@@ -506,37 +475,20 @@ export default { ...@@ -506,37 +475,20 @@ export default {
this.loading = false; this.loading = false;
}); });
}, },
splitDialogVisible() {
this.billSplitVisible = !this.billSplitVisible;
},
handleSplitConfirm() {
this.splitDialogVisible();
this.billApiConfirm(this.billSplitEditData);
},
handleBillConfirm(row) { handleBillConfirm(row) {
this.$confirm("是否确认对账?", "提示", { this.$confirm("是否确认对账?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}).then(() => { }).then(() => {
// 流量方对账单 - 是否拆分弹窗 this.billApiConfirm(row);
if (row.billType == "1") {
this.billSplitEditData = {
...row,
splitBill: false,
};
this.splitDialogVisible();
} else {
this.billApiConfirm(row);
}
}).catch(() => { }); }).catch(() => { });
}, },
billApiConfirm(row) { billApiConfirm(row) {
const params = { id: row.id }; const params = { id: row.id };
if (row.billType == "1") { if (row.billType == "1") {
params.splitBill = row.splitBill; params.splitBill = false;
} }
billConfirm(params).then((res) => { billConfirm(params).then((res) => {
this.$message.success("操作成功"); this.$message.success("操作成功");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!