新增行列表

main
mo 1 year ago
parent 4339a7358a
commit 8abb1d5bae

@ -52,3 +52,12 @@ export function exportVoucherExcel(query) {
responseType: 'blob'
})
}
// 获得会计凭证行分页
export function getVoucherDetailsPage(query) {
return request({
url: '/accounting/voucher-details/page',
method: 'get',
params: query
})
}

@ -188,7 +188,7 @@
<el-col :span="8">
<el-form-item label="审核人" prop="audit">
<el-select
v-model="audit"
v-model="form.audit"
filterable
placeholder="请选择审核人"
value-key="id"
@ -207,7 +207,7 @@
<el-col :span="8">
<el-form-item label="核准人" prop="checker">
<el-select
v-model="checker"
v-model="form.checker"
filterable
placeholder="请选择核准人"
value-key="id"
@ -226,7 +226,7 @@
<el-col :span="8">
<el-form-item label="经办人" prop="handle">
<el-select
v-model="handle"
v-model="form.handle"
filterable
placeholder="请选择经办人"
value-key="id"
@ -270,6 +270,16 @@
/>
</el-form-item>
</el-form>
<el-table :data="tableData" style="width: 100%">
<el-table-column prop="digest" label="摘要" width="180">
</el-table-column>
<el-table-column prop="subjectCode" label="科目代码" width="180">
</el-table-column>
<el-table-column prop="subjectName" label="科目名称"> </el-table-column>
<el-table-column prop="debitMoney" label="借方金额"> </el-table-column>
<el-table-column prop="creditorMoney" label="贷方金额">
</el-table-column>
</el-table>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
@ -286,6 +296,7 @@ import {
getVoucher,
getVoucherPage,
exportVoucherExcel,
getVoucherDetailsPage,
} from "@/api/accounting/voucher";
import { listUser } from "@/api/system/user";
import { getSiteTree } from "@/api/setting/organization";
@ -311,6 +322,8 @@ export default {
total: 0,
//
list: [],
//
tableData: [],
//
title: "",
//
@ -358,9 +371,6 @@ export default {
siteOptions: [], //
siteArray: [], //
typeOptions: [], //
audit: null,
checker: null,
handle: null,
};
},
created() {
@ -380,6 +390,13 @@ export default {
this.loading = false;
});
},
/** 查询列表 */
getLineList(val) {
//
getVoucherDetailsPage({ voucherId: val }).then((response) => {
this.tableData = response.data.list;
});
},
//
handleInitList() {
//
@ -465,9 +482,6 @@ export default {
cabinetId: undefined,
};
this.resetForm("form");
this.audit = "";
this.checker = "";
this.handle = "";
},
/** 搜索按钮操作 */
handleQuery() {
@ -509,6 +523,7 @@ export default {
this.open = true;
this.title = "修改会计凭证";
});
this.getLineList(row.id);
},
/** 提交按钮 */
submitForm() {

Loading…
Cancel
Save