This commit is contained in:
Taric Xin
2021-12-08 15:56:22 +08:00
parent 55811ba396
commit c369d42414
13 changed files with 337 additions and 663 deletions

View File

@ -62,6 +62,7 @@ export class InvoiceRequestedDetailComponent implements OnInit {
type: 'string', type: 'string',
title: '发票号码', title: '发票号码',
ui: { ui: {
placeholder: '请输入',
autocomplete: 'off' autocomplete: 'off'
} }
} }

View File

@ -114,7 +114,7 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
tenantId: this.route.snapshot.params.id, tenantId: this.route.snapshot.params.id,
// tenantId: this.route.snapshot.queryParams.tenantId, // tenantId: this.route.snapshot.queryParams.tenantId,
}; };
const res = await this.service.asyncRequest(this.service.$api_get_supplier_info, params); const res = await this.service.asyncRequest(this.service.$api_get_one, params);
// // 商品资质 // // 商品资质
// if (res.enterpriseBusinessJson) { // if (res.enterpriseBusinessJson) {
// res.enterpriseBusinessJson.aptitudes = res.enterpriseBusinessJson?.aptitudes ? res.enterpriseBusinessJson.aptitudes.split(',') : []; // res.enterpriseBusinessJson.aptitudes = res.enterpriseBusinessJson?.aptitudes ? res.enterpriseBusinessJson.aptitudes.split(',') : [];
@ -154,7 +154,7 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
const params = { const params = {
regionCode: code, regionCode: code,
}; };
const res = await this.service.asyncRequest(this.service.$api_get_region_detailByCode, params, 'POST', true); const res = await this.service.asyncRequest(this.service.$api_get_one, params, 'POST', true);
// if (res && res.regionFullName) { // if (res && res.regionFullName) {
// const arr = res.regionFullName.split(','); // const arr = res.regionFullName.split(',');
// res.regionFullName = arr.reverse().join('-'); // res.regionFullName = arr.reverse().join('-');

View File

