52 lines
2.1 KiB
HTML
52 lines
2.1 KiB
HTML
<!--
|
|
* @Author: your name
|
|
* @Date: 2021-12-24 15:38:08
|
|
* @LastEditTime : 2022-02-23 17:14:33
|
|
* @LastEditors : Shiming
|
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\sys-setting\\components\\crm-management\\crm-management.component.html
|
|
-->
|
|
<page-header-wrapper title="CRM客户管理">
|
|
</page-header-wrapper>
|
|
|
|
<nz-card class="search-box">
|
|
<div nz-row nzGutter="8">
|
|
<div nz-col [nzSpan]="10">
|
|
<sf #sf [schema]="schema" [ui]="ui"
|
|
[button]="'none'"></sf>
|
|
</div>
|
|
<div nz-col [nzSpan]="8" nzOffset="1">
|
|
<button nz-button nzType="primary" [nzLoading]="false" (click)="st?.load(1)" acl [acl-ability]="['SYSTEM-CRM-list']">查询</button>
|
|
<button nz-button (click)="resetSF()">重置</button>
|
|
</div>
|
|
</div>
|
|
</nz-card>
|
|
<nz-card class="content-box">
|
|
|
|
<div class="d-flex justify-content-end mb-sm">
|
|
<div>
|
|
<button nz-button nzType="primary" (click)="roleAction('',1)" acl [acl-ability]="['SYSTEM-CRM-add']">新增CRM客户</button>
|
|
</div>
|
|
</div>
|
|
<st #st [data]="service.$api_get_crmCustomer_page" [columns]="columns" [req]="{ params: reqParams }"
|
|
[loading]="false" [scroll]="{ y: '370px' }" (change)="stChange($event)">
|
|
<ng-template st-row="customerType" let-item let-index="index">
|
|
<div>
|
|
<span *ngIf="item?.customerType == 1">客户</span>
|
|
<span *ngIf="item?.customerType == 2">供应商</span>
|
|
</div>
|
|
</ng-template>
|
|
</st>
|
|
</nz-card>
|
|
|
|
<nz-modal [(nzVisible)]="isVisible" [nzFooter]="nzModalFooter" [nzTitle]="editText" (nzOnOk)="handleOK()"
|
|
(nzOnCancel)="handleCancel()">
|
|
<ng-container *nzModalContent>
|
|
<sf #sfFre [schema]="addSchema" [ui]="ui2" [formData]="formData" [compact]="false" [button]="'none'">
|
|
</sf>
|
|
</ng-container>
|
|
<ng-template #nzModalFooter>
|
|
<button nz-button nzType="primary" (click)="handleCancel()" [disabled]="">取消</button>
|
|
<button nz-button nzType="default" (click)="handleOK()">确 定</button>
|
|
</ng-template>
|
|
</nz-modal> |