Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
@ -5,7 +5,7 @@ import { OnChanges } from '@angular/core';
|
|||||||
* @Author : Shiming
|
* @Author : Shiming
|
||||||
* @Date : 2022-01-05 11:01:55
|
* @Date : 2022-01-05 11:01:55
|
||||||
* @LastEditors : Shiming
|
* @LastEditors : Shiming
|
||||||
* @LastEditTime : 2022-03-30 10:45:19
|
* @LastEditTime : 2022-04-25 10:28:10
|
||||||
* @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
|
||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
*/
|
*/
|
||||||
@ -96,8 +96,6 @@ export class ContractManagementTemplateTextComponent implements OnInit {
|
|||||||
{ label: '运单合同', value: '3' },
|
{ label: '运单合同', value: '3' },
|
||||||
{ label: '运单补充协议', value: '4' },
|
{ label: '运单补充协议', value: '4' },
|
||||||
{ label: '委托代收合同', value: '5' },
|
{ label: '委托代收合同', value: '5' },
|
||||||
{ label: '电子提货单', value: '10' },
|
|
||||||
{ label: '电子卸货单', value: '11' },
|
|
||||||
];
|
];
|
||||||
this.sf.getProperty('/contractType')!.schema.enum = this.Types;
|
this.sf.getProperty('/contractType')!.schema.enum = this.Types;
|
||||||
this.sf.getProperty('/contractType')!.widget.reset(this.Types);
|
this.sf.getProperty('/contractType')!.widget.reset(this.Types);
|
||||||
@ -178,7 +176,7 @@ export class ContractManagementTemplateTextComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
required: ['templateName', 'templateType']
|
required: ['templateName', 'templateType','contractType']
|
||||||
};
|
};
|
||||||
this.ui = {
|
this.ui = {
|
||||||
'*': {
|
'*': {
|
||||||
|
|||||||
@ -240,11 +240,21 @@ export class CwcAccountManagementWithdrawDepositComponent implements OnInit {
|
|||||||
this.sf.setValue('/payPsd', val);
|
this.sf.setValue('/payPsd', val);
|
||||||
if (val || val !== '') {
|
if (val || val !== '') {
|
||||||
const last = val.substr(val.length - 1);
|
const last = val.substr(val.length - 1);
|
||||||
const password = this.sf.getValue('/payPassword');
|
const password = this.sf.getValue('/payPassword') || '';
|
||||||
const start = this.psd?.nativeElement.selectionStart;
|
const start = this.psd?.nativeElement.selectionStart;
|
||||||
|
const index = val.lastIndexOf('•');
|
||||||
if (last !== '•') {
|
if (last !== '•') {
|
||||||
this.sf.setValue('/payPassword', start !== 1 ? (password + last) : last);
|
if (password.length !== 0) {
|
||||||
|
// 新增 或 替换
|
||||||
|
const pre = password.substr(0, index + 1);
|
||||||
|
const detail = val.substr(index + 1, val.length);
|
||||||
|
this.sf.setValue('/payPassword', pre + detail);
|
||||||
|
} else {
|
||||||
|
// 新增
|
||||||
|
this.sf.setValue('/payPassword', val);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
|
// 删除
|
||||||
this.sf.setValue('/payPassword', password.substr(0, val.length));
|
this.sf.setValue('/payPassword', password.substr(0, val.length));
|
||||||
}
|
}
|
||||||
const payPswVal = this.sf.getValue('/payPsd');
|
const payPswVal = this.sf.getValue('/payPsd');
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
<sf #sf [schema]="schema" [ui]="ui" [mode]="'search'" [loading]="false" (formSubmit)="st?.load(1)"
|
<sf #sf [schema]="schema" [ui]="ui" [mode]="'search'" [loading]="false" (formSubmit)="st?.load(1)"
|
||||||
(formReset)="resetSF()"></sf>
|
(formReset)="resetSF()"></sf>
|
||||||
</div>
|
</div>
|
||||||
|
edit
|
||||||
<!-- 查询字段大于3个时,根据展开状态调整布局 -->
|
<!-- 查询字段大于3个时,根据展开状态调整布局 -->
|
||||||
<ng-container *ngIf="queryFieldCount > 4">
|
<ng-container *ngIf="queryFieldCount > 4">
|
||||||
<div nz-col [nzSpan]="_$expand ? 24 : 18">
|
<div nz-col [nzSpan]="_$expand ? 24 : 18">
|
||||||
|
|||||||
@ -187,6 +187,10 @@ this.ui2 = { '*': { spanLabelFixed: 120, grid: { span: 24 } } };
|
|||||||
console.log(res)
|
console.log(res)
|
||||||
if(res) {
|
if(res) {
|
||||||
this.formData = res;
|
this.formData = res;
|
||||||
|
const List: any = [];
|
||||||
|
List.push({ label: res.enterpriseName, value: res.id });
|
||||||
|
this.sfFre.getProperty('/enterpriseId')!.schema.enum = List;
|
||||||
|
this.sfFre.getProperty('/enterpriseId')!.widget.reset(List);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.edit = true;
|
this.edit = true;
|
||||||
|
|||||||
@ -369,7 +369,7 @@
|
|||||||
<sv-container col="3" class="mt16">
|
<sv-container col="3" class="mt16">
|
||||||
<sv-title>合伙人信息</sv-title>
|
<sv-title>合伙人信息</sv-title>
|
||||||
<sv label="合伙人名称">
|
<sv label="合伙人名称">
|
||||||
{{partnerInfo.partnerEnterpriseName}}
|
{{partnerInfo.partnerContactName}}
|
||||||
</sv>
|
</sv>
|
||||||
<sv label="手机号">
|
<sv label="手机号">
|
||||||
<input nz-input type="text" [(ngModel)]="partnerInfo.partnerContactMobile" [readonly]="!isEdit"
|
<input nz-input type="text" [(ngModel)]="partnerInfo.partnerContactMobile" [readonly]="!isEdit"
|
||||||
|
|||||||
@ -116,7 +116,7 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy {
|
|||||||
className: 'text-center'
|
className: 'text-center'
|
||||||
},
|
},
|
||||||
{ title: '修改时间', render: 'modifyTime', className: 'text-center' },
|
{ title: '修改时间', render: 'modifyTime', className: 'text-center' },
|
||||||
{ title: '生效时间', render: 'effectiveTime', className: 'text-center' },
|
{ title: '生效时间', index: 'effectiveTime', className: 'text-center' },
|
||||||
{ title: '操作人', render: 'approvalUser', className: 'text-center' },
|
{ title: '操作人', render: 'approvalUser', className: 'text-center' },
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
@ -57,6 +57,9 @@
|
|||||||
<ng-template st-row="contacter" let-item let-index="index">
|
<ng-template st-row="contacter" let-item let-index="index">
|
||||||
{{ item.contacter }}<br>/{{item.mobile}}
|
{{ item.contacter }}<br>/{{item.mobile}}
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
<ng-template st-row="partnerName" let-item let-index="index">
|
||||||
|
{{ item.partnerName }}<br>/{{item.promotersTelephone}}
|
||||||
|
</ng-template>
|
||||||
<ng-template st-row="promotersTelephone" let-item let-index="index">
|
<ng-template st-row="promotersTelephone" let-item let-index="index">
|
||||||
<a acl [acl-ability]="['USERCENTER-FREIGHT-LIST-salesman']" (click)="addPromoter(item)">{{ item.promotersTelephone
|
<a acl [acl-ability]="['USERCENTER-FREIGHT-LIST-salesman']" (click)="addPromoter(item)">{{ item.promotersTelephone
|
||||||
|| '添加' }}</a>
|
|| '添加' }}</a>
|
||||||
|
|||||||
@ -424,7 +424,7 @@ export class FreightComponentsListComponent implements OnInit {
|
|||||||
enum: { 10: '整车发货', 20: '大宗发货' },
|
enum: { 10: '整车发货', 20: '大宗发货' },
|
||||||
width: 140
|
width: 140
|
||||||
},
|
},
|
||||||
{ title: '业务员', className: 'text-center', render: 'promotersTelephone', width: 150 },
|
{ title: '渠道销售', className: 'text-center', render: 'promotersTelephone', width: 150 },
|
||||||
{ title: '合伙人', className: 'text-center', render: 'partnerName', width: 150 },
|
{ title: '合伙人', className: 'text-center', render: 'partnerName', width: 150 },
|
||||||
{ title: '客服人员', className: 'text-center', index: 'customerServiceIdLabel', width: 150 },
|
{ title: '客服人员', className: 'text-center', index: 'customerServiceIdLabel', width: 150 },
|
||||||
{ title: '网络货运人', className: 'text-center', index: 'netTranName', width: 180 },
|
{ title: '网络货运人', className: 'text-center', index: 'netTranName', width: 180 },
|
||||||
|
|||||||
Reference in New Issue
Block a user