@ -110,7 +110,7 @@ export class FreightComponentsEnterpriseAuditViewComponent implements OnInit {
tenantId: this.route.snapshot.params.id, tenantId: this.route.snapshot.params.id,
// tenantId: this.route.snapshot.queryParams.tenantId, // tenantId: this.route.snapshot.queryParams.tenantId,
}; };
const res = await this.service.asyncRequest(this.service.$api_get_supplier_info, params); const res = await this.service.asyncRequest(this.service.$api_get_one, params);
// // 商品资质 // // 商品资质
// if (res.enterpriseBusinessJson) { // if (res.enterpriseBusinessJson) {
// res.enterpriseBusinessJson.aptitudes = res.enterpriseBusinessJson?.aptitudes ? res.enterpriseBusinessJson.aptitudes.split(',') : []; // res.enterpriseBusinessJson.aptitudes = res.enterpriseBusinessJson?.aptitudes ? res.enterpriseBusinessJson.aptitudes.split(',') : [];
@ -150,7 +150,7 @@ export class FreightComponentsEnterpriseAuditViewComponent implements OnInit {
const params = { const params = {
regionCode: code, regionCode: code,
}; };
const res = await this.service.asyncRequest(this.service.$api_get_region_detailByCode, params, 'POST', true); const res = await this.service.asyncRequest(this.service.$api_get_one, params, 'POST', true);
// if (res && res.regionFullName) { // if (res && res.regionFullName) {
// const arr = res.regionFullName.split(','); // const arr = res.regionFullName.split(',');
// res.regionFullName = arr.reverse().join('-'); // res.regionFullName = arr.reverse().join('-');

View File

@ -1,289 +1,202 @@
<ng-container > <!-- 页头 -->
<!-- 页头 --> <page-header-wrapper [logo]="logo" [content]="content">
<page-header-wrapper [logo]="logo" [action]="action" [content]="content"> <ng-template #logo>
<ng-template #logo> <button nz-button nz-tooltip nzTooltipTitle="返回上一页" (click)="goBack()">
<button nz-button nz-tooltip nzTooltipTitle="返回上一页" (click)="goBack()"> <i nz-icon nzType="left" nzTheme="outline"></i>
<i nz-icon nzType="left" nzTheme="outline"></i> </button>
</button> </ng-template>
</ng-template> <ng-template #content>
<ng-template #content> <div class="user-info" nz-row>
<div class="user-info"> <div nz-col [nzXl]="18" [nzLg]="24" [nzSm]="24" [nzXs]="24" class="d-flex">
<img [src]="detailData?.shoppFeignVO?.logoUrl" /> <img [src]="detailData?.enterpriseLogo" />
<div style="flex: 1"> <div style="flex: 1;">
<div style="display: flex;"> <div nz-row>
<p style="padding-right: 80px; width: 400px;">深圳市xxxx科技有限公司{{ detailData?.shoppFeignVO?.publicity }}</p> <div nz-col [nzLg]="12" [nzSm]="24" [nzXs]="24">
<nz-badge nzStatus="success" nzText="正常" *ngIf="detailData?.status === 0"></nz-badge> <p style="margin-bottom: 0;">{{ detailData?.enterpriseName }}</p>
<nz-badge nzStatus="error" nzText="冻结" *ngIf="detailData?.status === 1"></nz-badge> </div>
<nz-badge nzStatus="warning" nzText="废弃" *ngIf="detailData?.status === 2"></nz-badge> <div nz-col [nzLg]="12" [nzSm]="24" [nzXs]="24">
</div> <nz-badge nzStatus="success" nzText="正常" *ngIf="detailData?.stateLocked === 0"></nz-badge>
<div style="display: flex;"> <nz-badge nzStatus="error" nzText="冻结" *ngIf="detailData?.stateLocked === 1"></nz-badge>
<p style="padding-right: 80px; width: 400px;">4545456655645{{ detailData?.shoppFeignVO?.introduction }}</p> </div>
<p >认证时间2021-09-02 12.53.32</p> </div>
</div> <div nz-row>
<div> <div nz-col [nzLg]="12" [nzSm]="24" [nzXs]="24">
服务评级:<nz-rate [ngModel]="2" nzDisabled></nz-rate> <p>{{ detailData?.unifiedSocialCreditCode }}</p>
</div> </div>
<div nz-col [nzLg]="12" [nzSm]="24" [nzXs]="24">
<div style="position: relative;top: -65%; 认证时间:{{detailData?.createTime}}
left: 75%;"> </div>
<button </div>
[nzLoading]="service.http.loading" <div>
nz-button 服务评级:<nz-rate [ngModel]="detailData?.serviceLevel" nzDisabled></nz-rate>
nzDanger </div>
nz-popconfirm </div>
[nzPopconfirmTitle]="enable" </div>
(nzOnConfirm)="freezeOrResume(0)" <div nz-col [nzXl]="6" [nzLg]="24" [nzSm]="24" [nzXs]="24" class="text-right mt-sm">
nzPopconfirmPlacement="bottomRight" <button [nzLoading]="service.http.loading" nz-button nzDanger nz-popconfirm [nzPopconfirmTitle]="enable"
> (nzOnConfirm)="freezeOrResume(0)" nzPopconfirmPlacement="bottomRight" *ngIf="detailData?.stateLocked === 1">
启用 启用
</button> </button>
<button <button [nzLoading]="service.http.loading" nz-button nzDanger nz-popconfirm [nzPopconfirmTitle]="frozen"
[nzLoading]="service.http.loading" (nzOnConfirm)="freezeOrResume(1)" nzPopconfirmPlacement="bottomRight" *ngIf="detailData?.stateLocked === 0">
nz-button
nzDanger
nz-popconfirm
[nzPopconfirmTitle]="frozen"
(nzOnConfirm)="freezeOrResume(1)"
nzPopconfirmPlacement="bottomRight"
>
冻结 冻结
</button> </button>
<button <button [nzLoading]="service.http.loading" nz-button nzDanger nz-popconfirm [nzPopconfirmTitle]="Payfrozen"
[nzLoading]="service.http.loading" (nzOnConfirm)="PayOrResume(0)" nzPopconfirmPlacement="bottomRight" *ngIf="detailData?.createPay === 0">
nz-button
nzDanger
nz-popconfirm
[nzPopconfirmTitle]="Payfrozen"
(nzOnConfirm)="PayOrResume(0)"
nzPopconfirmPlacement="bottomRight"
>
开通支付权限 开通支付权限
</button> </button>
<button <button [nzLoading]="service.http.loading" nz-button nzDanger nz-popconfirm [nzPopconfirmTitle]="Payenable"
[nzLoading]="service.http.loading" (nzOnConfirm)="PayOrResume(1)" nzPopconfirmPlacement="bottomRight" *ngIf="detailData?.createPay === 1">
nz-button
nzDanger
nz-popconfirm
[nzPopconfirmTitle]="Payenable"
(nzOnConfirm)="PayOrResume(1)"
nzPopconfirmPlacement="bottomRight"
>
关闭支付权限 关闭支付权限
</button> </button>
</div>
</div>
</div> </div>
</ng-template> </div>
<ng-template #action> </ng-template> </ng-template>
<ng-template #frozen> <ng-template #frozen>
<div class="ant-popover-message"> <ng-container
<i nz-icon="" nztheme="fill" class="anticon anticon-exclamation-circle ng-star-inserted"> *ngTemplateOutlet="PopconfirmTempalte;context:{title:'确定冻结该企业吗?',content:'停用后,该企业将被限制使用,不限于访问受限、无法发布货源等,请谨慎操作'}">
<svg </ng-container>
viewBox="64 64 896 896" </ng-template>
focusable="false" <ng-template #enable>
fill="currentColor" <ng-container *ngTemplateOutlet="PopconfirmTempalte;context:{title:'确定启用该企业吗?',content:'启用后,该企业将恢复正常使用功能,请再次确认'}">
width="1em" </ng-container>
height="1em" </ng-template>
class="ng-tns-c358-1487" <ng-template #Payenable>
data-icon="exclamation-circle" <ng-container
aria-hidden="true" *ngTemplateOutlet="PopconfirmTempalte;context:{title:'确定关闭该企业支付权限吗?',content:'停用后,该企业将被限制使用支付功能,请谨慎操作'}">
> </ng-container>
<path </ng-template>
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" <ng-template #Payfrozen>
></path> <ng-container
</svg> *ngTemplateOutlet="PopconfirmTempalte;context:{title:'确定开通该企业支付权限吗?',content:'启用后,该企业将恢复正常支付功能,请再次确认'}">
</i> </ng-container>
<div class="ant-popover-message-title ng-star-inserted self-ant-popover-title" style="font-size: 16px">确定冻结该企业吗?</div> </ng-template>
<div class="ant-popover-message-title ng-star-inserted"> </page-header-wrapper>
停用后,该企业将被限制使用,不限于访问受限、无法发布货源等,请谨慎操作
</div> <nz-card>
<sv-container col="3">
<sv-title>企业管理员信息</sv-title>
<sv label="姓名">
{{ detailData?.adminUserInfo?.name }}
</sv>
<sv label="手机号">
{{ detailData?.adminUserInfo?.mobile }}
</sv>
<sv label="身份证号">
{{ detailData?.contactadminUserInfo?.certificateNumber }}
</sv>
<sv label="身份证照">
<img [src]="detailData?.adminUserInfo?.certificatePhotoFrontWatermark" alt="">
<img [src]="detailData?.adminUserInfo?.certificatePhotoBackWatermark" alt="">
</sv>
<sv label="企业授权函">
<img [src]="detailData?.adminUserInfo?.certificatePhotoBackWatermark" alt="">
<!-- <app-imagelist [imgList]="detailData?.enterpriseQualificationCertificate"></app-imagelist> -->
</sv>
</sv-container>
<nz-divider></nz-divider>
<sv-container col="3" class="mt16">
<sv-title>
<label class="mr-md">企业基本信息</label>
<label *ngIf="detailData?.approvalStatus===10" style="color: #1890ff;"><i nz-icon nzType="info-circle"
nzTheme="fill" class="mr-xs"></i>待审核
</label>
<label *ngIf="detailData?.approvalStatus===20" style="color: #52c41a;"><i nz-icon nzType="check-circle"
nzTheme="fill" class="mr-xs"></i>审核通过
</label>
<label *ngIf="detailData?.approvalStatus===30" style="color: #ff4d4f;"><i nz-icon nzType="close-circle"
nzTheme="fill" class="mr-xs"></i>驳回
</label>
</sv-title>
<sv label="公司名称">
{{ detailData?.enterpriseName }}
</sv>
<sv label="统一社会信用代码">
{{ detailData?.unifiedSocialCreditCode }}
</sv>
<sv label="公司类型">
{{ detailData?.enterpriseType }}
</sv>
<sv label="注册资本">
{{ detailData?.registrationCapital }}
<span *ngIf="detailData?.registrationCapital">万元</span>
</sv>
<sv label="成立日期">
{{ detailData?.enterpriseRegistrationTime }}
</sv>
<sv label="营业期限">
<div *ngIf="!!detailData?.operatingStartTime && !!detailData?.operatingEndTime">
{{ detailData?.operatingStartTime }} 至 {{ detailData?.operatingEndTime }}
</div> </div>
</ng-template> <div *ngIf="!detailData?.operatingStartTime && !detailData?.operatingEndTime">长期</div>
<ng-template #enable> <div *ngIf="!!detailData?.operatingStartTime && !detailData?.operatingEndTime">{{ detailData?.operatingStartTime
<div class="ant-popover-message"> }} 至 长期</div>
<i nz-icon="" nztheme="fill" class="anticon anticon-exclamation-circle ng-star-inserted"> </sv>
<svg </sv-container>
viewBox="64 64 896 896" <sv-container col="2" class="mt16">
focusable="false" <sv label="公司所在地" col="3">
fill="currentColor" {{ detailData?.enterpriseAddressCodeStr }}
width="1em" </sv>
height="1em" <sv label="公司详细地址">
class="ng-tns-c358-1487" {{ detailData?.enterpriseAddress }}
data-icon="exclamation-circle" </sv>
aria-hidden="true" </sv-container>
> <sv-container col="1" class="mt16">
<path <sv label="经营范围">
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" {{ detailData?.businessScope }}
></path> </sv>
</svg> </sv-container>
</i> <sv-container col="2" class="mt16">
<div class="ant-popover-message-title ng-star-inserted self-ant-popover-title" style="font-size: 16px">确定启用该企业吗?</div> <sv label="税务机关">
<div class="ant-popover-message-title ng-star-inserted"> {{ detailData?.taxAuthority }}
启用后,该企业将恢复正常使用功能,请再次确认 </sv>
</div> <sv label="营业执照">
</div> <!-- <app-imagelist [imgList]="detailData?.enterpriseQualificationCertificate"></app-imagelist> -->
</ng-template> </sv>
<ng-template #Payenable> </sv-container>
<div class="ant-popover-message"> <nz-divider></nz-divider>
<i nz-icon="" nztheme="fill" class="anticon anticon-exclamation-circle ng-star-inserted"> <sv-container col="3" class="mt16">
<svg <sv-title>法人信息</sv-title>
viewBox="64 64 896 896" <sv label="法定代表人">
focusable="false" {{ detailData?.legalPersonIdentityVO?.name }}
fill="currentColor" </sv>
width="1em" <sv label="身份证号码">
height="1em" {{ detailData?.legalPersonIdentityVO?.certificateNumber }}
class="ng-tns-c358-1487" </sv>
data-icon="exclamation-circle" <sv label="身份证有效期">
aria-hidden="true" {{ detailData?.legalPersonIdentityVO?.validStartTime }} -
> {{ detailData?.legalPersonIdentityVO?.validEndTime || '长期' }}
<path </sv>
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" <sv label="身份证照" col="1">
></path> <!-- <app-imagelist [imgList]="detailData?.certificatePhoto"></app-imagelist> -->
</svg> </sv>
</i> </sv-container>
<div class="ant-popover-message-title ng-star-inserted self-ant-popover-title" style="font-size: 16px">确定关闭该企业支付权限吗?</div> <nz-divider></nz-divider>
<div class="ant-popover-message-title ng-star-inserted"> <sv-container col="3" class="mt16">
停用后,该企业将被限制使用支付功能,请谨慎操作 <sv-title>企业开票信息</sv-title>
</div> <sv label="开户银行">
</div> {{ detailData?.name }}
</ng-template> </sv>
<ng-template #Payfrozen> <sv label="银行账户">
<div class="ant-popover-message"> {{ detailData?.bankAccount }}
<i nz-icon="" nztheme="fill" class="anticon anticon-exclamation-circle ng-star-inserted"> </sv>
<svg <sv label="注册电话">
viewBox="64 64 896 896" {{ detailData?.validStartTime }}
focusable="false" </sv>
fill="currentColor" <sv label="注册地址">
width="1em" {{ detailData?.validStartTime }}
height="1em" </sv>
class="ng-tns-c358-1487" </sv-container>
data-icon="exclamation-circle" </nz-card>
aria-hidden="true"
> <ng-template #PopconfirmTempalte let-title="title" let-content="content">
<path <div class="ant-popover-message">
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" <i nz-icon nzType="info-circle" nzTheme="fill"></i>
></path> <div class="ant-popover-message-title ng-star-inserted self-ant-popover-title" style="font-size: 16px">{{title}}
</svg> </div>
</i> <div class="ant-popover-message-title ng-star-inserted">
<div class="ant-popover-message-title ng-star-inserted self-ant-popover-title" style="font-size: 16px">确定开通该企业支付权限吗?</div> {{content}}
<div class="ant-popover-message-title ng-star-inserted"> </div>
启用后,该企业将恢复正常支付功能,请再次确认
</div>
</div>
</ng-template>
</page-header-wrapper>
<nz-card>
<sv-container col="3">
<sv-title>联系信息人</sv-title>
<sv label="联系人">
{{ detailData?.contactsName }}
</sv>
<sv label="联系人手机号">
{{ detailData?.contactsPhone }}
</sv>
<sv label="联系人身份证号">
{{ detailData?.contactsPhone }}
</sv>
<sv label="企业授权函">
<!-- <app-imagelist [imgList]="detailData?.enterpriseQualificationCertificate"></app-imagelist> -->
</sv>
</sv-container>
<nz-divider></nz-divider>
<sv-container col="3" class="mt16">
<sv-title>公司基本信息</sv-title>
<sv label="公司名称">
{{ detailData?.enterpriseName }}
</sv>
<sv label="统一社会信用代码">
{{ detailData?.unifiedSocialCreditCode }}
</sv>
<sv label="公司类型">
{{ detailData?.enterpriseType }}
</sv>
<sv label="注册资本">
{{ detailData?.registrationCapital }}
<span *ngIf="detailData?.registrationCapital">万元</span>
</sv>
<sv label="成立日期">
{{ detailData?.enterpriseRegistrationTime }}
</sv>
<sv label="营业期限">
<div *ngIf="!!detailData?.operatingStartTime && !!detailData?.operatingEndTime">
{{ detailData?.operatingStartTime }} 至 {{ detailData?.operatingEndTime }}
</div>
<div *ngIf="!detailData?.operatingStartTime && !detailData?.operatingEndTime">长期</div>
<div *ngIf="!!detailData?.operatingStartTime && !detailData?.operatingEndTime">{{ detailData?.operatingStartTime }} 至 长期</div>
</sv>
</sv-container>
<sv-container col="2" class="mt16">
<sv label="公司所在地" col="3">
{{ detailData?.enterpriseAddressCodeStr }}
</sv>
<sv label="公司详细地址">
{{ detailData?.enterpriseAddress }}
</sv>
</sv-container>
<sv-container col="2" class="mt16">
<sv label="公司实际经营所在地" col="3">
{{ detailData?.enterpriseAddressCodeStr }}
</sv>
<sv label="公司实际经营详细地址">
{{ detailData?.enterpriseAddress }}
</sv>
</sv-container>
<sv-container col="2" class="mt16">
<sv label="公司电话" col="3">
{{ detailData?.enterpriseAddressCodeStr }}
</sv>
<sv label="公司邮箱">
{{ detailData?.enterpriseAddress }}
</sv>
</sv-container>
<sv-container col="1" class="mt16">
<sv label="经营范围">
{{ detailData?.businessScope }}
</sv>
<sv label="营业执照">
<!-- <app-imagelist [imgList]="detailData?.enterpriseQualificationCertificate"></app-imagelist> -->
</sv>
</sv-container>
<nz-divider></nz-divider>
<sv-container col="3" class="mt16">
<sv-title>法人信息</sv-title>
<sv label="法定代表人">
{{ detailData?.name }}
</sv>
<sv label="身份证号">
{{ detailData?.certificateNumber }}
</sv>
<sv label="身份证有效期">
{{ detailData?.validStartTime }} -
{{ detailData?.validEndTime ? detailData?.validEndTime : '长期' }}
</sv>
<sv label="身份证照" col="1">
<!-- <app-imagelist [imgList]="detailData?.certificatePhoto"></app-imagelist> -->
</sv>
</sv-container>
<nz-divider></nz-divider>
<sv-container col="3" class="mt16">
<sv-title>银行结算信息</sv-title>
<sv label="开户名称">
{{ detailData?.name }}
</sv>
<sv label="开户账户">
{{ detailData?.certificateNumber }}
</sv>
<sv label="开户支行">
{{ detailData?.validStartTime }}
</sv>
</sv-container>
</nz-card>
</ng-container>
<nz-modal [(nzVisible)]="isVisible" nzTitle="类型" (nzOnOk)="handleOK('suppliersType')">
<sf #sf1 [schema]="schema1" [ui]="ui" [compact]="false" [button]="'none'" [formData]="suppliersData"></sf>
<div *nzModalFooter>
<button nz-button nzType="default" (click)="handleCancel('suppliersType')">取消</button>
<button nz-button nzType="primary" (click)="handleOK('suppliersType')" [disabled]="!sf1.valid">确认</button>
</div> </div>
</nz-modal> </ng-template>

