diff --git a/src/pages/cst/customer/Customer.vue b/src/pages/cst/customer/Customer.vue new file mode 100644 index 0000000..12564a0 --- /dev/null +++ b/src/pages/cst/customer/Customer.vue @@ -0,0 +1,258 @@ + + + + + diff --git a/src/pages/cst/customer/CustomerForm.vue b/src/pages/cst/customer/CustomerForm.vue new file mode 100644 index 0000000..fe51893 --- /dev/null +++ b/src/pages/cst/customer/CustomerForm.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/pages/cst/customer/customer-api.ts b/src/pages/cst/customer/customer-api.ts new file mode 100644 index 0000000..942ccce --- /dev/null +++ b/src/pages/cst/customer/customer-api.ts @@ -0,0 +1,22 @@ +import { + get, + post +} from '@/common/utils/http-util.ts' + +export default { + paging(data: CustomerTypes.SearchCustomerParam) { + return get>('/customer/paging', data) + }, + detail(id: string) { + return get('/customer/detail', {id}) + }, + add(data: CustomerTypes.AddCustomerParam) { + return post('/customer/add', data) + }, + modify(data: CustomerTypes.ModifyCustomerParam) { + return post('/customer/modify', data) + }, + del(ids: string[]) { + return post('/customer/del', ids) + }, +} diff --git a/src/pages/cst/customer/customer.d.ts b/src/pages/cst/customer/customer.d.ts new file mode 100644 index 0000000..1351f68 --- /dev/null +++ b/src/pages/cst/customer/customer.d.ts @@ -0,0 +1,121 @@ +export {} + +declare global { + namespace CustomerTypes { + interface SearchCustomerParam extends G.PageParam { + // Id + id?: string + // 用户 Id;一个用户可以有多个身份 + userId?: string + // 身份类型;多个身份多条数据,PingTai-->平台、ChanFei-->产废方、QingYun-->清运方、XiaoNa-->消纳方、CaiGou-->采购方 + identityCategory?: string + // 组织信息 Id;cst_org.id + orgId?: string + // 客户姓名 + customerName?: string + // 客户联系电话 + phone?: string + // 结算方式,YueJie-->月结、YuE-->余额、XianFu-->现付 + settlementWay?: string + // 是否管理员;是否为当前的组织管理员,0-->否、1-->是 + manager?: boolean + // 创建人 Id;sys_user.id + creatorId?: string + // 修改人 Id;sys_user.id + modifierId?: string + // 创建时间 + createTime?: string + // 修改时间 + modifyTime?: string + // 是否删除;0-->未删除、1-->已删除 + deleted?: boolean + } + + interface SearchCustomerResult { + // Id + id?: string + // 用户 Id;一个用户可以有多个身份 + userId?: string + // 身份类型;多个身份多条数据,PingTai-->平台、ChanFei-->产废方、QingYun-->清运方、XiaoNa-->消纳方、CaiGou-->采购方 + identityCategory?: string + // 组织信息 Id;cst_org.id + orgId?: string + // 客户姓名 + customerName?: string + // 客户联系电话 + phone?: string + // 结算方式,YueJie-->月结、YuE-->余额、XianFu-->现付 + settlementWay?: string + // 是否管理员;是否为当前的组织管理员,0-->否、1-->是 + manager?: boolean + // 创建人 Id;sys_user.id + creatorId?: string + // 修改人 Id;sys_user.id + modifierId?: string + // 创建时间 + createTime?: string + // 修改时间 + modifyTime?: string + // 是否删除;0-->未删除、1-->已删除 + deleted?: boolean + } + + interface AddCustomerParam { + // Id + id?: string + // 用户 Id;一个用户可以有多个身份 + userId?: string + // 身份类型;多个身份多条数据,PingTai-->平台、ChanFei-->产废方、QingYun-->清运方、XiaoNa-->消纳方、CaiGou-->采购方 + identityCategory?: string + // 组织信息 Id;cst_org.id + orgId?: string + // 客户姓名 + customerName?: string + // 客户联系电话 + phone?: string + // 结算方式,YueJie-->月结、YuE-->余额、XianFu-->现付 + settlementWay?: string + // 是否管理员;是否为当前的组织管理员,0-->否、1-->是 + manager?: boolean + // 创建人 Id;sys_user.id + creatorId?: string + // 修改人 Id;sys_user.id + modifierId?: string + // 创建时间 + createTime?: string + // 修改时间 + modifyTime?: string + // 是否删除;0-->未删除、1-->已删除 + deleted?: boolean + } + + interface ModifyCustomerParam { + // Id + id?: string + // 用户 Id;一个用户可以有多个身份 + userId?: string + // 身份类型;多个身份多条数据,PingTai-->平台、ChanFei-->产废方、QingYun-->清运方、XiaoNa-->消纳方、CaiGou-->采购方 + identityCategory?: string + // 组织信息 Id;cst_org.id + orgId?: string + // 客户姓名 + customerName?: string + // 客户联系电话 + phone?: string + // 结算方式,YueJie-->月结、YuE-->余额、XianFu-->现付 + settlementWay?: string + // 是否管理员;是否为当前的组织管理员,0-->否、1-->是 + manager?: boolean + // 创建人 Id;sys_user.id + creatorId?: string + // 修改人 Id;sys_user.id + modifierId?: string + // 创建时间 + createTime?: string + // 修改时间 + modifyTime?: string + // 是否删除;0-->未删除、1-->已删除 + deleted?: boolean + } + } +} diff --git a/src/pages/cst/customer/page.ts b/src/pages/cst/customer/page.ts new file mode 100644 index 0000000..5c5ebbd --- /dev/null +++ b/src/pages/cst/customer/page.ts @@ -0,0 +1,3 @@ +export default { + component: () => import('@/pages/cst/customer/Customer.vue'), +} as RouterTypes.RouteConfig \ No newline at end of file