Forráskód Böngészése

销售状态等注册资金 人员规模

chenc 3 éve
szülő
commit
2981783582

+ 2 - 1
src/app/entity/basedata/base-customer-industry.ts

@@ -4,11 +4,12 @@ import { Page } from '../page';
  * 客商行业
  */
 export class BaseCustomerIndustry extends Page{
-    key?:string;
+    key?:string;//tree主键
     id?:string;// 客商行业行业主键
     code?:string;//客商行业编码
     name?:string;//客商行业名称
     parentId?:string;//父级id
     status?:string;//是否启用
     pkOrg?:string;//组织id
+    sort?:number;//序号
 }

+ 15 - 0
src/app/entity/basedata/base-sales-status.ts

@@ -0,0 +1,15 @@
+
+import { Page } from '../page';
+/**
+ * 销售状态
+ */
+export class BaseSalesStatus extends Page{
+    key?:string;//tree主键
+    id?:string;// 客商行业行业主键
+    code?:string;//客商行业编码
+    name?:string;//客商行业名称
+    parentId?:string;//父级id
+    status?:string;//是否启用
+    pkOrg?:string;//组织id
+    sort?:number;//序号
+}

+ 85 - 0
src/app/entity/basedata/customer.ts

@@ -25,4 +25,89 @@ export class Customer extends Page{
     isAbbreviation?:string;//是否存在同样客户缩写1不存在2存在
     fdCustomerList?:[];//自身集合
     pkOrg?:string;//组织id
+    //客商来源(数据字典)
+	customerSourceDictValue?:string;
+
+	//客商分类(数据字典)
+	customerClassificationDictValue?:string;
+
+	//客商行业id
+	baseCustomerIndustryId?:string;
+
+	//销售状态id
+	baseSalesStatusId?:string;
+
+	//客商属性
+	customerAttribute?:string;
+
+	//客商分组(数据字典)
+	customerGroupingDictValue?:string;
+
+	//商务关系(数据字典)
+	businessRelationsDictValue?:string;
+
+	//上级单位(本表id)
+	parentId?:string;
+
+	//使用状态(数据字典)
+	useStatusDictValue?:string;
+
+	//休眠类型(数据字典)
+	sleepTypeDictValue?:string;
+
+	//单位网址
+	companyWebsite?:string;
+
+	//公司成立日期
+	/**公司成立日期 yyyy-MM-dd*/
+	companyEstablishDate?:string;
+
+	//单位规模(数据字典)
+	unitSizeDictValue?:string;
+
+	//人员规模(数据字典)
+	personnelSizeDictValue?:string;
+
+	//注册资金(数据字典)
+	registeredCapitalDictValue?:string;
+
+	//年营业额
+	annualTurnover?:number;
+
+	//客户关系(数据字典)
+	customerRelationshipDictValue?:string;
+
+	//价值级别(数据字典)
+	valueLevelDictValue?:string;
+
+	//销售人员id
+	salesmanId?:string;
+
+	//销售人员名称
+	salesmanName?:string;
+
+	//开票单位名称
+	billingUnitName?:string;
+
+	//纳税人识别号
+	taxpayerIdentificationNumber?:string;
+
+	//开票地址
+	billingAddress?:string;
+
+	//开票电话
+	billingTelephone?:string;
+
+	//开票银行
+	billingBank?:string;
+
+	//开票银行账号
+	billingBankAccountNumber?:string;
+
+	//开发人员
+	developer?:string;
+
+	//开发时间
+	/**开发时间 yyyy-MM-dd*/
+	developmentDate?:string;
 }

+ 6 - 0
src/app/routes/basedata/milestone-category/milestone-category.component.ts

@@ -89,6 +89,12 @@ export class BasedataMilestoneCategoryComponent implements OnInit {
     }else if(this.locationUrl.indexOf('value-level')!=-1){
       //价值级别
       dictId='2b6a80bf2f4d77c686fdd2d5d5fcef59'
+    }else if(this.locationUrl.indexOf('personnel-size')!=-1){
+      //人员规模
+      dictId='f8d33bfa2ff1812c1efe2ed9d6fdaaca'
+    }else if(this.locationUrl.indexOf('registered-capital')!=-1){
+      //注册资金
+      dictId='913fdf54a4f0194106f7e53a8fe2a4b1'
     }
     if(dictId==''){
       this.notification.warning("未找到档案","");

+ 1 - 9
src/app/routes/basedata/personnel-size/personnel-size.component.html

@@ -1,9 +1 @@
-<page-header [action]="phActionTpl">
-  <ng-template #phActionTpl>
-    <button (click)="add()" nz-button nzType="primary">新建</button>
-  </ng-template>
-</page-header>
-<nz-card>
-  <sf mode="search" [schema]="searchSchema" (formSubmit)="st.reset($event)" (formReset)="st.reset($event)"></sf>
-  <st #st [data]="url" [columns]="columns"></st>
-</nz-card>
+<app-basedata-milestone-category></app-basedata-milestone-category>

+ 3 - 29
src/app/routes/basedata/personnel-size/personnel-size.component.ts

@@ -8,38 +8,12 @@ import { SFSchema } from '@delon/form';
   templateUrl: './personnel-size.component.html',
 })
 export class BasedataPersonnelSizeComponent implements OnInit {
-  url = `/user`;
-  searchSchema: SFSchema = {
-    properties: {
-      no: {
-        type: 'string',
-        title: '编号'
-      }
-    }
-  };
-  @ViewChild('st') st: STComponent;
-  columns: STColumn[] = [
-    { title: '编号', index: 'no' },
-    { title: '调用次数', type: 'number', index: 'callNo' },
-    { title: '头像', type: 'img', width: '50px', index: 'avatar' },
-    { title: '时间', type: 'date', index: 'updatedAt' },
-    {
-      title: '',
-      buttons: [
-        // { text: '查看', click: (item: any) => `/form/${item.id}` },
-        // { text: '编辑', type: 'static', component: FormEditComponent, click: 'reload' },
-      ]
-    }
-  ];
+  
 
-  constructor(private http: _HttpClient, private modal: ModalHelper) { }
+  constructor() { }
 
   ngOnInit() { }
 
-  add() {
-    // this.modal
-    //   .createStatic(FormEditComponent, { i: { id: 0 } })
-    //   .subscribe(() => this.st.reload());
-  }
+ 
 
 }

