调整结算模块
This commit is contained in:
@@ -109,8 +109,8 @@ const emptyQuery = () => ({
|
||||
contractNo: '',
|
||||
payerName: '',
|
||||
payeeName: '',
|
||||
matchStatus: '',
|
||||
reconciliationStatus: '',
|
||||
matchStatus: 'all',
|
||||
reconciliationStatus: 'all',
|
||||
});
|
||||
|
||||
export default {
|
||||
@@ -153,7 +153,7 @@ export default {
|
||||
try {
|
||||
const response = await api.getList(this.page.current, this.page.size, {
|
||||
// 所属组织级联返回 id 路径,转成组织名称传给后端(用副本,避免污染搜索框回显)
|
||||
...this.normalizeOrganizationSearch({ ...this.query }, 'deptName'),
|
||||
...this.buildSearchParams(),
|
||||
settlementType: this.settlementType,
|
||||
});
|
||||
const data = response?.data?.data || response?.data || response || {};
|
||||
@@ -183,10 +183,15 @@ export default {
|
||||
this.page.size = size;
|
||||
this.loadTable();
|
||||
},
|
||||
buildSearchParams() {
|
||||
const params = this.normalizeOrganizationSearch({ ...this.query }, 'deptName');
|
||||
if (params.matchStatus === 'all') params.matchStatus = '';
|
||||
if (params.reconciliationStatus === 'all') params.reconciliationStatus = '';
|
||||
return params;
|
||||
},
|
||||
handleAction({ type, row }) {
|
||||
const map = {
|
||||
view: this.openView,
|
||||
edit: this.openEdit,
|
||||
delete: this.handleDelete,
|
||||
complete: this.handleComplete,
|
||||
};
|
||||
@@ -194,10 +199,10 @@ export default {
|
||||
if (fn) fn(row);
|
||||
},
|
||||
openCreate() {
|
||||
this.editor = { visible: true, id: null, readonly: false };
|
||||
},
|
||||
openEdit(row) {
|
||||
this.editor = { visible: true, id: row.id, readonly: false };
|
||||
this.$router.push({
|
||||
path: '/settlement/transport-reconciliation/form',
|
||||
query: { mode: 'add', settlementType: this.settlementType, name: '新增运输对账单' },
|
||||
});
|
||||
},
|
||||
openView(row) {
|
||||
this.editor = { visible: true, id: row.id, readonly: true };
|
||||
@@ -218,7 +223,7 @@ export default {
|
||||
},
|
||||
async handleExport() {
|
||||
const params = {
|
||||
...this.normalizeOrganizationSearch({ ...this.query }, 'deptName'),
|
||||
...this.buildSearchParams(),
|
||||
settlementType: this.settlementType,
|
||||
};
|
||||
if (this.selection.length) params.ids = this.selection.map(item => item.id).join(',');
|
||||
|
||||
Reference in New Issue
Block a user