diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + ) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@
@@ -654,6 +659,7 @@
@@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled >
@@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@ @@ -654,6 +659,7 @@ @@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled > @@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue index c762b33..a75d816 100644 --- a/src/views/device/standardEquipment/components/standardList/baseInfo.vue +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -251,6 +251,7 @@ v-model.trim="formInline.standardNo" placeholder="系统编号,自动生成" disabled + class="full-width-input" />
@@ -260,6 +261,7 @@ v-model.trim="formInline.standardName" placeholder="标准名称" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -269,6 +271,7 @@ v-model.trim="formInline.projectNo" placeholder="项目编号" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -278,6 +281,7 @@ v-model.trim="formInline.constructionStandardProject" placeholder="建标项目" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -289,6 +293,7 @@ v-model.trim="formInline.organizeNo" placeholder="组织机构代码" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -301,6 +306,7 @@ v-model.trim="formInline.constructionStandardUnitName" placeholder="建标单位名称" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -312,6 +318,7 @@ placeholder="标准负责人" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -341,6 +349,7 @@ placeholder="类别" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -404,6 +416,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" :disabled="buttonType === 'detail'" @@ -418,6 +431,7 @@ placeholder="标准科室" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" @clear="clearDeptList" > @@ -445,6 +460,7 @@ v-model.trim="formInline.laboratoryOwnerContact" placeholder="联系方式" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -458,6 +474,7 @@ placeholder="管理状态" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -500,6 +519,7 @@ - + @@ -594,6 +616,7 @@ ) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@ @@ -654,6 +659,7 @@ @@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled > @@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue index c762b33..a75d816 100644 --- a/src/views/device/standardEquipment/components/standardList/baseInfo.vue +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -251,6 +251,7 @@ v-model.trim="formInline.standardNo" placeholder="系统编号,自动生成" disabled + class="full-width-input" />
@@ -260,6 +261,7 @@ v-model.trim="formInline.standardName" placeholder="标准名称" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -269,6 +271,7 @@ v-model.trim="formInline.projectNo" placeholder="项目编号" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -278,6 +281,7 @@ v-model.trim="formInline.constructionStandardProject" placeholder="建标项目" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -289,6 +293,7 @@ v-model.trim="formInline.organizeNo" placeholder="组织机构代码" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -301,6 +306,7 @@ v-model.trim="formInline.constructionStandardUnitName" placeholder="建标单位名称" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -312,6 +318,7 @@ placeholder="标准负责人" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -341,6 +349,7 @@ placeholder="类别" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -404,6 +416,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" :disabled="buttonType === 'detail'" @@ -418,6 +431,7 @@ placeholder="标准科室" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" @clear="clearDeptList" > @@ -445,6 +460,7 @@ v-model.trim="formInline.laboratoryOwnerContact" placeholder="联系方式" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -458,6 +474,7 @@ placeholder="管理状态" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -500,6 +519,7 @@ - + @@ -594,6 +616,7 @@ + + + + diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@ @@ -654,6 +659,7 @@ @@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled > @@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue index c762b33..a75d816 100644 --- a/src/views/device/standardEquipment/components/standardList/baseInfo.vue +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -251,6 +251,7 @@ v-model.trim="formInline.standardNo" placeholder="系统编号,自动生成" disabled + class="full-width-input" />
@@ -260,6 +261,7 @@ v-model.trim="formInline.standardName" placeholder="标准名称" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -269,6 +271,7 @@ v-model.trim="formInline.projectNo" placeholder="项目编号" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -278,6 +281,7 @@ v-model.trim="formInline.constructionStandardProject" placeholder="建标项目" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -289,6 +293,7 @@ v-model.trim="formInline.organizeNo" placeholder="组织机构代码" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -301,6 +306,7 @@ v-model.trim="formInline.constructionStandardUnitName" placeholder="建标单位名称" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -312,6 +318,7 @@ placeholder="标准负责人" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -341,6 +349,7 @@ placeholder="类别" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -404,6 +416,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" :disabled="buttonType === 'detail'" @@ -418,6 +431,7 @@ placeholder="标准科室" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" @clear="clearDeptList" > @@ -445,6 +460,7 @@ v-model.trim="formInline.laboratoryOwnerContact" placeholder="联系方式" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -458,6 +474,7 @@ placeholder="管理状态" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -500,6 +519,7 @@ - + @@ -594,6 +616,7 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue index 20eb800..91c2c15 100644 --- a/src/views/device/standardEquipment/components/standardList/temptable.vue +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -1,7 +1,7 @@ diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@ @@ -654,6 +659,7 @@ @@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled > @@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue index c762b33..a75d816 100644 --- a/src/views/device/standardEquipment/components/standardList/baseInfo.vue +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -251,6 +251,7 @@ v-model.trim="formInline.standardNo" placeholder="系统编号,自动生成" disabled + class="full-width-input" />
@@ -260,6 +261,7 @@ v-model.trim="formInline.standardName" placeholder="标准名称" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -269,6 +271,7 @@ v-model.trim="formInline.projectNo" placeholder="项目编号" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -278,6 +281,7 @@ v-model.trim="formInline.constructionStandardProject" placeholder="建标项目" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -289,6 +293,7 @@ v-model.trim="formInline.organizeNo" placeholder="组织机构代码" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -301,6 +306,7 @@ v-model.trim="formInline.constructionStandardUnitName" placeholder="建标单位名称" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -312,6 +318,7 @@ placeholder="标准负责人" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -341,6 +349,7 @@ placeholder="类别" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -404,6 +416,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" :disabled="buttonType === 'detail'" @@ -418,6 +431,7 @@ placeholder="标准科室" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" @clear="clearDeptList" > @@ -445,6 +460,7 @@ v-model.trim="formInline.laboratoryOwnerContact" placeholder="联系方式" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -458,6 +474,7 @@ placeholder="管理状态" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -500,6 +519,7 @@ - + @@ -594,6 +616,7 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue index 20eb800..91c2c15 100644 --- a/src/views/device/standardEquipment/components/standardList/temptable.vue +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -1,7 +1,7 @@ diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@ @@ -654,6 +659,7 @@ @@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled > @@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue index c762b33..a75d816 100644 --- a/src/views/device/standardEquipment/components/standardList/baseInfo.vue +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -251,6 +251,7 @@ v-model.trim="formInline.standardNo" placeholder="系统编号,自动生成" disabled + class="full-width-input" />
@@ -260,6 +261,7 @@ v-model.trim="formInline.standardName" placeholder="标准名称" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -269,6 +271,7 @@ v-model.trim="formInline.projectNo" placeholder="项目编号" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -278,6 +281,7 @@ v-model.trim="formInline.constructionStandardProject" placeholder="建标项目" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -289,6 +293,7 @@ v-model.trim="formInline.organizeNo" placeholder="组织机构代码" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -301,6 +306,7 @@ v-model.trim="formInline.constructionStandardUnitName" placeholder="建标单位名称" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -312,6 +318,7 @@ placeholder="标准负责人" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -341,6 +349,7 @@ placeholder="类别" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -404,6 +416,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" :disabled="buttonType === 'detail'" @@ -418,6 +431,7 @@ placeholder="标准科室" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" @clear="clearDeptList" > @@ -445,6 +460,7 @@ v-model.trim="formInline.laboratoryOwnerContact" placeholder="联系方式" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -458,6 +474,7 @@ placeholder="管理状态" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -500,6 +519,7 @@ - + @@ -594,6 +616,7 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue index 20eb800..91c2c15 100644 --- a/src/views/device/standardEquipment/components/standardList/temptable.vue +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -1,7 +1,7 @@ diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index 1263b6c..bcdcf3b 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -4,7 +4,7 @@ import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' import baseInfo from './standardList/baseInfo.vue' -import table from './standardList/temptable.vue' +import TemplateTable from './standardList/templateTable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -34,16 +34,20 @@ comp: any } const menu = shallowRef([ - { name: '基本信息', comp: baseInfo }, - { name: '计量人员', comp: table }, - { name: '标准配套设备', comp: table }, - { name: '检定规程', comp: table }, - { name: '重复性考核记录', comp: table }, - { name: '稳定性考核记录', comp: table }, - { name: '证书管理', comp: table }, + { name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }, + { name: '重复性考核记录', comp: TemplateTable }, + { name: '稳定性考核记录', comp: TemplateTable }, + { name: '证书管理', comp: TemplateTable }, ]) +if (pageType.value === 'edit') { + menu.value = [{ name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }] +} const currentCompRef = ref() -const current = ref('基本信息') +const current = ref('计量人员') const currentComp = shallowRef(baseInfo) watch(current, (newValue) => { currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp @@ -57,6 +61,130 @@ const setData = (newValue: object) => { formInline.value = newValue } +const queryParams = { + id: '', + limit: 20, + offset: 1, +} +// 关闭 +interface TableColumn { + text: string + value: string + align: string +} + +interface checkedRecord { + text: string +} +// 计量人员 +const measurementPersonnelColumns = ref([ + { text: '姓名', value: 'name', align: 'center' }, + { text: '计量人员编号', value: 'staffNo', align: 'center' }, + { text: '工作部门', value: 'deptId', align: 'center' }, + { text: '计量专业', value: 'major', align: 'center' }, + { text: '证书编号', value: 'verifierCertificateNo', align: 'center' }, + { text: '证书有效期', value: 'certificateDate', align: 'center' }, +]) +const measurementPersonnel = ref([]) +const measurementPersonnelLoading = ref(false) +function fetchmeasurementPersonnel(query = { ...queryParams }) { + measurementPersonnelLoading.value = true + measurementPersonnel.value = [{ + text: 'xx', + }] + measurementPersonnelLoading.value = false +} + +// 标准配套设备 +const corollaryEquipmentColumns = ref([ + { text: '设备名称', value: 'text', align: 'center' }, + { text: '设备编号', value: 'text', align: 'center' }, + { text: '型号', value: 'text', align: 'center' }, + { text: '测量范围', value: 'text', align: 'center' }, + { text: '使用部门', value: 'text', align: 'center' }, + { text: '检定时间', value: 'text', align: 'center' }, + { text: '检定结果', value: 'text', align: 'center' }, + { text: '有效日期', value: 'text', align: 'center' }, +]) +const corollaryEquipment = ref([]) +const corollaryEquipmentLoading = ref(false) +function fetchcorollaryEquipment(query = { ...queryParams }) { + corollaryEquipmentLoading.value = true + corollaryEquipment.value = [{ + text: 'xx', + }] + corollaryEquipmentLoading.value = false +} + +// 检定规程 +const regulationVerificationColumns = ref([ + { text: '文件名称', value: 'text', align: 'center' }, + { text: '文件编号', value: 'text', align: 'center' }, + { text: '文件号', value: 'text', align: 'center' }, + { text: '实施时间', value: 'text', align: 'center' }, + { text: '实施状态', value: 'text', align: 'center' }, +]) +const regulationVerification = ref([]) +const regulationVerificationLoading = ref(false) +function fetchregulationVerification(query = { ...queryParams }) { + regulationVerificationLoading.value = true + regulationVerification.value = [{ + text: 'xx', + }] + regulationVerificationLoading.value = false +} + +// 重复性考核记录 +const repetitiveRppraisalRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const repetitiveRppraisalRecord = ref([]) +const repetitiveRppraisalRecordLoading = ref(false) +function fetchrepetitiveRppraisalRecord(query = { ...queryParams }) { + repetitiveRppraisalRecordLoading.value = true + repetitiveRppraisalRecord.value = [{ + text: 'xx', + }] + repetitiveRppraisalRecordLoading.value = false +} + +// 稳定性考核记录 +const stabilityAssessmentRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const stabilityAssessmentRecord = ref([]) +const stabilityAssessmentRecordLoading = ref(false) +function fetchstabilityAssessmentRecord(query = { ...queryParams }) { + stabilityAssessmentRecordLoading.value = true + stabilityAssessmentRecord.value = [{ + text: 'xx', + }] + stabilityAssessmentRecordLoading.value = false +} + +// 证书管理 +const certificateManagementColumns = ref([ + { text: '证书编号', value: 'text', align: 'center' }, + { text: '证书名称', value: 'text', align: 'center' }, + { text: '证书类型', value: 'text', align: 'center' }, + { text: '证书出具日期', value: 'text', align: 'center' }, + { text: '证书有效期', value: 'text', align: 'center' }, +]) +const certificateManagement = ref([]) +const certificateManagementLoading = ref(false) +function fetchcertificateManagement(query = { ...queryParams }) { + certificateManagementLoading.value = true + certificateManagement.value = [{ + text: 'xx', + }] + certificateManagementLoading.value = false +} // 编辑获取详情的提交按钮 const submitFormDetail = () => { if (pageType.value === 'edit') { @@ -69,16 +197,17 @@ } else { // 打印 - const printObj = ref({ - id: 'print', // 需要打印元素的id - popTitle: '测量标准装置', // 打印配置页上方的标题 - extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 - preview: false, // 是否启动预览模式,默认是false - standard: '', - extarCss: '', - }) + } } +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '测量标准装置', // 打印配置页上方的标题 + extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) // 提交 const submitForm = () => { if (pageType.value === 'detail') { return submitFormDetail() } @@ -103,39 +232,62 @@ }) }) } +onMounted(() => { + if (pageType.value === 'detail') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + fetchrepetitiveRppraisalRecord() // 重复性考核记录 + fetchstabilityAssessmentRecord() // 稳定性考核记录 + fetchcertificateManagement() // 证书管理 + } + else if (pageType.value === 'edit') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + } +}) diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@ @@ -654,6 +659,7 @@ @@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled > @@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue index c762b33..a75d816 100644 --- a/src/views/device/standardEquipment/components/standardList/baseInfo.vue +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -251,6 +251,7 @@ v-model.trim="formInline.standardNo" placeholder="系统编号,自动生成" disabled + class="full-width-input" />
@@ -260,6 +261,7 @@ v-model.trim="formInline.standardName" placeholder="标准名称" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -269,6 +271,7 @@ v-model.trim="formInline.projectNo" placeholder="项目编号" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -278,6 +281,7 @@ v-model.trim="formInline.constructionStandardProject" placeholder="建标项目" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -289,6 +293,7 @@ v-model.trim="formInline.organizeNo" placeholder="组织机构代码" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -301,6 +306,7 @@ v-model.trim="formInline.constructionStandardUnitName" placeholder="建标单位名称" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -312,6 +318,7 @@ placeholder="标准负责人" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -341,6 +349,7 @@ placeholder="类别" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -404,6 +416,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" :disabled="buttonType === 'detail'" @@ -418,6 +431,7 @@ placeholder="标准科室" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" @clear="clearDeptList" > @@ -445,6 +460,7 @@ v-model.trim="formInline.laboratoryOwnerContact" placeholder="联系方式" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -458,6 +474,7 @@ placeholder="管理状态" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -500,6 +519,7 @@ - + @@ -594,6 +616,7 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue index 20eb800..91c2c15 100644 --- a/src/views/device/standardEquipment/components/standardList/temptable.vue +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -1,7 +1,7 @@ diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index 1263b6c..bcdcf3b 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -4,7 +4,7 @@ import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' import baseInfo from './standardList/baseInfo.vue' -import table from './standardList/temptable.vue' +import TemplateTable from './standardList/templateTable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -34,16 +34,20 @@ comp: any } const menu = shallowRef([ - { name: '基本信息', comp: baseInfo }, - { name: '计量人员', comp: table }, - { name: '标准配套设备', comp: table }, - { name: '检定规程', comp: table }, - { name: '重复性考核记录', comp: table }, - { name: '稳定性考核记录', comp: table }, - { name: '证书管理', comp: table }, + { name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }, + { name: '重复性考核记录', comp: TemplateTable }, + { name: '稳定性考核记录', comp: TemplateTable }, + { name: '证书管理', comp: TemplateTable }, ]) +if (pageType.value === 'edit') { + menu.value = [{ name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }] +} const currentCompRef = ref() -const current = ref('基本信息') +const current = ref('计量人员') const currentComp = shallowRef(baseInfo) watch(current, (newValue) => { currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp @@ -57,6 +61,130 @@ const setData = (newValue: object) => { formInline.value = newValue } +const queryParams = { + id: '', + limit: 20, + offset: 1, +} +// 关闭 +interface TableColumn { + text: string + value: string + align: string +} + +interface checkedRecord { + text: string +} +// 计量人员 +const measurementPersonnelColumns = ref([ + { text: '姓名', value: 'name', align: 'center' }, + { text: '计量人员编号', value: 'staffNo', align: 'center' }, + { text: '工作部门', value: 'deptId', align: 'center' }, + { text: '计量专业', value: 'major', align: 'center' }, + { text: '证书编号', value: 'verifierCertificateNo', align: 'center' }, + { text: '证书有效期', value: 'certificateDate', align: 'center' }, +]) +const measurementPersonnel = ref([]) +const measurementPersonnelLoading = ref(false) +function fetchmeasurementPersonnel(query = { ...queryParams }) { + measurementPersonnelLoading.value = true + measurementPersonnel.value = [{ + text: 'xx', + }] + measurementPersonnelLoading.value = false +} + +// 标准配套设备 +const corollaryEquipmentColumns = ref([ + { text: '设备名称', value: 'text', align: 'center' }, + { text: '设备编号', value: 'text', align: 'center' }, + { text: '型号', value: 'text', align: 'center' }, + { text: '测量范围', value: 'text', align: 'center' }, + { text: '使用部门', value: 'text', align: 'center' }, + { text: '检定时间', value: 'text', align: 'center' }, + { text: '检定结果', value: 'text', align: 'center' }, + { text: '有效日期', value: 'text', align: 'center' }, +]) +const corollaryEquipment = ref([]) +const corollaryEquipmentLoading = ref(false) +function fetchcorollaryEquipment(query = { ...queryParams }) { + corollaryEquipmentLoading.value = true + corollaryEquipment.value = [{ + text: 'xx', + }] + corollaryEquipmentLoading.value = false +} + +// 检定规程 +const regulationVerificationColumns = ref([ + { text: '文件名称', value: 'text', align: 'center' }, + { text: '文件编号', value: 'text', align: 'center' }, + { text: '文件号', value: 'text', align: 'center' }, + { text: '实施时间', value: 'text', align: 'center' }, + { text: '实施状态', value: 'text', align: 'center' }, +]) +const regulationVerification = ref([]) +const regulationVerificationLoading = ref(false) +function fetchregulationVerification(query = { ...queryParams }) { + regulationVerificationLoading.value = true + regulationVerification.value = [{ + text: 'xx', + }] + regulationVerificationLoading.value = false +} + +// 重复性考核记录 +const repetitiveRppraisalRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const repetitiveRppraisalRecord = ref([]) +const repetitiveRppraisalRecordLoading = ref(false) +function fetchrepetitiveRppraisalRecord(query = { ...queryParams }) { + repetitiveRppraisalRecordLoading.value = true + repetitiveRppraisalRecord.value = [{ + text: 'xx', + }] + repetitiveRppraisalRecordLoading.value = false +} + +// 稳定性考核记录 +const stabilityAssessmentRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const stabilityAssessmentRecord = ref([]) +const stabilityAssessmentRecordLoading = ref(false) +function fetchstabilityAssessmentRecord(query = { ...queryParams }) { + stabilityAssessmentRecordLoading.value = true + stabilityAssessmentRecord.value = [{ + text: 'xx', + }] + stabilityAssessmentRecordLoading.value = false +} + +// 证书管理 +const certificateManagementColumns = ref([ + { text: '证书编号', value: 'text', align: 'center' }, + { text: '证书名称', value: 'text', align: 'center' }, + { text: '证书类型', value: 'text', align: 'center' }, + { text: '证书出具日期', value: 'text', align: 'center' }, + { text: '证书有效期', value: 'text', align: 'center' }, +]) +const certificateManagement = ref([]) +const certificateManagementLoading = ref(false) +function fetchcertificateManagement(query = { ...queryParams }) { + certificateManagementLoading.value = true + certificateManagement.value = [{ + text: 'xx', + }] + certificateManagementLoading.value = false +} // 编辑获取详情的提交按钮 const submitFormDetail = () => { if (pageType.value === 'edit') { @@ -69,16 +197,17 @@ } else { // 打印 - const printObj = ref({ - id: 'print', // 需要打印元素的id - popTitle: '测量标准装置', // 打印配置页上方的标题 - extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 - preview: false, // 是否启动预览模式,默认是false - standard: '', - extarCss: '', - }) + } } +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '测量标准装置', // 打印配置页上方的标题 + extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) // 提交 const submitForm = () => { if (pageType.value === 'detail') { return submitFormDetail() } @@ -103,39 +232,62 @@ }) }) } +onMounted(() => { + if (pageType.value === 'detail') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + fetchrepetitiveRppraisalRecord() // 重复性考核记录 + fetchstabilityAssessmentRecord() // 稳定性考核记录 + fetchcertificateManagement() // 证书管理 + } + else if (pageType.value === 'edit') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + } +}) diff --git a/src/views/device/standingBook/adjustDevice.vue b/src/views/device/standingBook/adjustDevice.vue index a1a38bc..67ef11e 100644 --- a/src/views/device/standingBook/adjustDevice.vue +++ b/src/views/device/standingBook/adjustDevice.vue @@ -5,7 +5,7 @@ diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@ @@ -654,6 +659,7 @@ @@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled > @@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue index c762b33..a75d816 100644 --- a/src/views/device/standardEquipment/components/standardList/baseInfo.vue +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -251,6 +251,7 @@ v-model.trim="formInline.standardNo" placeholder="系统编号,自动生成" disabled + class="full-width-input" />
@@ -260,6 +261,7 @@ v-model.trim="formInline.standardName" placeholder="标准名称" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -269,6 +271,7 @@ v-model.trim="formInline.projectNo" placeholder="项目编号" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -278,6 +281,7 @@ v-model.trim="formInline.constructionStandardProject" placeholder="建标项目" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -289,6 +293,7 @@ v-model.trim="formInline.organizeNo" placeholder="组织机构代码" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -301,6 +306,7 @@ v-model.trim="formInline.constructionStandardUnitName" placeholder="建标单位名称" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -312,6 +318,7 @@ placeholder="标准负责人" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -341,6 +349,7 @@ placeholder="类别" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -404,6 +416,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" :disabled="buttonType === 'detail'" @@ -418,6 +431,7 @@ placeholder="标准科室" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" @clear="clearDeptList" > @@ -445,6 +460,7 @@ v-model.trim="formInline.laboratoryOwnerContact" placeholder="联系方式" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -458,6 +474,7 @@ placeholder="管理状态" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -500,6 +519,7 @@ - + @@ -594,6 +616,7 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue index 20eb800..91c2c15 100644 --- a/src/views/device/standardEquipment/components/standardList/temptable.vue +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -1,7 +1,7 @@ diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index 1263b6c..bcdcf3b 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -4,7 +4,7 @@ import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' import baseInfo from './standardList/baseInfo.vue' -import table from './standardList/temptable.vue' +import TemplateTable from './standardList/templateTable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -34,16 +34,20 @@ comp: any } const menu = shallowRef([ - { name: '基本信息', comp: baseInfo }, - { name: '计量人员', comp: table }, - { name: '标准配套设备', comp: table }, - { name: '检定规程', comp: table }, - { name: '重复性考核记录', comp: table }, - { name: '稳定性考核记录', comp: table }, - { name: '证书管理', comp: table }, + { name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }, + { name: '重复性考核记录', comp: TemplateTable }, + { name: '稳定性考核记录', comp: TemplateTable }, + { name: '证书管理', comp: TemplateTable }, ]) +if (pageType.value === 'edit') { + menu.value = [{ name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }] +} const currentCompRef = ref() -const current = ref('基本信息') +const current = ref('计量人员') const currentComp = shallowRef(baseInfo) watch(current, (newValue) => { currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp @@ -57,6 +61,130 @@ const setData = (newValue: object) => { formInline.value = newValue } +const queryParams = { + id: '', + limit: 20, + offset: 1, +} +// 关闭 +interface TableColumn { + text: string + value: string + align: string +} + +interface checkedRecord { + text: string +} +// 计量人员 +const measurementPersonnelColumns = ref([ + { text: '姓名', value: 'name', align: 'center' }, + { text: '计量人员编号', value: 'staffNo', align: 'center' }, + { text: '工作部门', value: 'deptId', align: 'center' }, + { text: '计量专业', value: 'major', align: 'center' }, + { text: '证书编号', value: 'verifierCertificateNo', align: 'center' }, + { text: '证书有效期', value: 'certificateDate', align: 'center' }, +]) +const measurementPersonnel = ref([]) +const measurementPersonnelLoading = ref(false) +function fetchmeasurementPersonnel(query = { ...queryParams }) { + measurementPersonnelLoading.value = true + measurementPersonnel.value = [{ + text: 'xx', + }] + measurementPersonnelLoading.value = false +} + +// 标准配套设备 +const corollaryEquipmentColumns = ref([ + { text: '设备名称', value: 'text', align: 'center' }, + { text: '设备编号', value: 'text', align: 'center' }, + { text: '型号', value: 'text', align: 'center' }, + { text: '测量范围', value: 'text', align: 'center' }, + { text: '使用部门', value: 'text', align: 'center' }, + { text: '检定时间', value: 'text', align: 'center' }, + { text: '检定结果', value: 'text', align: 'center' }, + { text: '有效日期', value: 'text', align: 'center' }, +]) +const corollaryEquipment = ref([]) +const corollaryEquipmentLoading = ref(false) +function fetchcorollaryEquipment(query = { ...queryParams }) { + corollaryEquipmentLoading.value = true + corollaryEquipment.value = [{ + text: 'xx', + }] + corollaryEquipmentLoading.value = false +} + +// 检定规程 +const regulationVerificationColumns = ref([ + { text: '文件名称', value: 'text', align: 'center' }, + { text: '文件编号', value: 'text', align: 'center' }, + { text: '文件号', value: 'text', align: 'center' }, + { text: '实施时间', value: 'text', align: 'center' }, + { text: '实施状态', value: 'text', align: 'center' }, +]) +const regulationVerification = ref([]) +const regulationVerificationLoading = ref(false) +function fetchregulationVerification(query = { ...queryParams }) { + regulationVerificationLoading.value = true + regulationVerification.value = [{ + text: 'xx', + }] + regulationVerificationLoading.value = false +} + +// 重复性考核记录 +const repetitiveRppraisalRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const repetitiveRppraisalRecord = ref([]) +const repetitiveRppraisalRecordLoading = ref(false) +function fetchrepetitiveRppraisalRecord(query = { ...queryParams }) { + repetitiveRppraisalRecordLoading.value = true + repetitiveRppraisalRecord.value = [{ + text: 'xx', + }] + repetitiveRppraisalRecordLoading.value = false +} + +// 稳定性考核记录 +const stabilityAssessmentRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const stabilityAssessmentRecord = ref([]) +const stabilityAssessmentRecordLoading = ref(false) +function fetchstabilityAssessmentRecord(query = { ...queryParams }) { + stabilityAssessmentRecordLoading.value = true + stabilityAssessmentRecord.value = [{ + text: 'xx', + }] + stabilityAssessmentRecordLoading.value = false +} + +// 证书管理 +const certificateManagementColumns = ref([ + { text: '证书编号', value: 'text', align: 'center' }, + { text: '证书名称', value: 'text', align: 'center' }, + { text: '证书类型', value: 'text', align: 'center' }, + { text: '证书出具日期', value: 'text', align: 'center' }, + { text: '证书有效期', value: 'text', align: 'center' }, +]) +const certificateManagement = ref([]) +const certificateManagementLoading = ref(false) +function fetchcertificateManagement(query = { ...queryParams }) { + certificateManagementLoading.value = true + certificateManagement.value = [{ + text: 'xx', + }] + certificateManagementLoading.value = false +} // 编辑获取详情的提交按钮 const submitFormDetail = () => { if (pageType.value === 'edit') { @@ -69,16 +197,17 @@ } else { // 打印 - const printObj = ref({ - id: 'print', // 需要打印元素的id - popTitle: '测量标准装置', // 打印配置页上方的标题 - extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 - preview: false, // 是否启动预览模式,默认是false - standard: '', - extarCss: '', - }) + } } +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '测量标准装置', // 打印配置页上方的标题 + extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) // 提交 const submitForm = () => { if (pageType.value === 'detail') { return submitFormDetail() } @@ -103,39 +232,62 @@ }) }) } +onMounted(() => { + if (pageType.value === 'detail') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + fetchrepetitiveRppraisalRecord() // 重复性考核记录 + fetchstabilityAssessmentRecord() // 稳定性考核记录 + fetchcertificateManagement() // 证书管理 + } + else if (pageType.value === 'edit') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + } +}) diff --git a/src/views/device/standingBook/adjustDevice.vue b/src/views/device/standingBook/adjustDevice.vue index a1a38bc..67ef11e 100644 --- a/src/views/device/standingBook/adjustDevice.vue +++ b/src/views/device/standingBook/adjustDevice.vue @@ -5,7 +5,7 @@ diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@ @@ -654,6 +659,7 @@ @@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled > @@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue index c762b33..a75d816 100644 --- a/src/views/device/standardEquipment/components/standardList/baseInfo.vue +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -251,6 +251,7 @@ v-model.trim="formInline.standardNo" placeholder="系统编号,自动生成" disabled + class="full-width-input" />
@@ -260,6 +261,7 @@ v-model.trim="formInline.standardName" placeholder="标准名称" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -269,6 +271,7 @@ v-model.trim="formInline.projectNo" placeholder="项目编号" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -278,6 +281,7 @@ v-model.trim="formInline.constructionStandardProject" placeholder="建标项目" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -289,6 +293,7 @@ v-model.trim="formInline.organizeNo" placeholder="组织机构代码" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -301,6 +306,7 @@ v-model.trim="formInline.constructionStandardUnitName" placeholder="建标单位名称" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -312,6 +318,7 @@ placeholder="标准负责人" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -341,6 +349,7 @@ placeholder="类别" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -404,6 +416,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" :disabled="buttonType === 'detail'" @@ -418,6 +431,7 @@ placeholder="标准科室" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" @clear="clearDeptList" > @@ -445,6 +460,7 @@ v-model.trim="formInline.laboratoryOwnerContact" placeholder="联系方式" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -458,6 +474,7 @@ placeholder="管理状态" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -500,6 +519,7 @@ - + @@ -594,6 +616,7 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue index 20eb800..91c2c15 100644 --- a/src/views/device/standardEquipment/components/standardList/temptable.vue +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -1,7 +1,7 @@ diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index 1263b6c..bcdcf3b 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -4,7 +4,7 @@ import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' import baseInfo from './standardList/baseInfo.vue' -import table from './standardList/temptable.vue' +import TemplateTable from './standardList/templateTable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -34,16 +34,20 @@ comp: any } const menu = shallowRef([ - { name: '基本信息', comp: baseInfo }, - { name: '计量人员', comp: table }, - { name: '标准配套设备', comp: table }, - { name: '检定规程', comp: table }, - { name: '重复性考核记录', comp: table }, - { name: '稳定性考核记录', comp: table }, - { name: '证书管理', comp: table }, + { name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }, + { name: '重复性考核记录', comp: TemplateTable }, + { name: '稳定性考核记录', comp: TemplateTable }, + { name: '证书管理', comp: TemplateTable }, ]) +if (pageType.value === 'edit') { + menu.value = [{ name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }] +} const currentCompRef = ref() -const current = ref('基本信息') +const current = ref('计量人员') const currentComp = shallowRef(baseInfo) watch(current, (newValue) => { currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp @@ -57,6 +61,130 @@ const setData = (newValue: object) => { formInline.value = newValue } +const queryParams = { + id: '', + limit: 20, + offset: 1, +} +// 关闭 +interface TableColumn { + text: string + value: string + align: string +} + +interface checkedRecord { + text: string +} +// 计量人员 +const measurementPersonnelColumns = ref([ + { text: '姓名', value: 'name', align: 'center' }, + { text: '计量人员编号', value: 'staffNo', align: 'center' }, + { text: '工作部门', value: 'deptId', align: 'center' }, + { text: '计量专业', value: 'major', align: 'center' }, + { text: '证书编号', value: 'verifierCertificateNo', align: 'center' }, + { text: '证书有效期', value: 'certificateDate', align: 'center' }, +]) +const measurementPersonnel = ref([]) +const measurementPersonnelLoading = ref(false) +function fetchmeasurementPersonnel(query = { ...queryParams }) { + measurementPersonnelLoading.value = true + measurementPersonnel.value = [{ + text: 'xx', + }] + measurementPersonnelLoading.value = false +} + +// 标准配套设备 +const corollaryEquipmentColumns = ref([ + { text: '设备名称', value: 'text', align: 'center' }, + { text: '设备编号', value: 'text', align: 'center' }, + { text: '型号', value: 'text', align: 'center' }, + { text: '测量范围', value: 'text', align: 'center' }, + { text: '使用部门', value: 'text', align: 'center' }, + { text: '检定时间', value: 'text', align: 'center' }, + { text: '检定结果', value: 'text', align: 'center' }, + { text: '有效日期', value: 'text', align: 'center' }, +]) +const corollaryEquipment = ref([]) +const corollaryEquipmentLoading = ref(false) +function fetchcorollaryEquipment(query = { ...queryParams }) { + corollaryEquipmentLoading.value = true + corollaryEquipment.value = [{ + text: 'xx', + }] + corollaryEquipmentLoading.value = false +} + +// 检定规程 +const regulationVerificationColumns = ref([ + { text: '文件名称', value: 'text', align: 'center' }, + { text: '文件编号', value: 'text', align: 'center' }, + { text: '文件号', value: 'text', align: 'center' }, + { text: '实施时间', value: 'text', align: 'center' }, + { text: '实施状态', value: 'text', align: 'center' }, +]) +const regulationVerification = ref([]) +const regulationVerificationLoading = ref(false) +function fetchregulationVerification(query = { ...queryParams }) { + regulationVerificationLoading.value = true + regulationVerification.value = [{ + text: 'xx', + }] + regulationVerificationLoading.value = false +} + +// 重复性考核记录 +const repetitiveRppraisalRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const repetitiveRppraisalRecord = ref([]) +const repetitiveRppraisalRecordLoading = ref(false) +function fetchrepetitiveRppraisalRecord(query = { ...queryParams }) { + repetitiveRppraisalRecordLoading.value = true + repetitiveRppraisalRecord.value = [{ + text: 'xx', + }] + repetitiveRppraisalRecordLoading.value = false +} + +// 稳定性考核记录 +const stabilityAssessmentRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const stabilityAssessmentRecord = ref([]) +const stabilityAssessmentRecordLoading = ref(false) +function fetchstabilityAssessmentRecord(query = { ...queryParams }) { + stabilityAssessmentRecordLoading.value = true + stabilityAssessmentRecord.value = [{ + text: 'xx', + }] + stabilityAssessmentRecordLoading.value = false +} + +// 证书管理 +const certificateManagementColumns = ref([ + { text: '证书编号', value: 'text', align: 'center' }, + { text: '证书名称', value: 'text', align: 'center' }, + { text: '证书类型', value: 'text', align: 'center' }, + { text: '证书出具日期', value: 'text', align: 'center' }, + { text: '证书有效期', value: 'text', align: 'center' }, +]) +const certificateManagement = ref([]) +const certificateManagementLoading = ref(false) +function fetchcertificateManagement(query = { ...queryParams }) { + certificateManagementLoading.value = true + certificateManagement.value = [{ + text: 'xx', + }] + certificateManagementLoading.value = false +} // 编辑获取详情的提交按钮 const submitFormDetail = () => { if (pageType.value === 'edit') { @@ -69,16 +197,17 @@ } else { // 打印 - const printObj = ref({ - id: 'print', // 需要打印元素的id - popTitle: '测量标准装置', // 打印配置页上方的标题 - extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 - preview: false, // 是否启动预览模式,默认是false - standard: '', - extarCss: '', - }) + } } +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '测量标准装置', // 打印配置页上方的标题 + extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) // 提交 const submitForm = () => { if (pageType.value === 'detail') { return submitFormDetail() } @@ -103,39 +232,62 @@ }) }) } +onMounted(() => { + if (pageType.value === 'detail') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + fetchrepetitiveRppraisalRecord() // 重复性考核记录 + fetchstabilityAssessmentRecord() // 稳定性考核记录 + fetchcertificateManagement() // 证书管理 + } + else if (pageType.value === 'edit') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + } +}) diff --git a/src/views/device/standingBook/adjustDevice.vue b/src/views/device/standingBook/adjustDevice.vue index a1a38bc..67ef11e 100644 --- a/src/views/device/standingBook/adjustDevice.vue +++ b/src/views/device/standingBook/adjustDevice.vue @@ -5,7 +5,7 @@ diff --git a/src/views/device/standingBook/components/fixedAssetsAdd.vue b/src/views/device/standingBook/components/fixedAssetsAdd.vue deleted file mode 100644 index f272ff7..0000000 --- a/src/views/device/standingBook/components/fixedAssetsAdd.vue +++ /dev/null @@ -1,755 +0,0 @@ - - - - - - diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@ @@ -654,6 +659,7 @@ @@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled > @@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue index c762b33..a75d816 100644 --- a/src/views/device/standardEquipment/components/standardList/baseInfo.vue +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -251,6 +251,7 @@ v-model.trim="formInline.standardNo" placeholder="系统编号,自动生成" disabled + class="full-width-input" />
@@ -260,6 +261,7 @@ v-model.trim="formInline.standardName" placeholder="标准名称" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -269,6 +271,7 @@ v-model.trim="formInline.projectNo" placeholder="项目编号" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -278,6 +281,7 @@ v-model.trim="formInline.constructionStandardProject" placeholder="建标项目" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -289,6 +293,7 @@ v-model.trim="formInline.organizeNo" placeholder="组织机构代码" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -301,6 +306,7 @@ v-model.trim="formInline.constructionStandardUnitName" placeholder="建标单位名称" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -312,6 +318,7 @@ placeholder="标准负责人" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -341,6 +349,7 @@ placeholder="类别" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -404,6 +416,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" :disabled="buttonType === 'detail'" @@ -418,6 +431,7 @@ placeholder="标准科室" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" @clear="clearDeptList" > @@ -445,6 +460,7 @@ v-model.trim="formInline.laboratoryOwnerContact" placeholder="联系方式" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -458,6 +474,7 @@ placeholder="管理状态" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -500,6 +519,7 @@ - + @@ -594,6 +616,7 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue index 20eb800..91c2c15 100644 --- a/src/views/device/standardEquipment/components/standardList/temptable.vue +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -1,7 +1,7 @@ diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index 1263b6c..bcdcf3b 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -4,7 +4,7 @@ import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' import baseInfo from './standardList/baseInfo.vue' -import table from './standardList/temptable.vue' +import TemplateTable from './standardList/templateTable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -34,16 +34,20 @@ comp: any } const menu = shallowRef([ - { name: '基本信息', comp: baseInfo }, - { name: '计量人员', comp: table }, - { name: '标准配套设备', comp: table }, - { name: '检定规程', comp: table }, - { name: '重复性考核记录', comp: table }, - { name: '稳定性考核记录', comp: table }, - { name: '证书管理', comp: table }, + { name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }, + { name: '重复性考核记录', comp: TemplateTable }, + { name: '稳定性考核记录', comp: TemplateTable }, + { name: '证书管理', comp: TemplateTable }, ]) +if (pageType.value === 'edit') { + menu.value = [{ name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }] +} const currentCompRef = ref() -const current = ref('基本信息') +const current = ref('计量人员') const currentComp = shallowRef(baseInfo) watch(current, (newValue) => { currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp @@ -57,6 +61,130 @@ const setData = (newValue: object) => { formInline.value = newValue } +const queryParams = { + id: '', + limit: 20, + offset: 1, +} +// 关闭 +interface TableColumn { + text: string + value: string + align: string +} + +interface checkedRecord { + text: string +} +// 计量人员 +const measurementPersonnelColumns = ref([ + { text: '姓名', value: 'name', align: 'center' }, + { text: '计量人员编号', value: 'staffNo', align: 'center' }, + { text: '工作部门', value: 'deptId', align: 'center' }, + { text: '计量专业', value: 'major', align: 'center' }, + { text: '证书编号', value: 'verifierCertificateNo', align: 'center' }, + { text: '证书有效期', value: 'certificateDate', align: 'center' }, +]) +const measurementPersonnel = ref([]) +const measurementPersonnelLoading = ref(false) +function fetchmeasurementPersonnel(query = { ...queryParams }) { + measurementPersonnelLoading.value = true + measurementPersonnel.value = [{ + text: 'xx', + }] + measurementPersonnelLoading.value = false +} + +// 标准配套设备 +const corollaryEquipmentColumns = ref([ + { text: '设备名称', value: 'text', align: 'center' }, + { text: '设备编号', value: 'text', align: 'center' }, + { text: '型号', value: 'text', align: 'center' }, + { text: '测量范围', value: 'text', align: 'center' }, + { text: '使用部门', value: 'text', align: 'center' }, + { text: '检定时间', value: 'text', align: 'center' }, + { text: '检定结果', value: 'text', align: 'center' }, + { text: '有效日期', value: 'text', align: 'center' }, +]) +const corollaryEquipment = ref([]) +const corollaryEquipmentLoading = ref(false) +function fetchcorollaryEquipment(query = { ...queryParams }) { + corollaryEquipmentLoading.value = true + corollaryEquipment.value = [{ + text: 'xx', + }] + corollaryEquipmentLoading.value = false +} + +// 检定规程 +const regulationVerificationColumns = ref([ + { text: '文件名称', value: 'text', align: 'center' }, + { text: '文件编号', value: 'text', align: 'center' }, + { text: '文件号', value: 'text', align: 'center' }, + { text: '实施时间', value: 'text', align: 'center' }, + { text: '实施状态', value: 'text', align: 'center' }, +]) +const regulationVerification = ref([]) +const regulationVerificationLoading = ref(false) +function fetchregulationVerification(query = { ...queryParams }) { + regulationVerificationLoading.value = true + regulationVerification.value = [{ + text: 'xx', + }] + regulationVerificationLoading.value = false +} + +// 重复性考核记录 +const repetitiveRppraisalRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const repetitiveRppraisalRecord = ref([]) +const repetitiveRppraisalRecordLoading = ref(false) +function fetchrepetitiveRppraisalRecord(query = { ...queryParams }) { + repetitiveRppraisalRecordLoading.value = true + repetitiveRppraisalRecord.value = [{ + text: 'xx', + }] + repetitiveRppraisalRecordLoading.value = false +} + +// 稳定性考核记录 +const stabilityAssessmentRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const stabilityAssessmentRecord = ref([]) +const stabilityAssessmentRecordLoading = ref(false) +function fetchstabilityAssessmentRecord(query = { ...queryParams }) { + stabilityAssessmentRecordLoading.value = true + stabilityAssessmentRecord.value = [{ + text: 'xx', + }] + stabilityAssessmentRecordLoading.value = false +} + +// 证书管理 +const certificateManagementColumns = ref([ + { text: '证书编号', value: 'text', align: 'center' }, + { text: '证书名称', value: 'text', align: 'center' }, + { text: '证书类型', value: 'text', align: 'center' }, + { text: '证书出具日期', value: 'text', align: 'center' }, + { text: '证书有效期', value: 'text', align: 'center' }, +]) +const certificateManagement = ref([]) +const certificateManagementLoading = ref(false) +function fetchcertificateManagement(query = { ...queryParams }) { + certificateManagementLoading.value = true + certificateManagement.value = [{ + text: 'xx', + }] + certificateManagementLoading.value = false +} // 编辑获取详情的提交按钮 const submitFormDetail = () => { if (pageType.value === 'edit') { @@ -69,16 +197,17 @@ } else { // 打印 - const printObj = ref({ - id: 'print', // 需要打印元素的id - popTitle: '测量标准装置', // 打印配置页上方的标题 - extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 - preview: false, // 是否启动预览模式,默认是false - standard: '', - extarCss: '', - }) + } } +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '测量标准装置', // 打印配置页上方的标题 + extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) // 提交 const submitForm = () => { if (pageType.value === 'detail') { return submitFormDetail() } @@ -103,39 +232,62 @@ }) }) } +onMounted(() => { + if (pageType.value === 'detail') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + fetchrepetitiveRppraisalRecord() // 重复性考核记录 + fetchstabilityAssessmentRecord() // 稳定性考核记录 + fetchcertificateManagement() // 证书管理 + } + else if (pageType.value === 'edit') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + } +}) diff --git a/src/views/device/standingBook/adjustDevice.vue b/src/views/device/standingBook/adjustDevice.vue index a1a38bc..67ef11e 100644 --- a/src/views/device/standingBook/adjustDevice.vue +++ b/src/views/device/standingBook/adjustDevice.vue @@ -5,7 +5,7 @@ diff --git a/src/views/device/standingBook/components/fixedAssetsAdd.vue b/src/views/device/standingBook/components/fixedAssetsAdd.vue deleted file mode 100644 index f272ff7..0000000 --- a/src/views/device/standingBook/components/fixedAssetsAdd.vue +++ /dev/null @@ -1,755 +0,0 @@ - - - - - - diff --git a/src/views/device/standingBook/components/templateAdd.vue b/src/views/device/standingBook/components/templateAdd.vue index 049d8d4..e070af0 100644 --- a/src/views/device/standingBook/components/templateAdd.vue +++ b/src/views/device/standingBook/components/templateAdd.vue @@ -1,87 +1,148 @@ diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@ @@ -654,6 +659,7 @@ @@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled > @@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue index c762b33..a75d816 100644 --- a/src/views/device/standardEquipment/components/standardList/baseInfo.vue +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -251,6 +251,7 @@ v-model.trim="formInline.standardNo" placeholder="系统编号,自动生成" disabled + class="full-width-input" />
@@ -260,6 +261,7 @@ v-model.trim="formInline.standardName" placeholder="标准名称" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -269,6 +271,7 @@ v-model.trim="formInline.projectNo" placeholder="项目编号" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -278,6 +281,7 @@ v-model.trim="formInline.constructionStandardProject" placeholder="建标项目" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -289,6 +293,7 @@ v-model.trim="formInline.organizeNo" placeholder="组织机构代码" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -301,6 +306,7 @@ v-model.trim="formInline.constructionStandardUnitName" placeholder="建标单位名称" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -312,6 +318,7 @@ placeholder="标准负责人" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -341,6 +349,7 @@ placeholder="类别" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -404,6 +416,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" :disabled="buttonType === 'detail'" @@ -418,6 +431,7 @@ placeholder="标准科室" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" @clear="clearDeptList" > @@ -445,6 +460,7 @@ v-model.trim="formInline.laboratoryOwnerContact" placeholder="联系方式" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -458,6 +474,7 @@ placeholder="管理状态" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -500,6 +519,7 @@ - + @@ -594,6 +616,7 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue index 20eb800..91c2c15 100644 --- a/src/views/device/standardEquipment/components/standardList/temptable.vue +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -1,7 +1,7 @@ diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index 1263b6c..bcdcf3b 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -4,7 +4,7 @@ import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' import baseInfo from './standardList/baseInfo.vue' -import table from './standardList/temptable.vue' +import TemplateTable from './standardList/templateTable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -34,16 +34,20 @@ comp: any } const menu = shallowRef([ - { name: '基本信息', comp: baseInfo }, - { name: '计量人员', comp: table }, - { name: '标准配套设备', comp: table }, - { name: '检定规程', comp: table }, - { name: '重复性考核记录', comp: table }, - { name: '稳定性考核记录', comp: table }, - { name: '证书管理', comp: table }, + { name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }, + { name: '重复性考核记录', comp: TemplateTable }, + { name: '稳定性考核记录', comp: TemplateTable }, + { name: '证书管理', comp: TemplateTable }, ]) +if (pageType.value === 'edit') { + menu.value = [{ name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }] +} const currentCompRef = ref() -const current = ref('基本信息') +const current = ref('计量人员') const currentComp = shallowRef(baseInfo) watch(current, (newValue) => { currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp @@ -57,6 +61,130 @@ const setData = (newValue: object) => { formInline.value = newValue } +const queryParams = { + id: '', + limit: 20, + offset: 1, +} +// 关闭 +interface TableColumn { + text: string + value: string + align: string +} + +interface checkedRecord { + text: string +} +// 计量人员 +const measurementPersonnelColumns = ref([ + { text: '姓名', value: 'name', align: 'center' }, + { text: '计量人员编号', value: 'staffNo', align: 'center' }, + { text: '工作部门', value: 'deptId', align: 'center' }, + { text: '计量专业', value: 'major', align: 'center' }, + { text: '证书编号', value: 'verifierCertificateNo', align: 'center' }, + { text: '证书有效期', value: 'certificateDate', align: 'center' }, +]) +const measurementPersonnel = ref([]) +const measurementPersonnelLoading = ref(false) +function fetchmeasurementPersonnel(query = { ...queryParams }) { + measurementPersonnelLoading.value = true + measurementPersonnel.value = [{ + text: 'xx', + }] + measurementPersonnelLoading.value = false +} + +// 标准配套设备 +const corollaryEquipmentColumns = ref([ + { text: '设备名称', value: 'text', align: 'center' }, + { text: '设备编号', value: 'text', align: 'center' }, + { text: '型号', value: 'text', align: 'center' }, + { text: '测量范围', value: 'text', align: 'center' }, + { text: '使用部门', value: 'text', align: 'center' }, + { text: '检定时间', value: 'text', align: 'center' }, + { text: '检定结果', value: 'text', align: 'center' }, + { text: '有效日期', value: 'text', align: 'center' }, +]) +const corollaryEquipment = ref([]) +const corollaryEquipmentLoading = ref(false) +function fetchcorollaryEquipment(query = { ...queryParams }) { + corollaryEquipmentLoading.value = true + corollaryEquipment.value = [{ + text: 'xx', + }] + corollaryEquipmentLoading.value = false +} + +// 检定规程 +const regulationVerificationColumns = ref([ + { text: '文件名称', value: 'text', align: 'center' }, + { text: '文件编号', value: 'text', align: 'center' }, + { text: '文件号', value: 'text', align: 'center' }, + { text: '实施时间', value: 'text', align: 'center' }, + { text: '实施状态', value: 'text', align: 'center' }, +]) +const regulationVerification = ref([]) +const regulationVerificationLoading = ref(false) +function fetchregulationVerification(query = { ...queryParams }) { + regulationVerificationLoading.value = true + regulationVerification.value = [{ + text: 'xx', + }] + regulationVerificationLoading.value = false +} + +// 重复性考核记录 +const repetitiveRppraisalRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const repetitiveRppraisalRecord = ref([]) +const repetitiveRppraisalRecordLoading = ref(false) +function fetchrepetitiveRppraisalRecord(query = { ...queryParams }) { + repetitiveRppraisalRecordLoading.value = true + repetitiveRppraisalRecord.value = [{ + text: 'xx', + }] + repetitiveRppraisalRecordLoading.value = false +} + +// 稳定性考核记录 +const stabilityAssessmentRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const stabilityAssessmentRecord = ref([]) +const stabilityAssessmentRecordLoading = ref(false) +function fetchstabilityAssessmentRecord(query = { ...queryParams }) { + stabilityAssessmentRecordLoading.value = true + stabilityAssessmentRecord.value = [{ + text: 'xx', + }] + stabilityAssessmentRecordLoading.value = false +} + +// 证书管理 +const certificateManagementColumns = ref([ + { text: '证书编号', value: 'text', align: 'center' }, + { text: '证书名称', value: 'text', align: 'center' }, + { text: '证书类型', value: 'text', align: 'center' }, + { text: '证书出具日期', value: 'text', align: 'center' }, + { text: '证书有效期', value: 'text', align: 'center' }, +]) +const certificateManagement = ref([]) +const certificateManagementLoading = ref(false) +function fetchcertificateManagement(query = { ...queryParams }) { + certificateManagementLoading.value = true + certificateManagement.value = [{ + text: 'xx', + }] + certificateManagementLoading.value = false +} // 编辑获取详情的提交按钮 const submitFormDetail = () => { if (pageType.value === 'edit') { @@ -69,16 +197,17 @@ } else { // 打印 - const printObj = ref({ - id: 'print', // 需要打印元素的id - popTitle: '测量标准装置', // 打印配置页上方的标题 - extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 - preview: false, // 是否启动预览模式,默认是false - standard: '', - extarCss: '', - }) + } } +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '测量标准装置', // 打印配置页上方的标题 + extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) // 提交 const submitForm = () => { if (pageType.value === 'detail') { return submitFormDetail() } @@ -103,39 +232,62 @@ }) }) } +onMounted(() => { + if (pageType.value === 'detail') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + fetchrepetitiveRppraisalRecord() // 重复性考核记录 + fetchstabilityAssessmentRecord() // 稳定性考核记录 + fetchcertificateManagement() // 证书管理 + } + else if (pageType.value === 'edit') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + } +}) diff --git a/src/views/device/standingBook/adjustDevice.vue b/src/views/device/standingBook/adjustDevice.vue index a1a38bc..67ef11e 100644 --- a/src/views/device/standingBook/adjustDevice.vue +++ b/src/views/device/standingBook/adjustDevice.vue @@ -5,7 +5,7 @@ diff --git a/src/views/device/standingBook/components/fixedAssetsAdd.vue b/src/views/device/standingBook/components/fixedAssetsAdd.vue deleted file mode 100644 index f272ff7..0000000 --- a/src/views/device/standingBook/components/fixedAssetsAdd.vue +++ /dev/null @@ -1,755 +0,0 @@ - - - - - - diff --git a/src/views/device/standingBook/components/templateAdd.vue b/src/views/device/standingBook/components/templateAdd.vue index 049d8d4..e070af0 100644 --- a/src/views/device/standingBook/components/templateAdd.vue +++ b/src/views/device/standingBook/components/templateAdd.vue @@ -1,87 +1,148 @@ diff --git a/src/views/device/standingBook/components/templatePage.vue b/src/views/device/standingBook/components/templatePage.vue index f69b781..c7105dc 100644 --- a/src/views/device/standingBook/components/templatePage.vue +++ b/src/views/device/standingBook/components/templatePage.vue @@ -1,126 +1,92 @@ + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@ @@ -654,6 +659,7 @@ @@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled > @@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue index c762b33..a75d816 100644 --- a/src/views/device/standardEquipment/components/standardList/baseInfo.vue +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -251,6 +251,7 @@ v-model.trim="formInline.standardNo" placeholder="系统编号,自动生成" disabled + class="full-width-input" />
@@ -260,6 +261,7 @@ v-model.trim="formInline.standardName" placeholder="标准名称" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -269,6 +271,7 @@ v-model.trim="formInline.projectNo" placeholder="项目编号" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -278,6 +281,7 @@ v-model.trim="formInline.constructionStandardProject" placeholder="建标项目" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -289,6 +293,7 @@ v-model.trim="formInline.organizeNo" placeholder="组织机构代码" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -301,6 +306,7 @@ v-model.trim="formInline.constructionStandardUnitName" placeholder="建标单位名称" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -312,6 +318,7 @@ placeholder="标准负责人" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -341,6 +349,7 @@ placeholder="类别" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -404,6 +416,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" :disabled="buttonType === 'detail'" @@ -418,6 +431,7 @@ placeholder="标准科室" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" @clear="clearDeptList" > @@ -445,6 +460,7 @@ v-model.trim="formInline.laboratoryOwnerContact" placeholder="联系方式" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -458,6 +474,7 @@ placeholder="管理状态" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -500,6 +519,7 @@ - + @@ -594,6 +616,7 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue index 20eb800..91c2c15 100644 --- a/src/views/device/standardEquipment/components/standardList/temptable.vue +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -1,7 +1,7 @@ diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index 1263b6c..bcdcf3b 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -4,7 +4,7 @@ import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' import baseInfo from './standardList/baseInfo.vue' -import table from './standardList/temptable.vue' +import TemplateTable from './standardList/templateTable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -34,16 +34,20 @@ comp: any } const menu = shallowRef([ - { name: '基本信息', comp: baseInfo }, - { name: '计量人员', comp: table }, - { name: '标准配套设备', comp: table }, - { name: '检定规程', comp: table }, - { name: '重复性考核记录', comp: table }, - { name: '稳定性考核记录', comp: table }, - { name: '证书管理', comp: table }, + { name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }, + { name: '重复性考核记录', comp: TemplateTable }, + { name: '稳定性考核记录', comp: TemplateTable }, + { name: '证书管理', comp: TemplateTable }, ]) +if (pageType.value === 'edit') { + menu.value = [{ name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }] +} const currentCompRef = ref() -const current = ref('基本信息') +const current = ref('计量人员') const currentComp = shallowRef(baseInfo) watch(current, (newValue) => { currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp @@ -57,6 +61,130 @@ const setData = (newValue: object) => { formInline.value = newValue } +const queryParams = { + id: '', + limit: 20, + offset: 1, +} +// 关闭 +interface TableColumn { + text: string + value: string + align: string +} + +interface checkedRecord { + text: string +} +// 计量人员 +const measurementPersonnelColumns = ref([ + { text: '姓名', value: 'name', align: 'center' }, + { text: '计量人员编号', value: 'staffNo', align: 'center' }, + { text: '工作部门', value: 'deptId', align: 'center' }, + { text: '计量专业', value: 'major', align: 'center' }, + { text: '证书编号', value: 'verifierCertificateNo', align: 'center' }, + { text: '证书有效期', value: 'certificateDate', align: 'center' }, +]) +const measurementPersonnel = ref([]) +const measurementPersonnelLoading = ref(false) +function fetchmeasurementPersonnel(query = { ...queryParams }) { + measurementPersonnelLoading.value = true + measurementPersonnel.value = [{ + text: 'xx', + }] + measurementPersonnelLoading.value = false +} + +// 标准配套设备 +const corollaryEquipmentColumns = ref([ + { text: '设备名称', value: 'text', align: 'center' }, + { text: '设备编号', value: 'text', align: 'center' }, + { text: '型号', value: 'text', align: 'center' }, + { text: '测量范围', value: 'text', align: 'center' }, + { text: '使用部门', value: 'text', align: 'center' }, + { text: '检定时间', value: 'text', align: 'center' }, + { text: '检定结果', value: 'text', align: 'center' }, + { text: '有效日期', value: 'text', align: 'center' }, +]) +const corollaryEquipment = ref([]) +const corollaryEquipmentLoading = ref(false) +function fetchcorollaryEquipment(query = { ...queryParams }) { + corollaryEquipmentLoading.value = true + corollaryEquipment.value = [{ + text: 'xx', + }] + corollaryEquipmentLoading.value = false +} + +// 检定规程 +const regulationVerificationColumns = ref([ + { text: '文件名称', value: 'text', align: 'center' }, + { text: '文件编号', value: 'text', align: 'center' }, + { text: '文件号', value: 'text', align: 'center' }, + { text: '实施时间', value: 'text', align: 'center' }, + { text: '实施状态', value: 'text', align: 'center' }, +]) +const regulationVerification = ref([]) +const regulationVerificationLoading = ref(false) +function fetchregulationVerification(query = { ...queryParams }) { + regulationVerificationLoading.value = true + regulationVerification.value = [{ + text: 'xx', + }] + regulationVerificationLoading.value = false +} + +// 重复性考核记录 +const repetitiveRppraisalRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const repetitiveRppraisalRecord = ref([]) +const repetitiveRppraisalRecordLoading = ref(false) +function fetchrepetitiveRppraisalRecord(query = { ...queryParams }) { + repetitiveRppraisalRecordLoading.value = true + repetitiveRppraisalRecord.value = [{ + text: 'xx', + }] + repetitiveRppraisalRecordLoading.value = false +} + +// 稳定性考核记录 +const stabilityAssessmentRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const stabilityAssessmentRecord = ref([]) +const stabilityAssessmentRecordLoading = ref(false) +function fetchstabilityAssessmentRecord(query = { ...queryParams }) { + stabilityAssessmentRecordLoading.value = true + stabilityAssessmentRecord.value = [{ + text: 'xx', + }] + stabilityAssessmentRecordLoading.value = false +} + +// 证书管理 +const certificateManagementColumns = ref([ + { text: '证书编号', value: 'text', align: 'center' }, + { text: '证书名称', value: 'text', align: 'center' }, + { text: '证书类型', value: 'text', align: 'center' }, + { text: '证书出具日期', value: 'text', align: 'center' }, + { text: '证书有效期', value: 'text', align: 'center' }, +]) +const certificateManagement = ref([]) +const certificateManagementLoading = ref(false) +function fetchcertificateManagement(query = { ...queryParams }) { + certificateManagementLoading.value = true + certificateManagement.value = [{ + text: 'xx', + }] + certificateManagementLoading.value = false +} // 编辑获取详情的提交按钮 const submitFormDetail = () => { if (pageType.value === 'edit') { @@ -69,16 +197,17 @@ } else { // 打印 - const printObj = ref({ - id: 'print', // 需要打印元素的id - popTitle: '测量标准装置', // 打印配置页上方的标题 - extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 - preview: false, // 是否启动预览模式,默认是false - standard: '', - extarCss: '', - }) + } } +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '测量标准装置', // 打印配置页上方的标题 + extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) // 提交 const submitForm = () => { if (pageType.value === 'detail') { return submitFormDetail() } @@ -103,39 +232,62 @@ }) }) } +onMounted(() => { + if (pageType.value === 'detail') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + fetchrepetitiveRppraisalRecord() // 重复性考核记录 + fetchstabilityAssessmentRecord() // 稳定性考核记录 + fetchcertificateManagement() // 证书管理 + } + else if (pageType.value === 'edit') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + } +}) diff --git a/src/views/device/standingBook/adjustDevice.vue b/src/views/device/standingBook/adjustDevice.vue index a1a38bc..67ef11e 100644 --- a/src/views/device/standingBook/adjustDevice.vue +++ b/src/views/device/standingBook/adjustDevice.vue @@ -5,7 +5,7 @@ diff --git a/src/views/device/standingBook/components/fixedAssetsAdd.vue b/src/views/device/standingBook/components/fixedAssetsAdd.vue deleted file mode 100644 index f272ff7..0000000 --- a/src/views/device/standingBook/components/fixedAssetsAdd.vue +++ /dev/null @@ -1,755 +0,0 @@ - - - - - - diff --git a/src/views/device/standingBook/components/templateAdd.vue b/src/views/device/standingBook/components/templateAdd.vue index 049d8d4..e070af0 100644 --- a/src/views/device/standingBook/components/templateAdd.vue +++ b/src/views/device/standingBook/components/templateAdd.vue @@ -1,87 +1,148 @@ diff --git a/src/views/device/standingBook/components/templatePage.vue b/src/views/device/standingBook/components/templatePage.vue index f69b781..c7105dc 100644 --- a/src/views/device/standingBook/components/templatePage.vue +++ b/src/views/device/standingBook/components/templatePage.vue @@ -1,126 +1,92 @@ - diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@ @@ -654,6 +659,7 @@ @@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled > @@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue index c762b33..a75d816 100644 --- a/src/views/device/standardEquipment/components/standardList/baseInfo.vue +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -251,6 +251,7 @@ v-model.trim="formInline.standardNo" placeholder="系统编号,自动生成" disabled + class="full-width-input" />
@@ -260,6 +261,7 @@ v-model.trim="formInline.standardName" placeholder="标准名称" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -269,6 +271,7 @@ v-model.trim="formInline.projectNo" placeholder="项目编号" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -278,6 +281,7 @@ v-model.trim="formInline.constructionStandardProject" placeholder="建标项目" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -289,6 +293,7 @@ v-model.trim="formInline.organizeNo" placeholder="组织机构代码" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -301,6 +306,7 @@ v-model.trim="formInline.constructionStandardUnitName" placeholder="建标单位名称" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -312,6 +318,7 @@ placeholder="标准负责人" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -341,6 +349,7 @@ placeholder="类别" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -404,6 +416,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" :disabled="buttonType === 'detail'" @@ -418,6 +431,7 @@ placeholder="标准科室" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" @clear="clearDeptList" > @@ -445,6 +460,7 @@ v-model.trim="formInline.laboratoryOwnerContact" placeholder="联系方式" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -458,6 +474,7 @@ placeholder="管理状态" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -500,6 +519,7 @@ - + @@ -594,6 +616,7 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue index 20eb800..91c2c15 100644 --- a/src/views/device/standardEquipment/components/standardList/temptable.vue +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -1,7 +1,7 @@ diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index 1263b6c..bcdcf3b 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -4,7 +4,7 @@ import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' import baseInfo from './standardList/baseInfo.vue' -import table from './standardList/temptable.vue' +import TemplateTable from './standardList/templateTable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -34,16 +34,20 @@ comp: any } const menu = shallowRef([ - { name: '基本信息', comp: baseInfo }, - { name: '计量人员', comp: table }, - { name: '标准配套设备', comp: table }, - { name: '检定规程', comp: table }, - { name: '重复性考核记录', comp: table }, - { name: '稳定性考核记录', comp: table }, - { name: '证书管理', comp: table }, + { name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }, + { name: '重复性考核记录', comp: TemplateTable }, + { name: '稳定性考核记录', comp: TemplateTable }, + { name: '证书管理', comp: TemplateTable }, ]) +if (pageType.value === 'edit') { + menu.value = [{ name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }] +} const currentCompRef = ref() -const current = ref('基本信息') +const current = ref('计量人员') const currentComp = shallowRef(baseInfo) watch(current, (newValue) => { currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp @@ -57,6 +61,130 @@ const setData = (newValue: object) => { formInline.value = newValue } +const queryParams = { + id: '', + limit: 20, + offset: 1, +} +// 关闭 +interface TableColumn { + text: string + value: string + align: string +} + +interface checkedRecord { + text: string +} +// 计量人员 +const measurementPersonnelColumns = ref([ + { text: '姓名', value: 'name', align: 'center' }, + { text: '计量人员编号', value: 'staffNo', align: 'center' }, + { text: '工作部门', value: 'deptId', align: 'center' }, + { text: '计量专业', value: 'major', align: 'center' }, + { text: '证书编号', value: 'verifierCertificateNo', align: 'center' }, + { text: '证书有效期', value: 'certificateDate', align: 'center' }, +]) +const measurementPersonnel = ref([]) +const measurementPersonnelLoading = ref(false) +function fetchmeasurementPersonnel(query = { ...queryParams }) { + measurementPersonnelLoading.value = true + measurementPersonnel.value = [{ + text: 'xx', + }] + measurementPersonnelLoading.value = false +} + +// 标准配套设备 +const corollaryEquipmentColumns = ref([ + { text: '设备名称', value: 'text', align: 'center' }, + { text: '设备编号', value: 'text', align: 'center' }, + { text: '型号', value: 'text', align: 'center' }, + { text: '测量范围', value: 'text', align: 'center' }, + { text: '使用部门', value: 'text', align: 'center' }, + { text: '检定时间', value: 'text', align: 'center' }, + { text: '检定结果', value: 'text', align: 'center' }, + { text: '有效日期', value: 'text', align: 'center' }, +]) +const corollaryEquipment = ref([]) +const corollaryEquipmentLoading = ref(false) +function fetchcorollaryEquipment(query = { ...queryParams }) { + corollaryEquipmentLoading.value = true + corollaryEquipment.value = [{ + text: 'xx', + }] + corollaryEquipmentLoading.value = false +} + +// 检定规程 +const regulationVerificationColumns = ref([ + { text: '文件名称', value: 'text', align: 'center' }, + { text: '文件编号', value: 'text', align: 'center' }, + { text: '文件号', value: 'text', align: 'center' }, + { text: '实施时间', value: 'text', align: 'center' }, + { text: '实施状态', value: 'text', align: 'center' }, +]) +const regulationVerification = ref([]) +const regulationVerificationLoading = ref(false) +function fetchregulationVerification(query = { ...queryParams }) { + regulationVerificationLoading.value = true + regulationVerification.value = [{ + text: 'xx', + }] + regulationVerificationLoading.value = false +} + +// 重复性考核记录 +const repetitiveRppraisalRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const repetitiveRppraisalRecord = ref([]) +const repetitiveRppraisalRecordLoading = ref(false) +function fetchrepetitiveRppraisalRecord(query = { ...queryParams }) { + repetitiveRppraisalRecordLoading.value = true + repetitiveRppraisalRecord.value = [{ + text: 'xx', + }] + repetitiveRppraisalRecordLoading.value = false +} + +// 稳定性考核记录 +const stabilityAssessmentRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const stabilityAssessmentRecord = ref([]) +const stabilityAssessmentRecordLoading = ref(false) +function fetchstabilityAssessmentRecord(query = { ...queryParams }) { + stabilityAssessmentRecordLoading.value = true + stabilityAssessmentRecord.value = [{ + text: 'xx', + }] + stabilityAssessmentRecordLoading.value = false +} + +// 证书管理 +const certificateManagementColumns = ref([ + { text: '证书编号', value: 'text', align: 'center' }, + { text: '证书名称', value: 'text', align: 'center' }, + { text: '证书类型', value: 'text', align: 'center' }, + { text: '证书出具日期', value: 'text', align: 'center' }, + { text: '证书有效期', value: 'text', align: 'center' }, +]) +const certificateManagement = ref([]) +const certificateManagementLoading = ref(false) +function fetchcertificateManagement(query = { ...queryParams }) { + certificateManagementLoading.value = true + certificateManagement.value = [{ + text: 'xx', + }] + certificateManagementLoading.value = false +} // 编辑获取详情的提交按钮 const submitFormDetail = () => { if (pageType.value === 'edit') { @@ -69,16 +197,17 @@ } else { // 打印 - const printObj = ref({ - id: 'print', // 需要打印元素的id - popTitle: '测量标准装置', // 打印配置页上方的标题 - extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 - preview: false, // 是否启动预览模式,默认是false - standard: '', - extarCss: '', - }) + } } +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '测量标准装置', // 打印配置页上方的标题 + extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) // 提交 const submitForm = () => { if (pageType.value === 'detail') { return submitFormDetail() } @@ -103,39 +232,62 @@ }) }) } +onMounted(() => { + if (pageType.value === 'detail') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + fetchrepetitiveRppraisalRecord() // 重复性考核记录 + fetchstabilityAssessmentRecord() // 稳定性考核记录 + fetchcertificateManagement() // 证书管理 + } + else if (pageType.value === 'edit') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + } +}) diff --git a/src/views/device/standingBook/adjustDevice.vue b/src/views/device/standingBook/adjustDevice.vue index a1a38bc..67ef11e 100644 --- a/src/views/device/standingBook/adjustDevice.vue +++ b/src/views/device/standingBook/adjustDevice.vue @@ -5,7 +5,7 @@ diff --git a/src/views/device/standingBook/components/fixedAssetsAdd.vue b/src/views/device/standingBook/components/fixedAssetsAdd.vue deleted file mode 100644 index f272ff7..0000000 --- a/src/views/device/standingBook/components/fixedAssetsAdd.vue +++ /dev/null @@ -1,755 +0,0 @@ - - - - - - diff --git a/src/views/device/standingBook/components/templateAdd.vue b/src/views/device/standingBook/components/templateAdd.vue index 049d8d4..e070af0 100644 --- a/src/views/device/standingBook/components/templateAdd.vue +++ b/src/views/device/standingBook/components/templateAdd.vue @@ -1,87 +1,148 @@ diff --git a/src/views/device/standingBook/components/templatePage.vue b/src/views/device/standingBook/components/templatePage.vue index f69b781..c7105dc 100644 --- a/src/views/device/standingBook/components/templatePage.vue +++ b/src/views/device/standingBook/components/templatePage.vue @@ -1,126 +1,92 @@ - diff --git a/src/views/device/standingBook/fixedAssets.vue b/src/views/device/standingBook/fixedAssets.vue index cddb285..27892a3 100644 --- a/src/views/device/standingBook/fixedAssets.vue +++ b/src/views/device/standingBook/fixedAssets.vue @@ -22,56 +22,16 @@ const loadingTable = ref(false) // 表格loading const total = ref(0) // 数据总条数 const columns = ref([ - { - text: '固定资产编号', - value: 'assetNo', - align: 'center', - }, - { - text: '设备名称', - value: 'equipmentName', - align: 'center', - }, - { - text: '型号', - value: 'modelNo', - align: 'center', - }, - { - text: '设备规格', - value: 'equipmentSpecifications', - align: 'center', - }, - { - text: '设备类别', - value: 'equipmentCategoryName', - align: 'center', - }, - { - text: '设备类型', - value: 'equipmentTypeName', - align: 'center', - }, - { - text: '用途', - value: 'purpose', - align: 'center', - }, - { - text: '管理级别', - value: 'managerLevelName', - align: 'center', - }, - { - text: '使用单位', - value: 'useDeptName', - align: 'center', - }, - { - text: '创建时间', - value: 'createTime', - align: 'center', - }, + { text: '固定资产编号', value: 'assetNo', align: 'center', width: 160 }, + { text: '设备名称', value: 'equipmentName', align: 'center' }, + { text: '型号', value: 'modelNo', align: 'center' }, + { text: '设备规格', value: 'equipmentSpecifications', align: 'center' }, + { text: '设备类别', value: 'equipmentCategoryName', align: 'center' }, + { text: '设备类型', value: 'equipmentTypeName', align: 'center' }, + { text: '用途', value: 'purpose', align: 'center' }, + { text: '管理级别', value: 'managerLevelName', align: 'center', width: 90 }, + { text: '使用部门', value: 'useDeptName', align: 'center' }, + { text: '创建时间', value: 'createTime', align: 'center', width: 165 }, ]) // 表格 const printObj = ref({ id: 'print', // 需要打印元素的id @@ -128,13 +88,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'detail', }, query: { title: '详情', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -146,13 +107,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'edit', }, query: { title: '编辑', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -203,18 +165,15 @@ // 新增 const add = () => { $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'add', }, query: { title: '新建', + name: '固定资产', }, }) - // dialogVisible.value = true - // addRef.value.initDialog({ - // title: '新建', - // }) } // 表格被选中的行 const selectList = ref([]) @@ -344,7 +303,7 @@ 编辑 - 查看 + 详情 删除 diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@ @@ -654,6 +659,7 @@ @@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled > @@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue index c762b33..a75d816 100644 --- a/src/views/device/standardEquipment/components/standardList/baseInfo.vue +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -251,6 +251,7 @@ v-model.trim="formInline.standardNo" placeholder="系统编号,自动生成" disabled + class="full-width-input" />
@@ -260,6 +261,7 @@ v-model.trim="formInline.standardName" placeholder="标准名称" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -269,6 +271,7 @@ v-model.trim="formInline.projectNo" placeholder="项目编号" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -278,6 +281,7 @@ v-model.trim="formInline.constructionStandardProject" placeholder="建标项目" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -289,6 +293,7 @@ v-model.trim="formInline.organizeNo" placeholder="组织机构代码" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -301,6 +306,7 @@ v-model.trim="formInline.constructionStandardUnitName" placeholder="建标单位名称" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -312,6 +318,7 @@ placeholder="标准负责人" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -341,6 +349,7 @@ placeholder="类别" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -404,6 +416,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" :disabled="buttonType === 'detail'" @@ -418,6 +431,7 @@ placeholder="标准科室" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" @clear="clearDeptList" > @@ -445,6 +460,7 @@ v-model.trim="formInline.laboratoryOwnerContact" placeholder="联系方式" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -458,6 +474,7 @@ placeholder="管理状态" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -500,6 +519,7 @@ - + @@ -594,6 +616,7 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue index 20eb800..91c2c15 100644 --- a/src/views/device/standardEquipment/components/standardList/temptable.vue +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -1,7 +1,7 @@ diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index 1263b6c..bcdcf3b 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -4,7 +4,7 @@ import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' import baseInfo from './standardList/baseInfo.vue' -import table from './standardList/temptable.vue' +import TemplateTable from './standardList/templateTable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -34,16 +34,20 @@ comp: any } const menu = shallowRef([ - { name: '基本信息', comp: baseInfo }, - { name: '计量人员', comp: table }, - { name: '标准配套设备', comp: table }, - { name: '检定规程', comp: table }, - { name: '重复性考核记录', comp: table }, - { name: '稳定性考核记录', comp: table }, - { name: '证书管理', comp: table }, + { name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }, + { name: '重复性考核记录', comp: TemplateTable }, + { name: '稳定性考核记录', comp: TemplateTable }, + { name: '证书管理', comp: TemplateTable }, ]) +if (pageType.value === 'edit') { + menu.value = [{ name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }] +} const currentCompRef = ref() -const current = ref('基本信息') +const current = ref('计量人员') const currentComp = shallowRef(baseInfo) watch(current, (newValue) => { currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp @@ -57,6 +61,130 @@ const setData = (newValue: object) => { formInline.value = newValue } +const queryParams = { + id: '', + limit: 20, + offset: 1, +} +// 关闭 +interface TableColumn { + text: string + value: string + align: string +} + +interface checkedRecord { + text: string +} +// 计量人员 +const measurementPersonnelColumns = ref([ + { text: '姓名', value: 'name', align: 'center' }, + { text: '计量人员编号', value: 'staffNo', align: 'center' }, + { text: '工作部门', value: 'deptId', align: 'center' }, + { text: '计量专业', value: 'major', align: 'center' }, + { text: '证书编号', value: 'verifierCertificateNo', align: 'center' }, + { text: '证书有效期', value: 'certificateDate', align: 'center' }, +]) +const measurementPersonnel = ref([]) +const measurementPersonnelLoading = ref(false) +function fetchmeasurementPersonnel(query = { ...queryParams }) { + measurementPersonnelLoading.value = true + measurementPersonnel.value = [{ + text: 'xx', + }] + measurementPersonnelLoading.value = false +} + +// 标准配套设备 +const corollaryEquipmentColumns = ref([ + { text: '设备名称', value: 'text', align: 'center' }, + { text: '设备编号', value: 'text', align: 'center' }, + { text: '型号', value: 'text', align: 'center' }, + { text: '测量范围', value: 'text', align: 'center' }, + { text: '使用部门', value: 'text', align: 'center' }, + { text: '检定时间', value: 'text', align: 'center' }, + { text: '检定结果', value: 'text', align: 'center' }, + { text: '有效日期', value: 'text', align: 'center' }, +]) +const corollaryEquipment = ref([]) +const corollaryEquipmentLoading = ref(false) +function fetchcorollaryEquipment(query = { ...queryParams }) { + corollaryEquipmentLoading.value = true + corollaryEquipment.value = [{ + text: 'xx', + }] + corollaryEquipmentLoading.value = false +} + +// 检定规程 +const regulationVerificationColumns = ref([ + { text: '文件名称', value: 'text', align: 'center' }, + { text: '文件编号', value: 'text', align: 'center' }, + { text: '文件号', value: 'text', align: 'center' }, + { text: '实施时间', value: 'text', align: 'center' }, + { text: '实施状态', value: 'text', align: 'center' }, +]) +const regulationVerification = ref([]) +const regulationVerificationLoading = ref(false) +function fetchregulationVerification(query = { ...queryParams }) { + regulationVerificationLoading.value = true + regulationVerification.value = [{ + text: 'xx', + }] + regulationVerificationLoading.value = false +} + +// 重复性考核记录 +const repetitiveRppraisalRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const repetitiveRppraisalRecord = ref([]) +const repetitiveRppraisalRecordLoading = ref(false) +function fetchrepetitiveRppraisalRecord(query = { ...queryParams }) { + repetitiveRppraisalRecordLoading.value = true + repetitiveRppraisalRecord.value = [{ + text: 'xx', + }] + repetitiveRppraisalRecordLoading.value = false +} + +// 稳定性考核记录 +const stabilityAssessmentRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const stabilityAssessmentRecord = ref([]) +const stabilityAssessmentRecordLoading = ref(false) +function fetchstabilityAssessmentRecord(query = { ...queryParams }) { + stabilityAssessmentRecordLoading.value = true + stabilityAssessmentRecord.value = [{ + text: 'xx', + }] + stabilityAssessmentRecordLoading.value = false +} + +// 证书管理 +const certificateManagementColumns = ref([ + { text: '证书编号', value: 'text', align: 'center' }, + { text: '证书名称', value: 'text', align: 'center' }, + { text: '证书类型', value: 'text', align: 'center' }, + { text: '证书出具日期', value: 'text', align: 'center' }, + { text: '证书有效期', value: 'text', align: 'center' }, +]) +const certificateManagement = ref([]) +const certificateManagementLoading = ref(false) +function fetchcertificateManagement(query = { ...queryParams }) { + certificateManagementLoading.value = true + certificateManagement.value = [{ + text: 'xx', + }] + certificateManagementLoading.value = false +} // 编辑获取详情的提交按钮 const submitFormDetail = () => { if (pageType.value === 'edit') { @@ -69,16 +197,17 @@ } else { // 打印 - const printObj = ref({ - id: 'print', // 需要打印元素的id - popTitle: '测量标准装置', // 打印配置页上方的标题 - extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 - preview: false, // 是否启动预览模式,默认是false - standard: '', - extarCss: '', - }) + } } +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '测量标准装置', // 打印配置页上方的标题 + extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) // 提交 const submitForm = () => { if (pageType.value === 'detail') { return submitFormDetail() } @@ -103,39 +232,62 @@ }) }) } +onMounted(() => { + if (pageType.value === 'detail') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + fetchrepetitiveRppraisalRecord() // 重复性考核记录 + fetchstabilityAssessmentRecord() // 稳定性考核记录 + fetchcertificateManagement() // 证书管理 + } + else if (pageType.value === 'edit') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + } +}) diff --git a/src/views/device/standingBook/adjustDevice.vue b/src/views/device/standingBook/adjustDevice.vue index a1a38bc..67ef11e 100644 --- a/src/views/device/standingBook/adjustDevice.vue +++ b/src/views/device/standingBook/adjustDevice.vue @@ -5,7 +5,7 @@ diff --git a/src/views/device/standingBook/components/fixedAssetsAdd.vue b/src/views/device/standingBook/components/fixedAssetsAdd.vue deleted file mode 100644 index f272ff7..0000000 --- a/src/views/device/standingBook/components/fixedAssetsAdd.vue +++ /dev/null @@ -1,755 +0,0 @@ - - - - - - diff --git a/src/views/device/standingBook/components/templateAdd.vue b/src/views/device/standingBook/components/templateAdd.vue index 049d8d4..e070af0 100644 --- a/src/views/device/standingBook/components/templateAdd.vue +++ b/src/views/device/standingBook/components/templateAdd.vue @@ -1,87 +1,148 @@ diff --git a/src/views/device/standingBook/components/templatePage.vue b/src/views/device/standingBook/components/templatePage.vue index f69b781..c7105dc 100644 --- a/src/views/device/standingBook/components/templatePage.vue +++ b/src/views/device/standingBook/components/templatePage.vue @@ -1,126 +1,92 @@ - diff --git a/src/views/device/standingBook/fixedAssets.vue b/src/views/device/standingBook/fixedAssets.vue index cddb285..27892a3 100644 --- a/src/views/device/standingBook/fixedAssets.vue +++ b/src/views/device/standingBook/fixedAssets.vue @@ -22,56 +22,16 @@ const loadingTable = ref(false) // 表格loading const total = ref(0) // 数据总条数 const columns = ref([ - { - text: '固定资产编号', - value: 'assetNo', - align: 'center', - }, - { - text: '设备名称', - value: 'equipmentName', - align: 'center', - }, - { - text: '型号', - value: 'modelNo', - align: 'center', - }, - { - text: '设备规格', - value: 'equipmentSpecifications', - align: 'center', - }, - { - text: '设备类别', - value: 'equipmentCategoryName', - align: 'center', - }, - { - text: '设备类型', - value: 'equipmentTypeName', - align: 'center', - }, - { - text: '用途', - value: 'purpose', - align: 'center', - }, - { - text: '管理级别', - value: 'managerLevelName', - align: 'center', - }, - { - text: '使用单位', - value: 'useDeptName', - align: 'center', - }, - { - text: '创建时间', - value: 'createTime', - align: 'center', - }, + { text: '固定资产编号', value: 'assetNo', align: 'center', width: 160 }, + { text: '设备名称', value: 'equipmentName', align: 'center' }, + { text: '型号', value: 'modelNo', align: 'center' }, + { text: '设备规格', value: 'equipmentSpecifications', align: 'center' }, + { text: '设备类别', value: 'equipmentCategoryName', align: 'center' }, + { text: '设备类型', value: 'equipmentTypeName', align: 'center' }, + { text: '用途', value: 'purpose', align: 'center' }, + { text: '管理级别', value: 'managerLevelName', align: 'center', width: 90 }, + { text: '使用部门', value: 'useDeptName', align: 'center' }, + { text: '创建时间', value: 'createTime', align: 'center', width: 165 }, ]) // 表格 const printObj = ref({ id: 'print', // 需要打印元素的id @@ -128,13 +88,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'detail', }, query: { title: '详情', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -146,13 +107,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'edit', }, query: { title: '编辑', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -203,18 +165,15 @@ // 新增 const add = () => { $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'add', }, query: { title: '新建', + name: '固定资产', }, }) - // dialogVisible.value = true - // addRef.value.initDialog({ - // title: '新建', - // }) } // 表格被选中的行 const selectList = ref([]) @@ -344,7 +303,7 @@ 编辑 - 查看 + 详情 删除 diff --git a/src/views/device/standingBook/measureTool.vue b/src/views/device/standingBook/measureTool.vue index 7b9246a..a940bdf 100644 --- a/src/views/device/standingBook/measureTool.vue +++ b/src/views/device/standingBook/measureTool.vue @@ -5,7 +5,7 @@ diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@ @@ -654,6 +659,7 @@ @@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled > @@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue index c762b33..a75d816 100644 --- a/src/views/device/standardEquipment/components/standardList/baseInfo.vue +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -251,6 +251,7 @@ v-model.trim="formInline.standardNo" placeholder="系统编号,自动生成" disabled + class="full-width-input" />
@@ -260,6 +261,7 @@ v-model.trim="formInline.standardName" placeholder="标准名称" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -269,6 +271,7 @@ v-model.trim="formInline.projectNo" placeholder="项目编号" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -278,6 +281,7 @@ v-model.trim="formInline.constructionStandardProject" placeholder="建标项目" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -289,6 +293,7 @@ v-model.trim="formInline.organizeNo" placeholder="组织机构代码" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -301,6 +306,7 @@ v-model.trim="formInline.constructionStandardUnitName" placeholder="建标单位名称" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -312,6 +318,7 @@ placeholder="标准负责人" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -341,6 +349,7 @@ placeholder="类别" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -404,6 +416,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" :disabled="buttonType === 'detail'" @@ -418,6 +431,7 @@ placeholder="标准科室" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" @clear="clearDeptList" > @@ -445,6 +460,7 @@ v-model.trim="formInline.laboratoryOwnerContact" placeholder="联系方式" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -458,6 +474,7 @@ placeholder="管理状态" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -500,6 +519,7 @@ - + @@ -594,6 +616,7 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue index 20eb800..91c2c15 100644 --- a/src/views/device/standardEquipment/components/standardList/temptable.vue +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -1,7 +1,7 @@ diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index 1263b6c..bcdcf3b 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -4,7 +4,7 @@ import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' import baseInfo from './standardList/baseInfo.vue' -import table from './standardList/temptable.vue' +import TemplateTable from './standardList/templateTable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -34,16 +34,20 @@ comp: any } const menu = shallowRef([ - { name: '基本信息', comp: baseInfo }, - { name: '计量人员', comp: table }, - { name: '标准配套设备', comp: table }, - { name: '检定规程', comp: table }, - { name: '重复性考核记录', comp: table }, - { name: '稳定性考核记录', comp: table }, - { name: '证书管理', comp: table }, + { name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }, + { name: '重复性考核记录', comp: TemplateTable }, + { name: '稳定性考核记录', comp: TemplateTable }, + { name: '证书管理', comp: TemplateTable }, ]) +if (pageType.value === 'edit') { + menu.value = [{ name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }] +} const currentCompRef = ref() -const current = ref('基本信息') +const current = ref('计量人员') const currentComp = shallowRef(baseInfo) watch(current, (newValue) => { currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp @@ -57,6 +61,130 @@ const setData = (newValue: object) => { formInline.value = newValue } +const queryParams = { + id: '', + limit: 20, + offset: 1, +} +// 关闭 +interface TableColumn { + text: string + value: string + align: string +} + +interface checkedRecord { + text: string +} +// 计量人员 +const measurementPersonnelColumns = ref([ + { text: '姓名', value: 'name', align: 'center' }, + { text: '计量人员编号', value: 'staffNo', align: 'center' }, + { text: '工作部门', value: 'deptId', align: 'center' }, + { text: '计量专业', value: 'major', align: 'center' }, + { text: '证书编号', value: 'verifierCertificateNo', align: 'center' }, + { text: '证书有效期', value: 'certificateDate', align: 'center' }, +]) +const measurementPersonnel = ref([]) +const measurementPersonnelLoading = ref(false) +function fetchmeasurementPersonnel(query = { ...queryParams }) { + measurementPersonnelLoading.value = true + measurementPersonnel.value = [{ + text: 'xx', + }] + measurementPersonnelLoading.value = false +} + +// 标准配套设备 +const corollaryEquipmentColumns = ref([ + { text: '设备名称', value: 'text', align: 'center' }, + { text: '设备编号', value: 'text', align: 'center' }, + { text: '型号', value: 'text', align: 'center' }, + { text: '测量范围', value: 'text', align: 'center' }, + { text: '使用部门', value: 'text', align: 'center' }, + { text: '检定时间', value: 'text', align: 'center' }, + { text: '检定结果', value: 'text', align: 'center' }, + { text: '有效日期', value: 'text', align: 'center' }, +]) +const corollaryEquipment = ref([]) +const corollaryEquipmentLoading = ref(false) +function fetchcorollaryEquipment(query = { ...queryParams }) { + corollaryEquipmentLoading.value = true + corollaryEquipment.value = [{ + text: 'xx', + }] + corollaryEquipmentLoading.value = false +} + +// 检定规程 +const regulationVerificationColumns = ref([ + { text: '文件名称', value: 'text', align: 'center' }, + { text: '文件编号', value: 'text', align: 'center' }, + { text: '文件号', value: 'text', align: 'center' }, + { text: '实施时间', value: 'text', align: 'center' }, + { text: '实施状态', value: 'text', align: 'center' }, +]) +const regulationVerification = ref([]) +const regulationVerificationLoading = ref(false) +function fetchregulationVerification(query = { ...queryParams }) { + regulationVerificationLoading.value = true + regulationVerification.value = [{ + text: 'xx', + }] + regulationVerificationLoading.value = false +} + +// 重复性考核记录 +const repetitiveRppraisalRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const repetitiveRppraisalRecord = ref([]) +const repetitiveRppraisalRecordLoading = ref(false) +function fetchrepetitiveRppraisalRecord(query = { ...queryParams }) { + repetitiveRppraisalRecordLoading.value = true + repetitiveRppraisalRecord.value = [{ + text: 'xx', + }] + repetitiveRppraisalRecordLoading.value = false +} + +// 稳定性考核记录 +const stabilityAssessmentRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const stabilityAssessmentRecord = ref([]) +const stabilityAssessmentRecordLoading = ref(false) +function fetchstabilityAssessmentRecord(query = { ...queryParams }) { + stabilityAssessmentRecordLoading.value = true + stabilityAssessmentRecord.value = [{ + text: 'xx', + }] + stabilityAssessmentRecordLoading.value = false +} + +// 证书管理 +const certificateManagementColumns = ref([ + { text: '证书编号', value: 'text', align: 'center' }, + { text: '证书名称', value: 'text', align: 'center' }, + { text: '证书类型', value: 'text', align: 'center' }, + { text: '证书出具日期', value: 'text', align: 'center' }, + { text: '证书有效期', value: 'text', align: 'center' }, +]) +const certificateManagement = ref([]) +const certificateManagementLoading = ref(false) +function fetchcertificateManagement(query = { ...queryParams }) { + certificateManagementLoading.value = true + certificateManagement.value = [{ + text: 'xx', + }] + certificateManagementLoading.value = false +} // 编辑获取详情的提交按钮 const submitFormDetail = () => { if (pageType.value === 'edit') { @@ -69,16 +197,17 @@ } else { // 打印 - const printObj = ref({ - id: 'print', // 需要打印元素的id - popTitle: '测量标准装置', // 打印配置页上方的标题 - extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 - preview: false, // 是否启动预览模式,默认是false - standard: '', - extarCss: '', - }) + } } +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '测量标准装置', // 打印配置页上方的标题 + extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) // 提交 const submitForm = () => { if (pageType.value === 'detail') { return submitFormDetail() } @@ -103,39 +232,62 @@ }) }) } +onMounted(() => { + if (pageType.value === 'detail') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + fetchrepetitiveRppraisalRecord() // 重复性考核记录 + fetchstabilityAssessmentRecord() // 稳定性考核记录 + fetchcertificateManagement() // 证书管理 + } + else if (pageType.value === 'edit') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + } +}) diff --git a/src/views/device/standingBook/adjustDevice.vue b/src/views/device/standingBook/adjustDevice.vue index a1a38bc..67ef11e 100644 --- a/src/views/device/standingBook/adjustDevice.vue +++ b/src/views/device/standingBook/adjustDevice.vue @@ -5,7 +5,7 @@ diff --git a/src/views/device/standingBook/components/fixedAssetsAdd.vue b/src/views/device/standingBook/components/fixedAssetsAdd.vue deleted file mode 100644 index f272ff7..0000000 --- a/src/views/device/standingBook/components/fixedAssetsAdd.vue +++ /dev/null @@ -1,755 +0,0 @@ - - - - - - diff --git a/src/views/device/standingBook/components/templateAdd.vue b/src/views/device/standingBook/components/templateAdd.vue index 049d8d4..e070af0 100644 --- a/src/views/device/standingBook/components/templateAdd.vue +++ b/src/views/device/standingBook/components/templateAdd.vue @@ -1,87 +1,148 @@ diff --git a/src/views/device/standingBook/components/templatePage.vue b/src/views/device/standingBook/components/templatePage.vue index f69b781..c7105dc 100644 --- a/src/views/device/standingBook/components/templatePage.vue +++ b/src/views/device/standingBook/components/templatePage.vue @@ -1,126 +1,92 @@ - diff --git a/src/views/device/standingBook/fixedAssets.vue b/src/views/device/standingBook/fixedAssets.vue index cddb285..27892a3 100644 --- a/src/views/device/standingBook/fixedAssets.vue +++ b/src/views/device/standingBook/fixedAssets.vue @@ -22,56 +22,16 @@ const loadingTable = ref(false) // 表格loading const total = ref(0) // 数据总条数 const columns = ref([ - { - text: '固定资产编号', - value: 'assetNo', - align: 'center', - }, - { - text: '设备名称', - value: 'equipmentName', - align: 'center', - }, - { - text: '型号', - value: 'modelNo', - align: 'center', - }, - { - text: '设备规格', - value: 'equipmentSpecifications', - align: 'center', - }, - { - text: '设备类别', - value: 'equipmentCategoryName', - align: 'center', - }, - { - text: '设备类型', - value: 'equipmentTypeName', - align: 'center', - }, - { - text: '用途', - value: 'purpose', - align: 'center', - }, - { - text: '管理级别', - value: 'managerLevelName', - align: 'center', - }, - { - text: '使用单位', - value: 'useDeptName', - align: 'center', - }, - { - text: '创建时间', - value: 'createTime', - align: 'center', - }, + { text: '固定资产编号', value: 'assetNo', align: 'center', width: 160 }, + { text: '设备名称', value: 'equipmentName', align: 'center' }, + { text: '型号', value: 'modelNo', align: 'center' }, + { text: '设备规格', value: 'equipmentSpecifications', align: 'center' }, + { text: '设备类别', value: 'equipmentCategoryName', align: 'center' }, + { text: '设备类型', value: 'equipmentTypeName', align: 'center' }, + { text: '用途', value: 'purpose', align: 'center' }, + { text: '管理级别', value: 'managerLevelName', align: 'center', width: 90 }, + { text: '使用部门', value: 'useDeptName', align: 'center' }, + { text: '创建时间', value: 'createTime', align: 'center', width: 165 }, ]) // 表格 const printObj = ref({ id: 'print', // 需要打印元素的id @@ -128,13 +88,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'detail', }, query: { title: '详情', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -146,13 +107,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'edit', }, query: { title: '编辑', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -203,18 +165,15 @@ // 新增 const add = () => { $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'add', }, query: { title: '新建', + name: '固定资产', }, }) - // dialogVisible.value = true - // addRef.value.initDialog({ - // title: '新建', - // }) } // 表格被选中的行 const selectList = ref([]) @@ -344,7 +303,7 @@ 编辑 - 查看 + 详情 删除 diff --git a/src/views/device/standingBook/measureTool.vue b/src/views/device/standingBook/measureTool.vue index 7b9246a..a940bdf 100644 --- a/src/views/device/standingBook/measureTool.vue +++ b/src/views/device/standingBook/measureTool.vue @@ -5,7 +5,7 @@ diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@ @@ -654,6 +659,7 @@ @@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled > @@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue index c762b33..a75d816 100644 --- a/src/views/device/standardEquipment/components/standardList/baseInfo.vue +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -251,6 +251,7 @@ v-model.trim="formInline.standardNo" placeholder="系统编号,自动生成" disabled + class="full-width-input" />
@@ -260,6 +261,7 @@ v-model.trim="formInline.standardName" placeholder="标准名称" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -269,6 +271,7 @@ v-model.trim="formInline.projectNo" placeholder="项目编号" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -278,6 +281,7 @@ v-model.trim="formInline.constructionStandardProject" placeholder="建标项目" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -289,6 +293,7 @@ v-model.trim="formInline.organizeNo" placeholder="组织机构代码" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -301,6 +306,7 @@ v-model.trim="formInline.constructionStandardUnitName" placeholder="建标单位名称" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -312,6 +318,7 @@ placeholder="标准负责人" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -341,6 +349,7 @@ placeholder="类别" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -404,6 +416,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" :disabled="buttonType === 'detail'" @@ -418,6 +431,7 @@ placeholder="标准科室" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" @clear="clearDeptList" > @@ -445,6 +460,7 @@ v-model.trim="formInline.laboratoryOwnerContact" placeholder="联系方式" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -458,6 +474,7 @@ placeholder="管理状态" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -500,6 +519,7 @@ - + @@ -594,6 +616,7 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue index 20eb800..91c2c15 100644 --- a/src/views/device/standardEquipment/components/standardList/temptable.vue +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -1,7 +1,7 @@ diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index 1263b6c..bcdcf3b 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -4,7 +4,7 @@ import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' import baseInfo from './standardList/baseInfo.vue' -import table from './standardList/temptable.vue' +import TemplateTable from './standardList/templateTable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -34,16 +34,20 @@ comp: any } const menu = shallowRef([ - { name: '基本信息', comp: baseInfo }, - { name: '计量人员', comp: table }, - { name: '标准配套设备', comp: table }, - { name: '检定规程', comp: table }, - { name: '重复性考核记录', comp: table }, - { name: '稳定性考核记录', comp: table }, - { name: '证书管理', comp: table }, + { name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }, + { name: '重复性考核记录', comp: TemplateTable }, + { name: '稳定性考核记录', comp: TemplateTable }, + { name: '证书管理', comp: TemplateTable }, ]) +if (pageType.value === 'edit') { + menu.value = [{ name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }] +} const currentCompRef = ref() -const current = ref('基本信息') +const current = ref('计量人员') const currentComp = shallowRef(baseInfo) watch(current, (newValue) => { currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp @@ -57,6 +61,130 @@ const setData = (newValue: object) => { formInline.value = newValue } +const queryParams = { + id: '', + limit: 20, + offset: 1, +} +// 关闭 +interface TableColumn { + text: string + value: string + align: string +} + +interface checkedRecord { + text: string +} +// 计量人员 +const measurementPersonnelColumns = ref([ + { text: '姓名', value: 'name', align: 'center' }, + { text: '计量人员编号', value: 'staffNo', align: 'center' }, + { text: '工作部门', value: 'deptId', align: 'center' }, + { text: '计量专业', value: 'major', align: 'center' }, + { text: '证书编号', value: 'verifierCertificateNo', align: 'center' }, + { text: '证书有效期', value: 'certificateDate', align: 'center' }, +]) +const measurementPersonnel = ref([]) +const measurementPersonnelLoading = ref(false) +function fetchmeasurementPersonnel(query = { ...queryParams }) { + measurementPersonnelLoading.value = true + measurementPersonnel.value = [{ + text: 'xx', + }] + measurementPersonnelLoading.value = false +} + +// 标准配套设备 +const corollaryEquipmentColumns = ref([ + { text: '设备名称', value: 'text', align: 'center' }, + { text: '设备编号', value: 'text', align: 'center' }, + { text: '型号', value: 'text', align: 'center' }, + { text: '测量范围', value: 'text', align: 'center' }, + { text: '使用部门', value: 'text', align: 'center' }, + { text: '检定时间', value: 'text', align: 'center' }, + { text: '检定结果', value: 'text', align: 'center' }, + { text: '有效日期', value: 'text', align: 'center' }, +]) +const corollaryEquipment = ref([]) +const corollaryEquipmentLoading = ref(false) +function fetchcorollaryEquipment(query = { ...queryParams }) { + corollaryEquipmentLoading.value = true + corollaryEquipment.value = [{ + text: 'xx', + }] + corollaryEquipmentLoading.value = false +} + +// 检定规程 +const regulationVerificationColumns = ref([ + { text: '文件名称', value: 'text', align: 'center' }, + { text: '文件编号', value: 'text', align: 'center' }, + { text: '文件号', value: 'text', align: 'center' }, + { text: '实施时间', value: 'text', align: 'center' }, + { text: '实施状态', value: 'text', align: 'center' }, +]) +const regulationVerification = ref([]) +const regulationVerificationLoading = ref(false) +function fetchregulationVerification(query = { ...queryParams }) { + regulationVerificationLoading.value = true + regulationVerification.value = [{ + text: 'xx', + }] + regulationVerificationLoading.value = false +} + +// 重复性考核记录 +const repetitiveRppraisalRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const repetitiveRppraisalRecord = ref([]) +const repetitiveRppraisalRecordLoading = ref(false) +function fetchrepetitiveRppraisalRecord(query = { ...queryParams }) { + repetitiveRppraisalRecordLoading.value = true + repetitiveRppraisalRecord.value = [{ + text: 'xx', + }] + repetitiveRppraisalRecordLoading.value = false +} + +// 稳定性考核记录 +const stabilityAssessmentRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const stabilityAssessmentRecord = ref([]) +const stabilityAssessmentRecordLoading = ref(false) +function fetchstabilityAssessmentRecord(query = { ...queryParams }) { + stabilityAssessmentRecordLoading.value = true + stabilityAssessmentRecord.value = [{ + text: 'xx', + }] + stabilityAssessmentRecordLoading.value = false +} + +// 证书管理 +const certificateManagementColumns = ref([ + { text: '证书编号', value: 'text', align: 'center' }, + { text: '证书名称', value: 'text', align: 'center' }, + { text: '证书类型', value: 'text', align: 'center' }, + { text: '证书出具日期', value: 'text', align: 'center' }, + { text: '证书有效期', value: 'text', align: 'center' }, +]) +const certificateManagement = ref([]) +const certificateManagementLoading = ref(false) +function fetchcertificateManagement(query = { ...queryParams }) { + certificateManagementLoading.value = true + certificateManagement.value = [{ + text: 'xx', + }] + certificateManagementLoading.value = false +} // 编辑获取详情的提交按钮 const submitFormDetail = () => { if (pageType.value === 'edit') { @@ -69,16 +197,17 @@ } else { // 打印 - const printObj = ref({ - id: 'print', // 需要打印元素的id - popTitle: '测量标准装置', // 打印配置页上方的标题 - extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 - preview: false, // 是否启动预览模式,默认是false - standard: '', - extarCss: '', - }) + } } +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '测量标准装置', // 打印配置页上方的标题 + extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) // 提交 const submitForm = () => { if (pageType.value === 'detail') { return submitFormDetail() } @@ -103,39 +232,62 @@ }) }) } +onMounted(() => { + if (pageType.value === 'detail') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + fetchrepetitiveRppraisalRecord() // 重复性考核记录 + fetchstabilityAssessmentRecord() // 稳定性考核记录 + fetchcertificateManagement() // 证书管理 + } + else if (pageType.value === 'edit') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + } +}) diff --git a/src/views/device/standingBook/adjustDevice.vue b/src/views/device/standingBook/adjustDevice.vue index a1a38bc..67ef11e 100644 --- a/src/views/device/standingBook/adjustDevice.vue +++ b/src/views/device/standingBook/adjustDevice.vue @@ -5,7 +5,7 @@ diff --git a/src/views/device/standingBook/components/fixedAssetsAdd.vue b/src/views/device/standingBook/components/fixedAssetsAdd.vue deleted file mode 100644 index f272ff7..0000000 --- a/src/views/device/standingBook/components/fixedAssetsAdd.vue +++ /dev/null @@ -1,755 +0,0 @@ - - - - - - diff --git a/src/views/device/standingBook/components/templateAdd.vue b/src/views/device/standingBook/components/templateAdd.vue index 049d8d4..e070af0 100644 --- a/src/views/device/standingBook/components/templateAdd.vue +++ b/src/views/device/standingBook/components/templateAdd.vue @@ -1,87 +1,148 @@ diff --git a/src/views/device/standingBook/components/templatePage.vue b/src/views/device/standingBook/components/templatePage.vue index f69b781..c7105dc 100644 --- a/src/views/device/standingBook/components/templatePage.vue +++ b/src/views/device/standingBook/components/templatePage.vue @@ -1,126 +1,92 @@ - diff --git a/src/views/device/standingBook/fixedAssets.vue b/src/views/device/standingBook/fixedAssets.vue index cddb285..27892a3 100644 --- a/src/views/device/standingBook/fixedAssets.vue +++ b/src/views/device/standingBook/fixedAssets.vue @@ -22,56 +22,16 @@ const loadingTable = ref(false) // 表格loading const total = ref(0) // 数据总条数 const columns = ref([ - { - text: '固定资产编号', - value: 'assetNo', - align: 'center', - }, - { - text: '设备名称', - value: 'equipmentName', - align: 'center', - }, - { - text: '型号', - value: 'modelNo', - align: 'center', - }, - { - text: '设备规格', - value: 'equipmentSpecifications', - align: 'center', - }, - { - text: '设备类别', - value: 'equipmentCategoryName', - align: 'center', - }, - { - text: '设备类型', - value: 'equipmentTypeName', - align: 'center', - }, - { - text: '用途', - value: 'purpose', - align: 'center', - }, - { - text: '管理级别', - value: 'managerLevelName', - align: 'center', - }, - { - text: '使用单位', - value: 'useDeptName', - align: 'center', - }, - { - text: '创建时间', - value: 'createTime', - align: 'center', - }, + { text: '固定资产编号', value: 'assetNo', align: 'center', width: 160 }, + { text: '设备名称', value: 'equipmentName', align: 'center' }, + { text: '型号', value: 'modelNo', align: 'center' }, + { text: '设备规格', value: 'equipmentSpecifications', align: 'center' }, + { text: '设备类别', value: 'equipmentCategoryName', align: 'center' }, + { text: '设备类型', value: 'equipmentTypeName', align: 'center' }, + { text: '用途', value: 'purpose', align: 'center' }, + { text: '管理级别', value: 'managerLevelName', align: 'center', width: 90 }, + { text: '使用部门', value: 'useDeptName', align: 'center' }, + { text: '创建时间', value: 'createTime', align: 'center', width: 165 }, ]) // 表格 const printObj = ref({ id: 'print', // 需要打印元素的id @@ -128,13 +88,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'detail', }, query: { title: '详情', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -146,13 +107,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'edit', }, query: { title: '编辑', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -203,18 +165,15 @@ // 新增 const add = () => { $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'add', }, query: { title: '新建', + name: '固定资产', }, }) - // dialogVisible.value = true - // addRef.value.initDialog({ - // title: '新建', - // }) } // 表格被选中的行 const selectList = ref([]) @@ -344,7 +303,7 @@ 编辑 - 查看 + 详情 删除 diff --git a/src/views/device/standingBook/measureTool.vue b/src/views/device/standingBook/measureTool.vue index 7b9246a..a940bdf 100644 --- a/src/views/device/standingBook/measureTool.vue +++ b/src/views/device/standingBook/measureTool.vue @@ -5,7 +5,7 @@ diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@ @@ -654,6 +659,7 @@ @@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled > @@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue index c762b33..a75d816 100644 --- a/src/views/device/standardEquipment/components/standardList/baseInfo.vue +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -251,6 +251,7 @@ v-model.trim="formInline.standardNo" placeholder="系统编号,自动生成" disabled + class="full-width-input" />
@@ -260,6 +261,7 @@ v-model.trim="formInline.standardName" placeholder="标准名称" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -269,6 +271,7 @@ v-model.trim="formInline.projectNo" placeholder="项目编号" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -278,6 +281,7 @@ v-model.trim="formInline.constructionStandardProject" placeholder="建标项目" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -289,6 +293,7 @@ v-model.trim="formInline.organizeNo" placeholder="组织机构代码" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -301,6 +306,7 @@ v-model.trim="formInline.constructionStandardUnitName" placeholder="建标单位名称" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -312,6 +318,7 @@ placeholder="标准负责人" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -341,6 +349,7 @@ placeholder="类别" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -404,6 +416,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" :disabled="buttonType === 'detail'" @@ -418,6 +431,7 @@ placeholder="标准科室" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" @clear="clearDeptList" > @@ -445,6 +460,7 @@ v-model.trim="formInline.laboratoryOwnerContact" placeholder="联系方式" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -458,6 +474,7 @@ placeholder="管理状态" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -500,6 +519,7 @@ - + @@ -594,6 +616,7 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue index 20eb800..91c2c15 100644 --- a/src/views/device/standardEquipment/components/standardList/temptable.vue +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -1,7 +1,7 @@ diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index 1263b6c..bcdcf3b 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -4,7 +4,7 @@ import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' import baseInfo from './standardList/baseInfo.vue' -import table from './standardList/temptable.vue' +import TemplateTable from './standardList/templateTable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -34,16 +34,20 @@ comp: any } const menu = shallowRef([ - { name: '基本信息', comp: baseInfo }, - { name: '计量人员', comp: table }, - { name: '标准配套设备', comp: table }, - { name: '检定规程', comp: table }, - { name: '重复性考核记录', comp: table }, - { name: '稳定性考核记录', comp: table }, - { name: '证书管理', comp: table }, + { name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }, + { name: '重复性考核记录', comp: TemplateTable }, + { name: '稳定性考核记录', comp: TemplateTable }, + { name: '证书管理', comp: TemplateTable }, ]) +if (pageType.value === 'edit') { + menu.value = [{ name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }] +} const currentCompRef = ref() -const current = ref('基本信息') +const current = ref('计量人员') const currentComp = shallowRef(baseInfo) watch(current, (newValue) => { currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp @@ -57,6 +61,130 @@ const setData = (newValue: object) => { formInline.value = newValue } +const queryParams = { + id: '', + limit: 20, + offset: 1, +} +// 关闭 +interface TableColumn { + text: string + value: string + align: string +} + +interface checkedRecord { + text: string +} +// 计量人员 +const measurementPersonnelColumns = ref([ + { text: '姓名', value: 'name', align: 'center' }, + { text: '计量人员编号', value: 'staffNo', align: 'center' }, + { text: '工作部门', value: 'deptId', align: 'center' }, + { text: '计量专业', value: 'major', align: 'center' }, + { text: '证书编号', value: 'verifierCertificateNo', align: 'center' }, + { text: '证书有效期', value: 'certificateDate', align: 'center' }, +]) +const measurementPersonnel = ref([]) +const measurementPersonnelLoading = ref(false) +function fetchmeasurementPersonnel(query = { ...queryParams }) { + measurementPersonnelLoading.value = true + measurementPersonnel.value = [{ + text: 'xx', + }] + measurementPersonnelLoading.value = false +} + +// 标准配套设备 +const corollaryEquipmentColumns = ref([ + { text: '设备名称', value: 'text', align: 'center' }, + { text: '设备编号', value: 'text', align: 'center' }, + { text: '型号', value: 'text', align: 'center' }, + { text: '测量范围', value: 'text', align: 'center' }, + { text: '使用部门', value: 'text', align: 'center' }, + { text: '检定时间', value: 'text', align: 'center' }, + { text: '检定结果', value: 'text', align: 'center' }, + { text: '有效日期', value: 'text', align: 'center' }, +]) +const corollaryEquipment = ref([]) +const corollaryEquipmentLoading = ref(false) +function fetchcorollaryEquipment(query = { ...queryParams }) { + corollaryEquipmentLoading.value = true + corollaryEquipment.value = [{ + text: 'xx', + }] + corollaryEquipmentLoading.value = false +} + +// 检定规程 +const regulationVerificationColumns = ref([ + { text: '文件名称', value: 'text', align: 'center' }, + { text: '文件编号', value: 'text', align: 'center' }, + { text: '文件号', value: 'text', align: 'center' }, + { text: '实施时间', value: 'text', align: 'center' }, + { text: '实施状态', value: 'text', align: 'center' }, +]) +const regulationVerification = ref([]) +const regulationVerificationLoading = ref(false) +function fetchregulationVerification(query = { ...queryParams }) { + regulationVerificationLoading.value = true + regulationVerification.value = [{ + text: 'xx', + }] + regulationVerificationLoading.value = false +} + +// 重复性考核记录 +const repetitiveRppraisalRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const repetitiveRppraisalRecord = ref([]) +const repetitiveRppraisalRecordLoading = ref(false) +function fetchrepetitiveRppraisalRecord(query = { ...queryParams }) { + repetitiveRppraisalRecordLoading.value = true + repetitiveRppraisalRecord.value = [{ + text: 'xx', + }] + repetitiveRppraisalRecordLoading.value = false +} + +// 稳定性考核记录 +const stabilityAssessmentRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const stabilityAssessmentRecord = ref([]) +const stabilityAssessmentRecordLoading = ref(false) +function fetchstabilityAssessmentRecord(query = { ...queryParams }) { + stabilityAssessmentRecordLoading.value = true + stabilityAssessmentRecord.value = [{ + text: 'xx', + }] + stabilityAssessmentRecordLoading.value = false +} + +// 证书管理 +const certificateManagementColumns = ref([ + { text: '证书编号', value: 'text', align: 'center' }, + { text: '证书名称', value: 'text', align: 'center' }, + { text: '证书类型', value: 'text', align: 'center' }, + { text: '证书出具日期', value: 'text', align: 'center' }, + { text: '证书有效期', value: 'text', align: 'center' }, +]) +const certificateManagement = ref([]) +const certificateManagementLoading = ref(false) +function fetchcertificateManagement(query = { ...queryParams }) { + certificateManagementLoading.value = true + certificateManagement.value = [{ + text: 'xx', + }] + certificateManagementLoading.value = false +} // 编辑获取详情的提交按钮 const submitFormDetail = () => { if (pageType.value === 'edit') { @@ -69,16 +197,17 @@ } else { // 打印 - const printObj = ref({ - id: 'print', // 需要打印元素的id - popTitle: '测量标准装置', // 打印配置页上方的标题 - extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 - preview: false, // 是否启动预览模式,默认是false - standard: '', - extarCss: '', - }) + } } +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '测量标准装置', // 打印配置页上方的标题 + extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) // 提交 const submitForm = () => { if (pageType.value === 'detail') { return submitFormDetail() } @@ -103,39 +232,62 @@ }) }) } +onMounted(() => { + if (pageType.value === 'detail') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + fetchrepetitiveRppraisalRecord() // 重复性考核记录 + fetchstabilityAssessmentRecord() // 稳定性考核记录 + fetchcertificateManagement() // 证书管理 + } + else if (pageType.value === 'edit') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + } +}) diff --git a/src/views/device/standingBook/adjustDevice.vue b/src/views/device/standingBook/adjustDevice.vue index a1a38bc..67ef11e 100644 --- a/src/views/device/standingBook/adjustDevice.vue +++ b/src/views/device/standingBook/adjustDevice.vue @@ -5,7 +5,7 @@ diff --git a/src/views/device/standingBook/components/fixedAssetsAdd.vue b/src/views/device/standingBook/components/fixedAssetsAdd.vue deleted file mode 100644 index f272ff7..0000000 --- a/src/views/device/standingBook/components/fixedAssetsAdd.vue +++ /dev/null @@ -1,755 +0,0 @@ - - - - - - diff --git a/src/views/device/standingBook/components/templateAdd.vue b/src/views/device/standingBook/components/templateAdd.vue index 049d8d4..e070af0 100644 --- a/src/views/device/standingBook/components/templateAdd.vue +++ b/src/views/device/standingBook/components/templateAdd.vue @@ -1,87 +1,148 @@ diff --git a/src/views/device/standingBook/components/templatePage.vue b/src/views/device/standingBook/components/templatePage.vue index f69b781..c7105dc 100644 --- a/src/views/device/standingBook/components/templatePage.vue +++ b/src/views/device/standingBook/components/templatePage.vue @@ -1,126 +1,92 @@ - diff --git a/src/views/device/standingBook/fixedAssets.vue b/src/views/device/standingBook/fixedAssets.vue index cddb285..27892a3 100644 --- a/src/views/device/standingBook/fixedAssets.vue +++ b/src/views/device/standingBook/fixedAssets.vue @@ -22,56 +22,16 @@ const loadingTable = ref(false) // 表格loading const total = ref(0) // 数据总条数 const columns = ref([ - { - text: '固定资产编号', - value: 'assetNo', - align: 'center', - }, - { - text: '设备名称', - value: 'equipmentName', - align: 'center', - }, - { - text: '型号', - value: 'modelNo', - align: 'center', - }, - { - text: '设备规格', - value: 'equipmentSpecifications', - align: 'center', - }, - { - text: '设备类别', - value: 'equipmentCategoryName', - align: 'center', - }, - { - text: '设备类型', - value: 'equipmentTypeName', - align: 'center', - }, - { - text: '用途', - value: 'purpose', - align: 'center', - }, - { - text: '管理级别', - value: 'managerLevelName', - align: 'center', - }, - { - text: '使用单位', - value: 'useDeptName', - align: 'center', - }, - { - text: '创建时间', - value: 'createTime', - align: 'center', - }, + { text: '固定资产编号', value: 'assetNo', align: 'center', width: 160 }, + { text: '设备名称', value: 'equipmentName', align: 'center' }, + { text: '型号', value: 'modelNo', align: 'center' }, + { text: '设备规格', value: 'equipmentSpecifications', align: 'center' }, + { text: '设备类别', value: 'equipmentCategoryName', align: 'center' }, + { text: '设备类型', value: 'equipmentTypeName', align: 'center' }, + { text: '用途', value: 'purpose', align: 'center' }, + { text: '管理级别', value: 'managerLevelName', align: 'center', width: 90 }, + { text: '使用部门', value: 'useDeptName', align: 'center' }, + { text: '创建时间', value: 'createTime', align: 'center', width: 165 }, ]) // 表格 const printObj = ref({ id: 'print', // 需要打印元素的id @@ -128,13 +88,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'detail', }, query: { title: '详情', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -146,13 +107,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'edit', }, query: { title: '编辑', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -203,18 +165,15 @@ // 新增 const add = () => { $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'add', }, query: { title: '新建', + name: '固定资产', }, }) - // dialogVisible.value = true - // addRef.value.initDialog({ - // title: '新建', - // }) } // 表格被选中的行 const selectList = ref([]) @@ -344,7 +303,7 @@ 编辑 - 查看 + 详情 删除 diff --git a/src/views/device/standingBook/measureTool.vue b/src/views/device/standingBook/measureTool.vue index 7b9246a..a940bdf 100644 --- a/src/views/device/standingBook/measureTool.vue +++ b/src/views/device/standingBook/measureTool.vue @@ -5,7 +5,7 @@ diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@ @@ -654,6 +659,7 @@ @@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled > @@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue index c762b33..a75d816 100644 --- a/src/views/device/standardEquipment/components/standardList/baseInfo.vue +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -251,6 +251,7 @@ v-model.trim="formInline.standardNo" placeholder="系统编号,自动生成" disabled + class="full-width-input" />
@@ -260,6 +261,7 @@ v-model.trim="formInline.standardName" placeholder="标准名称" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -269,6 +271,7 @@ v-model.trim="formInline.projectNo" placeholder="项目编号" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -278,6 +281,7 @@ v-model.trim="formInline.constructionStandardProject" placeholder="建标项目" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -289,6 +293,7 @@ v-model.trim="formInline.organizeNo" placeholder="组织机构代码" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -301,6 +306,7 @@ v-model.trim="formInline.constructionStandardUnitName" placeholder="建标单位名称" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -312,6 +318,7 @@ placeholder="标准负责人" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -341,6 +349,7 @@ placeholder="类别" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -404,6 +416,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" :disabled="buttonType === 'detail'" @@ -418,6 +431,7 @@ placeholder="标准科室" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" @clear="clearDeptList" > @@ -445,6 +460,7 @@ v-model.trim="formInline.laboratoryOwnerContact" placeholder="联系方式" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -458,6 +474,7 @@ placeholder="管理状态" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -500,6 +519,7 @@ - + @@ -594,6 +616,7 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue index 20eb800..91c2c15 100644 --- a/src/views/device/standardEquipment/components/standardList/temptable.vue +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -1,7 +1,7 @@ diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index 1263b6c..bcdcf3b 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -4,7 +4,7 @@ import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' import baseInfo from './standardList/baseInfo.vue' -import table from './standardList/temptable.vue' +import TemplateTable from './standardList/templateTable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -34,16 +34,20 @@ comp: any } const menu = shallowRef([ - { name: '基本信息', comp: baseInfo }, - { name: '计量人员', comp: table }, - { name: '标准配套设备', comp: table }, - { name: '检定规程', comp: table }, - { name: '重复性考核记录', comp: table }, - { name: '稳定性考核记录', comp: table }, - { name: '证书管理', comp: table }, + { name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }, + { name: '重复性考核记录', comp: TemplateTable }, + { name: '稳定性考核记录', comp: TemplateTable }, + { name: '证书管理', comp: TemplateTable }, ]) +if (pageType.value === 'edit') { + menu.value = [{ name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }] +} const currentCompRef = ref() -const current = ref('基本信息') +const current = ref('计量人员') const currentComp = shallowRef(baseInfo) watch(current, (newValue) => { currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp @@ -57,6 +61,130 @@ const setData = (newValue: object) => { formInline.value = newValue } +const queryParams = { + id: '', + limit: 20, + offset: 1, +} +// 关闭 +interface TableColumn { + text: string + value: string + align: string +} + +interface checkedRecord { + text: string +} +// 计量人员 +const measurementPersonnelColumns = ref([ + { text: '姓名', value: 'name', align: 'center' }, + { text: '计量人员编号', value: 'staffNo', align: 'center' }, + { text: '工作部门', value: 'deptId', align: 'center' }, + { text: '计量专业', value: 'major', align: 'center' }, + { text: '证书编号', value: 'verifierCertificateNo', align: 'center' }, + { text: '证书有效期', value: 'certificateDate', align: 'center' }, +]) +const measurementPersonnel = ref([]) +const measurementPersonnelLoading = ref(false) +function fetchmeasurementPersonnel(query = { ...queryParams }) { + measurementPersonnelLoading.value = true + measurementPersonnel.value = [{ + text: 'xx', + }] + measurementPersonnelLoading.value = false +} + +// 标准配套设备 +const corollaryEquipmentColumns = ref([ + { text: '设备名称', value: 'text', align: 'center' }, + { text: '设备编号', value: 'text', align: 'center' }, + { text: '型号', value: 'text', align: 'center' }, + { text: '测量范围', value: 'text', align: 'center' }, + { text: '使用部门', value: 'text', align: 'center' }, + { text: '检定时间', value: 'text', align: 'center' }, + { text: '检定结果', value: 'text', align: 'center' }, + { text: '有效日期', value: 'text', align: 'center' }, +]) +const corollaryEquipment = ref([]) +const corollaryEquipmentLoading = ref(false) +function fetchcorollaryEquipment(query = { ...queryParams }) { + corollaryEquipmentLoading.value = true + corollaryEquipment.value = [{ + text: 'xx', + }] + corollaryEquipmentLoading.value = false +} + +// 检定规程 +const regulationVerificationColumns = ref([ + { text: '文件名称', value: 'text', align: 'center' }, + { text: '文件编号', value: 'text', align: 'center' }, + { text: '文件号', value: 'text', align: 'center' }, + { text: '实施时间', value: 'text', align: 'center' }, + { text: '实施状态', value: 'text', align: 'center' }, +]) +const regulationVerification = ref([]) +const regulationVerificationLoading = ref(false) +function fetchregulationVerification(query = { ...queryParams }) { + regulationVerificationLoading.value = true + regulationVerification.value = [{ + text: 'xx', + }] + regulationVerificationLoading.value = false +} + +// 重复性考核记录 +const repetitiveRppraisalRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const repetitiveRppraisalRecord = ref([]) +const repetitiveRppraisalRecordLoading = ref(false) +function fetchrepetitiveRppraisalRecord(query = { ...queryParams }) { + repetitiveRppraisalRecordLoading.value = true + repetitiveRppraisalRecord.value = [{ + text: 'xx', + }] + repetitiveRppraisalRecordLoading.value = false +} + +// 稳定性考核记录 +const stabilityAssessmentRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const stabilityAssessmentRecord = ref([]) +const stabilityAssessmentRecordLoading = ref(false) +function fetchstabilityAssessmentRecord(query = { ...queryParams }) { + stabilityAssessmentRecordLoading.value = true + stabilityAssessmentRecord.value = [{ + text: 'xx', + }] + stabilityAssessmentRecordLoading.value = false +} + +// 证书管理 +const certificateManagementColumns = ref([ + { text: '证书编号', value: 'text', align: 'center' }, + { text: '证书名称', value: 'text', align: 'center' }, + { text: '证书类型', value: 'text', align: 'center' }, + { text: '证书出具日期', value: 'text', align: 'center' }, + { text: '证书有效期', value: 'text', align: 'center' }, +]) +const certificateManagement = ref([]) +const certificateManagementLoading = ref(false) +function fetchcertificateManagement(query = { ...queryParams }) { + certificateManagementLoading.value = true + certificateManagement.value = [{ + text: 'xx', + }] + certificateManagementLoading.value = false +} // 编辑获取详情的提交按钮 const submitFormDetail = () => { if (pageType.value === 'edit') { @@ -69,16 +197,17 @@ } else { // 打印 - const printObj = ref({ - id: 'print', // 需要打印元素的id - popTitle: '测量标准装置', // 打印配置页上方的标题 - extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 - preview: false, // 是否启动预览模式,默认是false - standard: '', - extarCss: '', - }) + } } +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '测量标准装置', // 打印配置页上方的标题 + extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) // 提交 const submitForm = () => { if (pageType.value === 'detail') { return submitFormDetail() } @@ -103,39 +232,62 @@ }) }) } +onMounted(() => { + if (pageType.value === 'detail') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + fetchrepetitiveRppraisalRecord() // 重复性考核记录 + fetchstabilityAssessmentRecord() // 稳定性考核记录 + fetchcertificateManagement() // 证书管理 + } + else if (pageType.value === 'edit') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + } +}) diff --git a/src/views/device/standingBook/adjustDevice.vue b/src/views/device/standingBook/adjustDevice.vue index a1a38bc..67ef11e 100644 --- a/src/views/device/standingBook/adjustDevice.vue +++ b/src/views/device/standingBook/adjustDevice.vue @@ -5,7 +5,7 @@ diff --git a/src/views/device/standingBook/components/fixedAssetsAdd.vue b/src/views/device/standingBook/components/fixedAssetsAdd.vue deleted file mode 100644 index f272ff7..0000000 --- a/src/views/device/standingBook/components/fixedAssetsAdd.vue +++ /dev/null @@ -1,755 +0,0 @@ - - - - - - diff --git a/src/views/device/standingBook/components/templateAdd.vue b/src/views/device/standingBook/components/templateAdd.vue index 049d8d4..e070af0 100644 --- a/src/views/device/standingBook/components/templateAdd.vue +++ b/src/views/device/standingBook/components/templateAdd.vue @@ -1,87 +1,148 @@ diff --git a/src/views/device/standingBook/components/templatePage.vue b/src/views/device/standingBook/components/templatePage.vue index f69b781..c7105dc 100644 --- a/src/views/device/standingBook/components/templatePage.vue +++ b/src/views/device/standingBook/components/templatePage.vue @@ -1,126 +1,92 @@ - diff --git a/src/views/device/standingBook/fixedAssets.vue b/src/views/device/standingBook/fixedAssets.vue index cddb285..27892a3 100644 --- a/src/views/device/standingBook/fixedAssets.vue +++ b/src/views/device/standingBook/fixedAssets.vue @@ -22,56 +22,16 @@ const loadingTable = ref(false) // 表格loading const total = ref(0) // 数据总条数 const columns = ref([ - { - text: '固定资产编号', - value: 'assetNo', - align: 'center', - }, - { - text: '设备名称', - value: 'equipmentName', - align: 'center', - }, - { - text: '型号', - value: 'modelNo', - align: 'center', - }, - { - text: '设备规格', - value: 'equipmentSpecifications', - align: 'center', - }, - { - text: '设备类别', - value: 'equipmentCategoryName', - align: 'center', - }, - { - text: '设备类型', - value: 'equipmentTypeName', - align: 'center', - }, - { - text: '用途', - value: 'purpose', - align: 'center', - }, - { - text: '管理级别', - value: 'managerLevelName', - align: 'center', - }, - { - text: '使用单位', - value: 'useDeptName', - align: 'center', - }, - { - text: '创建时间', - value: 'createTime', - align: 'center', - }, + { text: '固定资产编号', value: 'assetNo', align: 'center', width: 160 }, + { text: '设备名称', value: 'equipmentName', align: 'center' }, + { text: '型号', value: 'modelNo', align: 'center' }, + { text: '设备规格', value: 'equipmentSpecifications', align: 'center' }, + { text: '设备类别', value: 'equipmentCategoryName', align: 'center' }, + { text: '设备类型', value: 'equipmentTypeName', align: 'center' }, + { text: '用途', value: 'purpose', align: 'center' }, + { text: '管理级别', value: 'managerLevelName', align: 'center', width: 90 }, + { text: '使用部门', value: 'useDeptName', align: 'center' }, + { text: '创建时间', value: 'createTime', align: 'center', width: 165 }, ]) // 表格 const printObj = ref({ id: 'print', // 需要打印元素的id @@ -128,13 +88,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'detail', }, query: { title: '详情', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -146,13 +107,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'edit', }, query: { title: '编辑', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -203,18 +165,15 @@ // 新增 const add = () => { $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'add', }, query: { title: '新建', + name: '固定资产', }, }) - // dialogVisible.value = true - // addRef.value.initDialog({ - // title: '新建', - // }) } // 表格被选中的行 const selectList = ref([]) @@ -344,7 +303,7 @@ 编辑 - 查看 + 详情 删除 diff --git a/src/views/device/standingBook/measureTool.vue b/src/views/device/standingBook/measureTool.vue index 7b9246a..a940bdf 100644 --- a/src/views/device/standingBook/measureTool.vue +++ b/src/views/device/standingBook/measureTool.vue @@ -5,7 +5,7 @@ diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@ @@ -654,6 +659,7 @@ @@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled > @@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue index c762b33..a75d816 100644 --- a/src/views/device/standardEquipment/components/standardList/baseInfo.vue +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -251,6 +251,7 @@ v-model.trim="formInline.standardNo" placeholder="系统编号,自动生成" disabled + class="full-width-input" />
@@ -260,6 +261,7 @@ v-model.trim="formInline.standardName" placeholder="标准名称" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -269,6 +271,7 @@ v-model.trim="formInline.projectNo" placeholder="项目编号" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -278,6 +281,7 @@ v-model.trim="formInline.constructionStandardProject" placeholder="建标项目" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -289,6 +293,7 @@ v-model.trim="formInline.organizeNo" placeholder="组织机构代码" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -301,6 +306,7 @@ v-model.trim="formInline.constructionStandardUnitName" placeholder="建标单位名称" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -312,6 +318,7 @@ placeholder="标准负责人" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -341,6 +349,7 @@ placeholder="类别" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -404,6 +416,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" :disabled="buttonType === 'detail'" @@ -418,6 +431,7 @@ placeholder="标准科室" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" @clear="clearDeptList" > @@ -445,6 +460,7 @@ v-model.trim="formInline.laboratoryOwnerContact" placeholder="联系方式" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -458,6 +474,7 @@ placeholder="管理状态" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -500,6 +519,7 @@ - + @@ -594,6 +616,7 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue index 20eb800..91c2c15 100644 --- a/src/views/device/standardEquipment/components/standardList/temptable.vue +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -1,7 +1,7 @@ diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index 1263b6c..bcdcf3b 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -4,7 +4,7 @@ import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' import baseInfo from './standardList/baseInfo.vue' -import table from './standardList/temptable.vue' +import TemplateTable from './standardList/templateTable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -34,16 +34,20 @@ comp: any } const menu = shallowRef([ - { name: '基本信息', comp: baseInfo }, - { name: '计量人员', comp: table }, - { name: '标准配套设备', comp: table }, - { name: '检定规程', comp: table }, - { name: '重复性考核记录', comp: table }, - { name: '稳定性考核记录', comp: table }, - { name: '证书管理', comp: table }, + { name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }, + { name: '重复性考核记录', comp: TemplateTable }, + { name: '稳定性考核记录', comp: TemplateTable }, + { name: '证书管理', comp: TemplateTable }, ]) +if (pageType.value === 'edit') { + menu.value = [{ name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }] +} const currentCompRef = ref() -const current = ref('基本信息') +const current = ref('计量人员') const currentComp = shallowRef(baseInfo) watch(current, (newValue) => { currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp @@ -57,6 +61,130 @@ const setData = (newValue: object) => { formInline.value = newValue } +const queryParams = { + id: '', + limit: 20, + offset: 1, +} +// 关闭 +interface TableColumn { + text: string + value: string + align: string +} + +interface checkedRecord { + text: string +} +// 计量人员 +const measurementPersonnelColumns = ref([ + { text: '姓名', value: 'name', align: 'center' }, + { text: '计量人员编号', value: 'staffNo', align: 'center' }, + { text: '工作部门', value: 'deptId', align: 'center' }, + { text: '计量专业', value: 'major', align: 'center' }, + { text: '证书编号', value: 'verifierCertificateNo', align: 'center' }, + { text: '证书有效期', value: 'certificateDate', align: 'center' }, +]) +const measurementPersonnel = ref([]) +const measurementPersonnelLoading = ref(false) +function fetchmeasurementPersonnel(query = { ...queryParams }) { + measurementPersonnelLoading.value = true + measurementPersonnel.value = [{ + text: 'xx', + }] + measurementPersonnelLoading.value = false +} + +// 标准配套设备 +const corollaryEquipmentColumns = ref([ + { text: '设备名称', value: 'text', align: 'center' }, + { text: '设备编号', value: 'text', align: 'center' }, + { text: '型号', value: 'text', align: 'center' }, + { text: '测量范围', value: 'text', align: 'center' }, + { text: '使用部门', value: 'text', align: 'center' }, + { text: '检定时间', value: 'text', align: 'center' }, + { text: '检定结果', value: 'text', align: 'center' }, + { text: '有效日期', value: 'text', align: 'center' }, +]) +const corollaryEquipment = ref([]) +const corollaryEquipmentLoading = ref(false) +function fetchcorollaryEquipment(query = { ...queryParams }) { + corollaryEquipmentLoading.value = true + corollaryEquipment.value = [{ + text: 'xx', + }] + corollaryEquipmentLoading.value = false +} + +// 检定规程 +const regulationVerificationColumns = ref([ + { text: '文件名称', value: 'text', align: 'center' }, + { text: '文件编号', value: 'text', align: 'center' }, + { text: '文件号', value: 'text', align: 'center' }, + { text: '实施时间', value: 'text', align: 'center' }, + { text: '实施状态', value: 'text', align: 'center' }, +]) +const regulationVerification = ref([]) +const regulationVerificationLoading = ref(false) +function fetchregulationVerification(query = { ...queryParams }) { + regulationVerificationLoading.value = true + regulationVerification.value = [{ + text: 'xx', + }] + regulationVerificationLoading.value = false +} + +// 重复性考核记录 +const repetitiveRppraisalRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const repetitiveRppraisalRecord = ref([]) +const repetitiveRppraisalRecordLoading = ref(false) +function fetchrepetitiveRppraisalRecord(query = { ...queryParams }) { + repetitiveRppraisalRecordLoading.value = true + repetitiveRppraisalRecord.value = [{ + text: 'xx', + }] + repetitiveRppraisalRecordLoading.value = false +} + +// 稳定性考核记录 +const stabilityAssessmentRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const stabilityAssessmentRecord = ref([]) +const stabilityAssessmentRecordLoading = ref(false) +function fetchstabilityAssessmentRecord(query = { ...queryParams }) { + stabilityAssessmentRecordLoading.value = true + stabilityAssessmentRecord.value = [{ + text: 'xx', + }] + stabilityAssessmentRecordLoading.value = false +} + +// 证书管理 +const certificateManagementColumns = ref([ + { text: '证书编号', value: 'text', align: 'center' }, + { text: '证书名称', value: 'text', align: 'center' }, + { text: '证书类型', value: 'text', align: 'center' }, + { text: '证书出具日期', value: 'text', align: 'center' }, + { text: '证书有效期', value: 'text', align: 'center' }, +]) +const certificateManagement = ref([]) +const certificateManagementLoading = ref(false) +function fetchcertificateManagement(query = { ...queryParams }) { + certificateManagementLoading.value = true + certificateManagement.value = [{ + text: 'xx', + }] + certificateManagementLoading.value = false +} // 编辑获取详情的提交按钮 const submitFormDetail = () => { if (pageType.value === 'edit') { @@ -69,16 +197,17 @@ } else { // 打印 - const printObj = ref({ - id: 'print', // 需要打印元素的id - popTitle: '测量标准装置', // 打印配置页上方的标题 - extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 - preview: false, // 是否启动预览模式,默认是false - standard: '', - extarCss: '', - }) + } } +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '测量标准装置', // 打印配置页上方的标题 + extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) // 提交 const submitForm = () => { if (pageType.value === 'detail') { return submitFormDetail() } @@ -103,39 +232,62 @@ }) }) } +onMounted(() => { + if (pageType.value === 'detail') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + fetchrepetitiveRppraisalRecord() // 重复性考核记录 + fetchstabilityAssessmentRecord() // 稳定性考核记录 + fetchcertificateManagement() // 证书管理 + } + else if (pageType.value === 'edit') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + } +}) diff --git a/src/views/device/standingBook/adjustDevice.vue b/src/views/device/standingBook/adjustDevice.vue index a1a38bc..67ef11e 100644 --- a/src/views/device/standingBook/adjustDevice.vue +++ b/src/views/device/standingBook/adjustDevice.vue @@ -5,7 +5,7 @@ diff --git a/src/views/device/standingBook/components/fixedAssetsAdd.vue b/src/views/device/standingBook/components/fixedAssetsAdd.vue deleted file mode 100644 index f272ff7..0000000 --- a/src/views/device/standingBook/components/fixedAssetsAdd.vue +++ /dev/null @@ -1,755 +0,0 @@ - - - - - - diff --git a/src/views/device/standingBook/components/templateAdd.vue b/src/views/device/standingBook/components/templateAdd.vue index 049d8d4..e070af0 100644 --- a/src/views/device/standingBook/components/templateAdd.vue +++ b/src/views/device/standingBook/components/templateAdd.vue @@ -1,87 +1,148 @@ diff --git a/src/views/device/standingBook/components/templatePage.vue b/src/views/device/standingBook/components/templatePage.vue index f69b781..c7105dc 100644 --- a/src/views/device/standingBook/components/templatePage.vue +++ b/src/views/device/standingBook/components/templatePage.vue @@ -1,126 +1,92 @@ - diff --git a/src/views/device/standingBook/fixedAssets.vue b/src/views/device/standingBook/fixedAssets.vue index cddb285..27892a3 100644 --- a/src/views/device/standingBook/fixedAssets.vue +++ b/src/views/device/standingBook/fixedAssets.vue @@ -22,56 +22,16 @@ const loadingTable = ref(false) // 表格loading const total = ref(0) // 数据总条数 const columns = ref([ - { - text: '固定资产编号', - value: 'assetNo', - align: 'center', - }, - { - text: '设备名称', - value: 'equipmentName', - align: 'center', - }, - { - text: '型号', - value: 'modelNo', - align: 'center', - }, - { - text: '设备规格', - value: 'equipmentSpecifications', - align: 'center', - }, - { - text: '设备类别', - value: 'equipmentCategoryName', - align: 'center', - }, - { - text: '设备类型', - value: 'equipmentTypeName', - align: 'center', - }, - { - text: '用途', - value: 'purpose', - align: 'center', - }, - { - text: '管理级别', - value: 'managerLevelName', - align: 'center', - }, - { - text: '使用单位', - value: 'useDeptName', - align: 'center', - }, - { - text: '创建时间', - value: 'createTime', - align: 'center', - }, + { text: '固定资产编号', value: 'assetNo', align: 'center', width: 160 }, + { text: '设备名称', value: 'equipmentName', align: 'center' }, + { text: '型号', value: 'modelNo', align: 'center' }, + { text: '设备规格', value: 'equipmentSpecifications', align: 'center' }, + { text: '设备类别', value: 'equipmentCategoryName', align: 'center' }, + { text: '设备类型', value: 'equipmentTypeName', align: 'center' }, + { text: '用途', value: 'purpose', align: 'center' }, + { text: '管理级别', value: 'managerLevelName', align: 'center', width: 90 }, + { text: '使用部门', value: 'useDeptName', align: 'center' }, + { text: '创建时间', value: 'createTime', align: 'center', width: 165 }, ]) // 表格 const printObj = ref({ id: 'print', // 需要打印元素的id @@ -128,13 +88,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'detail', }, query: { title: '详情', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -146,13 +107,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'edit', }, query: { title: '编辑', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -203,18 +165,15 @@ // 新增 const add = () => { $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'add', }, query: { title: '新建', + name: '固定资产', }, }) - // dialogVisible.value = true - // addRef.value.initDialog({ - // title: '新建', - // }) } // 表格被选中的行 const selectList = ref([]) @@ -344,7 +303,7 @@ 编辑 - 查看 + 详情 删除 diff --git a/src/views/device/standingBook/measureTool.vue b/src/views/device/standingBook/measureTool.vue index 7b9246a..a940bdf 100644 --- a/src/views/device/standingBook/measureTool.vue +++ b/src/views/device/standingBook/measureTool.vue @@ -5,7 +5,7 @@ diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@ @@ -654,6 +659,7 @@ @@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled > @@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue index c762b33..a75d816 100644 --- a/src/views/device/standardEquipment/components/standardList/baseInfo.vue +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -251,6 +251,7 @@ v-model.trim="formInline.standardNo" placeholder="系统编号,自动生成" disabled + class="full-width-input" />
@@ -260,6 +261,7 @@ v-model.trim="formInline.standardName" placeholder="标准名称" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -269,6 +271,7 @@ v-model.trim="formInline.projectNo" placeholder="项目编号" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -278,6 +281,7 @@ v-model.trim="formInline.constructionStandardProject" placeholder="建标项目" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -289,6 +293,7 @@ v-model.trim="formInline.organizeNo" placeholder="组织机构代码" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -301,6 +306,7 @@ v-model.trim="formInline.constructionStandardUnitName" placeholder="建标单位名称" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -312,6 +318,7 @@ placeholder="标准负责人" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -341,6 +349,7 @@ placeholder="类别" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -404,6 +416,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" :disabled="buttonType === 'detail'" @@ -418,6 +431,7 @@ placeholder="标准科室" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" @clear="clearDeptList" > @@ -445,6 +460,7 @@ v-model.trim="formInline.laboratoryOwnerContact" placeholder="联系方式" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -458,6 +474,7 @@ placeholder="管理状态" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -500,6 +519,7 @@ - + @@ -594,6 +616,7 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue index 20eb800..91c2c15 100644 --- a/src/views/device/standardEquipment/components/standardList/temptable.vue +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -1,7 +1,7 @@ diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index 1263b6c..bcdcf3b 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -4,7 +4,7 @@ import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' import baseInfo from './standardList/baseInfo.vue' -import table from './standardList/temptable.vue' +import TemplateTable from './standardList/templateTable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -34,16 +34,20 @@ comp: any } const menu = shallowRef([ - { name: '基本信息', comp: baseInfo }, - { name: '计量人员', comp: table }, - { name: '标准配套设备', comp: table }, - { name: '检定规程', comp: table }, - { name: '重复性考核记录', comp: table }, - { name: '稳定性考核记录', comp: table }, - { name: '证书管理', comp: table }, + { name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }, + { name: '重复性考核记录', comp: TemplateTable }, + { name: '稳定性考核记录', comp: TemplateTable }, + { name: '证书管理', comp: TemplateTable }, ]) +if (pageType.value === 'edit') { + menu.value = [{ name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }] +} const currentCompRef = ref() -const current = ref('基本信息') +const current = ref('计量人员') const currentComp = shallowRef(baseInfo) watch(current, (newValue) => { currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp @@ -57,6 +61,130 @@ const setData = (newValue: object) => { formInline.value = newValue } +const queryParams = { + id: '', + limit: 20, + offset: 1, +} +// 关闭 +interface TableColumn { + text: string + value: string + align: string +} + +interface checkedRecord { + text: string +} +// 计量人员 +const measurementPersonnelColumns = ref([ + { text: '姓名', value: 'name', align: 'center' }, + { text: '计量人员编号', value: 'staffNo', align: 'center' }, + { text: '工作部门', value: 'deptId', align: 'center' }, + { text: '计量专业', value: 'major', align: 'center' }, + { text: '证书编号', value: 'verifierCertificateNo', align: 'center' }, + { text: '证书有效期', value: 'certificateDate', align: 'center' }, +]) +const measurementPersonnel = ref([]) +const measurementPersonnelLoading = ref(false) +function fetchmeasurementPersonnel(query = { ...queryParams }) { + measurementPersonnelLoading.value = true + measurementPersonnel.value = [{ + text: 'xx', + }] + measurementPersonnelLoading.value = false +} + +// 标准配套设备 +const corollaryEquipmentColumns = ref([ + { text: '设备名称', value: 'text', align: 'center' }, + { text: '设备编号', value: 'text', align: 'center' }, + { text: '型号', value: 'text', align: 'center' }, + { text: '测量范围', value: 'text', align: 'center' }, + { text: '使用部门', value: 'text', align: 'center' }, + { text: '检定时间', value: 'text', align: 'center' }, + { text: '检定结果', value: 'text', align: 'center' }, + { text: '有效日期', value: 'text', align: 'center' }, +]) +const corollaryEquipment = ref([]) +const corollaryEquipmentLoading = ref(false) +function fetchcorollaryEquipment(query = { ...queryParams }) { + corollaryEquipmentLoading.value = true + corollaryEquipment.value = [{ + text: 'xx', + }] + corollaryEquipmentLoading.value = false +} + +// 检定规程 +const regulationVerificationColumns = ref([ + { text: '文件名称', value: 'text', align: 'center' }, + { text: '文件编号', value: 'text', align: 'center' }, + { text: '文件号', value: 'text', align: 'center' }, + { text: '实施时间', value: 'text', align: 'center' }, + { text: '实施状态', value: 'text', align: 'center' }, +]) +const regulationVerification = ref([]) +const regulationVerificationLoading = ref(false) +function fetchregulationVerification(query = { ...queryParams }) { + regulationVerificationLoading.value = true + regulationVerification.value = [{ + text: 'xx', + }] + regulationVerificationLoading.value = false +} + +// 重复性考核记录 +const repetitiveRppraisalRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const repetitiveRppraisalRecord = ref([]) +const repetitiveRppraisalRecordLoading = ref(false) +function fetchrepetitiveRppraisalRecord(query = { ...queryParams }) { + repetitiveRppraisalRecordLoading.value = true + repetitiveRppraisalRecord.value = [{ + text: 'xx', + }] + repetitiveRppraisalRecordLoading.value = false +} + +// 稳定性考核记录 +const stabilityAssessmentRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const stabilityAssessmentRecord = ref([]) +const stabilityAssessmentRecordLoading = ref(false) +function fetchstabilityAssessmentRecord(query = { ...queryParams }) { + stabilityAssessmentRecordLoading.value = true + stabilityAssessmentRecord.value = [{ + text: 'xx', + }] + stabilityAssessmentRecordLoading.value = false +} + +// 证书管理 +const certificateManagementColumns = ref([ + { text: '证书编号', value: 'text', align: 'center' }, + { text: '证书名称', value: 'text', align: 'center' }, + { text: '证书类型', value: 'text', align: 'center' }, + { text: '证书出具日期', value: 'text', align: 'center' }, + { text: '证书有效期', value: 'text', align: 'center' }, +]) +const certificateManagement = ref([]) +const certificateManagementLoading = ref(false) +function fetchcertificateManagement(query = { ...queryParams }) { + certificateManagementLoading.value = true + certificateManagement.value = [{ + text: 'xx', + }] + certificateManagementLoading.value = false +} // 编辑获取详情的提交按钮 const submitFormDetail = () => { if (pageType.value === 'edit') { @@ -69,16 +197,17 @@ } else { // 打印 - const printObj = ref({ - id: 'print', // 需要打印元素的id - popTitle: '测量标准装置', // 打印配置页上方的标题 - extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 - preview: false, // 是否启动预览模式,默认是false - standard: '', - extarCss: '', - }) + } } +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '测量标准装置', // 打印配置页上方的标题 + extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) // 提交 const submitForm = () => { if (pageType.value === 'detail') { return submitFormDetail() } @@ -103,39 +232,62 @@ }) }) } +onMounted(() => { + if (pageType.value === 'detail') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + fetchrepetitiveRppraisalRecord() // 重复性考核记录 + fetchstabilityAssessmentRecord() // 稳定性考核记录 + fetchcertificateManagement() // 证书管理 + } + else if (pageType.value === 'edit') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + } +}) diff --git a/src/views/device/standingBook/adjustDevice.vue b/src/views/device/standingBook/adjustDevice.vue index a1a38bc..67ef11e 100644 --- a/src/views/device/standingBook/adjustDevice.vue +++ b/src/views/device/standingBook/adjustDevice.vue @@ -5,7 +5,7 @@ diff --git a/src/views/device/standingBook/components/fixedAssetsAdd.vue b/src/views/device/standingBook/components/fixedAssetsAdd.vue deleted file mode 100644 index f272ff7..0000000 --- a/src/views/device/standingBook/components/fixedAssetsAdd.vue +++ /dev/null @@ -1,755 +0,0 @@ - - - - - - diff --git a/src/views/device/standingBook/components/templateAdd.vue b/src/views/device/standingBook/components/templateAdd.vue index 049d8d4..e070af0 100644 --- a/src/views/device/standingBook/components/templateAdd.vue +++ b/src/views/device/standingBook/components/templateAdd.vue @@ -1,87 +1,148 @@ diff --git a/src/views/device/standingBook/components/templatePage.vue b/src/views/device/standingBook/components/templatePage.vue index f69b781..c7105dc 100644 --- a/src/views/device/standingBook/components/templatePage.vue +++ b/src/views/device/standingBook/components/templatePage.vue @@ -1,126 +1,92 @@ - diff --git a/src/views/device/standingBook/fixedAssets.vue b/src/views/device/standingBook/fixedAssets.vue index cddb285..27892a3 100644 --- a/src/views/device/standingBook/fixedAssets.vue +++ b/src/views/device/standingBook/fixedAssets.vue @@ -22,56 +22,16 @@ const loadingTable = ref(false) // 表格loading const total = ref(0) // 数据总条数 const columns = ref([ - { - text: '固定资产编号', - value: 'assetNo', - align: 'center', - }, - { - text: '设备名称', - value: 'equipmentName', - align: 'center', - }, - { - text: '型号', - value: 'modelNo', - align: 'center', - }, - { - text: '设备规格', - value: 'equipmentSpecifications', - align: 'center', - }, - { - text: '设备类别', - value: 'equipmentCategoryName', - align: 'center', - }, - { - text: '设备类型', - value: 'equipmentTypeName', - align: 'center', - }, - { - text: '用途', - value: 'purpose', - align: 'center', - }, - { - text: '管理级别', - value: 'managerLevelName', - align: 'center', - }, - { - text: '使用单位', - value: 'useDeptName', - align: 'center', - }, - { - text: '创建时间', - value: 'createTime', - align: 'center', - }, + { text: '固定资产编号', value: 'assetNo', align: 'center', width: 160 }, + { text: '设备名称', value: 'equipmentName', align: 'center' }, + { text: '型号', value: 'modelNo', align: 'center' }, + { text: '设备规格', value: 'equipmentSpecifications', align: 'center' }, + { text: '设备类别', value: 'equipmentCategoryName', align: 'center' }, + { text: '设备类型', value: 'equipmentTypeName', align: 'center' }, + { text: '用途', value: 'purpose', align: 'center' }, + { text: '管理级别', value: 'managerLevelName', align: 'center', width: 90 }, + { text: '使用部门', value: 'useDeptName', align: 'center' }, + { text: '创建时间', value: 'createTime', align: 'center', width: 165 }, ]) // 表格 const printObj = ref({ id: 'print', // 需要打印元素的id @@ -128,13 +88,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'detail', }, query: { title: '详情', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -146,13 +107,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'edit', }, query: { title: '编辑', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -203,18 +165,15 @@ // 新增 const add = () => { $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'add', }, query: { title: '新建', + name: '固定资产', }, }) - // dialogVisible.value = true - // addRef.value.initDialog({ - // title: '新建', - // }) } // 表格被选中的行 const selectList = ref([]) @@ -344,7 +303,7 @@ 编辑 - 查看 + 详情 删除 diff --git a/src/views/device/standingBook/measureTool.vue b/src/views/device/standingBook/measureTool.vue index 7b9246a..a940bdf 100644 --- a/src/views/device/standingBook/measureTool.vue +++ b/src/views/device/standingBook/measureTool.vue @@ -5,7 +5,7 @@ diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@ @@ -654,6 +659,7 @@ @@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled > @@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue index c762b33..a75d816 100644 --- a/src/views/device/standardEquipment/components/standardList/baseInfo.vue +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -251,6 +251,7 @@ v-model.trim="formInline.standardNo" placeholder="系统编号,自动生成" disabled + class="full-width-input" />
@@ -260,6 +261,7 @@ v-model.trim="formInline.standardName" placeholder="标准名称" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -269,6 +271,7 @@ v-model.trim="formInline.projectNo" placeholder="项目编号" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -278,6 +281,7 @@ v-model.trim="formInline.constructionStandardProject" placeholder="建标项目" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -289,6 +293,7 @@ v-model.trim="formInline.organizeNo" placeholder="组织机构代码" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -301,6 +306,7 @@ v-model.trim="formInline.constructionStandardUnitName" placeholder="建标单位名称" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -312,6 +318,7 @@ placeholder="标准负责人" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -341,6 +349,7 @@ placeholder="类别" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -404,6 +416,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" :disabled="buttonType === 'detail'" @@ -418,6 +431,7 @@ placeholder="标准科室" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" @clear="clearDeptList" > @@ -445,6 +460,7 @@ v-model.trim="formInline.laboratoryOwnerContact" placeholder="联系方式" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -458,6 +474,7 @@ placeholder="管理状态" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -500,6 +519,7 @@ - + @@ -594,6 +616,7 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue index 20eb800..91c2c15 100644 --- a/src/views/device/standardEquipment/components/standardList/temptable.vue +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -1,7 +1,7 @@ diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index 1263b6c..bcdcf3b 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -4,7 +4,7 @@ import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' import baseInfo from './standardList/baseInfo.vue' -import table from './standardList/temptable.vue' +import TemplateTable from './standardList/templateTable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -34,16 +34,20 @@ comp: any } const menu = shallowRef([ - { name: '基本信息', comp: baseInfo }, - { name: '计量人员', comp: table }, - { name: '标准配套设备', comp: table }, - { name: '检定规程', comp: table }, - { name: '重复性考核记录', comp: table }, - { name: '稳定性考核记录', comp: table }, - { name: '证书管理', comp: table }, + { name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }, + { name: '重复性考核记录', comp: TemplateTable }, + { name: '稳定性考核记录', comp: TemplateTable }, + { name: '证书管理', comp: TemplateTable }, ]) +if (pageType.value === 'edit') { + menu.value = [{ name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }] +} const currentCompRef = ref() -const current = ref('基本信息') +const current = ref('计量人员') const currentComp = shallowRef(baseInfo) watch(current, (newValue) => { currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp @@ -57,6 +61,130 @@ const setData = (newValue: object) => { formInline.value = newValue } +const queryParams = { + id: '', + limit: 20, + offset: 1, +} +// 关闭 +interface TableColumn { + text: string + value: string + align: string +} + +interface checkedRecord { + text: string +} +// 计量人员 +const measurementPersonnelColumns = ref([ + { text: '姓名', value: 'name', align: 'center' }, + { text: '计量人员编号', value: 'staffNo', align: 'center' }, + { text: '工作部门', value: 'deptId', align: 'center' }, + { text: '计量专业', value: 'major', align: 'center' }, + { text: '证书编号', value: 'verifierCertificateNo', align: 'center' }, + { text: '证书有效期', value: 'certificateDate', align: 'center' }, +]) +const measurementPersonnel = ref([]) +const measurementPersonnelLoading = ref(false) +function fetchmeasurementPersonnel(query = { ...queryParams }) { + measurementPersonnelLoading.value = true + measurementPersonnel.value = [{ + text: 'xx', + }] + measurementPersonnelLoading.value = false +} + +// 标准配套设备 +const corollaryEquipmentColumns = ref([ + { text: '设备名称', value: 'text', align: 'center' }, + { text: '设备编号', value: 'text', align: 'center' }, + { text: '型号', value: 'text', align: 'center' }, + { text: '测量范围', value: 'text', align: 'center' }, + { text: '使用部门', value: 'text', align: 'center' }, + { text: '检定时间', value: 'text', align: 'center' }, + { text: '检定结果', value: 'text', align: 'center' }, + { text: '有效日期', value: 'text', align: 'center' }, +]) +const corollaryEquipment = ref([]) +const corollaryEquipmentLoading = ref(false) +function fetchcorollaryEquipment(query = { ...queryParams }) { + corollaryEquipmentLoading.value = true + corollaryEquipment.value = [{ + text: 'xx', + }] + corollaryEquipmentLoading.value = false +} + +// 检定规程 +const regulationVerificationColumns = ref([ + { text: '文件名称', value: 'text', align: 'center' }, + { text: '文件编号', value: 'text', align: 'center' }, + { text: '文件号', value: 'text', align: 'center' }, + { text: '实施时间', value: 'text', align: 'center' }, + { text: '实施状态', value: 'text', align: 'center' }, +]) +const regulationVerification = ref([]) +const regulationVerificationLoading = ref(false) +function fetchregulationVerification(query = { ...queryParams }) { + regulationVerificationLoading.value = true + regulationVerification.value = [{ + text: 'xx', + }] + regulationVerificationLoading.value = false +} + +// 重复性考核记录 +const repetitiveRppraisalRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const repetitiveRppraisalRecord = ref([]) +const repetitiveRppraisalRecordLoading = ref(false) +function fetchrepetitiveRppraisalRecord(query = { ...queryParams }) { + repetitiveRppraisalRecordLoading.value = true + repetitiveRppraisalRecord.value = [{ + text: 'xx', + }] + repetitiveRppraisalRecordLoading.value = false +} + +// 稳定性考核记录 +const stabilityAssessmentRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const stabilityAssessmentRecord = ref([]) +const stabilityAssessmentRecordLoading = ref(false) +function fetchstabilityAssessmentRecord(query = { ...queryParams }) { + stabilityAssessmentRecordLoading.value = true + stabilityAssessmentRecord.value = [{ + text: 'xx', + }] + stabilityAssessmentRecordLoading.value = false +} + +// 证书管理 +const certificateManagementColumns = ref([ + { text: '证书编号', value: 'text', align: 'center' }, + { text: '证书名称', value: 'text', align: 'center' }, + { text: '证书类型', value: 'text', align: 'center' }, + { text: '证书出具日期', value: 'text', align: 'center' }, + { text: '证书有效期', value: 'text', align: 'center' }, +]) +const certificateManagement = ref([]) +const certificateManagementLoading = ref(false) +function fetchcertificateManagement(query = { ...queryParams }) { + certificateManagementLoading.value = true + certificateManagement.value = [{ + text: 'xx', + }] + certificateManagementLoading.value = false +} // 编辑获取详情的提交按钮 const submitFormDetail = () => { if (pageType.value === 'edit') { @@ -69,16 +197,17 @@ } else { // 打印 - const printObj = ref({ - id: 'print', // 需要打印元素的id - popTitle: '测量标准装置', // 打印配置页上方的标题 - extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 - preview: false, // 是否启动预览模式,默认是false - standard: '', - extarCss: '', - }) + } } +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '测量标准装置', // 打印配置页上方的标题 + extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) // 提交 const submitForm = () => { if (pageType.value === 'detail') { return submitFormDetail() } @@ -103,39 +232,62 @@ }) }) } +onMounted(() => { + if (pageType.value === 'detail') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + fetchrepetitiveRppraisalRecord() // 重复性考核记录 + fetchstabilityAssessmentRecord() // 稳定性考核记录 + fetchcertificateManagement() // 证书管理 + } + else if (pageType.value === 'edit') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + } +}) diff --git a/src/views/device/standingBook/adjustDevice.vue b/src/views/device/standingBook/adjustDevice.vue index a1a38bc..67ef11e 100644 --- a/src/views/device/standingBook/adjustDevice.vue +++ b/src/views/device/standingBook/adjustDevice.vue @@ -5,7 +5,7 @@ diff --git a/src/views/device/standingBook/components/fixedAssetsAdd.vue b/src/views/device/standingBook/components/fixedAssetsAdd.vue deleted file mode 100644 index f272ff7..0000000 --- a/src/views/device/standingBook/components/fixedAssetsAdd.vue +++ /dev/null @@ -1,755 +0,0 @@ - - - - - - diff --git a/src/views/device/standingBook/components/templateAdd.vue b/src/views/device/standingBook/components/templateAdd.vue index 049d8d4..e070af0 100644 --- a/src/views/device/standingBook/components/templateAdd.vue +++ b/src/views/device/standingBook/components/templateAdd.vue @@ -1,87 +1,148 @@ diff --git a/src/views/device/standingBook/components/templatePage.vue b/src/views/device/standingBook/components/templatePage.vue index f69b781..c7105dc 100644 --- a/src/views/device/standingBook/components/templatePage.vue +++ b/src/views/device/standingBook/components/templatePage.vue @@ -1,126 +1,92 @@ - diff --git a/src/views/device/standingBook/fixedAssets.vue b/src/views/device/standingBook/fixedAssets.vue index cddb285..27892a3 100644 --- a/src/views/device/standingBook/fixedAssets.vue +++ b/src/views/device/standingBook/fixedAssets.vue @@ -22,56 +22,16 @@ const loadingTable = ref(false) // 表格loading const total = ref(0) // 数据总条数 const columns = ref([ - { - text: '固定资产编号', - value: 'assetNo', - align: 'center', - }, - { - text: '设备名称', - value: 'equipmentName', - align: 'center', - }, - { - text: '型号', - value: 'modelNo', - align: 'center', - }, - { - text: '设备规格', - value: 'equipmentSpecifications', - align: 'center', - }, - { - text: '设备类别', - value: 'equipmentCategoryName', - align: 'center', - }, - { - text: '设备类型', - value: 'equipmentTypeName', - align: 'center', - }, - { - text: '用途', - value: 'purpose', - align: 'center', - }, - { - text: '管理级别', - value: 'managerLevelName', - align: 'center', - }, - { - text: '使用单位', - value: 'useDeptName', - align: 'center', - }, - { - text: '创建时间', - value: 'createTime', - align: 'center', - }, + { text: '固定资产编号', value: 'assetNo', align: 'center', width: 160 }, + { text: '设备名称', value: 'equipmentName', align: 'center' }, + { text: '型号', value: 'modelNo', align: 'center' }, + { text: '设备规格', value: 'equipmentSpecifications', align: 'center' }, + { text: '设备类别', value: 'equipmentCategoryName', align: 'center' }, + { text: '设备类型', value: 'equipmentTypeName', align: 'center' }, + { text: '用途', value: 'purpose', align: 'center' }, + { text: '管理级别', value: 'managerLevelName', align: 'center', width: 90 }, + { text: '使用部门', value: 'useDeptName', align: 'center' }, + { text: '创建时间', value: 'createTime', align: 'center', width: 165 }, ]) // 表格 const printObj = ref({ id: 'print', // 需要打印元素的id @@ -128,13 +88,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'detail', }, query: { title: '详情', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -146,13 +107,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'edit', }, query: { title: '编辑', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -203,18 +165,15 @@ // 新增 const add = () => { $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'add', }, query: { title: '新建', + name: '固定资产', }, }) - // dialogVisible.value = true - // addRef.value.initDialog({ - // title: '新建', - // }) } // 表格被选中的行 const selectList = ref([]) @@ -344,7 +303,7 @@ 编辑 - 查看 + 详情 删除 diff --git a/src/views/device/standingBook/measureTool.vue b/src/views/device/standingBook/measureTool.vue index 7b9246a..a940bdf 100644 --- a/src/views/device/standingBook/measureTool.vue +++ b/src/views/device/standingBook/measureTool.vue @@ -5,7 +5,7 @@ diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@ @@ -654,6 +659,7 @@ @@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled > @@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue index c762b33..a75d816 100644 --- a/src/views/device/standardEquipment/components/standardList/baseInfo.vue +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -251,6 +251,7 @@ v-model.trim="formInline.standardNo" placeholder="系统编号,自动生成" disabled + class="full-width-input" />
@@ -260,6 +261,7 @@ v-model.trim="formInline.standardName" placeholder="标准名称" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -269,6 +271,7 @@ v-model.trim="formInline.projectNo" placeholder="项目编号" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -278,6 +281,7 @@ v-model.trim="formInline.constructionStandardProject" placeholder="建标项目" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -289,6 +293,7 @@ v-model.trim="formInline.organizeNo" placeholder="组织机构代码" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -301,6 +306,7 @@ v-model.trim="formInline.constructionStandardUnitName" placeholder="建标单位名称" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -312,6 +318,7 @@ placeholder="标准负责人" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -341,6 +349,7 @@ placeholder="类别" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -404,6 +416,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" :disabled="buttonType === 'detail'" @@ -418,6 +431,7 @@ placeholder="标准科室" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" @clear="clearDeptList" > @@ -445,6 +460,7 @@ v-model.trim="formInline.laboratoryOwnerContact" placeholder="联系方式" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -458,6 +474,7 @@ placeholder="管理状态" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -500,6 +519,7 @@ - + @@ -594,6 +616,7 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue index 20eb800..91c2c15 100644 --- a/src/views/device/standardEquipment/components/standardList/temptable.vue +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -1,7 +1,7 @@ diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index 1263b6c..bcdcf3b 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -4,7 +4,7 @@ import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' import baseInfo from './standardList/baseInfo.vue' -import table from './standardList/temptable.vue' +import TemplateTable from './standardList/templateTable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -34,16 +34,20 @@ comp: any } const menu = shallowRef([ - { name: '基本信息', comp: baseInfo }, - { name: '计量人员', comp: table }, - { name: '标准配套设备', comp: table }, - { name: '检定规程', comp: table }, - { name: '重复性考核记录', comp: table }, - { name: '稳定性考核记录', comp: table }, - { name: '证书管理', comp: table }, + { name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }, + { name: '重复性考核记录', comp: TemplateTable }, + { name: '稳定性考核记录', comp: TemplateTable }, + { name: '证书管理', comp: TemplateTable }, ]) +if (pageType.value === 'edit') { + menu.value = [{ name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }] +} const currentCompRef = ref() -const current = ref('基本信息') +const current = ref('计量人员') const currentComp = shallowRef(baseInfo) watch(current, (newValue) => { currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp @@ -57,6 +61,130 @@ const setData = (newValue: object) => { formInline.value = newValue } +const queryParams = { + id: '', + limit: 20, + offset: 1, +} +// 关闭 +interface TableColumn { + text: string + value: string + align: string +} + +interface checkedRecord { + text: string +} +// 计量人员 +const measurementPersonnelColumns = ref([ + { text: '姓名', value: 'name', align: 'center' }, + { text: '计量人员编号', value: 'staffNo', align: 'center' }, + { text: '工作部门', value: 'deptId', align: 'center' }, + { text: '计量专业', value: 'major', align: 'center' }, + { text: '证书编号', value: 'verifierCertificateNo', align: 'center' }, + { text: '证书有效期', value: 'certificateDate', align: 'center' }, +]) +const measurementPersonnel = ref([]) +const measurementPersonnelLoading = ref(false) +function fetchmeasurementPersonnel(query = { ...queryParams }) { + measurementPersonnelLoading.value = true + measurementPersonnel.value = [{ + text: 'xx', + }] + measurementPersonnelLoading.value = false +} + +// 标准配套设备 +const corollaryEquipmentColumns = ref([ + { text: '设备名称', value: 'text', align: 'center' }, + { text: '设备编号', value: 'text', align: 'center' }, + { text: '型号', value: 'text', align: 'center' }, + { text: '测量范围', value: 'text', align: 'center' }, + { text: '使用部门', value: 'text', align: 'center' }, + { text: '检定时间', value: 'text', align: 'center' }, + { text: '检定结果', value: 'text', align: 'center' }, + { text: '有效日期', value: 'text', align: 'center' }, +]) +const corollaryEquipment = ref([]) +const corollaryEquipmentLoading = ref(false) +function fetchcorollaryEquipment(query = { ...queryParams }) { + corollaryEquipmentLoading.value = true + corollaryEquipment.value = [{ + text: 'xx', + }] + corollaryEquipmentLoading.value = false +} + +// 检定规程 +const regulationVerificationColumns = ref([ + { text: '文件名称', value: 'text', align: 'center' }, + { text: '文件编号', value: 'text', align: 'center' }, + { text: '文件号', value: 'text', align: 'center' }, + { text: '实施时间', value: 'text', align: 'center' }, + { text: '实施状态', value: 'text', align: 'center' }, +]) +const regulationVerification = ref([]) +const regulationVerificationLoading = ref(false) +function fetchregulationVerification(query = { ...queryParams }) { + regulationVerificationLoading.value = true + regulationVerification.value = [{ + text: 'xx', + }] + regulationVerificationLoading.value = false +} + +// 重复性考核记录 +const repetitiveRppraisalRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const repetitiveRppraisalRecord = ref([]) +const repetitiveRppraisalRecordLoading = ref(false) +function fetchrepetitiveRppraisalRecord(query = { ...queryParams }) { + repetitiveRppraisalRecordLoading.value = true + repetitiveRppraisalRecord.value = [{ + text: 'xx', + }] + repetitiveRppraisalRecordLoading.value = false +} + +// 稳定性考核记录 +const stabilityAssessmentRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const stabilityAssessmentRecord = ref([]) +const stabilityAssessmentRecordLoading = ref(false) +function fetchstabilityAssessmentRecord(query = { ...queryParams }) { + stabilityAssessmentRecordLoading.value = true + stabilityAssessmentRecord.value = [{ + text: 'xx', + }] + stabilityAssessmentRecordLoading.value = false +} + +// 证书管理 +const certificateManagementColumns = ref([ + { text: '证书编号', value: 'text', align: 'center' }, + { text: '证书名称', value: 'text', align: 'center' }, + { text: '证书类型', value: 'text', align: 'center' }, + { text: '证书出具日期', value: 'text', align: 'center' }, + { text: '证书有效期', value: 'text', align: 'center' }, +]) +const certificateManagement = ref([]) +const certificateManagementLoading = ref(false) +function fetchcertificateManagement(query = { ...queryParams }) { + certificateManagementLoading.value = true + certificateManagement.value = [{ + text: 'xx', + }] + certificateManagementLoading.value = false +} // 编辑获取详情的提交按钮 const submitFormDetail = () => { if (pageType.value === 'edit') { @@ -69,16 +197,17 @@ } else { // 打印 - const printObj = ref({ - id: 'print', // 需要打印元素的id - popTitle: '测量标准装置', // 打印配置页上方的标题 - extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 - preview: false, // 是否启动预览模式,默认是false - standard: '', - extarCss: '', - }) + } } +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '测量标准装置', // 打印配置页上方的标题 + extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) // 提交 const submitForm = () => { if (pageType.value === 'detail') { return submitFormDetail() } @@ -103,39 +232,62 @@ }) }) } +onMounted(() => { + if (pageType.value === 'detail') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + fetchrepetitiveRppraisalRecord() // 重复性考核记录 + fetchstabilityAssessmentRecord() // 稳定性考核记录 + fetchcertificateManagement() // 证书管理 + } + else if (pageType.value === 'edit') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + } +}) diff --git a/src/views/device/standingBook/adjustDevice.vue b/src/views/device/standingBook/adjustDevice.vue index a1a38bc..67ef11e 100644 --- a/src/views/device/standingBook/adjustDevice.vue +++ b/src/views/device/standingBook/adjustDevice.vue @@ -5,7 +5,7 @@ diff --git a/src/views/device/standingBook/components/fixedAssetsAdd.vue b/src/views/device/standingBook/components/fixedAssetsAdd.vue deleted file mode 100644 index f272ff7..0000000 --- a/src/views/device/standingBook/components/fixedAssetsAdd.vue +++ /dev/null @@ -1,755 +0,0 @@ - - - - - - diff --git a/src/views/device/standingBook/components/templateAdd.vue b/src/views/device/standingBook/components/templateAdd.vue index 049d8d4..e070af0 100644 --- a/src/views/device/standingBook/components/templateAdd.vue +++ b/src/views/device/standingBook/components/templateAdd.vue @@ -1,87 +1,148 @@ diff --git a/src/views/device/standingBook/components/templatePage.vue b/src/views/device/standingBook/components/templatePage.vue index f69b781..c7105dc 100644 --- a/src/views/device/standingBook/components/templatePage.vue +++ b/src/views/device/standingBook/components/templatePage.vue @@ -1,126 +1,92 @@ - diff --git a/src/views/device/standingBook/fixedAssets.vue b/src/views/device/standingBook/fixedAssets.vue index cddb285..27892a3 100644 --- a/src/views/device/standingBook/fixedAssets.vue +++ b/src/views/device/standingBook/fixedAssets.vue @@ -22,56 +22,16 @@ const loadingTable = ref(false) // 表格loading const total = ref(0) // 数据总条数 const columns = ref([ - { - text: '固定资产编号', - value: 'assetNo', - align: 'center', - }, - { - text: '设备名称', - value: 'equipmentName', - align: 'center', - }, - { - text: '型号', - value: 'modelNo', - align: 'center', - }, - { - text: '设备规格', - value: 'equipmentSpecifications', - align: 'center', - }, - { - text: '设备类别', - value: 'equipmentCategoryName', - align: 'center', - }, - { - text: '设备类型', - value: 'equipmentTypeName', - align: 'center', - }, - { - text: '用途', - value: 'purpose', - align: 'center', - }, - { - text: '管理级别', - value: 'managerLevelName', - align: 'center', - }, - { - text: '使用单位', - value: 'useDeptName', - align: 'center', - }, - { - text: '创建时间', - value: 'createTime', - align: 'center', - }, + { text: '固定资产编号', value: 'assetNo', align: 'center', width: 160 }, + { text: '设备名称', value: 'equipmentName', align: 'center' }, + { text: '型号', value: 'modelNo', align: 'center' }, + { text: '设备规格', value: 'equipmentSpecifications', align: 'center' }, + { text: '设备类别', value: 'equipmentCategoryName', align: 'center' }, + { text: '设备类型', value: 'equipmentTypeName', align: 'center' }, + { text: '用途', value: 'purpose', align: 'center' }, + { text: '管理级别', value: 'managerLevelName', align: 'center', width: 90 }, + { text: '使用部门', value: 'useDeptName', align: 'center' }, + { text: '创建时间', value: 'createTime', align: 'center', width: 165 }, ]) // 表格 const printObj = ref({ id: 'print', // 需要打印元素的id @@ -128,13 +88,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'detail', }, query: { title: '详情', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -146,13 +107,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'edit', }, query: { title: '编辑', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -203,18 +165,15 @@ // 新增 const add = () => { $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'add', }, query: { title: '新建', + name: '固定资产', }, }) - // dialogVisible.value = true - // addRef.value.initDialog({ - // title: '新建', - // }) } // 表格被选中的行 const selectList = ref([]) @@ -344,7 +303,7 @@ 编辑 - 查看 + 详情 删除 diff --git a/src/views/device/standingBook/measureTool.vue b/src/views/device/standingBook/measureTool.vue index 7b9246a..a940bdf 100644 --- a/src/views/device/standingBook/measureTool.vue +++ b/src/views/device/standingBook/measureTool.vue @@ -5,7 +5,7 @@ diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@ @@ -654,6 +659,7 @@ @@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled > @@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue index c762b33..a75d816 100644 --- a/src/views/device/standardEquipment/components/standardList/baseInfo.vue +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -251,6 +251,7 @@ v-model.trim="formInline.standardNo" placeholder="系统编号,自动生成" disabled + class="full-width-input" />
@@ -260,6 +261,7 @@ v-model.trim="formInline.standardName" placeholder="标准名称" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -269,6 +271,7 @@ v-model.trim="formInline.projectNo" placeholder="项目编号" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -278,6 +281,7 @@ v-model.trim="formInline.constructionStandardProject" placeholder="建标项目" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -289,6 +293,7 @@ v-model.trim="formInline.organizeNo" placeholder="组织机构代码" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -301,6 +306,7 @@ v-model.trim="formInline.constructionStandardUnitName" placeholder="建标单位名称" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -312,6 +318,7 @@ placeholder="标准负责人" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -341,6 +349,7 @@ placeholder="类别" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -404,6 +416,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" :disabled="buttonType === 'detail'" @@ -418,6 +431,7 @@ placeholder="标准科室" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" @clear="clearDeptList" > @@ -445,6 +460,7 @@ v-model.trim="formInline.laboratoryOwnerContact" placeholder="联系方式" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -458,6 +474,7 @@ placeholder="管理状态" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -500,6 +519,7 @@ - + @@ -594,6 +616,7 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue index 20eb800..91c2c15 100644 --- a/src/views/device/standardEquipment/components/standardList/temptable.vue +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -1,7 +1,7 @@ diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index 1263b6c..bcdcf3b 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -4,7 +4,7 @@ import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' import baseInfo from './standardList/baseInfo.vue' -import table from './standardList/temptable.vue' +import TemplateTable from './standardList/templateTable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -34,16 +34,20 @@ comp: any } const menu = shallowRef([ - { name: '基本信息', comp: baseInfo }, - { name: '计量人员', comp: table }, - { name: '标准配套设备', comp: table }, - { name: '检定规程', comp: table }, - { name: '重复性考核记录', comp: table }, - { name: '稳定性考核记录', comp: table }, - { name: '证书管理', comp: table }, + { name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }, + { name: '重复性考核记录', comp: TemplateTable }, + { name: '稳定性考核记录', comp: TemplateTable }, + { name: '证书管理', comp: TemplateTable }, ]) +if (pageType.value === 'edit') { + menu.value = [{ name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }] +} const currentCompRef = ref() -const current = ref('基本信息') +const current = ref('计量人员') const currentComp = shallowRef(baseInfo) watch(current, (newValue) => { currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp @@ -57,6 +61,130 @@ const setData = (newValue: object) => { formInline.value = newValue } +const queryParams = { + id: '', + limit: 20, + offset: 1, +} +// 关闭 +interface TableColumn { + text: string + value: string + align: string +} + +interface checkedRecord { + text: string +} +// 计量人员 +const measurementPersonnelColumns = ref([ + { text: '姓名', value: 'name', align: 'center' }, + { text: '计量人员编号', value: 'staffNo', align: 'center' }, + { text: '工作部门', value: 'deptId', align: 'center' }, + { text: '计量专业', value: 'major', align: 'center' }, + { text: '证书编号', value: 'verifierCertificateNo', align: 'center' }, + { text: '证书有效期', value: 'certificateDate', align: 'center' }, +]) +const measurementPersonnel = ref([]) +const measurementPersonnelLoading = ref(false) +function fetchmeasurementPersonnel(query = { ...queryParams }) { + measurementPersonnelLoading.value = true + measurementPersonnel.value = [{ + text: 'xx', + }] + measurementPersonnelLoading.value = false +} + +// 标准配套设备 +const corollaryEquipmentColumns = ref([ + { text: '设备名称', value: 'text', align: 'center' }, + { text: '设备编号', value: 'text', align: 'center' }, + { text: '型号', value: 'text', align: 'center' }, + { text: '测量范围', value: 'text', align: 'center' }, + { text: '使用部门', value: 'text', align: 'center' }, + { text: '检定时间', value: 'text', align: 'center' }, + { text: '检定结果', value: 'text', align: 'center' }, + { text: '有效日期', value: 'text', align: 'center' }, +]) +const corollaryEquipment = ref([]) +const corollaryEquipmentLoading = ref(false) +function fetchcorollaryEquipment(query = { ...queryParams }) { + corollaryEquipmentLoading.value = true + corollaryEquipment.value = [{ + text: 'xx', + }] + corollaryEquipmentLoading.value = false +} + +// 检定规程 +const regulationVerificationColumns = ref([ + { text: '文件名称', value: 'text', align: 'center' }, + { text: '文件编号', value: 'text', align: 'center' }, + { text: '文件号', value: 'text', align: 'center' }, + { text: '实施时间', value: 'text', align: 'center' }, + { text: '实施状态', value: 'text', align: 'center' }, +]) +const regulationVerification = ref([]) +const regulationVerificationLoading = ref(false) +function fetchregulationVerification(query = { ...queryParams }) { + regulationVerificationLoading.value = true + regulationVerification.value = [{ + text: 'xx', + }] + regulationVerificationLoading.value = false +} + +// 重复性考核记录 +const repetitiveRppraisalRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const repetitiveRppraisalRecord = ref([]) +const repetitiveRppraisalRecordLoading = ref(false) +function fetchrepetitiveRppraisalRecord(query = { ...queryParams }) { + repetitiveRppraisalRecordLoading.value = true + repetitiveRppraisalRecord.value = [{ + text: 'xx', + }] + repetitiveRppraisalRecordLoading.value = false +} + +// 稳定性考核记录 +const stabilityAssessmentRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const stabilityAssessmentRecord = ref([]) +const stabilityAssessmentRecordLoading = ref(false) +function fetchstabilityAssessmentRecord(query = { ...queryParams }) { + stabilityAssessmentRecordLoading.value = true + stabilityAssessmentRecord.value = [{ + text: 'xx', + }] + stabilityAssessmentRecordLoading.value = false +} + +// 证书管理 +const certificateManagementColumns = ref([ + { text: '证书编号', value: 'text', align: 'center' }, + { text: '证书名称', value: 'text', align: 'center' }, + { text: '证书类型', value: 'text', align: 'center' }, + { text: '证书出具日期', value: 'text', align: 'center' }, + { text: '证书有效期', value: 'text', align: 'center' }, +]) +const certificateManagement = ref([]) +const certificateManagementLoading = ref(false) +function fetchcertificateManagement(query = { ...queryParams }) { + certificateManagementLoading.value = true + certificateManagement.value = [{ + text: 'xx', + }] + certificateManagementLoading.value = false +} // 编辑获取详情的提交按钮 const submitFormDetail = () => { if (pageType.value === 'edit') { @@ -69,16 +197,17 @@ } else { // 打印 - const printObj = ref({ - id: 'print', // 需要打印元素的id - popTitle: '测量标准装置', // 打印配置页上方的标题 - extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 - preview: false, // 是否启动预览模式,默认是false - standard: '', - extarCss: '', - }) + } } +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '测量标准装置', // 打印配置页上方的标题 + extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) // 提交 const submitForm = () => { if (pageType.value === 'detail') { return submitFormDetail() } @@ -103,39 +232,62 @@ }) }) } +onMounted(() => { + if (pageType.value === 'detail') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + fetchrepetitiveRppraisalRecord() // 重复性考核记录 + fetchstabilityAssessmentRecord() // 稳定性考核记录 + fetchcertificateManagement() // 证书管理 + } + else if (pageType.value === 'edit') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + } +}) diff --git a/src/views/device/standingBook/adjustDevice.vue b/src/views/device/standingBook/adjustDevice.vue index a1a38bc..67ef11e 100644 --- a/src/views/device/standingBook/adjustDevice.vue +++ b/src/views/device/standingBook/adjustDevice.vue @@ -5,7 +5,7 @@ diff --git a/src/views/device/standingBook/components/fixedAssetsAdd.vue b/src/views/device/standingBook/components/fixedAssetsAdd.vue deleted file mode 100644 index f272ff7..0000000 --- a/src/views/device/standingBook/components/fixedAssetsAdd.vue +++ /dev/null @@ -1,755 +0,0 @@ - - - - - - diff --git a/src/views/device/standingBook/components/templateAdd.vue b/src/views/device/standingBook/components/templateAdd.vue index 049d8d4..e070af0 100644 --- a/src/views/device/standingBook/components/templateAdd.vue +++ b/src/views/device/standingBook/components/templateAdd.vue @@ -1,87 +1,148 @@ diff --git a/src/views/device/standingBook/components/templatePage.vue b/src/views/device/standingBook/components/templatePage.vue index f69b781..c7105dc 100644 --- a/src/views/device/standingBook/components/templatePage.vue +++ b/src/views/device/standingBook/components/templatePage.vue @@ -1,126 +1,92 @@ - diff --git a/src/views/device/standingBook/fixedAssets.vue b/src/views/device/standingBook/fixedAssets.vue index cddb285..27892a3 100644 --- a/src/views/device/standingBook/fixedAssets.vue +++ b/src/views/device/standingBook/fixedAssets.vue @@ -22,56 +22,16 @@ const loadingTable = ref(false) // 表格loading const total = ref(0) // 数据总条数 const columns = ref([ - { - text: '固定资产编号', - value: 'assetNo', - align: 'center', - }, - { - text: '设备名称', - value: 'equipmentName', - align: 'center', - }, - { - text: '型号', - value: 'modelNo', - align: 'center', - }, - { - text: '设备规格', - value: 'equipmentSpecifications', - align: 'center', - }, - { - text: '设备类别', - value: 'equipmentCategoryName', - align: 'center', - }, - { - text: '设备类型', - value: 'equipmentTypeName', - align: 'center', - }, - { - text: '用途', - value: 'purpose', - align: 'center', - }, - { - text: '管理级别', - value: 'managerLevelName', - align: 'center', - }, - { - text: '使用单位', - value: 'useDeptName', - align: 'center', - }, - { - text: '创建时间', - value: 'createTime', - align: 'center', - }, + { text: '固定资产编号', value: 'assetNo', align: 'center', width: 160 }, + { text: '设备名称', value: 'equipmentName', align: 'center' }, + { text: '型号', value: 'modelNo', align: 'center' }, + { text: '设备规格', value: 'equipmentSpecifications', align: 'center' }, + { text: '设备类别', value: 'equipmentCategoryName', align: 'center' }, + { text: '设备类型', value: 'equipmentTypeName', align: 'center' }, + { text: '用途', value: 'purpose', align: 'center' }, + { text: '管理级别', value: 'managerLevelName', align: 'center', width: 90 }, + { text: '使用部门', value: 'useDeptName', align: 'center' }, + { text: '创建时间', value: 'createTime', align: 'center', width: 165 }, ]) // 表格 const printObj = ref({ id: 'print', // 需要打印元素的id @@ -128,13 +88,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'detail', }, query: { title: '详情', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -146,13 +107,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'edit', }, query: { title: '编辑', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -203,18 +165,15 @@ // 新增 const add = () => { $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'add', }, query: { title: '新建', + name: '固定资产', }, }) - // dialogVisible.value = true - // addRef.value.initDialog({ - // title: '新建', - // }) } // 表格被选中的行 const selectList = ref([]) @@ -344,7 +303,7 @@ 编辑 - 查看 + 详情 删除 diff --git a/src/views/device/standingBook/measureTool.vue b/src/views/device/standingBook/measureTool.vue index 7b9246a..a940bdf 100644 --- a/src/views/device/standingBook/measureTool.vue +++ b/src/views/device/standingBook/measureTool.vue @@ -5,7 +5,7 @@ diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@ @@ -654,6 +659,7 @@ @@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled > @@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue index c762b33..a75d816 100644 --- a/src/views/device/standardEquipment/components/standardList/baseInfo.vue +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -251,6 +251,7 @@ v-model.trim="formInline.standardNo" placeholder="系统编号,自动生成" disabled + class="full-width-input" />
@@ -260,6 +261,7 @@ v-model.trim="formInline.standardName" placeholder="标准名称" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -269,6 +271,7 @@ v-model.trim="formInline.projectNo" placeholder="项目编号" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -278,6 +281,7 @@ v-model.trim="formInline.constructionStandardProject" placeholder="建标项目" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -289,6 +293,7 @@ v-model.trim="formInline.organizeNo" placeholder="组织机构代码" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -301,6 +306,7 @@ v-model.trim="formInline.constructionStandardUnitName" placeholder="建标单位名称" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -312,6 +318,7 @@ placeholder="标准负责人" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -341,6 +349,7 @@ placeholder="类别" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -404,6 +416,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" :disabled="buttonType === 'detail'" @@ -418,6 +431,7 @@ placeholder="标准科室" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" @clear="clearDeptList" > @@ -445,6 +460,7 @@ v-model.trim="formInline.laboratoryOwnerContact" placeholder="联系方式" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -458,6 +474,7 @@ placeholder="管理状态" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -500,6 +519,7 @@ - + @@ -594,6 +616,7 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue index 20eb800..91c2c15 100644 --- a/src/views/device/standardEquipment/components/standardList/temptable.vue +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -1,7 +1,7 @@ diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index 1263b6c..bcdcf3b 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -4,7 +4,7 @@ import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' import baseInfo from './standardList/baseInfo.vue' -import table from './standardList/temptable.vue' +import TemplateTable from './standardList/templateTable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -34,16 +34,20 @@ comp: any } const menu = shallowRef([ - { name: '基本信息', comp: baseInfo }, - { name: '计量人员', comp: table }, - { name: '标准配套设备', comp: table }, - { name: '检定规程', comp: table }, - { name: '重复性考核记录', comp: table }, - { name: '稳定性考核记录', comp: table }, - { name: '证书管理', comp: table }, + { name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }, + { name: '重复性考核记录', comp: TemplateTable }, + { name: '稳定性考核记录', comp: TemplateTable }, + { name: '证书管理', comp: TemplateTable }, ]) +if (pageType.value === 'edit') { + menu.value = [{ name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }] +} const currentCompRef = ref() -const current = ref('基本信息') +const current = ref('计量人员') const currentComp = shallowRef(baseInfo) watch(current, (newValue) => { currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp @@ -57,6 +61,130 @@ const setData = (newValue: object) => { formInline.value = newValue } +const queryParams = { + id: '', + limit: 20, + offset: 1, +} +// 关闭 +interface TableColumn { + text: string + value: string + align: string +} + +interface checkedRecord { + text: string +} +// 计量人员 +const measurementPersonnelColumns = ref([ + { text: '姓名', value: 'name', align: 'center' }, + { text: '计量人员编号', value: 'staffNo', align: 'center' }, + { text: '工作部门', value: 'deptId', align: 'center' }, + { text: '计量专业', value: 'major', align: 'center' }, + { text: '证书编号', value: 'verifierCertificateNo', align: 'center' }, + { text: '证书有效期', value: 'certificateDate', align: 'center' }, +]) +const measurementPersonnel = ref([]) +const measurementPersonnelLoading = ref(false) +function fetchmeasurementPersonnel(query = { ...queryParams }) { + measurementPersonnelLoading.value = true + measurementPersonnel.value = [{ + text: 'xx', + }] + measurementPersonnelLoading.value = false +} + +// 标准配套设备 +const corollaryEquipmentColumns = ref([ + { text: '设备名称', value: 'text', align: 'center' }, + { text: '设备编号', value: 'text', align: 'center' }, + { text: '型号', value: 'text', align: 'center' }, + { text: '测量范围', value: 'text', align: 'center' }, + { text: '使用部门', value: 'text', align: 'center' }, + { text: '检定时间', value: 'text', align: 'center' }, + { text: '检定结果', value: 'text', align: 'center' }, + { text: '有效日期', value: 'text', align: 'center' }, +]) +const corollaryEquipment = ref([]) +const corollaryEquipmentLoading = ref(false) +function fetchcorollaryEquipment(query = { ...queryParams }) { + corollaryEquipmentLoading.value = true + corollaryEquipment.value = [{ + text: 'xx', + }] + corollaryEquipmentLoading.value = false +} + +// 检定规程 +const regulationVerificationColumns = ref([ + { text: '文件名称', value: 'text', align: 'center' }, + { text: '文件编号', value: 'text', align: 'center' }, + { text: '文件号', value: 'text', align: 'center' }, + { text: '实施时间', value: 'text', align: 'center' }, + { text: '实施状态', value: 'text', align: 'center' }, +]) +const regulationVerification = ref([]) +const regulationVerificationLoading = ref(false) +function fetchregulationVerification(query = { ...queryParams }) { + regulationVerificationLoading.value = true + regulationVerification.value = [{ + text: 'xx', + }] + regulationVerificationLoading.value = false +} + +// 重复性考核记录 +const repetitiveRppraisalRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const repetitiveRppraisalRecord = ref([]) +const repetitiveRppraisalRecordLoading = ref(false) +function fetchrepetitiveRppraisalRecord(query = { ...queryParams }) { + repetitiveRppraisalRecordLoading.value = true + repetitiveRppraisalRecord.value = [{ + text: 'xx', + }] + repetitiveRppraisalRecordLoading.value = false +} + +// 稳定性考核记录 +const stabilityAssessmentRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const stabilityAssessmentRecord = ref([]) +const stabilityAssessmentRecordLoading = ref(false) +function fetchstabilityAssessmentRecord(query = { ...queryParams }) { + stabilityAssessmentRecordLoading.value = true + stabilityAssessmentRecord.value = [{ + text: 'xx', + }] + stabilityAssessmentRecordLoading.value = false +} + +// 证书管理 +const certificateManagementColumns = ref([ + { text: '证书编号', value: 'text', align: 'center' }, + { text: '证书名称', value: 'text', align: 'center' }, + { text: '证书类型', value: 'text', align: 'center' }, + { text: '证书出具日期', value: 'text', align: 'center' }, + { text: '证书有效期', value: 'text', align: 'center' }, +]) +const certificateManagement = ref([]) +const certificateManagementLoading = ref(false) +function fetchcertificateManagement(query = { ...queryParams }) { + certificateManagementLoading.value = true + certificateManagement.value = [{ + text: 'xx', + }] + certificateManagementLoading.value = false +} // 编辑获取详情的提交按钮 const submitFormDetail = () => { if (pageType.value === 'edit') { @@ -69,16 +197,17 @@ } else { // 打印 - const printObj = ref({ - id: 'print', // 需要打印元素的id - popTitle: '测量标准装置', // 打印配置页上方的标题 - extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 - preview: false, // 是否启动预览模式,默认是false - standard: '', - extarCss: '', - }) + } } +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '测量标准装置', // 打印配置页上方的标题 + extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) // 提交 const submitForm = () => { if (pageType.value === 'detail') { return submitFormDetail() } @@ -103,39 +232,62 @@ }) }) } +onMounted(() => { + if (pageType.value === 'detail') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + fetchrepetitiveRppraisalRecord() // 重复性考核记录 + fetchstabilityAssessmentRecord() // 稳定性考核记录 + fetchcertificateManagement() // 证书管理 + } + else if (pageType.value === 'edit') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + } +}) diff --git a/src/views/device/standingBook/adjustDevice.vue b/src/views/device/standingBook/adjustDevice.vue index a1a38bc..67ef11e 100644 --- a/src/views/device/standingBook/adjustDevice.vue +++ b/src/views/device/standingBook/adjustDevice.vue @@ -5,7 +5,7 @@ diff --git a/src/views/device/standingBook/components/fixedAssetsAdd.vue b/src/views/device/standingBook/components/fixedAssetsAdd.vue deleted file mode 100644 index f272ff7..0000000 --- a/src/views/device/standingBook/components/fixedAssetsAdd.vue +++ /dev/null @@ -1,755 +0,0 @@ - - - - - - diff --git a/src/views/device/standingBook/components/templateAdd.vue b/src/views/device/standingBook/components/templateAdd.vue index 049d8d4..e070af0 100644 --- a/src/views/device/standingBook/components/templateAdd.vue +++ b/src/views/device/standingBook/components/templateAdd.vue @@ -1,87 +1,148 @@ diff --git a/src/views/device/standingBook/components/templatePage.vue b/src/views/device/standingBook/components/templatePage.vue index f69b781..c7105dc 100644 --- a/src/views/device/standingBook/components/templatePage.vue +++ b/src/views/device/standingBook/components/templatePage.vue @@ -1,126 +1,92 @@ - diff --git a/src/views/device/standingBook/fixedAssets.vue b/src/views/device/standingBook/fixedAssets.vue index cddb285..27892a3 100644 --- a/src/views/device/standingBook/fixedAssets.vue +++ b/src/views/device/standingBook/fixedAssets.vue @@ -22,56 +22,16 @@ const loadingTable = ref(false) // 表格loading const total = ref(0) // 数据总条数 const columns = ref([ - { - text: '固定资产编号', - value: 'assetNo', - align: 'center', - }, - { - text: '设备名称', - value: 'equipmentName', - align: 'center', - }, - { - text: '型号', - value: 'modelNo', - align: 'center', - }, - { - text: '设备规格', - value: 'equipmentSpecifications', - align: 'center', - }, - { - text: '设备类别', - value: 'equipmentCategoryName', - align: 'center', - }, - { - text: '设备类型', - value: 'equipmentTypeName', - align: 'center', - }, - { - text: '用途', - value: 'purpose', - align: 'center', - }, - { - text: '管理级别', - value: 'managerLevelName', - align: 'center', - }, - { - text: '使用单位', - value: 'useDeptName', - align: 'center', - }, - { - text: '创建时间', - value: 'createTime', - align: 'center', - }, + { text: '固定资产编号', value: 'assetNo', align: 'center', width: 160 }, + { text: '设备名称', value: 'equipmentName', align: 'center' }, + { text: '型号', value: 'modelNo', align: 'center' }, + { text: '设备规格', value: 'equipmentSpecifications', align: 'center' }, + { text: '设备类别', value: 'equipmentCategoryName', align: 'center' }, + { text: '设备类型', value: 'equipmentTypeName', align: 'center' }, + { text: '用途', value: 'purpose', align: 'center' }, + { text: '管理级别', value: 'managerLevelName', align: 'center', width: 90 }, + { text: '使用部门', value: 'useDeptName', align: 'center' }, + { text: '创建时间', value: 'createTime', align: 'center', width: 165 }, ]) // 表格 const printObj = ref({ id: 'print', // 需要打印元素的id @@ -128,13 +88,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'detail', }, query: { title: '详情', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -146,13 +107,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'edit', }, query: { title: '编辑', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -203,18 +165,15 @@ // 新增 const add = () => { $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'add', }, query: { title: '新建', + name: '固定资产', }, }) - // dialogVisible.value = true - // addRef.value.initDialog({ - // title: '新建', - // }) } // 表格被选中的行 const selectList = ref([]) @@ -344,7 +303,7 @@ 编辑 - 查看 + 详情 删除 diff --git a/src/views/device/standingBook/measureTool.vue b/src/views/device/standingBook/measureTool.vue index 7b9246a..a940bdf 100644 --- a/src/views/device/standingBook/measureTool.vue +++ b/src/views/device/standingBook/measureTool.vue @@ -5,7 +5,7 @@ diff --git a/src/views/measure/source/list_interface.ts b/src/views/measure/source/list_interface.ts index fe32aca..1ac2abe 100644 --- a/src/views/measure/source/list_interface.ts +++ b/src/views/measure/source/list_interface.ts @@ -62,6 +62,10 @@ companyCity: string // 公司地址-市 companyCountry: string // 公司地址-国家 companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 createTime?: string // 创建时间 director: string // 负责人 id: string // 主键id(列表、更新接口参数) @@ -71,6 +75,10 @@ invoiceCity: string // 开票地址-市 invoiceCountry: string // 开票地址-国家 invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 mailbox: string // 邮箱 minioFileName: string // 上传文件返回名称 mobile: string // 手机 diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts new file mode 100644 index 0000000..cb41f8c --- /dev/null +++ b/src/api/customer/customer.ts @@ -0,0 +1,60 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' +const prefix = '/meter' + +// 列表查询 +export function getCustomerList(data: ICustomerQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteCustomer(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getCustomerDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 提交数据 +export function addCustomer(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 更新数据 +export function updateCustomer(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportCustomerList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts new file mode 100644 index 0000000..525909d --- /dev/null +++ b/src/api/device/checkList.ts @@ -0,0 +1,46 @@ +// 设备借用相关接口api +import request from '../index' +// 设备管理点检查列表 +export function getcheckInfoList(data: { limit: number; offset: number }) { + return request({ + url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getDeleteCheckInfo(data: object) { + return request({ + url: '/check/deleteCheckInfo', + method: 'post', + data, + }) +} + +// 数据导出 +export function getExportCheckInfoList(data: object) { + return request({ + url: '/check/exportCheckInfoList', + method: 'post', + responseType: 'blob', + data, + }) +} + +// 获取详情数据 +export function getselectCheckInfo(data: object) { + return request({ + url: '/check/selectCheckInfo', + method: 'post', + data, + }) +} +// 获取详情数据 +export function getAddCheckInfo(data: object) { + return request({ + url: '/check/addCheckInfo', + method: 'post', + data, + }) +} diff --git a/src/api/system/area.ts b/src/api/system/area.ts index ef6488e..2ff6cf3 100644 --- a/src/api/system/area.ts +++ b/src/api/system/area.ts @@ -77,3 +77,13 @@ }) } +// 根据父id获取列表 +export function getAreaByPid(pid: string) { + return request({ + url: '/sys/area/list?', + method: 'get', + params: { + pid, + }, + }) +} diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts index 33b384f..511befd 100644 --- a/src/api/system/plan.ts +++ b/src/api/system/plan.ts @@ -4,8 +4,28 @@ import request from '../index' const prefix = '/meter' +// 导出培训计录列表 +export function exportLogList(data: object) { + return request({ + url: `${prefix}/train/log/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 导出培训计划列表 +export function exportPlanList(data: object) { + return request({ + url: `${prefix}/train/plan/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 列表查询 -export function getPlanList(data: object) { +export function getPlanList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', @@ -56,7 +76,7 @@ } // 培训记录列表 -export function getLogList(data: object) { +export function getLogList(data: { offset: number; limit: number }) { return request({ url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, method: 'post', diff --git a/src/api/system/price.ts b/src/api/system/price.ts index ddee1a1..e4fdb53 100644 --- a/src/api/system/price.ts +++ b/src/api/system/price.ts @@ -1,8 +1,18 @@ import request from '../index' const prefix = '/price' +// 导出列表 +export function exportPriceList(data: object) { + return request({ + url: `${prefix}/exportPriceList`, + method: 'post', + responseType: 'blob', + data, + }) +} + // 价格列表查询 -export function getPriceList(data: object) { +export function getPriceList(data: { offset: number; limit: string }) { return request({ url: `${prefix}/queryPriceList?offset=${data.offset}&limit=${data.limit}`, method: 'post', diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index 8960267..67d321f 100644 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -125,14 +125,14 @@ // 详情页面输入框样式调整, 背景白,字体加深,悬停显示输入字符 .detail-input.is-disabled .el-input__wrapper { - background-color: #fff; + // background-color: #fff; } .detail-input.is-disabled .el-input__inner { - color: var(--el-text-color-regular); - -webkit-text-fill-color: var(--el-text-color-regular); + // color: var(--el-text-color-regular); + // -webkit-text-fill-color: var(--el-text-color-regular); - &:hover { - cursor: text; - } + // &:hover { + // cursor: text; + // } } diff --git a/src/components.d.ts b/src/components.d.ts index d419887..f5797b9 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,7 @@ export interface GlobalComponents { AddNode: typeof import('./components/workFlow/addNode.vue')['default'] AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default'] + AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default'] AppContainer: typeof import('./components/AppContainer/index.vue')['default'] ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default'] ApproverDrawer: typeof import('./components/drawer/approverDrawer.vue')['default'] diff --git a/src/components/AddressSelect/AddressSelect.vue b/src/components/AddressSelect/AddressSelect.vue new file mode 100644 index 0000000..60aa04c --- /dev/null +++ b/src/components/AddressSelect/AddressSelect.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/src/components/AddressSelect/address-interface.ts b/src/components/AddressSelect/address-interface.ts new file mode 100644 index 0000000..f530dc9 --- /dev/null +++ b/src/components/AddressSelect/address-interface.ts @@ -0,0 +1,12 @@ +// 地址对象 +export interface IAddress { + country: string + countryName: string + province: string + provinceName: string + city: string + cityName: string + area: string + areaName: string + address: string +} diff --git a/src/components/AddressSelect/country-code.json b/src/components/AddressSelect/country-code.json new file mode 100644 index 0000000..dc96d7f --- /dev/null +++ b/src/components/AddressSelect/country-code.json @@ -0,0 +1,1519 @@ +[ + { + "code": "CN", + "name": "China", + "dialCode": 86, + "phoneFormat": "131 2345 6789", + "CNName": "中国" + }, + { + "code": "HK", + "name": "Hong Kong (China)", + "dialCode": 852, + "phoneFormat": "5123 4567", + "CNName": "中国香港" + }, + { + "code": "MO", + "name": "Macao (China)", + "dialCode": 853, + "phoneFormat": "6612 3456", + "CNName": "中国澳门" + }, + { + "code": "TW", + "name": "Taiwan (Province of China)", + "dialCode": 886, + "phoneFormat": "0912 345 678", + "CNName": "中国台湾" + }, + { + "code": "AF", + "name": "Afghanistan", + "dialCode": 93, + "phoneFormat": "070 123 4567", + "CNName": "阿富汗" + }, + { + "code": "AL", + "name": "Albania ", + "dialCode": 355, + "phoneFormat": "066 123 4567", + "CNName": "阿尔巴尼亚" + }, + { + "code": "DZ", + "name": "Algeria ", + "dialCode": 213, + "phoneFormat": "0551 23 45 67", + "CNName": "阿尔及利亚" + }, + { + "code": "AS", + "name": "American Samoa", + "dialCode": 1684, + "phoneFormat": "(684) 733-1234", + "CNName": "美属萨摩亚" + }, + { + "code": "AD", + "name": "Andorra", + "dialCode": 376, + "phoneFormat": "312 345", + "CNName": "安道尔" + }, + { + "code": "AO", + "name": "Angola", + "dialCode": 244, + "phoneFormat": "923 123 456", + "CNName": "安哥拉" + }, + { + "code": "AI", + "name": "Anguilla", + "dialCode": 1264, + "phoneFormat": "(264) 235-1234", + "CNName": "安圭拉" + }, + { + "code": "AG", + "name": "Antigua and Barbuda", + "dialCode": 1268, + "phoneFormat": "(268) 464-1234", + "CNName": "安提瓜和巴布达" + }, + { + "code": "AR", + "name": "Argentina", + "dialCode": 54, + "phoneFormat": "011 15-2345-6789", + "CNName": "阿根廷" + }, + { + "code": "AM", + "name": "Armenia ", + "dialCode": 374, + "phoneFormat": "077 123456", + "CNName": "亚美尼亚" + }, + { + "code": "AW", + "name": "Aruba", + "dialCode": 297, + "phoneFormat": "560 1234", + "CNName": "阿鲁巴" + }, + { + "code": "AU", + "name": "Australia", + "dialCode": 61, + "phoneFormat": "0412 345 678", + "CNName": "澳大利亚" + }, + { + "code": "AT", + "name": "Austria ", + "dialCode": 43, + "phoneFormat": "0664 123456", + "CNName": "奥地利" + }, + { + "code": "AZ", + "name": "Azerbaijan ", + "dialCode": 994, + "phoneFormat": "040 123 45 67", + "CNName": "阿塞拜疆" + }, + { + "code": "BH", + "name": "Bahrain", + "dialCode": 973, + "phoneFormat": "3600 1234", + "CNName": "巴林" + }, + { + "code": "BD", + "name": "Bangladesh", + "dialCode": 880, + "phoneFormat": "01812-345678", + "CNName": "孟加拉国" + }, + { + "code": "BB", + "name": "Barbados", + "dialCode": 1246, + "phoneFormat": "(246) 250-1234", + "CNName": "巴巴多斯" + }, + { + "code": "BY", + "name": "Belarusr", + "dialCode": 375, + "phoneFormat": "8 029 491-19-11", + "CNName": "白俄罗斯" + }, + { + "code": "BE", + "name": "Belgium", + "dialCode": 32, + "phoneFormat": "0470 12 34 56", + "CNName": "比利时" + }, + { + "code": "BZ", + "name": "Belize", + "dialCode": 501, + "phoneFormat": "622-1234", + "CNName": "伯利兹" + }, + { + "code": "BJ", + "name": "Benin", + "dialCode": 229, + "phoneFormat": "90 01 12 34", + "CNName": "贝宁" + }, + { + "code": "BM", + "name": "Bermuda", + "dialCode": 1441, + "phoneFormat": "(441) 370-1234", + "CNName": "百慕大" + }, + { + "code": "BT", + "name": "Bhutan", + "dialCode": 975, + "phoneFormat": "17 12 34 56", + "CNName": "不丹" + }, + { + "code": "BO", + "name": "Bolivia", + "dialCode": 591, + "phoneFormat": "71234567", + "CNName": "玻利维亚" + }, + { + "code": "BA", + "name": "Bosnia and Herzegovina", + "dialCode": 387, + "phoneFormat": "061 123 456", + "CNName": "波黑" + }, + { + "code": "BW", + "name": "Botswana", + "dialCode": 267, + "phoneFormat": "71 123 456", + "CNName": "博茨瓦纳" + }, + { + "code": "BR", + "name": "Brazil", + "dialCode": 55, + "phoneFormat": "(11) 96123-4567", + "CNName": "巴西" + }, + { + "code": "BN", + "name": "Brunei Darussalam", + "dialCode": 673, + "phoneFormat": "712 3456", + "CNName": "文莱" + }, + { + "code": "BG", + "name": "Bulgaria", + "dialCode": 359, + "phoneFormat": "048 123 456", + "CNName": "保加利亚" + }, + { + "code": "BF", + "name": "Burkina Faso", + "dialCode": 226, + "phoneFormat": "70 12 34 56", + "CNName": "布基纳法索" + }, + { + "code": "BI", + "name": "Burundi", + "dialCode": 257, + "phoneFormat": "79 56 12 34", + "CNName": "布隆迪" + }, + { + "code": "KH", + "name": "Cambodia", + "dialCode": 855, + "phoneFormat": "091 234 567", + "CNName": "柬埔寨" + }, + { + "code": "CM", + "name": "Cameroon", + "dialCode": 237, + "phoneFormat": "6 71 23 45 67", + "CNName": "喀麦隆" + }, + { + "code": "CA", + "name": "Canada", + "dialCode": 1, + "phoneFormat": "(204) 234-5678", + "CNName": "加拿大" + }, + { + "code": "CV", + "name": "Cape Verde", + "dialCode": 238, + "phoneFormat": "991 12 34", + "CNName": "佛得角" + }, + { + "code": "KY", + "name": "Cayman Islands", + "dialCode": 1345, + "phoneFormat": "(345) 323-1234", + "CNName": "开曼群岛" + }, + { + "code": "CF", + "name": "Central African Republic", + "dialCode": 236, + "phoneFormat": "70 01 23 45", + "CNName": "中非" + }, + { + "code": "TD", + "name": "Chad", + "dialCode": 235, + "phoneFormat": "63 01 23 45", + "CNName": "乍得" + }, + { + "code": "CL", + "name": "Chile", + "dialCode": 56, + "phoneFormat": "09 6123 4567", + "CNName": "智利" + }, + + { + "code": "CO", + "name": "Colombia", + "dialCode": 57, + "phoneFormat": "321 1234567", + "CNName": "哥伦比亚" + }, + { + "code": "KM", + "name": "Comoros", + "dialCode": 269, + "phoneFormat": "321 23 45", + "CNName": "科摩罗" + }, + { + "code": "CK", + "name": "Cook Islands", + "dialCode": 682, + "phoneFormat": "71 234", + "CNName": "库克群岛" + }, + { + "code": "CR", + "name": "Costa Rica", + "dialCode": 506, + "phoneFormat": "8312 3456", + "CNName": "哥斯达黎加" + }, + + { + "code": "HR", + "name": "Croatia", + "dialCode": 385, + "phoneFormat": "091 234 5678", + "CNName": "克罗地亚" + }, + { + "code": "CU", + "name": "Cuba", + "dialCode": 53, + "phoneFormat": "05 1234567", + "CNName": "古巴" + }, + { + "code": "CW", + "name": "Curaçao", + "dialCode": 599, + "phoneFormat": "9 518 1234", + "CNName": "库拉索" + }, + { + "code": "CY", + "name": "Cyprus ", + "dialCode": 357, + "phoneFormat": "96 123456", + "CNName": "塞浦路斯" + }, + { + "code": "CZ", + "name": "Czech Republic", + "dialCode": 420, + "phoneFormat": "601 123 456", + "CNName": "捷克" + }, + { + "code": "CD", + "name": "Congo (the Democratic Republic of the)", + "dialCode": 243, + "phoneFormat": "0991 234 567", + "CNName": "刚果(金)" + }, + { + "code": "CG", + "name": "Congo", + "dialCode": 242, + "phoneFormat": "0991 234 567", + "CNName": "刚果(布)" + }, + { + "code": "CI", + "name": "Côte d'Ivoire", + "dialCode": 225, + "phoneFormat": "01 23 45 67", + "CNName": "科特迪瓦" + }, + { + "code": "DK", + "name": "Denmark", + "dialCode": 45, + "phoneFormat": "20 12 34 56", + "CNName": "丹麦" + }, + { + "code": "DJ", + "name": "Djibouti", + "dialCode": 253, + "phoneFormat": "77 83 10 01", + "CNName": "吉布提" + }, + { + "code": "DM", + "name": "Dominica", + "dialCode": 1767, + "phoneFormat": "(767) 225-1234", + "CNName": "多米尼克" + }, + { + "code": "DO", + "name": "Dominican Republic", + "dialCode": 1809, + "phoneFormat": "(809) 234-5678", + "CNName": "多米尼加" + }, + { + "code": "EC", + "name": "Ecuador", + "dialCode": 593, + "phoneFormat": "099 123 4567", + "CNName": "厄瓜多尔" + }, + { + "code": "EG", + "name": "Egypt ", + "dialCode": 20, + "phoneFormat": "0100 123 4567", + "CNName": "埃及" + }, + { + "code": "SV", + "name": "El Salvador", + "dialCode": 503, + "phoneFormat": "7012 3456", + "CNName": "萨尔瓦多" + }, + { + "code": "GQ", + "name": "Equatorial Guinea ", + "dialCode": 240, + "phoneFormat": "222 123 456", + "CNName": "赤道几内亚" + }, + { + "code": "ER", + "name": "Eritrea", + "dialCode": 291, + "phoneFormat": "07 123 456", + "CNName": "厄立特里亚" + }, + { + "code": "EE", + "name": "Estonia", + "dialCode": 372, + "phoneFormat": "5123 4567", + "CNName": "爱沙尼亚" + }, + { + "code": "ET", + "name": "Ethiopia", + "dialCode": 251, + "phoneFormat": "091 123 4567", + "CNName": "埃塞俄比亚" + }, + + { + "code": "FO", + "name": "Faroe Islands", + "dialCode": 298, + "phoneFormat": "211234", + "CNName": "法罗群岛" + }, + { + "code": "FJ", + "name": "Fiji", + "dialCode": 679, + "phoneFormat": "701 2345", + "CNName": "斐济" + }, + { + "code": "FI", + "name": "Finland", + "dialCode": 358, + "phoneFormat": "041 2345678", + "CNName": "芬兰" + }, + { + "code": "FR", + "name": "France", + "dialCode": 33, + "phoneFormat": "06 12 34 56 78", + "CNName": "法国" + }, + { + "code": "GF", + "name": "French Guiana", + "dialCode": 594, + "phoneFormat": "0694 20 12 34", + "CNName": "法属圭亚那" + }, + { + "code": "PF", + "name": "French Polynesia", + "dialCode": 689, + "phoneFormat": "87 12 34 56", + "CNName": "法属波利尼西亚" + }, + { + "code": "GA", + "name": "Gabon", + "dialCode": 241, + "phoneFormat": "06 03 12 34", + "CNName": "加蓬" + }, + { + "code": "GE", + "name": "Georgia ", + "dialCode": 995, + "phoneFormat": "555 12 34 56", + "CNName": "格鲁吉亚" + }, + { + "code": "DE", + "name": "Germany", + "dialCode": 49, + "phoneFormat": "01512 3456789", + "CNName": "德国" + }, + { + "code": "GH", + "name": "Ghana", + "dialCode": 233, + "phoneFormat": "023 123 4567", + "CNName": "加纳" + }, + { + "code": "GI", + "name": "Gibraltar", + "dialCode": 350, + "phoneFormat": "57123456", + "CNName": "直布罗陀" + }, + { + "code": "GR", + "name": "Greece", + "dialCode": 30, + "phoneFormat": "691 234 5678", + "CNName": "希腊" + }, + { + "code": "GL", + "name": "Greenland ", + "dialCode": 299, + "phoneFormat": "22 12 34", + "CNName": "格陵兰" + }, + { + "code": "GD", + "name": "Grenada", + "dialCode": 1473, + "phoneFormat": "(473) 403-1234", + "CNName": "格林纳达" + }, + { + "code": "GP", + "name": "Guadeloupe", + "dialCode": 590, + "phoneFormat": "0690 30-1234", + "CNName": "瓜德罗普" + }, + { + "code": "GU", + "name": "Guam", + "dialCode": 1671, + "phoneFormat": "(671) 300-1234", + "CNName": "关岛" + }, + { + "code": "GT", + "name": "Guatemala", + "dialCode": 502, + "phoneFormat": "5123 4567", + "CNName": "危地马拉" + }, + + { + "code": "GN", + "name": "Guinea", + "dialCode": 224, + "phoneFormat": "601 12 34 56", + "CNName": "几内亚" + }, + { + "code": "GW", + "name": "Guinea Bissau", + "dialCode": 245, + "phoneFormat": "955 012 345", + "CNName": "几内亚比绍" + }, + { + "code": "GY", + "name": "Guyana", + "dialCode": 592, + "phoneFormat": "609 1234", + "CNName": "圭亚那" + }, + { + "code": "HT", + "name": "Haiti", + "dialCode": 509, + "phoneFormat": "34 10 1234", + "CNName": "海地" + }, + { + "code": "HN", + "name": "Honduras", + "dialCode": 504, + "phoneFormat": "9123-4567", + "CNName": "洪都拉斯" + }, + + { + "code": "HU", + "name": "Hungary", + "dialCode": 36, + "phoneFormat": "(20) 123 4567", + "CNName": "匈牙利" + }, + { + "code": "IS", + "name": "Iceland", + "dialCode": 354, + "phoneFormat": "611 1234", + "CNName": "冰岛" + }, + { + "code": "IN", + "name": "India", + "dialCode": 91, + "phoneFormat": "099876 54321", + "CNName": "印度" + }, + { + "code": "ID", + "name": "Indonesia", + "dialCode": 62, + "phoneFormat": "0812-345-678", + "CNName": "印度尼西亚" + }, + { + "code": "IR", + "name": "Iran", + "dialCode": 98, + "phoneFormat": "0912 345 6789", + "CNName": "伊朗" + }, + { + "code": "IQ", + "name": "Iraq", + "dialCode": 964, + "phoneFormat": "0791 234 5678", + "CNName": "伊拉克" + }, + { + "code": "IE", + "name": "Ireland", + "dialCode": 353, + "phoneFormat": "085 012 3456", + "CNName": "爱尔兰" + }, + { + "code": "IL", + "name": "Israel", + "dialCode": 972, + "phoneFormat": "050-123-4567", + "CNName": "以色列" + }, + { + "code": "IT", + "name": "Italy", + "dialCode": 39, + "phoneFormat": "312 345 6789", + "CNName": "意大利" + }, + { + "code": "JM", + "name": "Jamaica", + "dialCode": 1876, + "phoneFormat": "(876) 210-1234", + "CNName": "牙买加" + }, + { + "code": "JP", + "name": "Japan ", + "dialCode": 81, + "phoneFormat": "090-1234-5678", + "CNName": "日本" + }, + { + "code": "JO", + "name": "Jordan", + "dialCode": 962, + "phoneFormat": "07 9012 3456", + "CNName": "约旦" + }, + { + "code": "KZ", + "name": "Kazakhstan ", + "dialCode": 7, + "phoneFormat": "8 (771) 000 9998", + "CNName": "哈萨克斯坦" + }, + { + "code": "KE", + "name": "Kenya", + "dialCode": 254, + "phoneFormat": "0712 123456", + "CNName": "肯尼亚" + }, + { + "code": "KI", + "name": "Kiribati", + "dialCode": 686, + "phoneFormat": "72012345", + "CNName": "基里巴斯" + }, + { + "code": "KW", + "name": "Kuwait", + "dialCode": 965, + "phoneFormat": "500 12345", + "CNName": "科威特" + }, + { + "code": "KG", + "name": "Kyrgyzstan ", + "dialCode": 996, + "phoneFormat": "0700 123 456", + "CNName": "吉尔吉斯斯坦" + }, + { + "code": "LA", + "name": "Laos ", + "dialCode": 856, + "phoneFormat": "020 23 123 456", + "CNName": "老挝" + }, + { + "code": "LV", + "name": "Latvia", + "dialCode": 371, + "phoneFormat": "21 234 567", + "CNName": "拉脱维亚" + }, + { + "code": "LB", + "name": "Lebanon", + "dialCode": 961, + "phoneFormat": "71 123 456", + "CNName": "黎巴嫩" + }, + { + "code": "LS", + "name": "Lesotho", + "dialCode": 266, + "phoneFormat": "5012 3456", + "CNName": "莱索托" + }, + { + "code": "LR", + "name": "Liberia", + "dialCode": 231, + "phoneFormat": "077 012 3456", + "CNName": "利比里亚" + }, + { + "code": "LY", + "name": "Libya", + "dialCode": 218, + "phoneFormat": "091-2345678", + "CNName": "利比亚" + }, + { + "code": "LI", + "name": "Liechtenstein", + "dialCode": 423, + "phoneFormat": "660 234 567", + "CNName": "列支敦士登" + }, + { + "code": "LT", + "name": "Lithuania", + "dialCode": 370, + "phoneFormat": "(8-612) 34567", + "CNName": "立陶宛" + }, + { + "code": "LU", + "name": "Luxembourg", + "dialCode": 352, + "phoneFormat": "628 123 456", + "CNName": "卢森堡" + }, + + { + "code": "MK", + "name": "Macedonia", + "dialCode": 389, + "phoneFormat": "072 345 678", + "CNName": "前南马其顿" + }, + { + "code": "MG", + "name": "Madagascar", + "dialCode": 261, + "phoneFormat": "032 12 345 67", + "CNName": "马达加斯加" + }, + { + "code": "MW", + "name": "Malawi", + "dialCode": 265, + "phoneFormat": "0991 23 45 67", + "CNName": "马拉维" + }, + { + "code": "MY", + "name": "Malaysia", + "dialCode": 60, + "phoneFormat": "012-345 6789", + "CNName": "马来西亚" + }, + { + "code": "MV", + "name": "Maldives", + "dialCode": 960, + "phoneFormat": "771-2345", + "CNName": "马尔代夫" + }, + { + "code": "ML", + "name": "Mali", + "dialCode": 223, + "phoneFormat": "65 01 23 45", + "CNName": "马里" + }, + { + "code": "MT", + "name": "Malta", + "dialCode": 356, + "phoneFormat": "9696 1234", + "CNName": "马耳他" + }, + + { + "code": "MQ", + "name": "Martinique", + "dialCode": 596, + "phoneFormat": "0696 20 12 34", + "CNName": "马提尼克" + }, + { + "code": "MR", + "name": "Mauritania", + "dialCode": 222, + "phoneFormat": "22 12 34 56", + "CNName": "毛里塔尼亚" + }, + { + "code": "MU", + "name": "Mauritius", + "dialCode": 230, + "phoneFormat": "5251 2345", + "CNName": "毛里求斯" + }, + { + "code": "YT", + "name": "Mayotte", + "dialCode": 262, + "phoneFormat": "0639 12 34 56", + "CNName": "马约特" + }, + { + "code": "MX", + "name": "Mexico", + "dialCode": 52, + "phoneFormat": "044 222 123 4567", + "CNName": "墨西哥" + }, + + { + "code": "MD", + "name": "Moldova", + "dialCode": 373, + "phoneFormat": "0621 12 345", + "CNName": "摩尔多瓦" + }, + { + "code": "MC", + "name": "Monaco", + "dialCode": 377, + "phoneFormat": "06 12 34 56 78", + "CNName": "摩纳哥" + }, + { + "code": "MN", + "name": "Mongolia ", + "dialCode": 976, + "phoneFormat": "8812 3456", + "CNName": "蒙古" + }, + { + "code": "ME", + "name": "Montenegro", + "dialCode": 382, + "phoneFormat": "067 622 901", + "CNName": "黑山" + }, + { + "code": "MS", + "name": "Montserrat", + "dialCode": 1664, + "phoneFormat": "(664) 492-3456", + "CNName": "蒙特塞拉特" + }, + { + "code": "MA", + "name": "Morocco", + "dialCode": 212, + "phoneFormat": "0650-123456", + "CNName": "摩洛哥" + }, + { + "code": "MZ", + "name": "Mozambique", + "dialCode": 258, + "phoneFormat": "82 123 4567", + "CNName": "莫桑比克" + }, + { + "code": "MM", + "name": "Myanmar", + "dialCode": 95, + "phoneFormat": "09 212 3456", + "CNName": "缅甸" + }, + { + "code": "NA", + "name": "Namibia", + "dialCode": 264, + "phoneFormat": "081 123 4567", + "CNName": "纳米尼亚" + }, + + { + "code": "NP", + "name": "Nepal", + "dialCode": 977, + "phoneFormat": "984-1234567", + "CNName": "尼泊尔" + }, + { + "code": "NL", + "name": "Netherlands", + "dialCode": 31, + "phoneFormat": "06 12345678", + "CNName": "荷兰" + }, + { + "code": "NC", + "name": "New Caledonia", + "dialCode": 687, + "phoneFormat": "75.12.34", + "CNName": "新喀里多尼亚" + }, + { + "code": "NZ", + "name": "New Zealand", + "dialCode": 64, + "phoneFormat": "021 123 4567", + "CNName": "新西兰" + }, + { + "code": "NI", + "name": "Nicaragua", + "dialCode": 505, + "phoneFormat": "8123 4567", + "CNName": "尼加拉瓜" + }, + { + "code": "NE", + "name": "Niger", + "dialCode": 227, + "phoneFormat": "93 12 34 56", + "CNName": "尼日尔" + }, + { + "code": "NG", + "name": "Nigeria", + "dialCode": 234, + "phoneFormat": "0802 123 4567", + "CNName": "尼日利亚" + }, + + { + "code": "NO", + "name": "Norway", + "dialCode": 47, + "phoneFormat": "406 12 345", + "CNName": "挪威" + }, + { + "code": "OM", + "name": "Oman", + "dialCode": 968, + "phoneFormat": "9212 3456", + "CNName": "阿曼" + }, + { + "code": "PK", + "name": "Pakistan", + "dialCode": 92, + "phoneFormat": "0301 2345678", + "CNName": "巴基斯坦" + }, + { + "code": "PW", + "name": "Palau", + "dialCode": 680, + "phoneFormat": "620 1234", + "CNName": "帕劳" + }, + { + "code": "PS", + "name": "Palestine", + "dialCode": 970, + "phoneFormat": "0599 123 456", + "CNName": "巴勒斯坦" + }, + { + "code": "PA", + "name": "Panama ", + "dialCode": 507, + "phoneFormat": "6001-2345", + "CNName": "巴拿马" + }, + { + "code": "PG", + "name": "Papua New Guinea", + "dialCode": 675, + "phoneFormat": "681 2345", + "CNName": "巴布亚新几内亚" + }, + { + "code": "PY", + "name": "Paraguay", + "dialCode": 595, + "phoneFormat": "0961 456789", + "CNName": "巴拉圭" + }, + { + "code": "PE", + "name": "Peru", + "dialCode": 51, + "phoneFormat": "912 345 678", + "CNName": "秘鲁" + }, + { + "code": "PH", + "name": "Philippines", + "dialCode": 63, + "phoneFormat": "0905 123 4567", + "CNName": "菲律宾" + }, + { + "code": "PL", + "name": "Poland", + "dialCode": 48, + "phoneFormat": "512 345 678", + "CNName": "波兰" + }, + { + "code": "PT", + "name": "Portugal", + "dialCode": 351, + "phoneFormat": "912 345 678", + "CNName": "葡萄牙" + }, + { + "code": "PR", + "name": "Puerto Rico", + "dialCode": 1, + "phoneFormat": "(787) 234-5678", + "CNName": "波多黎各" + }, + { + "code": "QA", + "name": "Qatar", + "dialCode": 974, + "phoneFormat": "3312 3456", + "CNName": "卡塔尔" + }, + { + "code": "RE", + "name": "Réunion ", + "dialCode": 262, + "phoneFormat": "0692 12 34 56", + "CNName": "留尼汪" + }, + { + "code": "RO", + "name": "Romania", + "dialCode": 40, + "phoneFormat": "0712 345 678", + "CNName": "罗马尼亚" + }, + { + "code": "RU", + "name": "Russia", + "dialCode": 7, + "phoneFormat": "8 (912) 345-67-89", + "CNName": "俄罗斯" + }, + { + "code": "RW", + "name": "Rwanda", + "dialCode": 250, + "phoneFormat": "0720 123 456", + "CNName": "卢旺达" + }, + + { + "code": "KN", + "name": "Saint Kitts and Nevis", + "dialCode": 1869, + "phoneFormat": "(869) 765-2917", + "CNName": "圣基茨和尼维斯" + }, + { + "code": "LC", + "name": "Saint Lucia", + "dialCode": 1758, + "phoneFormat": "(758) 284-5678", + "CNName": "圣卢西亚" + }, + + { + "code": "PM", + "name": "Saint Pierre and Miquelon ", + "dialCode": 508, + "phoneFormat": "055 12 34", + "CNName": "圣皮埃尔和密克隆" + }, + { + "code": "VC", + "name": "Saint Vincent and the Grenadines", + "dialCode": 1784, + "phoneFormat": "(784) 430-1234", + "CNName": "圣文森特和格林纳丁斯" + }, + { + "code": "WS", + "name": "Samoa", + "dialCode": 685, + "phoneFormat": "601234", + "CNName": "萨摩亚" + }, + { + "code": "SM", + "name": "San Marino", + "dialCode": 378, + "phoneFormat": "66 66 12 12", + "CNName": "圣马力诺" + }, + { + "code": "ST", + "name": "São Tomé and Príncipe ", + "dialCode": 239, + "phoneFormat": "981 2345", + "CNName": "圣多美和普林西比" + }, + { + "code": "SA", + "name": "Saudi Arabia ", + "dialCode": 966, + "phoneFormat": "051 234 5678", + "CNName": "沙特阿拉伯" + }, + { + "code": "SN", + "name": "Senegal ", + "dialCode": 221, + "phoneFormat": "70 123 45 67", + "CNName": "塞内加尔" + }, + { + "code": "RS", + "name": "Serbia", + "dialCode": 381, + "phoneFormat": "060 1234567", + "CNName": "塞尔维亚" + }, + { + "code": "SC", + "name": "Seychelles", + "dialCode": 248, + "phoneFormat": "2 510 123", + "CNName": "塞舌尔" + }, + { + "code": "SL", + "name": "Sierra Leone", + "dialCode": 232, + "phoneFormat": "(025) 123456", + "CNName": "塞拉利昂" + }, + { + "code": "SG", + "name": "Singapore", + "dialCode": 65, + "phoneFormat": "8123 4567", + "CNName": "新加坡" + }, + { + "code": "SX", + "name": "Sint Maarten", + "dialCode": 1721, + "phoneFormat": "(721) 520-5678", + "CNName": "荷属圣马丁" + }, + { + "code": "SK", + "name": "Slovakia", + "dialCode": 421, + "phoneFormat": "0912 123 456", + "CNName": "斯洛伐克" + }, + { + "code": "SI", + "name": "Slovenia ", + "dialCode": 386, + "phoneFormat": "031 234 567", + "CNName": "斯洛文尼亚" + }, + { + "code": "SB", + "name": "Solomon Islands", + "dialCode": 677, + "phoneFormat": "74 21234", + "CNName": "所罗门群岛" + }, + { + "code": "SO", + "name": "Somalia", + "dialCode": 252, + "phoneFormat": "7 1123456", + "CNName": "索马里" + }, + { + "code": "ZA", + "name": "South Africa", + "dialCode": 27, + "phoneFormat": "071 123 4567", + "CNName": "南非" + }, + { + "code": "KR", + "name": "South Korea", + "dialCode": 82, + "phoneFormat": "010-0000-0000", + "CNName": "韩国" + }, + + { + "code": "ES", + "name": "Spain ", + "dialCode": 34, + "phoneFormat": "612 34 56 78", + "CNName": "西班牙" + }, + { + "code": "LK", + "name": "Sri Lanka", + "dialCode": 94, + "phoneFormat": "071 234 5678", + "CNName": "斯里兰卡" + }, + { + "code": "SD", + "name": "Sudan ", + "dialCode": 249, + "phoneFormat": "091 123 1234", + "CNName": "苏丹" + }, + { + "code": "SR", + "name": "Suriname", + "dialCode": 597, + "phoneFormat": "741-2345", + "CNName": "苏里南" + }, + { + "code": "SZ", + "name": "Swaziland", + "dialCode": 268, + "phoneFormat": "7612 3456", + "CNName": "斯威士兰" + }, + { + "code": "SE", + "name": "Sweden", + "dialCode": 46, + "phoneFormat": "070-123 45 67", + "CNName": "瑞典" + }, + { + "code": "CH", + "name": "Switzerland", + "dialCode": 41, + "phoneFormat": "078 123 45 67", + "CNName": "瑞士" + }, + { + "code": "SY", + "name": "Syria", + "dialCode": 963, + "phoneFormat": "0944 567 890", + "CNName": "叙利亚" + }, + + { + "code": "TJ", + "name": "Tajikistan", + "dialCode": 992, + "phoneFormat": "(8) 917 12 3456", + "CNName": "塔吉克斯坦" + }, + { + "code": "TZ", + "name": "Tanzania", + "dialCode": 255, + "phoneFormat": "0621 234 567", + "CNName": "坦桑尼亚" + }, + { + "code": "TH", + "name": "Thailand", + "dialCode": 66, + "phoneFormat": "081 234 5678", + "CNName": "泰国" + }, + { + "code": "BS", + "name": "The Bahamas", + "dialCode": 1242, + "phoneFormat": "(242) 359-1234", + "CNName": "巴哈马" + }, + { + "code": "GM", + "name": "The Gambia", + "dialCode": 220, + "phoneFormat": "301 2345", + "CNName": "冈比亚" + }, + { + "code": "TL", + "name": "Leste", + "dialCode": 670, + "phoneFormat": "7721 2345", + "CNName": "东帝汶-Timor" + }, + { + "code": "TG", + "name": "Togo", + "dialCode": 228, + "phoneFormat": "90 11 23 45", + "CNName": "多哥" + }, + + { + "code": "TO", + "name": "Tonga", + "dialCode": 676, + "phoneFormat": "771 5123", + "CNName": "汤加" + }, + { + "code": "TT", + "name": "Trinidad and Tobago", + "dialCode": 1868, + "phoneFormat": "(868) 291-1234", + "CNName": "特立尼达和多巴哥" + }, + { + "code": "TN", + "name": "Tunisia", + "dialCode": 216, + "phoneFormat": "20 123 456", + "CNName": "突尼斯" + }, + { + "code": "TR", + "name": "Turkey", + "dialCode": 90, + "phoneFormat": "0501 234 56 78", + "CNName": "土耳其" + }, + { + "code": "TM", + "name": "Turkmenistan", + "dialCode": 993, + "phoneFormat": "8 66 123456", + "CNName": "土库曼斯坦" + }, + { + "code": "TC", + "name": "Turks and Caicos Islands", + "dialCode": 1649, + "phoneFormat": "(649) 231-1234", + "CNName": "特克斯和凯科斯群岛" + }, + + { + "code": "US", + "name": "United States", + "dialCode": 1, + "phoneFormat": "(201) 555-0123", + "CNName": "美国" + }, + { + "code": "GB", + "name": "United Kingdom", + "dialCode": 44, + "phoneFormat": "07400 123456", + "CNName": "英国" + }, + { + "code": "UG", + "name": "Uganda", + "dialCode": 256, + "phoneFormat": "0712 345678", + "CNName": "乌干达" + }, + { + "code": "UA", + "name": "Ukraine", + "dialCode": 380, + "phoneFormat": "039 123 4567", + "CNName": "乌克兰" + }, + { + "code": "AE", + "name": "United Arab Emirates", + "dialCode": 971, + "phoneFormat": "050 123 4567", + "CNName": "阿拉伯联合酋长国" + }, + { + "code": "UY", + "name": "Uruguay", + "dialCode": 598, + "phoneFormat": "094 231 234", + "CNName": "乌拉圭" + }, + { + "code": "UZ", + "name": "Uzbekistan", + "dialCode": 998, + "phoneFormat": "8 91 234 56 78", + "CNName": "乌兹别克斯坦" + }, + { + "code": "VU", + "name": "Vanuatu", + "dialCode": 678, + "phoneFormat": "591 2345", + "CNName": "瓦努阿图" + }, + + { + "code": "VE", + "name": "Venezuela", + "dialCode": 58, + "phoneFormat": "0412-1234567", + "CNName": "委内瑞拉" + }, + { + "code": "VN", + "name": "Vietnam", + "dialCode": 84, + "phoneFormat": "091 234 56 78", + "CNName": "越南" + }, + + + { + "code": "YE", + "name": "Yemen", + "dialCode": 967, + "phoneFormat": "0712 345 678", + "CNName": "也门" + }, + { + "code": "ZM", + "name": "Zambia", + "dialCode": 260, + "phoneFormat": "095 5123456", + "CNName": "赞比亚" + }, + { + "code": "ZW", + "name": "Zimbabwe", + "dialCode": 263, + "phoneFormat": "071 123 4567", + "CNName": "津巴布韦" + } +] diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts new file mode 100644 index 0000000..58dde63 --- /dev/null +++ b/src/router/modules/customer.ts @@ -0,0 +1,123 @@ +import type { Route } from '@/global' + +const Layout = () => import('@/layouts/index.vue') + +const routes: Route.recordRaw[] = [ + { + path: '/customer', + component: Layout, + redirect: '/customer/bench', + name: 'CustomerBench', + meta: { + title: '工作台', + icon: 'ep:key', + auth: '/customer/bench', + }, + children: [ + { + path: 'bench', + name: 'CustomerBenchPage', + component: () => import('@/views/measure/bench/bench.vue'), + meta: { + title: '工作台', + auth: '/customer/bench', + sidebar: false, + breadcrumb: true, + activeMenu: '/customer', + }, + }, + ], + }, + { + path: '/sample', + component: Layout, + redirect: '/sample/list', + name: 'File', + meta: { + title: '样品库', + icon: 'ep:key', + auth: '/sample', + }, + children: [ + { + path: 'list', + name: 'SampleList', + component: () => import('@/views/measure/file/quality.vue'), + meta: { + title: '样品列表', + icon: 'ep:key', + auth: '/sample/list', + }, + }, + { + path: 'overtime', + name: 'OvertimeSample', + component: () => import('@/views/measure/file/rules.vue'), + meta: { + title: '到期样品', + icon: 'ep:key', + auth: '/sample/overtime', + }, + }, + ], + }, + { + path: '/customerManage', + component: Layout, + redirect: '/customerManage/list', + name: 'MeasureSource', + meta: { + title: '客户管理', + icon: 'ep:key', + auth: '/customer/manage', + }, + children: [ + { + path: 'list', + name: 'CustomerList', + component: () => import('@/views/customer/customerInfo/customerList.vue'), + meta: { + title: '客户列表', + icon: 'ep:key', + auth: '/customer/list', + }, + }, + { + path: ':type/:id?', + name: 'CustomerDetail', + component: () => import('@/views/customer/customerInfo/customerEdit.vue'), + meta: { + title: '客户详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/customerManage/list', + }, + }, + { + path: 'advice', + name: 'CustomerAdvice', + component: () => import('@/views/customer/adviceList.vue'), + meta: { + title: '客户关系', + icon: 'ep:key', + auth: '/customer/advice', + }, + }, + { + path: 'advice/:type/:id?', + name: 'CustomerAdviceDetail', + component: () => import('@/views/customer/advice/adviceEdit.vue'), + meta: { + title: '客户关系详情', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/source/approve', + }, + }, + ], + }, +] + +export default routes diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index d464b09..3d73df2 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -102,7 +102,7 @@ break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' - to.meta.title = '校准/检定设备' + to.meta.title = '校准检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' @@ -112,6 +112,10 @@ to.meta.activeMenu = '/standingBook/measureTool' to.meta.title = '测量工装' break + case 'fixedAssets': + to.meta.activeMenu = '/standingBook/fixedAssets' + to.meta.title = '固定资产' + break } next() }, @@ -126,18 +130,18 @@ auth: '/device/fixedAssets', }, }, - { - path: ':type/:id?', - name: 'fixedAssetsDetailType', - component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), - meta: { - title: '固定资产', - icon: 'ep:key', - sidebar: false, - breadcrumb: true, - activeMenu: '/standingBook/fixedAssets', - }, - }, + // { + // path: 'fixAssets/:type/:id?', + // name: 'fixedAssetsDetailType', + // component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + // meta: { + // title: '固定资产', + // icon: 'ep:key', + // sidebar: false, + // breadcrumb: true, + // activeMenu: '/standingBook/fixedAssets', + // }, + // }, ], }, { @@ -438,6 +442,18 @@ }, }, { + path: 'manageCheckList/:type/:id?', + name: 'manageAdd', + component: () => import('@/views/device/deviceMaintenance/components/manageAdd.vue'), + meta: { + title: '设备管理点检查表', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/maintenance/manageCheckList', + }, + }, + { path: ':type/:id?', name: 'maintenanceAdd', component: () => import('@/views/device/deviceMaintenance/components/listApply/listPageAdd.vue'), diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 73a7470..855c6fa 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -4,10 +4,10 @@ const routes: Route.recordRaw[] = [ { - path: '/bench', + path: '/measure', component: Layout, - redirect: '/bench/list', - name: 'Bench', + redirect: '/measure/bench', + name: 'MeasureBench', meta: { title: '工作台', icon: 'ep:key', @@ -15,15 +15,15 @@ }, children: [ { - path: 'list', - name: 'BenchList', + path: 'bench', + name: 'MeasureBenchPage', component: () => import('@/views/measure/bench/bench.vue'), meta: { title: '工作台', auth: '/measure/bench', sidebar: false, breadcrumb: true, - activeMenu: '/bench', + activeMenu: '/measure', }, }, ], diff --git a/src/router/routes.ts b/src/router/routes.ts index 4153ab5..5210ea6 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -5,6 +5,7 @@ import systemRoute from './modules/system' import measureRoute from './modules/measure' import deviceRoute from './modules/device' +import customerRoute from './modules/customer' import type { Route } from '@/global' import useSettingsStore from '@/store/modules/settings' @@ -164,12 +165,10 @@ meta: { title: '客户资源', icon: '', - // auth: 'khzy', - auth: '/well', + auth: '/customer', }, children: [ - MultilevelMenuExample, - BreadcrumbExample, + ...customerRoute, ], }, { diff --git a/src/views/customer/advice/adviceEdit.vue b/src/views/customer/advice/adviceEdit.vue new file mode 100644 index 0000000..0dafa50 --- /dev/null +++ b/src/views/customer/advice/adviceEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue new file mode 100644 index 0000000..e715bad --- /dev/null +++ b/src/views/customer/advice/adviceList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/advice/advice_interface.ts b/src/views/customer/advice/advice_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/advice/advice_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/customer/customerInfo/customerEdit.vue b/src/views/customer/customerInfo/customerEdit.vue new file mode 100644 index 0000000..9abfc48 --- /dev/null +++ b/src/views/customer/customerInfo/customerEdit.vue @@ -0,0 +1,551 @@ + + + + + diff --git a/src/views/customer/customerInfo/customerList.vue b/src/views/customer/customerInfo/customerList.vue new file mode 100644 index 0000000..4b8285e --- /dev/null +++ b/src/views/customer/customerInfo/customerList.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/views/customer/customerInfo/customer_interface.ts b/src/views/customer/customerInfo/customer_interface.ts new file mode 100644 index 0000000..8f404c4 --- /dev/null +++ b/src/views/customer/customerInfo/customer_interface.ts @@ -0,0 +1,74 @@ +// 列表查询条件 +export interface ICustomerQuery { + bussinessSize: string // 业务规模 + customerName: string // 公司名称 + customerNo: string // 客户编号 + grade: string // 履约评级 + offset: number + limit: number +} + +// 客户人员 +export interface customerPerson { + id: number | string // id + job: string // 职务 + department: string// 部门 + name: string// 信命 + personNo: string// 人员编号 + phone: string// 联系方式 + editable?: boolean // 是否可编辑 + [key: string]: any +} + +// 客户信息-列表 +export interface ICustomer { + businessContent: string // 业务内容 + customerName: string // 公司名称 + customerNo: string // 客户编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + grade: string // 履约评级 + gradeName?: string // 履约评级 + companySize: string + companySizeName?: string + businessSize: string // 业务规模 + businessSizeName?: string // 业务规模 + evaluation: string // 整体评价 + evaluationName?: string // 整体评价 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + customerPersonList: customerPerson[] // 客户人员列表 +} + diff --git a/src/views/device/deviceMaintenance/checkList_interface.ts b/src/views/device/deviceMaintenance/checkList_interface.ts new file mode 100644 index 0000000..b6f5cf3 --- /dev/null +++ b/src/views/device/deviceMaintenance/checkList_interface.ts @@ -0,0 +1,36 @@ +export interface IlistQuery { + checkDate: string + checkName: string + checkNo: string + logType?: string + offset: number + limit: number +} +export interface ISupplier { + checkDate: null | string + checkName: string + checkNo: string + checkPerson: string + checkResult: string + checkResultName: string + createTime: null | string + createUser: string + fileList: [ + { + checkId: string + createTime: null | string + createUser: string + fileName: string + id: string + isDel: null | string + minioFileName: string + remark: string + updateTime: string + }, + ] + id: string + isDel: null | string + managerPoinLocation: string + remark: string + updateTime: null | string +} diff --git a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue index 6527f2e..5b4b6c7 100644 --- a/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue +++ b/src/views/device/deviceMaintenance/components/listApply/listPageAdd.vue @@ -331,7 +331,34 @@ > - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +/** + * 添加/编辑/详情溯源供方 + */ +import type { Ref } from 'vue' +import { ElMessage, ElMessageBox } from 'element-plus' +import type { FormInstance, UploadUserFile } from 'element-plus' +import type { ISupplier } from '../checkList_interface' +import showPhoto from '@/views/system/tool/showPhoto.vue' +import { UploadFile } from '@/api/measure/file' +import { getSoucreListDetail, getSoucreListlevelType, sourceSave, sourceSubmit } from '@/api/measure/source' +import { getAddCheckInfo, getselectCheckInfo } from '@/api/device/checkList' +import { validatePhone } from '@/utils/validate' +import { SCHEDULE } from '@/utils/scheduleDict' +import type { IAddress } from '@/components/AddressSelect/address-interface' +import { useUserStore } from '@/store/modules/user' +const loading = ref(false) // 表单加载状态 +const infoId = ref('') // id +const pageType = ref('add') // 页面类型: add,edit, detail +const buttonLoading = ref(false) // 按钮加载状态 +// const { id } = useUserStore() +const textMap: { [key: string]: string } = { + edit: '编辑', + add: '新建', + detail: '详情', +}// 字典 +// 从路由中获取页面类型参数 +const $route = useRoute() +if ($route.params && $route.params.type) { + pageType.value = $route.params.type as string + if ($route.params.id) { + infoId.value = $route.params.id as string + } +} +const formInline: Ref = ref({ + checkDate: null, + checkName: '', + checkNo: '', + checkPerson: '', + checkResult: '', + checkResultName: '', + createTime: null, + createUser: '', + fileList: [ + { + checkId: '', + createTime: null, + createUser: '', + fileName: '', + id: '', + isDel: null, + minioFileName: '', + remark: '', + updateTime: null, + }, + ], + id: '', + isDel: null, + managerPoinLocation: '', + remark: '', + updateTime: null, +}) +const checkResultList = ref([ + { id: '1', name: '优', value: '1' }, + { id: '2', name: '良', value: '2' }, + { id: '3', name: '中', value: '3' }, + { id: '4', name: '差', value: '4' }, +]) +const companyAddress = ref([]) // 公司地址 +const invoiceAddress = ref([]) // 开票地址 +const ruleFormRef = ref() +// 校验规则 +const rules = ref({ + checkName: [{ required: true, message: '检查表名称', trigger: 'blur' }], + checkPerson: [{ required: true, message: '检查人不能为空', trigger: 'blur' }], + managerPoinLocation: [{ required: true, message: '管理点位置不能为空', trigger: 'blur' }], + checkDate: [{ required: true, message: '检查日期不能为空', trigger: 'blur' }], + createUser: [{ required: true, message: '管理点负责人不能为空', trigger: 'blur' }], + checkResult: [{ required: true, message: '检查结果不能为空', trigger: 'blur' }], + remark: [{ required: true, message: '内容描述不能为空', trigger: 'blur' }], +}) // 表单验证规则 +// 初始化router +const $router = useRouter() +// 关闭新增页面的回调 +const close = () => { + $router.back() +} +const getInfo = () => { + getselectCheckInfo({ id: infoId.value }).then((res) => { + formInline.value = res.data + }) +} + +// 打印表单 +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '溯源供方详情', // 打印配置页上方的标题 + extraHead: '

溯源供方详情

', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { + if (!formEl) { return } + formEl.validate((valid, fields) => { + if (valid) { + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + if (pageType.value === 'add') { + getselectCheckInfo(formInline.value).then((res) => { + console.log(res) + }) + } + }) + } + }) +} + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} +const isShow = ref(false) +const testForm = ref({ + fileList: [], + fileContent: '', +}) +const fileRef = ref() // 文件上传input +const onFileChange = (event: any) => { + // 原生上传 + console.log(event.target.files) + if (event.target.files?.length !== 0) { + // 创建formdata对象 + const fd = new FormData() + fd.append('multipartFile', event.target.files[0]) + UploadFile(fd).then((res) => { + if (res.code === 200) { + formInline.value.fileList[0].minioFileName = res.data[0] + // 重置当前验证 + ElMessage.success('文件上传成功') + } + else { + ElMessage.error(res.message) + } + }) + } +} +const upload = () => { + fileRef.value.click() +} +// 非添加页面获取详情 +if (pageType.value !== 'add') { + getInfo() +} + + + + + diff --git a/src/views/device/deviceMaintenance/manageCheckList.vue b/src/views/device/deviceMaintenance/manageCheckList.vue index 37e4ae0..f12b2b5 100644 --- a/src/views/device/deviceMaintenance/manageCheckList.vue +++ b/src/views/device/deviceMaintenance/manageCheckList.vue @@ -1,12 +1,311 @@ - diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue index 002a43b..c25a836 100644 --- a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -593,6 +593,7 @@ @@ -604,6 +605,7 @@ v-model.trim="fromListInfo.standardEquipmentId" clearable placeholder="标准名称" + style="width: 100%;" size="default" :disabled="pageType === 'detail'" @change="standardChange" @@ -622,6 +624,7 @@ @@ -631,6 +634,7 @@
@@ -642,6 +646,7 @@ @@ -654,6 +659,7 @@ @@ -665,6 +671,7 @@ clearable placeholder="标准负责人" size="default" + style="width: 100%;" disabled > @@ -693,6 +701,7 @@ v-model="formInline.category" clearable placeholder="类别" + style="width: 100%;" size="default" disabled > @@ -711,6 +720,7 @@ v-model.trim="formInline.standardLevel" clearable placeholder="标准等级" + style="width: 100%;" size="default" disabled > @@ -729,6 +739,7 @@ v-model.trim="formInline.transmitRange" clearable placeholder="传递范围" + style="width: 100%;" size="default" disabled > @@ -746,6 +757,7 @@ @@ -758,6 +770,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" disabled @@ -770,6 +783,7 @@ v-model.trim="formInline.standardLaboratory" clearable placeholder="标准所在实验室" + style="width: 100%;" size="default" disabled @clear="clearDeptList" @@ -789,6 +803,7 @@ @@ -798,6 +813,7 @@ @@ -810,6 +826,7 @@ v-model.trim="formInline.managerState" clearable placeholder="管理状态" + style="width: 100%;" size="default" disabled > @@ -828,6 +845,7 @@ v-model.trim="formInline.measureMajor" clearable placeholder="计量专业" + style="width: 100%;" size="default" disabled > @@ -845,6 +863,7 @@ @@ -854,6 +873,7 @@ @@ -904,6 +925,7 @@ @@ -914,6 +936,7 @@ - + @@ -950,6 +974,7 @@ placeholder="请选择发证日期" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" + style="width: 100%;" disabled /> diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue index c762b33..a75d816 100644 --- a/src/views/device/standardEquipment/components/standardList/baseInfo.vue +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -251,6 +251,7 @@ v-model.trim="formInline.standardNo" placeholder="系统编号,自动生成" disabled + class="full-width-input" />
@@ -260,6 +261,7 @@ v-model.trim="formInline.standardName" placeholder="标准名称" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -269,6 +271,7 @@ v-model.trim="formInline.projectNo" placeholder="项目编号" :disabled="buttonType === 'detail'" + class="full-width-input" />
@@ -278,6 +281,7 @@ v-model.trim="formInline.constructionStandardProject" placeholder="建标项目" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -289,6 +293,7 @@ v-model.trim="formInline.organizeNo" placeholder="组织机构代码" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -301,6 +306,7 @@ v-model.trim="formInline.constructionStandardUnitName" placeholder="建标单位名称" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -312,6 +318,7 @@ placeholder="标准负责人" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -341,6 +349,7 @@ placeholder="类别" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -404,6 +416,7 @@ v-model="formInline.preparationDate" type="datetime" placeholder="请选择筹建日期" + style="width: 100%;" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD h:m:s" :disabled="buttonType === 'detail'" @@ -418,6 +431,7 @@ placeholder="标准科室" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" @clear="clearDeptList" > @@ -445,6 +460,7 @@ v-model.trim="formInline.laboratoryOwnerContact" placeholder="联系方式" :disabled="buttonType === 'detail'" + class="full-width-input" /> @@ -458,6 +474,7 @@ placeholder="管理状态" size="default" :disabled="buttonType === 'detail'" + style="width: 100%;" > @@ -500,6 +519,7 @@ - + @@ -594,6 +616,7 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue index 20eb800..91c2c15 100644 --- a/src/views/device/standardEquipment/components/standardList/temptable.vue +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -1,7 +1,7 @@ diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index 1263b6c..bcdcf3b 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -4,7 +4,7 @@ import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' import baseInfo from './standardList/baseInfo.vue' -import table from './standardList/temptable.vue' +import TemplateTable from './standardList/templateTable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -34,16 +34,20 @@ comp: any } const menu = shallowRef([ - { name: '基本信息', comp: baseInfo }, - { name: '计量人员', comp: table }, - { name: '标准配套设备', comp: table }, - { name: '检定规程', comp: table }, - { name: '重复性考核记录', comp: table }, - { name: '稳定性考核记录', comp: table }, - { name: '证书管理', comp: table }, + { name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }, + { name: '重复性考核记录', comp: TemplateTable }, + { name: '稳定性考核记录', comp: TemplateTable }, + { name: '证书管理', comp: TemplateTable }, ]) +if (pageType.value === 'edit') { + menu.value = [{ name: '计量人员', comp: TemplateTable }, + { name: '标准配套设备', comp: TemplateTable }, + { name: '检定规程', comp: TemplateTable }] +} const currentCompRef = ref() -const current = ref('基本信息') +const current = ref('计量人员') const currentComp = shallowRef(baseInfo) watch(current, (newValue) => { currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp @@ -57,6 +61,130 @@ const setData = (newValue: object) => { formInline.value = newValue } +const queryParams = { + id: '', + limit: 20, + offset: 1, +} +// 关闭 +interface TableColumn { + text: string + value: string + align: string +} + +interface checkedRecord { + text: string +} +// 计量人员 +const measurementPersonnelColumns = ref([ + { text: '姓名', value: 'name', align: 'center' }, + { text: '计量人员编号', value: 'staffNo', align: 'center' }, + { text: '工作部门', value: 'deptId', align: 'center' }, + { text: '计量专业', value: 'major', align: 'center' }, + { text: '证书编号', value: 'verifierCertificateNo', align: 'center' }, + { text: '证书有效期', value: 'certificateDate', align: 'center' }, +]) +const measurementPersonnel = ref([]) +const measurementPersonnelLoading = ref(false) +function fetchmeasurementPersonnel(query = { ...queryParams }) { + measurementPersonnelLoading.value = true + measurementPersonnel.value = [{ + text: 'xx', + }] + measurementPersonnelLoading.value = false +} + +// 标准配套设备 +const corollaryEquipmentColumns = ref([ + { text: '设备名称', value: 'text', align: 'center' }, + { text: '设备编号', value: 'text', align: 'center' }, + { text: '型号', value: 'text', align: 'center' }, + { text: '测量范围', value: 'text', align: 'center' }, + { text: '使用部门', value: 'text', align: 'center' }, + { text: '检定时间', value: 'text', align: 'center' }, + { text: '检定结果', value: 'text', align: 'center' }, + { text: '有效日期', value: 'text', align: 'center' }, +]) +const corollaryEquipment = ref([]) +const corollaryEquipmentLoading = ref(false) +function fetchcorollaryEquipment(query = { ...queryParams }) { + corollaryEquipmentLoading.value = true + corollaryEquipment.value = [{ + text: 'xx', + }] + corollaryEquipmentLoading.value = false +} + +// 检定规程 +const regulationVerificationColumns = ref([ + { text: '文件名称', value: 'text', align: 'center' }, + { text: '文件编号', value: 'text', align: 'center' }, + { text: '文件号', value: 'text', align: 'center' }, + { text: '实施时间', value: 'text', align: 'center' }, + { text: '实施状态', value: 'text', align: 'center' }, +]) +const regulationVerification = ref([]) +const regulationVerificationLoading = ref(false) +function fetchregulationVerification(query = { ...queryParams }) { + regulationVerificationLoading.value = true + regulationVerification.value = [{ + text: 'xx', + }] + regulationVerificationLoading.value = false +} + +// 重复性考核记录 +const repetitiveRppraisalRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const repetitiveRppraisalRecord = ref([]) +const repetitiveRppraisalRecordLoading = ref(false) +function fetchrepetitiveRppraisalRecord(query = { ...queryParams }) { + repetitiveRppraisalRecordLoading.value = true + repetitiveRppraisalRecord.value = [{ + text: 'xx', + }] + repetitiveRppraisalRecordLoading.value = false +} + +// 稳定性考核记录 +const stabilityAssessmentRecordColumns = ref([ + { text: '记录编号', value: 'text', align: 'center' }, + { text: '记录名称', value: 'text', align: 'center' }, + { text: '考核时间', value: 'text', align: 'center' }, + { text: '考核结果', value: 'text', align: 'center' }, +]) +const stabilityAssessmentRecord = ref([]) +const stabilityAssessmentRecordLoading = ref(false) +function fetchstabilityAssessmentRecord(query = { ...queryParams }) { + stabilityAssessmentRecordLoading.value = true + stabilityAssessmentRecord.value = [{ + text: 'xx', + }] + stabilityAssessmentRecordLoading.value = false +} + +// 证书管理 +const certificateManagementColumns = ref([ + { text: '证书编号', value: 'text', align: 'center' }, + { text: '证书名称', value: 'text', align: 'center' }, + { text: '证书类型', value: 'text', align: 'center' }, + { text: '证书出具日期', value: 'text', align: 'center' }, + { text: '证书有效期', value: 'text', align: 'center' }, +]) +const certificateManagement = ref([]) +const certificateManagementLoading = ref(false) +function fetchcertificateManagement(query = { ...queryParams }) { + certificateManagementLoading.value = true + certificateManagement.value = [{ + text: 'xx', + }] + certificateManagementLoading.value = false +} // 编辑获取详情的提交按钮 const submitFormDetail = () => { if (pageType.value === 'edit') { @@ -69,16 +197,17 @@ } else { // 打印 - const printObj = ref({ - id: 'print', // 需要打印元素的id - popTitle: '测量标准装置', // 打印配置页上方的标题 - extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 - preview: false, // 是否启动预览模式,默认是false - standard: '', - extarCss: '', - }) + } } +const printObj = ref({ + id: 'form', // 需要打印元素的id + popTitle: '测量标准装置', // 打印配置页上方的标题 + extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 + preview: false, // 是否启动预览模式,默认是false + standard: '', + extarCss: '', +}) // 提交 const submitForm = () => { if (pageType.value === 'detail') { return submitFormDetail() } @@ -103,39 +232,62 @@ }) }) } +onMounted(() => { + if (pageType.value === 'detail') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + fetchrepetitiveRppraisalRecord() // 重复性考核记录 + fetchstabilityAssessmentRecord() // 稳定性考核记录 + fetchcertificateManagement() // 证书管理 + } + else if (pageType.value === 'edit') { + // fetchmeasurementPersonnel() // 计量人员 + fetchcorollaryEquipment() // 标准配套设备 + fetchregulationVerification() // 检定规程 + } +}) diff --git a/src/views/device/standingBook/adjustDevice.vue b/src/views/device/standingBook/adjustDevice.vue index a1a38bc..67ef11e 100644 --- a/src/views/device/standingBook/adjustDevice.vue +++ b/src/views/device/standingBook/adjustDevice.vue @@ -5,7 +5,7 @@ diff --git a/src/views/device/standingBook/components/fixedAssetsAdd.vue b/src/views/device/standingBook/components/fixedAssetsAdd.vue deleted file mode 100644 index f272ff7..0000000 --- a/src/views/device/standingBook/components/fixedAssetsAdd.vue +++ /dev/null @@ -1,755 +0,0 @@ - - - - - - diff --git a/src/views/device/standingBook/components/templateAdd.vue b/src/views/device/standingBook/components/templateAdd.vue index 049d8d4..e070af0 100644 --- a/src/views/device/standingBook/components/templateAdd.vue +++ b/src/views/device/standingBook/components/templateAdd.vue @@ -1,87 +1,148 @@ diff --git a/src/views/device/standingBook/components/templatePage.vue b/src/views/device/standingBook/components/templatePage.vue index f69b781..c7105dc 100644 --- a/src/views/device/standingBook/components/templatePage.vue +++ b/src/views/device/standingBook/components/templatePage.vue @@ -1,126 +1,92 @@ - diff --git a/src/views/device/standingBook/fixedAssets.vue b/src/views/device/standingBook/fixedAssets.vue index cddb285..27892a3 100644 --- a/src/views/device/standingBook/fixedAssets.vue +++ b/src/views/device/standingBook/fixedAssets.vue @@ -22,56 +22,16 @@ const loadingTable = ref(false) // 表格loading const total = ref(0) // 数据总条数 const columns = ref([ - { - text: '固定资产编号', - value: 'assetNo', - align: 'center', - }, - { - text: '设备名称', - value: 'equipmentName', - align: 'center', - }, - { - text: '型号', - value: 'modelNo', - align: 'center', - }, - { - text: '设备规格', - value: 'equipmentSpecifications', - align: 'center', - }, - { - text: '设备类别', - value: 'equipmentCategoryName', - align: 'center', - }, - { - text: '设备类型', - value: 'equipmentTypeName', - align: 'center', - }, - { - text: '用途', - value: 'purpose', - align: 'center', - }, - { - text: '管理级别', - value: 'managerLevelName', - align: 'center', - }, - { - text: '使用单位', - value: 'useDeptName', - align: 'center', - }, - { - text: '创建时间', - value: 'createTime', - align: 'center', - }, + { text: '固定资产编号', value: 'assetNo', align: 'center', width: 160 }, + { text: '设备名称', value: 'equipmentName', align: 'center' }, + { text: '型号', value: 'modelNo', align: 'center' }, + { text: '设备规格', value: 'equipmentSpecifications', align: 'center' }, + { text: '设备类别', value: 'equipmentCategoryName', align: 'center' }, + { text: '设备类型', value: 'equipmentTypeName', align: 'center' }, + { text: '用途', value: 'purpose', align: 'center' }, + { text: '管理级别', value: 'managerLevelName', align: 'center', width: 90 }, + { text: '使用部门', value: 'useDeptName', align: 'center' }, + { text: '创建时间', value: 'createTime', align: 'center', width: 165 }, ]) // 表格 const printObj = ref({ id: 'print', // 需要打印元素的id @@ -128,13 +88,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'detail', }, query: { title: '详情', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -146,13 +107,14 @@ // ...row, // }) $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'edit', }, query: { title: '编辑', - ...row, + name: '固定资产', + id: row.id, }, }) } @@ -203,18 +165,15 @@ // 新增 const add = () => { $router.push({ - name: 'fixedAssetsDetailType', + name: 'standingBookDetail', params: { type: 'add', }, query: { title: '新建', + name: '固定资产', }, }) - // dialogVisible.value = true - // addRef.value.initDialog({ - // title: '新建', - // }) } // 表格被选中的行 const selectList = ref([]) @@ -344,7 +303,7 @@ 编辑 - 查看 + 详情 删除 diff --git a/src/views/device/standingBook/measureTool.vue b/src/views/device/standingBook/measureTool.vue index 7b9246a..a940bdf 100644 --- a/src/views/device/standingBook/measureTool.vue +++ b/src/views/device/standingBook/measureTool.vue @@ -5,7 +5,7 @@ diff --git a/src/views/measure/source/list_interface.ts b/src/views/measure/source/list_interface.ts index fe32aca..1ac2abe 100644 --- a/src/views/measure/source/list_interface.ts +++ b/src/views/measure/source/list_interface.ts @@ -62,6 +62,10 @@ companyCity: string // 公司地址-市 companyCountry: string // 公司地址-国家 companyProvince: string // 公司地址-省 + companyAreaName: string // 公司地址-区 + companyCityName: string // 公司地址-市 + companyCountryName: string // 公司地址-国家 + companyProvinceName: string // 公司地址-省 createTime?: string // 创建时间 director: string // 负责人 id: string // 主键id(列表、更新接口参数) @@ -71,6 +75,10 @@ invoiceCity: string // 开票地址-市 invoiceCountry: string // 开票地址-国家 invoiceProvince: string // 开票地址-省 + invoiceAreaName: string // 开票地址-区 + invoiceCityName: string // 开票地址-市 + invoiceCountryName: string // 开票地址-国家 + invoiceProvinceName: string // 开票地址-省 mailbox: string // 邮箱 minioFileName: string // 上传文件返回名称 mobile: string // 手机 diff --git a/src/views/measure/train/plan.vue b/src/views/measure/train/plan.vue index 5f4180b..107637b 100644 --- a/src/views/measure/train/plan.vue +++ b/src/views/measure/train/plan.vue @@ -2,20 +2,25 @@ import type { Ref } from 'vue' import { getCurrentInstance, reactive, ref } from 'vue' import { ElLoading, ElMessage, ElMessageBox } from 'element-plus' -import type { IOptions, IlistQuery, IlistType } from './plan_interface' +import type { IOptions, ISupplier, IlistQuery, IlistType } from './plan_interface' import { exportExcel } from '@/utils/exportXlsx' -import { getDeptTree, getListDelete, getPlanList } from '@/api/system/plan' +import { exportPlanList, getDeptTree, getListDelete, getPlanList } from '@/api/system/plan' +import { printJSON } from '@/utils/printUtils' +import { exportFile } from '@/utils/exportUtils' const listQuery: Ref = ref({ - trainTime: '', - createTime: '', + createEndTime: '', + createStartTime: '', deptId: '', - effectiveCompany: '', director: '', + effectiveCompany: '', + ids: [], + trainEndTime: '', + trainStartTime: '', offset: 1, limit: 20, }) -const checkoutList = ref([]) -const list = ref([]) +const checkoutList = ref([]) +const list = ref([]) // 删除id const deleteId = ref('') const total = ref(0) @@ -26,14 +31,22 @@ const options = ref([]) const loadingTable = ref(false) // 初始化路由 +// 培训时间数组 +const trainTimeArr = ref([ + listQuery.value.trainStartTime, + listQuery.value.trainEndTime, +]) +// 创建时间数组 +const createTimeArr = ref([ + listQuery.value.createStartTime, + listQuery.value.createEndTime, +]) const $router = useRouter() const fetchData = (isNowPage: boolean) => { - if (listQuery.value.trainTime === null) { - listQuery.value.trainTime = '' - } - if (listQuery.value.createTime === null) { - listQuery.value.createTime = '' - } + listQuery.value.trainStartTime = trainTimeArr.value[0] || '' + listQuery.value.trainEndTime = trainTimeArr.value[1] || '' + listQuery.value.createStartTime = createTimeArr.value[0] || '' + listQuery.value.createEndTime = createTimeArr.value[0] || '' loadingTable.value = true if (!isNowPage) { // 是否显示当前页,否则跳转第一页 @@ -111,43 +124,49 @@ const searchList = () => { fetchData(true) } + // 重置 const clearList = () => { listQuery.value = { - trainTime: '', - createTime: '', + createEndTime: '', + createStartTime: '', deptId: '', - effectiveCompany: '', director: '', + effectiveCompany: '', + ids: [], + trainEndTime: '', + trainStartTime: '', offset: 1, limit: 20, } + trainTimeArr.value = [] + createTimeArr.value = [] } // 导出 const exportExcelBtn = () => { const loading = ElLoading.service({ lock: true, - text: 'Loading', + text: '下载中请稍后', background: 'rgba(255, 255, 255, 0.8)', }) - if (checkoutList.value.length <= 0 && list.value.length > 0) { - exportExcel({ - json: list.value.map((item: IlistType, index: number) => ({ index: index + 1, planNo: item.planNo, planName: item.planName, trainPerson: item.trainPerson, trainNumber: item.trainNumber, trainHour: item.trainHour, trainTime: item.trainTime, deptName: item.deptName, effectiveCompany: item.effectiveCompany, director: item.director, trainContent: item.trainContent, createTime: item.createTime, remark: item.remark })), - name: '培训记录', - titleArr: ['序号', '培训计划编号', '培训名称', '培训对象', '培训人数', '培训学时', '培训时间', '主管部门', '实施单位', '负责人', '培训内容', '创建时间', '备注'], - sheetName: 'sheet1', - }) - } - else if (checkoutList.value.length > 0) { - exportExcel({ - json: checkoutList.value.map((item: IlistType, index: number) => ({ index: index + 1, planNo: item.planNo, planName: item.planName, trainPerson: item.trainPerson, trainNumber: item.trainNumber, trainHour: item.trainHour, trainTime: item.trainTime, deptName: item.deptName, effectiveCompany: item.effectiveCompany, director: item.director, trainContent: item.trainContent, createTime: item.createTime, remark: item.remark })), - name: '培训记录', - titleArr: ['序号', '培训计划编号', '培训名称', '培训对象', '培训人数', '培训学时', '培训时间', '主管部门', '实施单位', '负责人', '培训内容', '创建时间', '备注'], - sheetName: 'sheet1', + if (list.value.length > 0) { + const params = { + createEndTime: '', + createStartTime: '', + deptId: 0, + director: '', + effectiveCompany: '', + trainEndTime: '', + trainStartTime: '', + ids: checkoutList.value, + } + exportPlanList(params).then((res) => { + const blob = new Blob([res.data]) + exportFile(blob, '培训计划列表.xlsx') }) } else { - ElMessage.warning('暂无数据') + ElMessage.warning('无数据可导出数据') } loading.close() } @@ -188,9 +207,10 @@ }) }) } + const handelClick = (text: string) => {} const handleSelectionChange = (e: any) => { - checkoutList.value = e + checkoutList.value = e.map((item: { id: string }) => item.id) } const add = () => { $router.push('/train/add') @@ -220,15 +240,26 @@ } fetchData(true) } -// 打印 -const printObj = ref({ - id: 'print', // 需要打印元素的id - popTitle: '证书报告模板', // 打印配置页上方的标题 - extraHead: '', // 最上方的头部文字,附加在head标签上的额外标签,使用逗号分割 - preview: false, // 是否启动预览模式,默认是false - standard: '', - extarCss: '', -}) +// 打印列表 +function printList() { + // 打印列 + const properties = columns.value.map((item) => { + return { + field: item.value, + displayName: item.text, + } + }) + if (checkoutList.value.length <= 0 && list.value.length > 0) { + printJSON(list.value, properties, '培训计划列表') + } + else if (checkoutList.value.length > 0) { + const printList = list.value.filter((item: ISupplier) => checkoutList.value.includes(item.id)) + printJSON(printList, properties, '培训计划列表') + } + else { + ElMessage.warning('无可打印内容') + } +} const qrDialog = ref() // 点击二维码 const qrDialogShow = (row: rowReturn) => { @@ -242,20 +273,24 @@ @@ -290,13 +325,37 @@