Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop

This commit is contained in:
wangshiming
2022-03-23 10:12:12 +08:00
5 changed files with 49 additions and 17 deletions

View File

@ -1,5 +1,5 @@
/* /*
* @Description : * @Description :
* @Version : 1.0 * @Version : 1.0
* @Author : Shiming * @Author : Shiming
* @Date : 2022-01-18 15:57:44 * @Date : 2022-01-18 15:57:44
@ -137,6 +137,22 @@ export class VoucherManagementComponent implements OnInit {
sourceType: { sourceType: {
type: 'string', type: 'string',
title: '原始单类型', title: '原始单类型',
enum: [
{ value: '', label: '全部' },
{ value: 1, label: '收款' },
{ value: 2, label: '收款(退款)' },
{ value: 3, label: '应收费用' },
{ value: 4, label: '应收费用(负数)' },
{ value: 5, label: '应收核销' },
{ value: 6, label: '应收核销(负数)' },
{ value: 7, label: '应付费用' },
{ value: 8, label: '应付费用(负数)' },
{ value: 9, label: '应付核销' },
{ value: 10, label: '应付核销(负数)' },
{ value: 11, label: '分票开票' },
{ value: 12, label: '删除分票' },
{ value: 13, label: '付款' }
],
ui: { ui: {
widget: 'select', widget: 'select',
placeholder: '请选择', placeholder: '请选择',
@ -292,7 +308,7 @@ export class VoucherManagementComponent implements OnInit {
return [ return [
{ title: '', index: 'key', type: 'checkbox', width: 60, className: 'text-center', fixed: 'left' }, { title: '', index: 'key', type: 'checkbox', width: 60, className: 'text-center', fixed: 'left' },
{ title: '凭证号', index: 'vccode', type: 'link', width: 200 }, { title: '凭证号', index: 'vccode', type: 'link', width: 200 },
{ title: '帐套', index: 'ltdId', width: 200,format:item=>`${item.vcltdcode}-${item.vcltdname}` }, { title: '帐套', index: 'ltdId', width: 200, format: item => `${item.vcltdcode}-${item.vcltdname}` },
{ title: '凭证时间', index: 'vctime', type: 'date', width: 200 }, { title: '凭证时间', index: 'vctime', type: 'date', width: 200 },
{ title: '凭证类型', index: 'vctype', width: 200 }, { title: '凭证类型', index: 'vctype', width: 200 },
{ title: '序号', index: 'invmoney', width: 200, format: _ => '1' }, { title: '序号', index: 'invmoney', width: 200, format: _ => '1' },
@ -328,8 +344,8 @@ export class VoucherManagementComponent implements OnInit {
{ {
text: '浏览', text: '浏览',
click: (item: any) => this.router.navigate(['/financial-management/voucher-management/detail/' + item.id]), click: (item: any) => this.router.navigate(['/financial-management/voucher-management/detail/' + item.id]),
acl: { ability: ['FINANCIAL-VOUCHER-view'] }, acl: { ability: ['FINANCIAL-VOUCHER-view'] }
}, }
// { // {
// text: '修改' // text: '修改'
// }, // },

View File

@ -339,7 +339,7 @@ export class InvoiceRequestedComponent {
}, },
arto: { arto: {
type: 'string', type: 'string',
title: '购买人', title: '货主名称',
ui: { ui: {
widget: 'select', widget: 'select',
placeholder: '请选择', placeholder: '请选择',
@ -359,7 +359,7 @@ export class InvoiceRequestedComponent {
{ title: '', index: 'key', type: 'checkbox' }, { title: '', index: 'key', type: 'checkbox' },
{ title: '申请编号', render: 'vatappcode', width: 190 }, { title: '申请编号', render: 'vatappcode', width: 190 },
{ title: '网络货运人', index: 'ltdName', width: 170 }, { title: '网络货运人', index: 'ltdName', width: 170 },
{ title: '购买方', index: 'artoName', width: 170 }, { title: '货主名称', index: 'artoName', width: 170 },
{ title: '订单数', index: 'ordlines', width: 90 }, { title: '订单数', index: 'ordlines', width: 90 },
{ {
title: '申请金额', title: '申请金额',

View File

@ -16,8 +16,7 @@
<sf #sf [schema]="searchSchema" [ui]="{ '*': { spanLabelFixed: 120, grid: { lg: 8, md: 12, sm: 12, xs: 24 } } }" <sf #sf [schema]="searchSchema" [ui]="{ '*': { spanLabelFixed: 120, grid: { lg: 8, md: 12, sm: 12, xs: 24 } } }"
[compact]="true" [button]="'none'"></sf> [compact]="true" [button]="'none'"></sf>
</div> </div>
<div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" [class.expend-options]="_$expand" <div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" class="text-right">
class="text-right">
<button nz-button nzType="primary" [nzLoading]="false" (click)="st?.load(1)">查询</button> <button nz-button nzType="primary" [nzLoading]="false" (click)="st?.load(1)">查询</button>
<button nz-button (click)="resetSF()">重置</button> <button nz-button (click)="resetSF()">重置</button>
<!-- <button nz-button> 导出</button> --> <!-- <button nz-button> 导出</button> -->

View File

@ -137,7 +137,7 @@ export class InvoicedListComponent implements OnInit {
autocomplete: 'off' autocomplete: 'off'
} }
}, },
vatinvcode: { vatappHCode: {
type: 'string', type: 'string',
title: '申请编号', title: '申请编号',
ui: { ui: {
@ -177,6 +177,16 @@ export class InvoicedListComponent implements OnInit {
asyncData: () => this.service.getNetworkFreightForwarder({}, true) asyncData: () => this.service.getNetworkFreightForwarder({}, true)
}, },
default: '' default: ''
},
vatinvcode: {
type: 'string',
title: '分票编号',
ui: {
placeholder: '请输入',
visibleIf: {
expand: (value: boolean) => value
}
}
} }
} }
}; };
@ -188,7 +198,7 @@ export class InvoicedListComponent implements OnInit {
{ title: '发票号码', index: 'invoiceno', width: 150 }, { title: '发票号码', index: 'invoiceno', width: 150 },
{ {
title: '申请编号', title: '申请编号',
index: 'vatinvcode', index: 'vatappHCode',
width: 190, width: 190,
type: 'link', type: 'link',
click: item => click: item =>
@ -243,22 +253,23 @@ export class InvoicedListComponent implements OnInit {
title: '操作', title: '操作',
fixed: 'right', fixed: 'right',
className: 'text-center', className: 'text-center',
width: 180, width: 120,
buttons: [ buttons: [
{type:'divider'},
{ {
text: '查看明细', text: '查看明细<br>',
click: item => click: item =>
this.router.navigate(['/ticket/invoice-list/detail/' + item.id], { this.router.navigate(['/ticket/invoice-list/detail/' + item.id], {
queryParams: { expressno: item.expressno, type: 2, ltdId: item.shipperId } queryParams: { expressno: item.expressno, type: 2, ltdId: item.shipperId }
}) })
}, },
{ {
text: '发票作废', text: '发票作废<br>',
click: item => this.deletedInvoice(item), click: item => this.deletedInvoice(item),
iif: item => item.sts === '1' iif: item => item.sts === '1'
}, },
{ {
text: '查看物流', text: '查看物流<br>',
click: item => this.showlogosticsLogs(item), click: item => this.showlogosticsLogs(item),
iif: item => item.expresscompany iif: item => item.expresscompany
} }

View File

@ -130,7 +130,7 @@ export class EAUserService extends BaseService {
async doAfterLogin() { async doAfterLogin() {
await this.loadUserInfo(); await this.loadUserInfo();
await this.loadUserMenus(); await this.loadUserMenus();
await this.loadUserRoles(); this.loadApp();
} }
/** /**
@ -165,9 +165,15 @@ export class EAUserService extends BaseService {
} }
/** /**
* 加载用户角色 * 加载系统信息
*/ */
loadUserRoles() {} loadApp() {
this.http.get(`assets/mocks/app-data.json`).subscribe(res => {
if (res.app) {
this.settings.setApp(res.app);
}
});
}
/** /**
* 登出 * 登出