Browse Source

[完善]油站区域和公司不能修改;组织机构油站级别对应isGasStation

beijing
邵佳豪 2 years ago
parent
commit
66741ba30a
  1. 27
      src/app/pages/oil-station-info/oil-station-info.component.html
  2. 2
      src/app/pages/oil-station-info/oil-station-info.component.ts
  3. 4
      src/app/system-management/organization/addor/addor.component.html
  4. 4
      src/app/system-management/organization/editor/editor.component.html
  5. 14
      src/app/system-management/organization/organization.component.ts

27
src/app/pages/oil-station-info/oil-station-info.component.html

@ -68,27 +68,28 @@
</nz-form-item> </nz-form-item>
</td> --> </td> -->
</tr> </tr>
<tr> <tr style="height: 35px;">
<td class="head">区域名称</td> <td class="head">区域名称</td>
<td class="text"> <td class="text organizations">
<nz-form-item> <!-- <nz-form-item>
<nz-form-control> <nz-form-control>
<nz-input-group> <nz-input-group>
<input [(ngModel)]="httpBody.locationName" nz-input type="text" formControlName="locationName" /> <input [(ngModel)]="httpBody.locationName" nz-input type="text" formControlName="locationName" />
</nz-input-group> </nz-input-group>
</nz-form-control> </nz-form-control>
</nz-form-item> </nz-form-item> -->
{{httpBody.locationName}}
</td> </td>
<td class="head">公司名称<span style="color: red;">*</span></td> <td class="head">公司名称</td>
<td class="text"> <td class="text organizations">
<nz-form-item> <!-- <nz-form-item>
<nz-form-control> <nz-form-control>
<nz-input-group> <nz-input-group>
<input [(ngModel)]="httpBody.companyName" nz-input type="text" <input [(ngModel)]="httpBody.companyName" nz-input type="text" formControlName="companyName" />
formControlName="companyName" />
</nz-input-group> </nz-input-group>
</nz-form-control> </nz-form-control>
</nz-form-item> </nz-form-item> -->
{{httpBody.companyName}}
</td> </td>
</tr> </tr>
<tr> <tr>
@ -700,9 +701,11 @@
style="color: #fff;margin-right: 30px;">当前审核状态:{{httpBody.auditLog.auditStatusDesc}}</span> style="color: #fff;margin-right: 30px;">当前审核状态:{{httpBody.auditLog.auditStatusDesc}}</span>
<span *ngIf="httpBody.auditLog" style="color: #fff;">审核意见:{{httpBody.auditLog.rejectReason}}</span> <span *ngIf="httpBody.auditLog" style="color: #fff;">审核意见:{{httpBody.auditLog.rejectReason}}</span>
<button [nzLoading]="isSubmitAuditLoading" nz-button type="button" <button [nzLoading]="isSubmitAuditLoading" nz-button type="button"
*ngIf="httpBody.auditStatus != 1 && httpBody.auditStatus != 2 && userdata.userName != 'admin'" (click)="submitAudit()">提交审核</button> *ngIf="httpBody.auditStatus != 1 && httpBody.auditStatus != 2 && userdata.userName != 'admin'"
(click)="submitAudit()">提交审核</button>
<button [nzLoading]="isRevocationAuditLoading" nz-button type="button" <button [nzLoading]="isRevocationAuditLoading" nz-button type="button"
*ngIf="httpBody.auditStatus == 1 || httpBody.auditStatus == 2 && userdata.userName != 'admin'" (click)="revocationAudit()">撤销审核</button> *ngIf="httpBody.auditStatus == 1 || httpBody.auditStatus == 2 && userdata.userName != 'admin'"
(click)="revocationAudit()">撤销审核</button>
<button [nzLoading]="isLoadingSave" nz-button type="button" (click)="submitForm()" <button [nzLoading]="isLoadingSave" nz-button type="button" (click)="submitForm()"
*ngIf="httpBody.auditStatus != 1">保存</button> *ngIf="httpBody.auditStatus != 1">保存</button>
<button (click)="exportExcel()" nz-button type="button"><img style="vertical-align: top;margin-right: 6px;" <button (click)="exportExcel()" nz-button type="button"><img style="vertical-align: top;margin-right: 6px;"

2
src/app/pages/oil-station-info/oil-station-info.component.ts

