edit
This commit is contained in:
		@ -93,7 +93,7 @@ export class CostManagementComponent implements OnInit {
 | 
			
		||||
    this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageIndex: this.st.pi, pageSize: this.st.ps });
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  routeTo(url: string, params?: any,status?: any) {
 | 
			
		||||
  routeTo(url: string, params?: any, status?: any) {
 | 
			
		||||
    this.router.navigate([url], { queryParams: params });
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
@ -259,10 +259,11 @@ export class CostManagementComponent implements OnInit {
 | 
			
		||||
        cno: {
 | 
			
		||||
          type: 'string',
 | 
			
		||||
          title: '结算客户',
 | 
			
		||||
          enum: [{ label: '全部', value: '全部' }],
 | 
			
		||||
          ui: {
 | 
			
		||||
            widget: 'select',
 | 
			
		||||
            placeholder: '请选择',
 | 
			
		||||
            allowClear: true,
 | 
			
		||||
            asyncData: () => this.service.getCloseAccount(),
 | 
			
		||||
            visibleIf: {
 | 
			
		||||
              expand: (value: boolean) => value
 | 
			
		||||
            }
 | 
			
		||||
@ -274,22 +275,22 @@ export class CostManagementComponent implements OnInit {
 | 
			
		||||
 | 
			
		||||
  private initST(): STColumn[] {
 | 
			
		||||
    return [
 | 
			
		||||
      { title: '费用单号', fixed: 'left', index: 'feecode', width: 200 ,className: 'text-left',},
 | 
			
		||||
      { title: '网络货运人', index: 'ltdName', width: 220 ,className: 'text-left',},
 | 
			
		||||
      { title: '订单号', index: 'billHCode', width: 200,className: 'text-left', },
 | 
			
		||||
      { title: '运单号', index: 'waybillHCode', width: 200 ,className: 'text-left',},
 | 
			
		||||
      { title: '费用日期', index: 'feedate', width: 200 ,className: 'text-left',},
 | 
			
		||||
      { title: '费用类型', index: 'feetypeLabel', width: 150,className: 'text-center', },
 | 
			
		||||
      { title: '应付核销', index: 'ishrhx', width: 200, type: 'enum', enum: { 0: '否', 1: '是' } ,className: 'text-left',},
 | 
			
		||||
      { title: '结算客户', render: 'artocode', width: 200 ,className: 'text-left',},
 | 
			
		||||
      { title: '应收对象', index: 'artoname', width: 200 ,className: 'text-left',},
 | 
			
		||||
      { title: '应付对象', index: 'hrtoname', width: 200 ,className: 'text-left',},
 | 
			
		||||
      { title: '应收金额', render: 'armoeny', width: 100 ,className: 'text-right',},
 | 
			
		||||
      { title: '应付金额', render: 'hrmoney', width: 100 ,className: 'text-right',},
 | 
			
		||||
      { title: '收/付款金额', render: 'hrpaymoney', width: 120 ,className: 'text-right',},
 | 
			
		||||
      { title: '开/收票金额', render: 'hrvatmoney', width: 120 ,className: 'text-right',},
 | 
			
		||||
      { title: '创建时间', index: 'createTime', type: 'date', width: 200 ,className: 'text-center',},
 | 
			
		||||
      { title: '状态', index: 'stsLabel', width: 90 ,className: 'text-center',},
 | 
			
		||||
      { title: '费用单号', fixed: 'left', index: 'feecode', width: 200, className: 'text-left' },
 | 
			
		||||
      { title: '网络货运人', index: 'ltdName', width: 220, className: 'text-left' },
 | 
			
		||||
      { title: '订单号', index: 'billHCode', width: 200, className: 'text-left' },
 | 
			
		||||
      { title: '运单号', index: 'waybillHCode', width: 200, className: 'text-left' },
 | 
			
		||||
      { title: '费用日期', index: 'feedate', width: 200, className: 'text-left' },
 | 
			
		||||
      { title: '费用类型', index: 'feetypeLabel', width: 150, className: 'text-center' },
 | 
			
		||||
      { title: '应付核销', index: 'ishrhx', width: 200, type: 'enum', enum: { 0: '否', 1: '是' }, className: 'text-left' },
 | 
			
		||||
      { title: '结算客户', render: 'artocode', width: 200, className: 'text-left' },
 | 
			
		||||
      { title: '应收对象', index: 'artoname', width: 200, className: 'text-left' },
 | 
			
		||||
      { title: '应付对象', index: 'hrtoname', width: 200, className: 'text-left' },
 | 
			
		||||
      { title: '应收金额', render: 'armoeny', width: 100, className: 'text-right' },
 | 
			
		||||
      { title: '应付金额', render: 'hrmoney', width: 100, className: 'text-right' },
 | 
			
		||||
      { title: '收/付款金额', render: 'hrpaymoney', width: 120, className: 'text-right' },
 | 
			
		||||
      { title: '开/收票金额', render: 'hrvatmoney', width: 120, className: 'text-right' },
 | 
			
		||||
      { title: '创建时间', index: 'createTime', type: 'date', width: 200, className: 'text-center' },
 | 
			
		||||
      { title: '状态', index: 'stsLabel', width: 90, className: 'text-center' },
 | 
			
		||||
      {
 | 
			
		||||
        title: '操作',
 | 
			
		||||
        fixed: 'right',
 | 
			
		||||
@ -298,13 +299,13 @@ export class CostManagementComponent implements OnInit {
 | 
			
		||||
        buttons: [
 | 
			
		||||
          {
 | 
			
		||||
            text: '浏览',
 | 
			
		||||
            click: item => this.routeTo('/financial-management/cost-management/detail/' + item.id , {status : item?.feetypeLabel})
 | 
			
		||||
            click: item => this.routeTo('/financial-management/cost-management/detail/' + item.id, { status: item?.feetypeLabel })
 | 
			
		||||
          },
 | 
			
		||||
          {
 | 
			
		||||
            text: '审核',
 | 
			
		||||
            click: item => this.auditAction(item),
 | 
			
		||||
            iif: item => item.sts === 2
 | 
			
		||||
          },
 | 
			
		||||
          }
 | 
			
		||||
          // {
 | 
			
		||||
          //   text: '修改',
 | 
			
		||||
          //   click: item => this.router.navigate(['/financial-management/cost-management/expenses-receivable/1'], { queryParams: { id: 1 } })
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user