Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop

This commit is contained in:
Taric Xin
2022-04-28 14:00:49 +08:00
4 changed files with 29 additions and 19 deletions

View File

@ -111,11 +111,29 @@ export class PartnerSystemConfigComponent implements OnInit, OnChanges {
// };
constructor(private service: SystemService) {}
ngOnChanges(changes: SimpleChanges): void {
ngOnChanges(changes: any): void {
if (changes.configList) {
console.log(changes.configList);
console.log(changes.configList.currentValue);
console.log(changes.configList.currentValue[0]?.remark);
this.personServe = changes.configList.currentValue[0]?.remark.personServe, // 个人提现手续费
this.enterpriseServe= changes.configList.currentValue[0]?.remark.enterpriseServe, // 企业提现手续费
this.auditValue= changes.configList.currentValue[0]?.remark.auditValue, // 提现审核
this.auditTime= changes.configList.currentValue[0]?.remark.auditTime, // 审核时间
this.silenceClient= changes.configList.currentValue[0]?.remark.silenceClient, // 沉默客户
this.loseClient= changes.configList.currentValue[0]?.remark.loseClient // 流失客户
this.everyDayData= changes.configList.currentValue[0]?.remark.everyDayData // 流失客户
this.MonthDayData= changes.configList.currentValue[0]?.remark.MonthDayData // 流失客户
if (this.auditTime == '2') {
this.auditTimeStatus = true;
// 每天
if(this.everyDayData){
this.everyDayData = this.everyDayData
} else if(this.MonthDay) {
// 每周
this.MonthDayData = this.MonthDayData
}
} else {
this.auditTimeStatus = false;
}
}
}
@ -173,14 +191,12 @@ export class PartnerSystemConfigComponent implements OnInit, OnChanges {
console.log(this.MonthDayData);
}
everyDayChange(type: any): void {
console.log(type);
if (type) {
this.MonthDay = false;
this.TimeStatus = true;
}
}
MonthDayChange(type: any): void {
console.log(type);
if (type) {
this.everyDay = false;
this.TimeStatus = false;
@ -323,7 +339,6 @@ export class PartnerSystemConfigComponent implements OnInit, OnChanges {
});
};
changeAuto(value: any) {
console.log(value);
if (value == '2') {
this.auditTimeStatus = true;
} else {
@ -331,7 +346,6 @@ export class PartnerSystemConfigComponent implements OnInit, OnChanges {
}
}
save() {
console.log();
let params : any = {
personServe: this.personServe, // 个人提现手续费
enterpriseServe: this.enterpriseServe, // 企业提现手续费
@ -343,21 +357,15 @@ export class PartnerSystemConfigComponent implements OnInit, OnChanges {
if(this.auditTime == '2') {
// 每天
if(this.everyDay){
console.log(this.everyDayData);
params.everyDayData = this.everyDayData
} else if(this.MonthDay) {
// 每周
params.MonthDayData = this.MonthDayData
console.log(this.MonthDayData);
}
}
console.log( JSON.stringify(params));
console.log( this.configList);
const pra = Object.assign({}, ...this.configList)
pra.remark = JSON.stringify(params)
console.log(pra);
this.service.request(this.service.$api_update_config_batch, pra).subscribe(res => {
this.service.request(this.service.$api_update_config_batch, [pra]).subscribe(res => {
if (res) {
this.service.msgSrv.success('修改配置成功');
setTimeout(() => {

View File

@ -179,8 +179,10 @@ export class InvoiceRequestedDetailComponent implements OnInit {
routeToOrder(item: any) {
if (item.billType === '1') {
this.router.navigate(['/order-management/vehicle/vehicle-detail/' + item.billHId]);
} else {
} else if (item.billType === '2'){
this.router.navigate(['/order-management/bulk/bulk-detail/' + item.billHId]);
} else if (item.billType === '3'){
this.router.navigate(['/order-management/vehicle/vehicle-detail/' + item.billHId]);
}
}

View File

@ -1,7 +1,7 @@
/*
* @Author: your name
* @Date: 2021-12-23 16:50:17
* @LastEditTime : 2022-04-21 13:57:43
* @LastEditTime : 2022-04-28 13:54:14
* @LastEditors : Shiming
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath : \\tms-obc-web\\src\\app\\routes\\ticket-management\\components\\invoice-requested\\requested-invoice-modal\\requested-invoice-modal.component.ts
@ -88,7 +88,7 @@ export class RequestedInvoiceModalComponent {
{ title: '订单号', index: 'billHCode', width: 150 },
{ title: '订单完成日期', index: 'billfinTime', type: 'date', width: 150 },
{ title: '所属项目', index: 'projectIdName', width: 250 },
{ title: '订单类型', index: 'billTypeName', width: 90 },
{ title: '订单类型', index: 'billTypeLabel', width: 90 },
{ title: '装货地', index: 'loadingfrom', width: 250 },
{ title: '卸货地', index: 'loadingto', width: 250 },
{ title: '货物信息', index: 'goodsinfo', width: 170 },