@ -28,7 +28,7 @@ export class OilStationInfoComponent implements OnInit {
laneNumber: [null], laneNumber: [null],
address: [null], address: [null],
locationName: [null], locationName: [null],
companyName: [null, [Validators.required]], companyName: [null],
leaderName: [null], leaderName: [null],
leaderContact: [null], leaderContact: [null],
stationLevel: [null], stationLevel: [null],

4
src/app/system-management/organization/addor/addor.component.html

@ -17,11 +17,11 @@
</nz-select> </nz-select>
</nz-form-control> </nz-form-control>
</nz-form-item> </nz-form-item>
<nz-form-item> <!-- <nz-form-item>
<nz-form-control> <nz-form-control>
<label nz-checkbox formControlName="isGasStation">是否为加油站</label> <label nz-checkbox formControlName="isGasStation">是否为加油站</label>
</nz-form-control> </nz-form-control>
</nz-form-item> </nz-form-item> -->
<nz-form-item> <nz-form-item>
<nz-form-control> <nz-form-control>
<label nz-checkbox formControlName="isParticipationAudit">是否参与审核</label> <label nz-checkbox formControlName="isParticipationAudit">是否参与审核</label>

4
src/app/system-management/organization/editor/editor.component.html

@ -17,11 +17,11 @@
</nz-select> </nz-select>
</nz-form-control> </nz-form-control>
</nz-form-item> </nz-form-item>
<nz-form-item> <!-- <nz-form-item>
<nz-form-control> <nz-form-control>
<label [(ngModel)]="datacopy.isGasStation" nz-checkbox formControlName="isGasStation">是否为加油站</label> <label [(ngModel)]="datacopy.isGasStation" nz-checkbox formControlName="isGasStation">是否为加油站</label>
</nz-form-control> </nz-form-control>
</nz-form-item> </nz-form-item> -->
<nz-form-item> <nz-form-item>
<nz-form-control> <nz-form-control>
<label [(ngModel)]="isParticipationAudit" nz-checkbox formControlName="isParticipationAudit">是否参与审核</label> <label [(ngModel)]="isParticipationAudit" nz-checkbox formControlName="isParticipationAudit">是否参与审核</label>

14
src/app/system-management/organization/organization.component.ts

@ -96,7 +96,7 @@ export class OrganizationComponent implements OnInit {
addOr(node?: any) { addOr(node?: any) {
console.log(node) // console.log(node)
const modal = this.modal.create({ const modal = this.modal.create({
nzTitle: node ? '新增组织机构' : '新增一级组织机构', nzTitle: node ? '新增组织机构' : '新增一级组织机构',
nzContent: AddorComponent, nzContent: AddorComponent,
@ -104,13 +104,15 @@ export class OrganizationComponent implements OnInit {
nzWidth: 288, nzWidth: 288,
nzComponentParams: {}, nzComponentParams: {},
nzOnOk: async () => { nzOnOk: async () => {
console.log('hhhhhhh', instance.validateForm) // console.log('hhhhhhh', instance.validateForm)
if (instance.validateForm.valid) { if (instance.validateForm.valid) {
await new Promise(resolve => { await new Promise(resolve => {
let isGasStation
instance.validateForm.value.OrgnizationLevel == 4 ? isGasStation = true : isGasStation = false
let body = { let body = {
parentId: node ? Number(node.key) : null, parentId: node ? Number(node.key) : null,
displayName: instance.validateForm.value.name, displayName: instance.validateForm.value.name,
isGasStation: instance.validateForm.value.isGasStation, isGasStation: isGasStation,
isSkipAudit: !instance.validateForm.value.isParticipationAudit, isSkipAudit: !instance.validateForm.value.isParticipationAudit,
level: instance.validateForm.value.OrgnizationLevel, level: instance.validateForm.value.OrgnizationLevel,
} }
@ -147,14 +149,16 @@ export class OrganizationComponent implements OnInit {
data: node.origin, data: node.origin,
}, },
nzOnOk: async () => { nzOnOk: async () => {
console.log('hhhhhhh', instance.validateForm) // console.log('hhhhhhh', instance.validateForm)
if (instance.validateForm.valid) { if (instance.validateForm.valid) {
await new Promise(resolve => { await new Promise(resolve => {
let isGasStation
instance.validateForm.value.OrgnizationLevel == 4 ? isGasStation = true : isGasStation = false
let body = { let body = {
id: node.origin.id, id: node.origin.id,
parentId: node.origin.parentId, parentId: node.origin.parentId,
displayName: instance.validateForm.value.name, displayName: instance.validateForm.value.name,
isGasStation: instance.validateForm.value.isGasStation, isGasStation: isGasStation,
isSkipAudit: !instance.validateForm.value.isParticipationAudit, isSkipAudit: !instance.validateForm.value.isParticipationAudit,
level: instance.validateForm.value.OrgnizationLevel level: instance.validateForm.value.OrgnizationLevel
} }

Loading…
Cancel
Save