View File

@ -28,7 +28,6 @@
margin-top: 16px; margin-top: 16px;
} }
.user-info { .user-info {
display: flex;
font-size: 16px; font-size: 16px;
.enterprise-name { .enterprise-name {
margin-right: 15px; margin-right: 15px;

View File

@ -9,7 +9,7 @@ import { UsermanageService } from '../../../../services/usercenter.service';
@Component({ @Component({
selector: 'app-supplier-components-list-view', selector: 'app-supplier-components-list-view',
templateUrl: './detail.component.html', templateUrl: './detail.component.html',
styleUrls: ['./detail.component.less'], styleUrls: ['./detail.component.less']
}) })
export class FreightComponentsListDetailComponent implements OnInit { export class FreightComponentsListDetailComponent implements OnInit {
i: any; i: any;
@ -17,7 +17,6 @@ export class FreightComponentsListDetailComponent implements OnInit {
@ViewChild('st', { static: false }) st!: STComponent; @ViewChild('st', { static: false }) st!: STComponent;
detailData: any; detailData: any;
isShow = false; isShow = false;
isVisible = false;
modalTitle = '有效期'; modalTitle = '有效期';
modalName = ''; modalName = '';
ui!: SFUISchema; ui!: SFUISchema;
@ -34,92 +33,23 @@ export class FreightComponentsListDetailComponent implements OnInit {
public service: UsermanageService, public service: UsermanageService,
private route: ActivatedRoute, private route: ActivatedRoute,
private modalHelper: ModalHelper, private modalHelper: ModalHelper,
private msgSrv: NzMessageService, private msgSrv: NzMessageService
) {} ) {}
ngOnInit() { ngOnInit() {
console.log(this.route.snapshot); this.initData();
// this.initData();
this.initSF();
this.initSF1();
// this.launchSign();
} }
/** initData() {
* 初始化查询表单 this.service
*/ .request(this.service.$api_get_freight_detail, {
initSF() { id: this.route.snapshot.params.id
this.schema = { })
properties: { .subscribe(res => {
_$expand: { type: 'boolean', ui: { hidden: true } }, if (res) {
effectiveDate: { this.detailData = res;
title: '有效期', }
type: 'string', console.log(res);
ui: { });
widget: 'date',
format: 'yyyy-MM-dd 00:00:00',
// hidden: this.modalName === 'effectiveDate' ? false : true,
} as SFDateWidgetSchema,
},
},
required: ['effectiveDate'],
};
this.ui = { '*': { spanLabelFixed: 120, grid: { span: 24 } } };
}
initSF1() {
this.schema1 = {
properties: {
_$expand: { type: 'boolean', ui: { hidden: true } },
suppliersType: {
type: 'string',
title: '类型',
enum: [
{ label: '非外部供应商', value: 0 },
{ label: '外部供应商', value: 1 },
],
default: '',
ui: {
widget: 'select',
change: (args: any) => {
console.log(args, 'args');
this.suppliersData.suppliersType = args;
if (args === 1) {
this.validData = ['suppliersType', 'externalSuppliersId'];
} else {
this.validData = ['suppliersType'];
this.suppliersData.externalSuppliersId = '';
}
this.initSF1();
},
},
},
externalSuppliersId: {
title: '外部供应商id',
type: 'string',
default: '',
ui: {
visibleIf: { suppliersType: (value: any) => value === 1 },
},
},
},
required: this.validData,
};
}
showModal(name: any) {
this.modalName = name;
if (name === 'effectiveDate') {
this.isShow = true;
} else {
this.isVisible = true;
}
}
async initData() {
console.log(this.route.snapshot, 'this.route.snapshot');
const params = {
tenantId: this.route.snapshot.params.id,
// tenantId: this.route.snapshot.queryParams.tenantId,
};
const res = await this.service.asyncRequest(this.service.$api_get_supplier_info, params);
// // 商品资质 // // 商品资质
// if (res.enterpriseBusinessJson) { // if (res.enterpriseBusinessJson) {
// res.enterpriseBusinessJson.aptitudes = res.enterpriseBusinessJson?.aptitudes ? res.enterpriseBusinessJson.aptitudes.split(',') : []; // res.enterpriseBusinessJson.aptitudes = res.enterpriseBusinessJson?.aptitudes ? res.enterpriseBusinessJson.aptitudes.split(',') : [];
@ -131,24 +61,24 @@ export class FreightComponentsListDetailComponent implements OnInit {
// // res.applyUserJson.imagelist.push(res.applyUserJson.handCertificate); // // res.applyUserJson.imagelist.push(res.applyUserJson.handCertificate);
// 法人身份证证件 // 法人身份证证件
const imagelist = []; // const imagelist = [];
imagelist.push(res?.certificatePhotoFront); // imagelist.push(res?.certificatePhotoFront);
imagelist.push(res?.certificatePhotoBack); // imagelist.push(res?.certificatePhotoBack);
res.certificatePhoto = imagelist; // res.certificatePhoto = imagelist;
// 营业执照 // // 营业执照
res.enterpriseQualificationCertificate = res.enterpriseQualificationCertificate // res.enterpriseQualificationCertificate = res.enterpriseQualificationCertificate
? res.enterpriseQualificationCertificate.split(',') // ? res.enterpriseQualificationCertificate.split(',')
: []; // : [];
// 返回所在地 // // 返回所在地
res.enterpriseAddressCodeStr = await this.getRegionFullName(res.enterpriseAddressCode); // res.enterpriseAddressCodeStr = await this.getRegionFullName(res.enterpriseAddressCode);
this.detailData = res; // this.detailData = res;
this.suppliersData = { // this.suppliersData = {
suppliersType: res?.suppliersType, // suppliersType: res?.suppliersType,
externalSuppliersId: res?.externalSuppliersId, // externalSuppliersId: res?.externalSuppliersId
}; // };
} }
/** /**
@ -157,9 +87,9 @@ export class FreightComponentsListDetailComponent implements OnInit {
*/ */
async getRegionFullName(code: any) { async getRegionFullName(code: any) {
const params = { const params = {
regionCode: code, regionCode: code
}; };
const res = await this.service.asyncRequest(this.service.$api_get_region_detailByCode, params, 'POST', true); const res = await this.service.asyncRequest(this.service.$api_get_one, params, 'POST', true);
// if (res && res.regionFullName) { // if (res && res.regionFullName) {
// const arr = res.regionFullName.split(','); // const arr = res.regionFullName.split(',');
// res.regionFullName = arr.reverse().join('-'); // res.regionFullName = arr.reverse().join('-');
@ -178,7 +108,7 @@ export class FreightComponentsListDetailComponent implements OnInit {
* 冻结 * 冻结
*/ */
freezeOrResume(type: number) { freezeOrResume(type: number) {
console.log(type) console.log(type);
// this.service.http // this.service.http
// .post(this.service.$api_set_freezeOrResume, { // .post(this.service.$api_set_freezeOrResume, {
// tenantId: this.route.snapshot.params.id, // tenantId: this.route.snapshot.params.id,
@ -199,7 +129,7 @@ export class FreightComponentsListDetailComponent implements OnInit {
// }); // });
} }
PayOrResume(type: number) { PayOrResume(type: number) {
console.log(type) console.log(type);
// this.service.http // this.service.http
// .post(this.service.$api_set_freezeOrResume, { // .post(this.service.$api_set_freezeOrResume, {
// tenantId: this.route.snapshot.params.id, // tenantId: this.route.snapshot.params.id,
@ -219,37 +149,4 @@ export class FreightComponentsListDetailComponent implements OnInit {
// } // }
// }); // });
} }
handleCancel(name: any) {
if (name === 'effectiveDate') {
this.isShow = false;
} else {
this.isVisible = false;
}
}
handleOK(name: any) {
const params: any = {
tenantId: this.route.snapshot.params.id,
// tenantId: this.route.snapshot.queryParams.tenantId,
};
if (name === 'effectiveDate') {
params.effectiveDate = this.sf?.value?.effectiveDate;
} else {
Object.assign(params, this.sf1?.value);
}
this.service.http.post(this.service.$api_set_freezeOrResume, params).subscribe((res) => {
if (res.data === true) {
this.service.msgSrv.success(`编辑成功!`);
this.ngOnInit();
} else {
this.service.msgSrv.error(res.msg || '编辑失败!');
}
if (name === 'effectiveDate') {
this.isShow = false;
} else {
this.isVisible = false;
}
});
}
} }

View File

@ -12,69 +12,41 @@
<!-- 搜索区 --> <!-- 搜索区 -->
<!-- 搜索表单 --> <!-- 搜索表单 -->
<div nz-row nzGutter="8"> <div nz-row nzGutter="8">
<!-- 查询字段小于或等于3个时不显示伸缩按钮 --> <div nz-col [nzXl]="_$expand ? 24 : 18" [nzLg]="24" [nzSm]="24" [nzXs]="24">
<div nz-col nzSpan="24" *ngIf="queryFieldCount <= 4"> <sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
<sf </div>
#sf <div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" class="text-right">
[schema]="schema" <button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="creat()">新建</button>
[ui]="ui" <button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">导出</button>
[mode]="'search'" <button nz-button nzType="primary" [disabled]="!sf.valid" [nzLoading]="service.http.loading"
[disabled]="!sf?.valid" (click)="st?.load(1)">查询</button>
(formSubmit)="st?.load(1)" <button nz-button (click)="resetSF()">重置</button>
(formReset)="resetSF()" <button nz-button nzType="link" (click)="expandToggle()">
></sf> {{ !_$expand ? '展开' : '收起' }}
<i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
</button>
</div> </div>
<!-- [loading]="service.http.loading" -->
<!-- 查询字段大于3个时根据展开状态调整布局 -->
<ng-container *ngIf="queryFieldCount > 4">
<div nz-col [nzSpan]="_$expand ? 24 : 18">
<sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
</div>
<div nz-col [nzSpan]="_$expand ? 24 : 6" [class.text-right]="_$expand">
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="creat()">新建</button>
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">导出</button>
<button nz-button nzType="primary" [disabled]="!sf.valid" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
<button nz-button (click)="resetSF()">重置</button>
<button nz-button nzType="link" (click)="expandToggle()">
{{ !_$expand ? '展开' : '收起' }}
<i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
</button>
</div>
</ng-container>
</div> </div>
</nz-card> </nz-card>
<nz-card> <nz-card>
<!-- 数据列表 --> <!-- 数据列表 -->
<!-- [data]="service.$api_get_supplier_page" --> <!-- [data]="service.$api_get_supplier_page" -->
<st <st #st [bordered]="true" [columns]="columns" [data]='service.$api_get_freight_list'
#st
[bordered]="true"
[columns]="columns"
[data]='datalist'
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }" [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
[res]="{ reName: { list: 'data.records', total: 'data.total' }, process: dataProcess }" [res]="{ reName: { list: 'data.records', total: 'data.total' }, process: dataProcess }"
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }" [page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }" [loadingDelay]="500"
[loadingDelay]="500" [loading]="service.http.loading">
[loading]="service.http.loading"
>
<ng-template st-row="enterpriseName" let-item let-index="index"> <ng-template st-row="enterpriseName" let-item let-index="index">
<div nz-tooltip [nzTooltipTitle]="item.enterpriseName"> <div nz-tooltip [nzTooltipTitle]="item.enterpriseName">
<div <div
style="display: inline-block; max-width: 280px; margin: 0 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis" style="display: inline-block; max-width: 280px; margin: 0 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis">
>
{{ item.enterpriseName }} {{ item.enterpriseName }}
</div> </div>
</div> </div>
</ng-template> </ng-template>
<ng-template st-row="contactsPhone" let-item let-index="index"> <ng-template st-row="promotersTelephone" let-item let-index="index">
<div <a (click)="daoyun(item)">{{ item.promotersTelephone }}</a>
style="color: #52c41a;" (click)="daoyun(item)"
>
{{ item.contactsPhone }}
</div>
</ng-template> </ng-template>
<ng-template st-row="stateCol" let-item let-index="index"> <ng-template st-row="stateCol" let-item let-index="index">
<nz-tag *ngIf="item.stateLocked" nzColor="error">冻结</nz-tag> <nz-tag *ngIf="item.stateLocked" nzColor="error">冻结</nz-tag>

View File

@ -1,23 +0,0 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { FreightComponentsListComponent } from './list.component';
describe('FreightComponentsListComponent', () => {
let component: FreightComponentsListComponent;
let fixture: ComponentFixture<FreightComponentsListComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [FreightComponentsListComponent],
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(FreightComponentsListComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -7,52 +7,17 @@ import { UsermanageService } from '../../../services/usercenter.service';
@Component({ @Component({
selector: 'app-Freight-components-list', selector: 'app-Freight-components-list',
templateUrl: './list.component.html', templateUrl: './list.component.html',
styleUrls: ['./list.component.less']
}) })
export class FreightComponentsListComponent implements OnInit { export class FreightComponentsListComponent implements OnInit {
_$expand = false; _$expand = false;
url = `/rule?_allow_anonymous=true`;
ui!: SFUISchema; ui!: SFUISchema;
schema!: SFSchema; schema!: SFSchema;
columns!: STColumn[]; columns!: STColumn[];
datalist = [
{
storeName: '企业名称',
contactsName: '152746565',
enterpriseName: '湖南',
unifiedSocialCreditCode: '45454',
contactsPhone: '*97889461561',
effectiveDateStr: '废弃eww',
enStatusStr2: '正常',
enStatusStr3: '正常',
unifiedSocialCreditCode3: '常用服务',
unifiedSocialCreditCode2: '正常',
tenantId: 1
},
{
storeName: '企业名称',
contactsName: '152746565',
enterpriseName: '湖南',
unifiedSocialCreditCode: '45454',
contactsPhone: '*97889461561',
effectiveDateStr: '废弃eww',
enStatusStr2: '正常',
enStatusStr3: '正常',
unifiedSocialCreditCode3: '常用服务',
unifiedSocialCreditCode2: '正常',
tenantId: 2
},
]
@ViewChild('st', { static: false }) st!: STComponent; @ViewChild('st', { static: false }) st!: STComponent;
@ViewChild('sf', { static: false }) sf!: SFComponent; @ViewChild('sf', { static: false }) sf!: SFComponent;
constructor(public service: UsermanageService, private modal: NzModalService, private router: Router, private ar: ActivatedRoute) {} constructor(public service: UsermanageService, private modal: NzModalService, private router: Router, private ar: ActivatedRoute) {}
/**
* 查询字段个数navigate
*/
get queryFieldCount(): number {
return Object.keys(this.schema?.properties || {}).length;
}
/** /**
* 查询参数 * 查询参数
@ -60,6 +25,7 @@ export class FreightComponentsListComponent implements OnInit {
get reqParams() { get reqParams() {
const params: any = { const params: any = {
...(this.sf && this.sf.value), ...(this.sf && this.sf.value),
listSource: 1
}; };
if (this.sf?.value.effectiveDate) { if (this.sf?.value.effectiveDate) {
params.effectiveDateStart = this.sf?.value.effectiveDate[0]; params.effectiveDateStart = this.sf?.value.effectiveDate[0];
@ -71,13 +37,13 @@ export class FreightComponentsListComponent implements OnInit {
} }
get selectedRows() { get selectedRows() {
return this.st?.list.filter((item) => item.checked) || []; return this.st?.list.filter(item => item.checked) || [];
} }
ngOnInit() { ngOnInit() {
this.initSF(); this.initSF();
this.initST(); this.initST();
this.ar.url.subscribe((params) => { this.ar.url.subscribe(params => {
this.st?.load(1); this.st?.load(1);
}); });
} }
@ -93,105 +59,117 @@ export class FreightComponentsListComponent implements OnInit {
expand: { expand: {
type: 'boolean', type: 'boolean',
ui: { ui: {
hidden: true, hidden: true
}, }
}, },
storeName: { title: '企业名称', type: 'string', ui: { showRequired: false } }, enterpriseName: {
contactsName: { title: '企业名称',
type: 'string',
ui: {
placeholder: '请输入',
showRequired: false
}
},
mobile: {
title: '联系人', title: '联系人',
type: 'string', type: 'string',
ui: { ui: {
showRequired: false, placeholder: '请输入',
}, showRequired: false
}
}, },
unifiedSocialCreditCode: { networkTransporter: {
title: '税源地', title: '网络货运人',
type: 'string', type: 'string',
ui: { ui: {
showRequired: false, placeholder: '请输入',
}, showRequired: false
}
}, },
enStatus: { source: {
type: 'string', type: 'string',
title: '货主状态', title: '注册渠道',
enum: [ enum: [
{ label: '全部', value: '' }, { label: '全部', value: '' },
{ label: '正常', value: 0 }, { label: '自己录入', value: 1 },
{ label: '冻结', value: 1 }, { label: '运营录入', value: 2 }
{ label: '废弃', value: 2 },
], ],
default: '', default: '',
ui: { ui: {
widget: 'select', widget: 'select',
visibleIf: { visibleIf: {
expand: (value: boolean) => value, expand: (value: boolean) => value
}, }
}, }
}, },
enStatus2: { crmStatus: {
type: 'string', type: 'string',
title: 'CRM审核状态', title: 'CRM审核状态',
enum: [ enum: [
{ label: '全部', value: '' }, { label: '全部', value: '' },
{ label: '正常', value: 0 }, { label: '待审核', value: '10' },
{ label: '冻结', value: 1 }, { label: '审核通过', value: '20' },
{ label: '废弃', value: 2 }, { label: '驳回', value: '30' }
], ],
default: '', default: '',
ui: { ui: {
widget: 'select', widget: 'select',
visibleIf: { visibleIf: {
expand: (value: boolean) => value, expand: (value: boolean) => value
}, }
}, }
}, },
}, lockedStatus: {
type: 'string',
title: '企业状态',
enum: [
{ label: '全部', value: '' },
{ label: '正常', value: 0 },
{ label: '冻结', value: 1 }
],
default: '',
ui: {
widget: 'select',
visibleIf: {
expand: (value: boolean) => value
}
}
}
}
}; };
this.ui = { '*': { spanLabelFixed: 90, grid: { span: 8, gutter: 4 }, enter: () => this.st.load() } }; this.ui = { '*': { spanLabelFixed: 110, grid: { lg: 8, md: 12, sm: 12, xs: 24 }, enter: () => this.st.load() } };
} }
initST() { initST() {
this.columns = [ this.columns = [
// { title: '', type: 'checkbox', className: 'text-center' }, // { title: '', type: 'checkbox', className: 'text-center' },
{ title: '企业名称', className: 'text-center', index: 'storeName' }, { title: '企业名称', className: 'text-center', index: 'enterpriseName' },
{ title: '联系人', className: 'text-center', index: 'contactsName' }, { title: '联系人', className: 'text-center', index: 'contacter' },
{ title: '税源地', className: 'text-center', render: 'enterpriseName' }, { title: '网络货运人', className: 'text-center', index: 'networkTransporter' },
{ title: '累计运单金额', className: 'text-center', index: 'unifiedSocialCreditCode' }, { title: '常用服务', className: 'text-center', index: 'oftenUsedServices', type: 'enum', enum: { 10: '整车发货', 20: '大宗发货' } },
{ title: '道运证', className: 'text-center', index: 'contactsPhone', { title: '推广业务员', className: 'text-center', render: 'promotersTelephone' },
render: 'contactsPhone' { title: '注册渠道', className: 'text-center', index: 'source', type: 'enum', enum: { 1: '自己录入', 2: '运营录入' } },
},
{ title: '企业状态', className: 'text-center', index: 'effectiveDateStr',
type: 'badge',
badge: {
: { text: '正常', color: 'success' },
: { text: '冻结', color: 'warning' },
: { text: '废弃', color: 'default' },
},
},
{ {
title: 'CRM审核状态', title: 'CRM审核状态',
className: 'text-center', className: 'text-center',
index: 'enStatusStr2', index: 'crmStatus',
type: 'badge', type: 'badge',
badge: { badge: {
: { text: '正常', color: 'success' }, 10: { text: '待审核', color: 'default' },
: { text: '冻结', color: 'warning' }, 20: { text: '已成功', color: 'success' },
: { text: '废弃', color: 'default' }, 30: { text: '审核失败', color: 'warning' }
}, }
}, },
{ {
title: '代收权限', title: '企业状态',
className: 'text-center', className: 'text-center',
index: 'enStatusStr3', index: 'lockedStatus',
type: 'badge', type: 'badge',
badge: { badge: {
: { text: '正常', color: 'success' }, 0: { text: '正常', color: 'success' },
: { text: '冻结', color: 'warning' }, 1: { text: '冻结', color: 'error' }
: { text: '废弃', color: 'default' }, }
},
}, },
{ title: '常用服务', className: 'text-center', index: 'unifiedSocialCreditCode3' },
{ title: '推广业务员', className: 'text-center', index: 'unifiedSocialCreditCode2' },
{ {
title: '操作', title: '操作',
width: '170px', width: '170px',
@ -199,13 +177,13 @@ export class FreightComponentsListComponent implements OnInit {
buttons: [ buttons: [
{ {
text: '查看', text: '查看',
click: (item) => { click: item => {
this.router.navigate(['./detail', item.tenantId], { relativeTo: this.ar }); this.router.navigate(['./detail', item.id], { relativeTo: this.ar });
// this.router.navigate(['./view', item.id], { relativeTo: this.ar, queryParams: { tenantId: item.tenantId } }); // this.router.navigate(['./view', item.id], { relativeTo: this.ar, queryParams: { tenantId: item.tenantId } });
}, }
}, }
], ]
}, }
]; ];
} }
daoyun(item: any) { daoyun(item: any) {
@ -216,7 +194,7 @@ export class FreightComponentsListComponent implements OnInit {
this.sf?.setValue('/expand', this._$expand); this.sf?.setValue('/expand', this._$expand);
} }
creat() { creat() {
this.router.navigate(['./new',], { relativeTo: this.ar }); this.router.navigate(['./new'], { relativeTo: this.ar });
} }
/** /**
* 重置表单 * 重置表单

View File

@ -183,7 +183,7 @@ export class FreightComponentsListViewComponent implements OnInit {
const params = { const params = {
regionCode: code, regionCode: code,
}; };
const res = await this.service.asyncRequest(this.service.$api_get_region_detailByCode, params, 'POST', true); const res = await this.service.asyncRequest(this.service.$api_get_one, params, 'POST', true);
// if (res && res.regionFullName) { // if (res && res.regionFullName) {
// const arr = res.regionFullName.split(','); // const arr = res.regionFullName.split(',');
// res.regionFullName = arr.reverse().join('-'); // res.regionFullName = arr.reverse().join('-');
@ -203,7 +203,7 @@ export class FreightComponentsListViewComponent implements OnInit {
*/ */
freezeOrResume(type: number) { freezeOrResume(type: number) {
this.service.http this.service.http
.post(this.service.$api_set_freezeOrResume, { .post(this.service.$api_get_one, {
tenantId: this.route.snapshot.params.id, tenantId: this.route.snapshot.params.id,
// tenantId: this.route.snapshot.queryParams.tenantId, // tenantId: this.route.snapshot.queryParams.tenantId,
status: type, status: type,
@ -240,7 +240,7 @@ export class FreightComponentsListViewComponent implements OnInit {
} else { } else {
Object.assign(params, this.sf1?.value); Object.assign(params, this.sf1?.value);
} }
this.service.http.post(this.service.$api_set_freezeOrResume, params).subscribe((res) => { this.service.http.post(this.service.$api_get_one, params).subscribe((res) => {
if (res.data === true) { if (res.data === true) {
this.service.msgSrv.success(`编辑成功!`); this.service.msgSrv.success(`编辑成功!`);
this.ngOnInit(); this.ngOnInit();

View File

@ -137,7 +137,7 @@ export class FreightComponentsUserDetailComponent implements OnInit {
tenantId: this.route.snapshot.params.id, tenantId: this.route.snapshot.params.id,
// tenantId: this.route.snapshot.queryParams.tenantId, // tenantId: this.route.snapshot.queryParams.tenantId,
}; };
const res = await this.service.asyncRequest(this.service.$api_get_supplier_info, params); const res = await this.service.asyncRequest(this.service.$api_get_one, params);
// // 商品资质 // // 商品资质
// if (res.enterpriseBusinessJson) { // if (res.enterpriseBusinessJson) {
// res.enterpriseBusinessJson.aptitudes = res.enterpriseBusinessJson?.aptitudes ? res.enterpriseBusinessJson.aptitudes.split(',') : []; // res.enterpriseBusinessJson.aptitudes = res.enterpriseBusinessJson?.aptitudes ? res.enterpriseBusinessJson.aptitudes.split(',') : [];
@ -177,7 +177,7 @@ export class FreightComponentsUserDetailComponent implements OnInit {
const params = { const params = {
regionCode: code, regionCode: code,
}; };
const res = await this.service.asyncRequest(this.service.$api_get_region_detailByCode, params, 'POST', true); const res = await this.service.asyncRequest(this.service.$api_get_one, params, 'POST', true);
// if (res && res.regionFullName) { // if (res && res.regionFullName) {
// const arr = res.regionFullName.split(','); // const arr = res.regionFullName.split(',');
// res.regionFullName = arr.reverse().join('-'); // res.regionFullName = arr.reverse().join('-');
@ -256,7 +256,7 @@ export class FreightComponentsUserDetailComponent implements OnInit {
} else { } else {
Object.assign(params, this.sf1?.value); Object.assign(params, this.sf1?.value);
} }
this.service.http.post(this.service.$api_set_freezeOrResume, params).subscribe((res) => { this.service.http.post(this.service.$api_get_one, params).subscribe((res) => {
if (res.data === true) { if (res.data === true) {
this.service.msgSrv.success(`编辑成功!`); this.service.msgSrv.success(`编辑成功!`);
this.ngOnInit(); this.ngOnInit();

View File

@ -13,77 +13,14 @@ import { BaseService } from 'src/app/shared/services/core/base.service';
import { EAFileUtil } from 'src/app/shared/utils/file.util'; import { EAFileUtil } from 'src/app/shared/utils/file.util';
@Injectable({ @Injectable({
providedIn: 'root', providedIn: 'root'
}) })
export class UsermanageService extends BaseService { export class UsermanageService extends BaseService {
public $api_add_one!: string; // 查询企业列表
public $api_add_many!: string; $api_get_freight_list = '/api/mdc/cuc/enterpriseInfo/operate/list/page';
public $api_edit_one!: string;
public $api_edit_many!: string;
public $api_del_one!: string;
public $api_del_many!: string;
public $api_get_many!: string;
public $api_get_one!: string;
public $api_get_page!: string;
public $api_export!: string;
public $api_import!: string;
public $api_import_download_tpl!: string;
// 平台用户列表
$api_get_page_user = '/cuc/userApp/getOperatorUserList?_allow_anonymous=true';
// 获取供应商采购商应用
$api_get_supplier_purchaserApp = '/cuc/appInfo/getSupplierPurchaserApp?_allow_anonymous=true';
// 供应商列表 // 查询企业详情
$api_get_supplier_page = '/cuc/operator/list/listSupplierPage?_allow_anonymous=true'; $api_get_freight_detail = '/api/mdc/cuc/enterpriseInfo/operate/detail';
// 供应商详情
$api_get_supplier_info = '/cuc/operator/selectSupplierDetailInfo?_allow_anonymous=true';
// 用户冻结或恢复应用用户
$api_set_freezeOrResume = '/cuc/operator/updateSupplierInfo?_allow_anonymous=true';
// 获取一、二、三级地区详情
$api_getRegionToThree = '/cms/region/getRegionToThree?_allow_anonymous=true';
// 根据地区code查询列表
$api_getRegionByCode = '/cms/region/getRegionByCode?_allow_anonymous=true';
// 根据地区code查询地区详情
$api_get_region_detailByCode = '/cms/region/getRegionDetailByCode?_allow_anonymous=true';
// 查询供应商申请列表分页
$api_get_supplier_audit_page = `/cuc/operator/audit/listSupplierPage?_allow_anonymous=true`;
// 查询供应商入驻详情
$api_get_supplier_entryInfo = `/cuc/operator/selectSupplierEntryDetailInfo?_allow_anonymous=true`;
// 审核供应商
$api_auditSupplier = `/cuc/operator/auditSupplier?_allow_anonymous=true`;
// 查询采购商列表分页
$api_get_purchaserList = `/cuc/operator/list/queryPurchaserPage`;
// 查询采购商申请列表分页
$api_get_purchaserAudit = `/cuc/operator/audit/queryPurchaserPage`;
// 查询采购商认证详情
$api_get_purchaser_detailInfo = `/cuc/operator/selectPurchaserDetailInfo`;
// 查询采购商审核总数
$api_query_purchaser_count = `/cuc/operator/queryPurchaserCount`;
// 获取供应商审核总数
$api_query_supplier_count = `/cuc/operator/querySupplierCount`;
// 审核企业详情
$api_get_cache_enterprise_info = '';
// 获取审核进度
$api_get_progress = '/cuc/reviewRecordInfo/getReviewProgress';
// 查询流程信息列表
$api_get_progressInfoList = '/cuc/processInfo/getProcessInfoList';
// 审核通过
$api_set_audit_pass = '/cuc/reviewRecordInfo/reviewPassed';
// 审核拒绝
$api_set_audit_reject = '/cuc/reviewRecordInfo/reviewRejected';
// 发起签约 //撤回签约
$api_get_startSigning = `/cuc/operator/startSigning?_allow_badcode=true`;
// 发起续约 //撤回续约
$api_get_startRenewalContract = `/cuc/operator/startRenewalContract?_allow_badcode=true`;
// 获取审核记录
$api_get_reviewRecordInfoList = '/cuc/reviewRecordInfo/getReviewRecordInfoList';
// 查看合同详情
$api_get_contract_detail = `/scce/etc/etc/contractDetail/getContractByContractNo`;
constructor(public injector: Injector) { constructor(public injector: Injector) {
super(injector); super(injector);