Browse Source

经营类证照完善

beijing
陈鹏飞 3 years ago
parent
commit
8b5fbbb9ef
  1. 2
      src/app/pages/home/home.component.html
  2. 2
      src/app/pages/license/nav-bar/nav-bar.component.ts
  3. 1
      src/app/pages/license/update-category/edit-update-category/edit-update-category.component.html
  4. 2
      src/app/pages/license/update-category/edit-update-category/edit-update-category.component.scss
  5. 10
      src/app/pages/license/update-category/edit-update-category/edit-update-category.component.ts
  6. 30
      src/app/pages/license/update-category/update-category.component.html
  7. 14
      src/app/pages/license/update-category/update-category.component.ts

2
src/app/pages/home/home.component.html

@ -34,7 +34,7 @@
预警记录
</li>
<li [routerLink]="['/license/petrolStation']" routerLinkActive="router-link-active">
照管理
</li>
</div>

2
src/app/pages/license/nav-bar/nav-bar.component.ts

@ -9,7 +9,7 @@ export class NavBarComponent implements OnInit {
constructor() { }
navList = ['通知','更新类证件','档案类证件','历史纪录']
navList = ['通知','经营类证照','资产类证照','历史纪录']
selectedItem = '通知'
selectNav(item){
this.selectedItem = item

1
src/app/pages/license/update-category/edit-update-category/edit-update-category.component.html

@ -63,6 +63,7 @@
</div>
<div class="btnbox">
<button nz-button type="submit" class="ok" (click)="submitReview()">提交审核</button>
<button nz-button type="submit" class="ok" (click)="ok()">确定</button>
<button nz-button type="button" class="cancel" (click)="destroyModal()">取消</button>
</div>

2
src/app/pages/license/update-category/edit-update-category/edit-update-category.component.scss

@ -70,7 +70,7 @@
}
button:nth-child(2) {
margin-left: 16px;
margin: 0 15px;
}
.ok {

10
src/app/pages/license/update-category/edit-update-category/edit-update-category.component.ts

@ -57,8 +57,16 @@ export class EditUpdateCategoryComponent implements OnInit {
this.modal.destroy({ data: 'this the result data' });
}
isSubmit: boolean = false;
ok() {
this.modal.triggerOk()
this.isSubmit = false;
this.modal.triggerOk();
}
//提交审核
submitReview(){
this.isSubmit = true;
this.modal.triggerOk();
}
//check change

30
src/app/pages/license/update-category/update-category.component.html

@ -5,17 +5,17 @@
<thead>
<tr>
<th [nzWidth]="'16%'">
<span style="margin-left: 30px;">名称</span>
<span style="margin-left: 30px;">名称</span>
</th>
<th>证件编号</th>
<th>证件有效期</th>
<th>附件</th>
<th>有效期类型</th>
<th>证照编号</th>
<th>证照效期</th>
<th>有效天数</th>
<th>办理类型</th>
<!-- <th>是否年检</th> -->
<!-- <th>是否年检</th>
<th>提交时间</th>
<th>审核状态</th>
<th>审核状态</th> -->
<th>预警状态</th>
<th>附件</th>
<th>操作</th>
</tr>
</thead>
@ -26,11 +26,6 @@
</td>
<td>{{item.licenseCode || ''}}</td>
<td>{{item.isLongTerm ? '长期证照' : (item.validityEndTime | date:"yyyy/MM/dd")}}</td>
<td>
<img *ngIf="item.imageUrl && getFileType(item.imageUrl) == 'img'" [src]="item.imageUrl" (click)="viewImg(item.imageUrl)">
<img *ngIf="item.imageUrl && getFileType(item.imageUrl) == 'word'" src="../../../../assets/images/license/word.png" (click)="lookFile(item)">
<img *ngIf="item.imageUrl && getFileType(item.imageUrl) == 'pdf'" src="../../../../assets/images/license/pdf.png" (click)="lookFile(item)">
</td>
<td>
<ng-container *ngIf="item.isLongTerm; else elseTemplate">
长期
@ -41,22 +36,27 @@
</td>
<td>{{getHandleTypes(item.handleTypes)}}</td>
<!-- <td><span *ngIf="item.isYearlyCheck">是</span><span *ngIf="!item.isYearlyCheck">否</span></td> -->
<!-- <td><span *ngIf="item.isYearlyCheck">是</span><span *ngIf="!item.isYearlyCheck">否</span></td>
<td>{{item.committedTime | date:"yyyy/MM/dd"}}<span *ngIf="!item.committedTime">未提交审核</span></td>
<td>
<span *ngIf="item.auditLog">{{item.auditLog.auditStatusDesc || ''}}</span>
</td>
</td> -->
<td>
<span *ngIf="item.licenseViolationType == 0"></span>
<span *ngIf="item.licenseViolationType == 1">办理提醒</span>
<span *ngIf="item.licenseViolationType == 2">临期提醒</span>
<span *ngIf="item.licenseViolationType == 3">逾期报警</span>
</td>
<td>
<img *ngIf="item.imageUrl && getFileType(item.imageUrl) == 'img'" [src]="item.imageUrl" (click)="viewImg(item.imageUrl)">
<img *ngIf="item.imageUrl && getFileType(item.imageUrl) == 'word'" src="../../../../assets/images/license/word.png" (click)="lookFile(item)">
<img *ngIf="item.imageUrl && getFileType(item.imageUrl) == 'pdf'" src="../../../../assets/images/license/pdf.png" (click)="lookFile(item)">
</td>
<td class="operation">
<span class="blueColor" (click)="edit(item)">编辑</span>
<span class="blueColor" (click)="details(item)">详情</span>
<span class="blueColor" (click)="cancelReview(item)" *ngIf="item.auditStatus === 1">撤销审核</span>
<span class="blueColor" (click)="submitReview(item)" *ngIf="item.auditStatus != 1">提交审核</span>
<!-- <span class="blueColor" (click)="submitReview(item)" *ngIf="item.auditStatus != 1">提交审核</span> -->
</td>
</tr>
</tbody>

14
src/app/pages/license/update-category/update-category.component.ts

@ -143,11 +143,18 @@ export class UpdateCategoryComponent implements OnInit {
body.validityStartTime = instance.isNoLongTermTime[0] || new Date()
body.validityEndTime = instance.isNoLongTermTime[1] || new Date()
}
this.http.post('/api/services/app/StationValidityLicense/Create', body).subscribe(data => {
this.http.post('/api/services/app/StationValidityLicense/Create', body).subscribe((data:any) => {
if (!instance.isSubmit) {
resolve(data);
this.getStationList();
this.message.create('success', '修改成功!');
return true
return true;
} else { //提交审核
this.submitReview(data.result).then(res=>{
resolve(data);
return true;
});
}
})
})
} else {
@ -191,10 +198,13 @@ export class UpdateCategoryComponent implements OnInit {
this.message.create('warning', '该证照请编辑保存后再提交审核!');
return
}
return new Promise((resolve, reject)=>{
let params = { id: item.id }
this.http.post('/api/services/app/StationValidityLicense/Commit', {},{params}).subscribe(data => {
this.message.create('success', '提交审核成功!');
this.getStationList();
resolve('success');
})
})
}

Loading…
Cancel
Save