@@ -55,7 +55,6 @@
-
|
`${value} (含)`;
-
+ price: number = 0;
changeSub = new Subject();
constructor(public service: BaseService, private cdr: ChangeDetectorRef) {}
ngOnInit(): void {
this.loadData();
+ this.initSF()
this.changeEndKmAction();
+ this.price = 1000
}
loadData() {
@@ -31,7 +39,31 @@ export class InsuranceTableComponent implements OnInit {
}
});
}
-
+ initSF() {
+ this.schema = {
+ properties: {
+ freightPrice: {
+ type: 'string',
+ title: '单票投保最低保费',
+ ui: {
+ widget: 'custom',
+ placeholder: '请输入',
+ errors: { required: '请填写' }
+ }
+ },
+ },
+ required: ['freightPrice']
+ };
+ this.ui = {
+ '*': {
+ spanLabelFixed: 140,
+ grid: { span: 24 }
+ },
+ $freightPrice: {
+ grid: { span: 8 }
+ },
+ };
+ }
/**
* 修改结束车长
* @param event 车长
@@ -111,6 +143,8 @@ export class InsuranceTableComponent implements OnInit {
save() {
console.log(this.data);
+ console.log(this.price);
+ console.log(this.sf.value);
// this.service.request('/api/mdc/cuc/freightConfig/saveBatch', this.data).subscribe(res => {
// if (res) {
// console.log(res);
diff --git a/src/app/shared/components/insurance-table/insurance-table.module.ts b/src/app/shared/components/insurance-table/insurance-table.module.ts
index 48c95fa5..2c72ccee 100644
--- a/src/app/shared/components/insurance-table/insurance-table.module.ts
+++ b/src/app/shared/components/insurance-table/insurance-table.module.ts
@@ -4,7 +4,7 @@
* @Author : Shiming
* @Date : 2022-01-25 20:23:54
* @LastEditors : Shiming
- * @LastEditTime : 2022-02-09 14:57:05
+ * @LastEditTime : 2022-02-11 17:20:49
* @FilePath : \\tms-obc-web\\src\\app\\shared\\components\\insurance-table\\insurance-table.module.ts
* Copyright (C) 2022 huzhenhong. All rights reserved.
*/
@@ -15,17 +15,18 @@ import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
import { NzTableModule } from 'ng-zorro-antd/table';
import { InsuranceTableComponent } from './insurance-table.component';
import { NzPopconfirmModule } from 'ng-zorro-antd/popconfirm';
-
-const COMPONENTS = [InsuranceTableComponent];
+import { SHARED_ZORRO_MODULES } from '../../shared-zorro.module';
+import { SHARED_DELON_MODULES } from '../../shared-delon.module';
+const COMPONENTS = [InsuranceTableComponent,];
const COMPONENTSs = [
NzTableModule,
NzInputNumberModule,
- NzPopconfirmModule
+ NzPopconfirmModule,
];
@NgModule({
declarations: COMPONENTS,
- imports: [CommonModule, FormsModule,COMPONENTSs],
+ imports: [CommonModule, FormsModule,COMPONENTSs,SHARED_ZORRO_MODULES, SHARED_DELON_MODULES],
exports: COMPONENTS
})
export class InsuranceTableModule {}
|