20260803225403
This commit is contained in:
1 parent
efd5a2bc93
commit
e17bbe9db3
40 files changed
+5516
-3910
No files matched your search
@@ -362,7 +362,7 @@ function buildSaveData() {
|
||||
|
||||
async function afterSave() {
|
||||
await getMainTable(currentModule.value?.b_viewtable, maintable, maintableorg, maintable.value.b_id);
|
||||
await getSubTable("v_cw_ysbillsub", subtable, subtableorg, `father = '${maintable.value.b_id}'`);
|
||||
await getSubTable(currentModule.value?.b_subtable, subtable, subtableorg, `father = '${maintable.value.b_id}'`);
|
||||
op.value = "mod";
|
||||
}
|
||||
|
||||
@@ -644,13 +644,13 @@ function calcAmountTotal() {
|
||||
|
||||
async function loadMod() {
|
||||
await getMainTable(currentModule.value?.b_viewtable, maintable, maintableorg, id.value);
|
||||
await getColumnconfig("v_cw_ysbillsub", columns);
|
||||
await getSubTable("v_cw_ysbillsub", subtable, subtableorg, `father = '${id.value}'`);
|
||||
await getColumnconfig(currentModule.value?.b_subtable, columns);
|
||||
await getSubTable(currentModule.value?.b_subtable, subtable, subtableorg, `father = '${id.value}'`);
|
||||
}
|
||||
|
||||
async function loadNew() {
|
||||
await getDefaultValue(maintable, currentModule.value?.b_viewtable);
|
||||
await getColumnconfig("v_cw_ysbillsub", columns);
|
||||
await getColumnconfig(currentModule.value?.b_subtable, columns);
|
||||
maintable.value.b_id = await getSFId();
|
||||
maintable.value.b_state = "草拟";
|
||||
maintable.value.b_module_id = "应收";
|
||||
@@ -664,7 +664,7 @@ async function handleToInvoiceByBill() {
|
||||
}
|
||||
|
||||
// 根据账单查询费用明细
|
||||
const subdata = await loaddataApi("v_cw_ysbillsub", `father = '${maintable.value.b_id}'`);
|
||||
const subdata = await loaddataApi(currentModule.value?.b_subtable, `father = '${maintable.value.b_id}'`);
|
||||
|
||||
if (!subdata.length) {
|
||||
ElMessage.warning("未找到对应费用明细");
|
||||
@@ -806,7 +806,7 @@ onMounted(async () => {
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item
|
||||
:disabled="morePermission(9)"
|
||||
@click="handleSaveColumnEdit(tableRef, 'v_cw_ysbillsub')"
|
||||
@click="handleSaveColumnEdit(tableRef, currentModule?.b_subtable)"
|
||||
>
|
||||
栏位设定
|
||||
</el-dropdown-item>
|
||||
|
||||
Reference in new issue
Block a user