✨ 付款管理新增同步付款结果按钮并扩展金蝶单据状态选项
This commit is contained in:
@@ -20,6 +20,8 @@ export const syncKingdee = id =>
|
|||||||
request({ url: `${baseUrl}/sync-kingdee`, method: 'post', params: { id } });
|
request({ url: `${baseUrl}/sync-kingdee`, method: 'post', params: { id } });
|
||||||
export const syncKingdeeBatch = ids =>
|
export const syncKingdeeBatch = ids =>
|
||||||
request({ url: `${baseUrl}/sync-kingdee-batch`, method: 'post', data: ids });
|
request({ url: `${baseUrl}/sync-kingdee-batch`, method: 'post', data: ids });
|
||||||
|
export const syncKingdeeResult = () =>
|
||||||
|
request({ url: `${baseUrl}/sync-kingdee-result`, method: 'post' });
|
||||||
|
|
||||||
export const paymentTypeOptions = [
|
export const paymentTypeOptions = [
|
||||||
{ label: '项目预付', value: 'project_advance' },
|
{ label: '项目预付', value: 'project_advance' },
|
||||||
@@ -36,5 +38,8 @@ export const approvalStatusOptions = [
|
|||||||
export const kingdeeStatusOptions = [
|
export const kingdeeStatusOptions = [
|
||||||
{ label: '未生成', value: 'unsynced' },
|
{ label: '未生成', value: 'unsynced' },
|
||||||
{ label: '已生成', value: 'synced' },
|
{ label: '已生成', value: 'synced' },
|
||||||
|
{ label: '付款中', value: 'paying' },
|
||||||
|
{ label: '已付款', value: 'paid' },
|
||||||
|
{ label: '已关闭', value: 'closed' },
|
||||||
{ label: '生成失败', value: 'failed' },
|
{ label: '生成失败', value: 'failed' },
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -84,6 +84,13 @@
|
|||||||
@click="handleSync"
|
@click="handleSync"
|
||||||
>批量同步</el-button
|
>批量同步</el-button
|
||||||
>
|
>
|
||||||
|
<el-button
|
||||||
|
v-if="hasPermission('payment_application_sync')"
|
||||||
|
type="primary"
|
||||||
|
plain
|
||||||
|
@click="handleSyncResult"
|
||||||
|
>同步付款结果</el-button
|
||||||
|
>
|
||||||
<el-button
|
<el-button
|
||||||
v-if="hasPermission('payment_application_add')"
|
v-if="hasPermission('payment_application_add')"
|
||||||
type="primary"
|
type="primary"
|
||||||
@@ -400,6 +407,11 @@ export default {
|
|||||||
this.$message.success(`已同步${rows.length}条付款申请`);
|
this.$message.success(`已同步${rows.length}条付款申请`);
|
||||||
this.loadTable();
|
this.loadTable();
|
||||||
},
|
},
|
||||||
|
async handleSyncResult() {
|
||||||
|
const data = this.unwrapData(await api.syncKingdeeResult());
|
||||||
|
this.$message.success(data || '金蝶付款结果回写完成');
|
||||||
|
this.loadTable();
|
||||||
|
},
|
||||||
handleExport() {
|
handleExport() {
|
||||||
const headers = this.columns.map(item => item.label);
|
const headers = this.columns.map(item => item.label);
|
||||||
const rows = this.rows.map(row => this.columns.map(item => row[item.prop] || ''));
|
const rows = this.rows.map(row => this.columns.map(item => row[item.prop] || ''));
|
||||||
|
|||||||
Reference in New Issue
Block a user