+ 1 - 9
src/app/routes/basedata/registered-capital/registered-capital.component.html

@@ -1,9 +1 @@
-<page-header [action]="phActionTpl">
-  <ng-template #phActionTpl>
-    <button (click)="add()" nz-button nzType="primary">新建</button>
-  </ng-template>
-</page-header>
-<nz-card>
-  <sf mode="search" [schema]="searchSchema" (formSubmit)="st.reset($event)" (formReset)="st.reset($event)"></sf>
-  <st #st [data]="url" [columns]="columns"></st>
-</nz-card>
+<app-basedata-milestone-category></app-basedata-milestone-category>

+ 2 - 30
src/app/routes/basedata/registered-capital/registered-capital.component.ts

@@ -8,38 +8,10 @@ import { SFSchema } from '@delon/form';
   templateUrl: './registered-capital.component.html',
 })
 export class BasedataRegisteredCapitalComponent implements OnInit {
-  url = `/user`;
-  searchSchema: SFSchema = {
-    properties: {
-      no: {
-        type: 'string',
-        title: '编号'
-      }
-    }
-  };
-  @ViewChild('st') st: STComponent;
-  columns: STColumn[] = [
-    { title: '编号', index: 'no' },
-    { title: '调用次数', type: 'number', index: 'callNo' },
-    { title: '头像', type: 'img', width: '50px', index: 'avatar' },
-    { title: '时间', type: 'date', index: 'updatedAt' },
-    {
-      title: '',
-      buttons: [
-        // { text: '查看', click: (item: any) => `/form/${item.id}` },
-        // { text: '编辑', type: 'static', component: FormEditComponent, click: 'reload' },
-      ]
-    }
-  ];
-
-  constructor(private http: _HttpClient, private modal: ModalHelper) { }
+  
+  constructor() { }
 
   ngOnInit() { }
 
-  add() {
-    // this.modal
-    //   .createStatic(FormEditComponent, { i: { id: 0 } })
-    //   .subscribe(() => this.st.reload());
-  }
 
 }

+ 40 - 0
src/app/services/basedata/base-sales-status.service.ts

@@ -0,0 +1,40 @@
+import { Injectable } from '@angular/core';
+import { HttpClient } from '@angular/common/http';
+import { BaseResponse } from 'app/entity/baseResponse';
+import { Result } from 'app/entity/Result';
+import { BaseSalesStatus } from 'app/entity/basedata/base-sales-status';
+
+@Injectable({
+  providedIn: 'root'
+})
+/**
+ * 销售状态
+ */
+export class BaseSalesStatusService {
+
+  constructor(private http:HttpClient) { }
+  //查詢Tree
+  async getTreeList(body: any): Promise<BaseResponse<Result<any>>> {
+    return await this.http.get<BaseResponse<Result<any>>>('/basedata/baseSalesStatus/getTreeList', { params: body }).toPromise();
+  }
+
+   //新增
+   async add(body: BaseSalesStatus): Promise<BaseResponse<any>> {
+    return await this.http.post<BaseResponse<any>>('basedata/baseSalesStatus/add', body).toPromise();
+  }
+
+  //修改
+  async update(body: BaseSalesStatus): Promise<BaseResponse<any>> {
+    return await this.http.post<BaseResponse<any>>('basedata/baseSalesStatus/edit', body).toPromise();
+  }
+
+  //根据id查询
+  async getById(id: string): Promise<BaseResponse<BaseSalesStatus>> {
+    return await this.http.get<BaseResponse<BaseSalesStatus>>("basedata/baseSalesStatus/queryById", { params: { id: id } }).toPromise();
+  }
+
+  //删除
+  async delete(body:any):Promise<BaseResponse<any>>{
+    return await this.http.post<BaseResponse<any>>('basedata/baseSalesStatus/delete',body).toPromise();
+  }
+}