Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: your name
|
* @Author: your name
|
||||||
* @Date: 2022-01-05 11:01:55
|
* @Date: 2022-01-05 11:01:55
|
||||||
* @LastEditTime: 2022-01-06 10:23:19
|
* @LastEditTime: 2022-01-06 20:47:40
|
||||||
* @LastEditors: Please set LastEditors
|
* @LastEditors: Please set LastEditors
|
||||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
* @FilePath: \tms-obc-web\src\app\routes\contract-management\components\contract-template-detail\contract-template-detail.component.html
|
* @FilePath: \tms-obc-web\src\app\routes\contract-management\components\contract-template-detail\contract-template-detail.component.html
|
||||||
@ -15,9 +15,9 @@
|
|||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template #headerContent>
|
<ng-template #headerContent>
|
||||||
<div nz-row style="display: flex; justify-content: end;">
|
<div nz-row style="display: flex; justify-content: end;">
|
||||||
<div nz-col >
|
<div nz-col *ngIf="isUpdate">
|
||||||
<button nz-button nzSize="large" nzType="default" (click)="cancel()">取消</button>
|
<button nz-button nzSize="default" nzType="default" (click)="cancel()">取消</button>
|
||||||
<button class="ml-lg" nz-button nzSize="large" nzType="primary" (click)="save()">保存</button>
|
<button class="ml-lg" nz-button nzSize="default" nzType="primary" (click)="save()">保存</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
@ -32,18 +32,18 @@
|
|||||||
<div nz-col nzSpan="20" style="overflow: scroll">
|
<div nz-col nzSpan="20" style="overflow: scroll">
|
||||||
<nz-card class="card-height" *ngIf="!isUpdate">
|
<nz-card class="card-height" *ngIf="!isUpdate">
|
||||||
<div class="mb-md">
|
<div class="mb-md">
|
||||||
<div></div>
|
<div>{{detailList?.templateName}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div [innerHTML]="templateHTML | safehtml"></div>
|
<div [innerHTML]="detailList?.templateContent | safehtml"></div>
|
||||||
</nz-card>
|
</nz-card>
|
||||||
|
|
||||||
<nz-card class="card-height" *ngIf="isUpdate">
|
<nz-card class="card-height" *ngIf="isUpdate">
|
||||||
<div nz-row nzGutter="8">
|
<div nz-row nzGutter="8">
|
||||||
<div nz-col nzSpan="24">
|
<div class="title" style="width: 100%;">
|
||||||
<input nz-input placeholder="请输入合同标题" [(ngModel)]="title" />
|
<input style="width: 100%;" nz-input placeholder="请输入合同标题" [(ngModel)]="detailList.templateName" />
|
||||||
</div>
|
</div>
|
||||||
<div nz-col nzSpan="24" style="margin-top: 15px;">
|
<div nz-col nzSpan="24" style="margin-top: 15px;">
|
||||||
<sf #sf2 mode="edit" [schema]="schema2" [ui]="{ '*': { spanLabelFixed: 10, grid: { span: 24 }} }"
|
<sf #sf2 mode="edit" [formData]="sfdata2" [schema]="schema2" [ui]="{ '*': { spanLabelFixed: 10, grid: { span: 24 }} }"
|
||||||
button="none"> </sf>
|
button="none"> </sf>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -0,0 +1,4 @@
|
|||||||
|
.title {
|
||||||
|
padding-right: 4px;
|
||||||
|
padding-left: 14px !important;
|
||||||
|
}
|
||||||
@ -1,7 +1,8 @@
|
|||||||
|
import { Router } from '@angular/router';
|
||||||
/*
|
/*
|
||||||
* @Author: your name
|
* @Author: your name
|
||||||
* @Date: 2022-01-05 11:01:55
|
* @Date: 2022-01-05 11:01:55
|
||||||
* @LastEditTime: 2022-01-06 10:29:11
|
* @LastEditTime: 2022-01-06 20:49:42
|
||||||
* @LastEditors: Please set LastEditors
|
* @LastEditors: Please set LastEditors
|
||||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
* @FilePath: \tms-obc-web\src\app\routes\contract-management\components\contract-template-detail\contract-template-detail.component.ts
|
* @FilePath: \tms-obc-web\src\app\routes\contract-management\components\contract-template-detail\contract-template-detail.component.ts
|
||||||
@ -32,7 +33,8 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
|
|||||||
private nzModalService: NzModalService,
|
private nzModalService: NzModalService,
|
||||||
public service: ContractManagementService,
|
public service: ContractManagementService,
|
||||||
public route: ActivatedRoute,
|
public route: ActivatedRoute,
|
||||||
private datePipe: DatePipe
|
private datePipe: DatePipe,
|
||||||
|
private router: Router
|
||||||
) {}
|
) {}
|
||||||
textStatus = '新建模板'
|
textStatus = '新建模板'
|
||||||
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
||||||
@ -41,24 +43,29 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
|
|||||||
schema2: SFSchema = {};
|
schema2: SFSchema = {};
|
||||||
ui!: SFUISchema;
|
ui!: SFUISchema;
|
||||||
sfdata: any;
|
sfdata: any;
|
||||||
|
sfdata2: any;
|
||||||
title: any;
|
title: any;
|
||||||
templateHTML: any;
|
templateHTML: any;
|
||||||
|
detailList: any = {
|
||||||
|
templateName: ''
|
||||||
|
};
|
||||||
isUpdate = false;
|
isUpdate = false;
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.initSF()
|
this.initSF()
|
||||||
this.initSF2()
|
this.initSF2()
|
||||||
if(this.route.snapshot.queryParams.status == 1) {
|
if(this.route.snapshot.queryParams.status == 1) {
|
||||||
console.log('进来了吗')
|
|
||||||
// 新建
|
// 新建
|
||||||
this.isUpdate = true;
|
this.isUpdate = true;
|
||||||
} else if(this.route.snapshot.queryParams.status == 2) {
|
} else if(this.route.snapshot.queryParams.status == 2) {
|
||||||
// 编辑
|
// 编辑
|
||||||
this.textStatus = '编辑模板';
|
this.textStatus = '编辑模板';
|
||||||
this.isUpdate =false;
|
this.isUpdate =true;
|
||||||
|
this.initData(this.service.$api_get_contractTemplate)
|
||||||
}else if(this.route.snapshot.queryParams.status == 3) {
|
}else if(this.route.snapshot.queryParams.status == 3) {
|
||||||
// 编辑
|
// 编辑
|
||||||
this.textStatus = '查看模板';
|
this.textStatus = '查看模板';
|
||||||
this.isUpdate =false;
|
this.isUpdate =false;
|
||||||
|
this.initData(this.service.$api_get_contractTemplate)
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(this.route.snapshot.params.id)
|
console.log(this.route.snapshot.params.id)
|
||||||
@ -75,28 +82,41 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
|
|||||||
title: '模版名称',
|
title: '模版名称',
|
||||||
},
|
},
|
||||||
templateType: {
|
templateType: {
|
||||||
|
title: '模板类型',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '模版类型',
|
default: '',
|
||||||
enum: [
|
|
||||||
{ label: '需要', value: true },
|
|
||||||
{ label: '不需要', value: false }
|
|
||||||
],
|
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'dict-select',
|
||||||
errors: { required: '请选择' },
|
params: { dictKey: 'contract:template:type' },
|
||||||
placeholder: '请选择'
|
containAllLable:true,
|
||||||
}
|
|
||||||
},
|
|
||||||
contractType: {
|
|
||||||
type: 'string',
|
|
||||||
title: '单据类型',
|
|
||||||
ui: {
|
|
||||||
widget: 'select',
|
|
||||||
placeholder: '请选择',
|
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
templateType: value => value === true
|
_$expand: (value: boolean) => value,
|
||||||
|
},
|
||||||
|
} as SFSelectWidgetSchema,
|
||||||
|
},
|
||||||
|
// contractType: {
|
||||||
|
// type: 'string',
|
||||||
|
// title: '单据类型',
|
||||||
|
// ui: {
|
||||||
|
// widget: 'select',
|
||||||
|
// placeholder: '请选择',
|
||||||
|
// visibleIf: {
|
||||||
|
// templateType: value => value === true
|
||||||
|
// }
|
||||||
|
// } as SFSelectWidgetSchema
|
||||||
|
// },
|
||||||
|
contractType: {
|
||||||
|
title: '单据类型',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
ui: {
|
||||||
|
widget: 'dict-select',
|
||||||
|
params: { dictKey: 'contract:type' },
|
||||||
|
containAllLable:true,
|
||||||
|
visibleIf: {
|
||||||
|
templateType: value => value === "MX"
|
||||||
}
|
}
|
||||||
} as SFSelectWidgetSchema
|
} as SFSelectWidgetSchema,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -125,9 +145,18 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
initData(url: string) {
|
||||||
|
this.service.request(url, {id: this.route.snapshot.params.id}).subscribe((res) => {
|
||||||
|
console.log(res)
|
||||||
|
if(res) {
|
||||||
|
this.detailList = res;
|
||||||
|
this.sfdata = res;
|
||||||
|
this.sfdata2 = res;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
cancel() {
|
cancel() {
|
||||||
|
window.history.go(-1)
|
||||||
}
|
}
|
||||||
|
|
||||||
save () {
|
save () {
|
||||||
@ -135,5 +164,17 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
|
|||||||
console.log(this.sfdata);
|
console.log(this.sfdata);
|
||||||
console.log(this.sf2.value);
|
console.log(this.sf2.value);
|
||||||
console.log(this.title);
|
console.log(this.title);
|
||||||
|
const params = {
|
||||||
|
...this.sf.value,
|
||||||
|
...this.sf2.value,
|
||||||
|
templateTitle: this.title
|
||||||
|
}
|
||||||
|
this.service.request(this.service.$api_save_contractTemplate, params).subscribe((res: any) => {
|
||||||
|
console.log(res)
|
||||||
|
if(res) {
|
||||||
|
this.service.msgSrv.success("保存成功!")
|
||||||
|
this.router.navigate(['/contract-management/template'])
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: your name
|
* @Author: your name
|
||||||
* @Date: 2021-12-03 11:10:14
|
* @Date: 2021-12-03 11:10:14
|
||||||
* @LastEditTime: 2022-01-06 10:19:10
|
* @LastEditTime: 2022-01-06 20:38:46
|
||||||
* @LastEditors: Please set LastEditors
|
* @LastEditors: Please set LastEditors
|
||||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
* @FilePath: \tms-obc-web\src\app\routes\supply-management\components\vehicle\vehicle.component.html
|
* @FilePath: \tms-obc-web\src\app\routes\supply-management\components\vehicle\vehicle.component.html
|
||||||
@ -56,7 +56,7 @@
|
|||||||
[loading]="service.http.loading"
|
[loading]="service.http.loading"
|
||||||
>
|
>
|
||||||
<ng-template st-row="templateName" let-item let-index="index">
|
<ng-template st-row="templateName" let-item let-index="index">
|
||||||
<a (click)="view(item)">{{item.complaintCode}}</a>
|
<a (click)="view(item)">{{item.templateName}}</a>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</st>
|
</st>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -79,7 +79,7 @@ export class OrderManagementTemplateComponent implements OnInit {
|
|||||||
default: '',
|
default: '',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'service:type' },
|
params: { dictKey: 'contract:template:type' },
|
||||||
containAllLable:true,
|
containAllLable:true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value,
|
_$expand: (value: boolean) => value,
|
||||||
@ -231,12 +231,11 @@ export class OrderManagementTemplateComponent implements OnInit {
|
|||||||
this.modal.confirm({
|
this.modal.confirm({
|
||||||
nzTitle: '<i>删除确认</i>',
|
nzTitle: '<i>删除确认</i>',
|
||||||
nzOnOk: () =>
|
nzOnOk: () =>
|
||||||
// this.service.delMany(ids).subscribe(res => {
|
this.service.request(this.service.$api_deletebatch_contractTemplate,value.id).subscribe(res => {
|
||||||
// if (res === true) {
|
if (res) {
|
||||||
// this.service.msgSrv.success('删除成功!');
|
this.service.msgSrv.success('删除成功!');
|
||||||
// }
|
}
|
||||||
// })
|
})
|
||||||
console.log(value)
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1031,15 +1031,18 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
// remarks: res?.remarks
|
// remarks: res?.remarks
|
||||||
// };
|
// };
|
||||||
this.sf6data = {
|
this.sf6data = {
|
||||||
stateReceipt: res?.stateReceipt,
|
stateReceipt: res?.supplementaryInformationVO?.stateReceipt,
|
||||||
receiptType: res?.receiptType || '',
|
receiptType: res?.receiptType || '',
|
||||||
receiptAddressId: res?.receiptAddressId || '',
|
receiptAddressId: res?.receiptAddressId || '',
|
||||||
receiptUserName: res?.receiptUserName || '',
|
receiptUserName: res?.supplementaryInformationVO?.receiptUserName || '',
|
||||||
area: res?.area || '',
|
area: res?.supplementaryInformationVO?.area || '',
|
||||||
phon: res?.phon || '',
|
phon: res?.supplementaryInformationVO?.phon || '',
|
||||||
address: res?.address || '',
|
address: res?.supplementaryInformationVO?.address || '',
|
||||||
remarks: res?.remarks || '',
|
remarks: res?.supplementaryInformationVO?.remarks || '',
|
||||||
};
|
};
|
||||||
|
// if (this.PageStatus === '整车修改') {
|
||||||
|
// this.sf6data.id = res?.supplementaryInformationVO?.id
|
||||||
|
// }
|
||||||
this.sf7data = {
|
this.sf7data = {
|
||||||
prePay: res?.shippingInformationVO?.prePay,
|
prePay: res?.shippingInformationVO?.prePay,
|
||||||
toPay: res?.shippingInformationVO?.toPay,
|
toPay: res?.shippingInformationVO?.toPay,
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: your name
|
* @Author: your name
|
||||||
* @Date: 2021-12-03 11:10:14
|
* @Date: 2021-12-03 11:10:14
|
||||||
* @LastEditTime: 2022-01-06 16:38:52
|
* @LastEditTime: 2022-01-06 19:16:43
|
||||||
* @LastEditors: Please set LastEditors
|
* @LastEditors: Please set LastEditors
|
||||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
* @FilePath: \tms-obc-web\src\app\routes\supply-management\services\supply-management.service.ts
|
* @FilePath: \tms-obc-web\src\app\routes\supply-management\services\supply-management.service.ts
|
||||||
@ -38,7 +38,7 @@ export class SupplyManagementService extends BaseService {
|
|||||||
$api_delete_bulkdeletebatch = `/api/sdc/goodsInfo/deletebatch`;
|
$api_delete_bulkdeletebatch = `/api/sdc/goodsInfo/deletebatch`;
|
||||||
$api_get_catalogue_member = `/user?_allow_anonymous=true`;
|
$api_get_catalogue_member = `/user?_allow_anonymous=true`;
|
||||||
$api_get_listModifyPrice = `/api/sdc/goodsInfo/listModifyPrice`;
|
$api_get_listModifyPrice = `/api/sdc/goodsInfo/listModifyPrice`;
|
||||||
$api_update_price = `/api/sdc/goodsInfo/modifyPrice`; // 根据货物ID修改单价
|
$api_update_price = `/api/sdc/goodsResourceShipper/modifyPrice`; // 根据货物ID修改单价
|
||||||
$api_get_goods_resource_statistical = `/api/sdc/goodsResourceOperate/statisticalStatus`; // 统计整车、大宗货源状态数量
|
$api_get_goods_resource_statistical = `/api/sdc/goodsResourceOperate/statisticalStatus`; // 统计整车、大宗货源状态数量
|
||||||
// 获取货主企业列表
|
// 获取货主企业列表
|
||||||
public $api_getList = '/api/mdc/cuc/enterpriseInfo/cargoOwner/getList?_allow_anonymous=true';
|
public $api_getList = '/api/mdc/cuc/enterpriseInfo/cargoOwner/getList?_allow_anonymous=true';
|
||||||
|
|||||||
Reference in New Issue
Block a user