This commit is contained in:
wangshiming
2022-02-16 16:38:09 +08:00
parent 331c3207a7
commit f1dc67f92a
6 changed files with 69 additions and 99 deletions

View File

@ -367,25 +367,6 @@ export class SupplyManagementBulkComponent implements OnInit {
}, 500);
}
/**
* 更新运费
*/
updatePrice(item: any) {
const modalRef = this.modal.create({
nzTitle: '修改单价',
nzWidth: '600px',
nzContent: SupplyManagementUpdatePriceComponent,
nzComponentParams: {
i: item,
},
nzFooter: null,
});
modalRef.afterClose.subscribe(res => {
if (res) {
this.st.reload();
}
})
}
/**
* 二维码

View File

@ -1,29 +1,37 @@
<!--
* @Description :
* @Version : 1.0
* @Author : Shiming
* @Date : 2021-12-03 11:10:14
* @LastEditors : Shiming
* @LastEditTime : 2022-02-16 15:02:33
* @FilePath : \\tms-obc-web\\src\\app\\routes\\supply-management\\components\\update-price\\update-price.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved.
-->
<div class="mb-lg">
<nz-spin *ngIf="!i" class="modal-spin"></nz-spin>
<sf *ngIf="i" #sf mode="edit" [schema]="schema" [ui]="ui" [formData]="i" button="none">
<ng-template sf-template="freightPrice" let-me let-ui="ui" let-schema="schema">
<nz-input-group [nzAddOnAfter]="freightType[i?.freightType]">
<input [max]="99999999" placeholder="请输入" type="number" [ngModel]="me.value"
(ngModelChange)="me.setValue($event)" nz-input />
<input [max]="99999999" placeholder="请输入" type="number" [ngModel]="me.value" (ngModelChange)="me.setValue($event)" nz-input />
</nz-input-group>
</ng-template>
<div class="modal-footer text-center">
<button nz-button type="button" (click)="close()">取消</button>
<button nz-button type="submit" nzType="primary" (click)="save(sf.value)" [disabled]="!sf.valid"
[nzLoading]="service.http.loading">确定</button>
<button nz-button type="submit" nzType="primary" (click)="save(sf.value)" [disabled]="!sf.valid" [nzLoading]="service.http.loading"
>确定</button
>
</div>
</sf>
</div>
<div>
<h4>变更日志</h4>
<st #st [data]="service.$api_get_catalogue_member" [bordered]="true" [columns]="columns" [page]="{show:false}">
<st #st [data]="service.$api_getOperationLogRecordsList" [bordered]="true" [columns]="columns" [page]="{ show: false }" [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }">
<ng-template st-row="operator" let-item let-index="index">
<div>黎日湛</div>
<div>18811112222</div>
<span>{{item.operator}}</span>/
<span>{{item.telephone}}</span>
</ng-template>
</st>
</div>
<ng-template #addOnAfterTemplate>
<span> {{freightType[i?.freightType]}}</span>
<span> {{ freightType[i?.freightType] }}</span>
</ng-template>

View File

@ -28,10 +28,16 @@ export class SupplyManagementUpdatePriceComponent implements OnInit {
public service: SupplyManagementService
) { }
get reqParams() {
return {
operateObject: this.record?.resourceCode,
operateType: 7,
};
}
ngOnInit(): void {
this.initSF();
this.initSt();
console.log(this.record)
if (this.record?.id) this.getGoodsResourceShipperDeatail(this.record?.id);
}
@ -88,8 +94,8 @@ export class SupplyManagementUpdatePriceComponent implements OnInit {
*/
initSt() {
this.columns = [
{ title: '日志内容', width: 120, index: 'owner', className: 'text-center' },
{ title: '更新时间', index: 'goodsQuantity', width: 100, className: 'text-center' },
{ title: '日志内容', width: 120, index: 'operationContent', className: 'text-center' },
{ title: '更新时间', index: 'operatorTimestamp', width: 100, className: 'text-center' },
{ title: '操作人', width: 100, render: 'operator', className: 'text-center' },
];
}