fix bug
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2021-12-23 13:39:58
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-03-07 17:56:51
|
||||
* @LastEditTime : 2022-03-08 13:47:16
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\vehicle-detail-change\\vehicle-detail-change.component.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
@ -109,18 +109,19 @@ export class OrderManagementVehicleDetailChangeComponent implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
console.log(this.id);
|
||||
this.initSF();
|
||||
this.initData();
|
||||
this.initSF3();
|
||||
this.initSF4();
|
||||
this.initData();
|
||||
}
|
||||
initSF() {
|
||||
console.log(this.i);
|
||||
console.log(this.i.billStatus == '4' || this.i.billStatus == '3');
|
||||
this.schema = {
|
||||
properties: {
|
||||
loadingLadingBillFilePath: {
|
||||
type: 'string',
|
||||
title: '装货凭证',
|
||||
readOnly: this.i.billStatus !== '4' || this.i.billStatus !== '3',
|
||||
ui: {
|
||||
widget: 'upload',
|
||||
action: apiConf.fileUpload,
|
||||
@ -159,6 +160,7 @@ export class OrderManagementVehicleDetailChangeComponent implements OnInit {
|
||||
loadingPeopleVehiclesGoodsFilePath: {
|
||||
type: 'string',
|
||||
title: '',
|
||||
readOnly: this.i.billStatus !== '4' || this.i.billStatus !== '3',
|
||||
ui: {
|
||||
widget: 'upload',
|
||||
action: apiConf.fileUpload,
|
||||
@ -213,6 +215,7 @@ export class OrderManagementVehicleDetailChangeComponent implements OnInit {
|
||||
unloadingLadingBillFilePath: {
|
||||
type: 'string',
|
||||
title: '卸货凭证',
|
||||
readOnly: this.i.billStatus !== '4' || this.i.billStatus !== '3',
|
||||
ui: {
|
||||
widget: 'upload',
|
||||
action: apiConf.fileUpload,
|
||||
@ -251,6 +254,7 @@ export class OrderManagementVehicleDetailChangeComponent implements OnInit {
|
||||
unloadingPeopleVehiclesGoodsFilePath: {
|
||||
type: 'string',
|
||||
title: '',
|
||||
readOnly: this.i.billStatus !== '4' || this.i.billStatus !== '3',
|
||||
ui: {
|
||||
widget: 'upload',
|
||||
action: apiConf.fileUpload,
|
||||
@ -331,6 +335,7 @@ export class OrderManagementVehicleDetailChangeComponent implements OnInit {
|
||||
delete this.approvalLsit[key];
|
||||
}
|
||||
});
|
||||
this.initSF();
|
||||
// 对装货凭证进行初始化
|
||||
let arr: any = [];
|
||||
res?.receiptFilePath.forEach((element: any, index: any) => {
|
||||
|
||||
Reference in New Issue
Block a user