字典添加
This commit is contained in:
parent
b675fda549
commit
43910f3e83
@ -4,13 +4,13 @@ NODE_ENV=production
|
||||
VITE_DEV=false
|
||||
|
||||
# 请求路径
|
||||
VITE_BASE_URL='http://222.75.128.58:32325'
|
||||
VITE_BASE_URL='http://218.95.153.170:9021'
|
||||
|
||||
# 上传路径
|
||||
VITE_UPLOAD_URL='http://222.75.128.58:32325/chemmes-api/infra/file/upload'
|
||||
VITE_UPLOAD_URL='http://218.95.153.170:9021/chemmes-api/infra/file/upload'
|
||||
|
||||
# 上传路径
|
||||
VITE_UPLOAD_BATCH_URL='http://222.75.128.58:32325/chemmes-api/infra/file/uploadBatch'
|
||||
VITE_UPLOAD_BATCH_URL='http://218.95.153.170:9021/chemmes-api/infra/file/uploadBatch'
|
||||
|
||||
# 接口前缀
|
||||
VITE_API_BASEPATH=
|
||||
|
||||
@ -131,6 +131,7 @@ export enum DICT_TYPE {
|
||||
SYSTEM_NOTIFY_TEMPLATE_TYPE = 'system_notify_template_type',
|
||||
SYSTEM_SOCIAL_TYPE = 'system_social_type',
|
||||
SYSTEM_STATUS = 'system_status',
|
||||
SYSTEM_IS_CELL = 'system_is_cell',
|
||||
|
||||
// ========== INFRA 模块 ==========
|
||||
INFRA_BOOLEAN_STRING = 'infra_boolean_string',
|
||||
@ -213,7 +214,41 @@ export enum DICT_TYPE {
|
||||
CRM_PRODUCT_STATUS = 'crm_product_status',
|
||||
CRM_PERMISSION_LEVEL = 'crm_permission_level', // CRM 数据权限的级别
|
||||
|
||||
// ========== BIZ 业务模块 ==========
|
||||
// ========== 业务模块 ==========
|
||||
INDUSTRY_CLASS='industry_class', // 客户所属行业
|
||||
COOP_STATUS='coop_status', // 客户合作状态
|
||||
ENTERPRISE_TYPE='enterprise_type', // 企业性质
|
||||
CUSTOMER_LEVER='customer_level', // 客户等级
|
||||
CREDIT_RATE='credit_rate', // 客户信用等级
|
||||
PAY_METH='pay_meth', // 客户付款方式
|
||||
SUPPLIER_TYPE='supplier_type', // 供应商类型
|
||||
SUPPLIER_GRADE='supplier_grade', // 供应商等级
|
||||
SUPPLIER_STATUS='supplier_status', // 供应商状态
|
||||
PARAM_TYPE='param_type', // 参数类别
|
||||
MAT_TYPE='mat_type', // 物料类型
|
||||
MAT_UNIT='mat_unit', // 物料单位
|
||||
SHIFT_WORK_TYPE='shift_work_type', // 倒班类型
|
||||
TEAM_OR_GROUP='team_or_group', // 班组
|
||||
DEVICE_TYPE='device_type', // 设备类型
|
||||
DEVICE_STATUS='device_status', // 设备状态
|
||||
WAREHOUSE_TYPE='warehouse_type', // 仓库类型
|
||||
EQUIPMENT_MAINTENANCE='equipment_maintenance_type', // 设备维护类型
|
||||
CYCLE_UNIT='cycle_unit', // 周期单位
|
||||
NATURE='nature', // 性质
|
||||
TEST_VALUE_TYPE='test_value_type', // 检验值类型
|
||||
RAW_MATERIALS_TYPE='raw_materials_type', // 原材料大类
|
||||
FINISHED_PRODUCT_TYPE='finished_product_type', // 成品大类
|
||||
TEMPLATE_CODE='template_code', // 模板编码
|
||||
ORDER_TYPE='order_type', // 销售订单类型
|
||||
ORDER_STATUS='order_status', // 销售订单状态
|
||||
PURPOSE='purpose', // 用途
|
||||
SHIPPING_STATUS='shipping_status', // 发货状态
|
||||
PRODUCTION_ORDER_STATUS ='production_order_status', // 生成订单状态
|
||||
UNIT='unit', // 单位
|
||||
PRODUCTION_STATE='production_state', // 生产状态
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -35,7 +35,7 @@
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
|
||||
import { defaultProps, handleTree } from '@/utils/tree'
|
||||
|
||||
import * as DeptApi from '@/api/system/dept'
|
||||
import * as UserApi from '@/api/system/user'
|
||||
import { CommonStatusEnum } from '@/utils/constants'
|
||||
@ -167,14 +167,7 @@ const resetForm = () => {
|
||||
formRef.value?.resetFields()
|
||||
}
|
||||
|
||||
// /** 获得部门树 */
|
||||
// const getTree = async () => {
|
||||
// deptTree.value = []
|
||||
// const data = await DeptApi.getSimpleDeptList()
|
||||
// let dept: Tree = { id: 0, name: '石嘴山大武口区人民政府', children: [] }
|
||||
// dept.children = handleTree(data)
|
||||
// deptTree.value.push(dept)
|
||||
// }
|
||||
|
||||
|
||||
const handleSelectedUser = (newValue: any) => {
|
||||
if (newValue) {
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, onMounted, toRefs } from 'vue'
|
||||
import { ref, onMounted } from 'vue'
|
||||
import * as DeptApi from '@/api/system/dept'
|
||||
|
||||
import { defaultProps, handleTree } from '@/utils/tree'
|
||||
@ -31,9 +31,10 @@ const parentId =ref()
|
||||
const getTree = async () => {
|
||||
deptTree.value = []
|
||||
const data = await DeptApi.getSimpleDeptList()
|
||||
let dept: Tree = { id: 0, name: '江苏美乐嘉新材料有限公司', children: [] }
|
||||
dept.children = handleTree(data)
|
||||
deptTree.value.push(dept)
|
||||
// 添加顶级部门选项
|
||||
let rootDept: Tree = { id: 0, name: '顶级部门', children: [] }
|
||||
rootDept.children = handleTree(data)
|
||||
deptTree.value.push(rootDept)
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user