| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247 |
- /**
- * index:序号
- * txt:正常数据
- * img:图片
- * txtChange:判断显示不同字段
- * text:文字比较多的情况、获取使用其他标签(没有的需要自己配置)
- */
- // export const A1tableCFu = (type: "video" | "poster") => {
- // return [
- // ["index", "序号"],
- // ["txt", "标题", "name"]
- // ["img", type === "video" ? "视频封面" : "海报", "thumb"],
- // ["txtChange", "自动播放", "display", { 0: "否", 1: "是" }],
- // ["text", "创建日期",'description', 50,A],
- // ];
- import { selectObj } from './dataChange'
- // 列表页面(大部分相同和复用的)
- export const baseTableC = (val: string) => {
- return [
- ['dateRes', `${val}日期`, 'date'],
- ['txt', '申请编号', 'num'],
- ['txt', '发起部门', 'deptName'],
- ['txt', '发起人', 'creatorName'],
- ['txt', '发起日期', 'createTime'],
- ['select', '申请状态', 'status', selectObj['订单审批状态']]
- ]
- }
- // 藏品征集-订单页面的线索清单
- export const SonClueListTableC = [
- ['txt', '线索名称', 'name'],
- ['txt', '线索编号', 'num'],
- ['text', '线索简介', 'intro', 50],
- ['txt', '联系方式', 'phone'],
- ['txtC', '初步藏品类别', 'typeDictId'],
- ['txtC', '初步藏品年代', 'ageDictId'],
- ['select', '完残程度', 'tornLevel', selectObj['完残程度']],
- ['text', '备注', 'remark', 50]
- ]
- // 藏品登记-订单页面的藏品清单 、-----选择藏品-藏品
- export const goodsSonTableC = (loc?: boolean) => {
- const arr: any = [
- ['txt', '藏品登记号', 'num'],
- ['img', '封面', 'thumb'],
- ['txtCTag', '藏品标签', 'tagDictId'],
- ['txt', '藏品名称', 'name'],
- ['select', '级别', 'level', selectObj['藏品级别']],
- ['txtC', '类别', 'typeDictId'],
- ['txtC', '年代', 'ageDictId'],
- ['txtC', '质地', 'textureDictId'],
- ['select', '完残程度', 'tornLevel', selectObj['完残程度']],
- ['ping', '数量', 'pcs', 'pcsUnitDictId']
- ]
- if (loc) arr.push(['txt', '库房位置', 'siteLoc'])
- return arr
- }
- // -----选择藏品-线索
- export const goodsSelectCuleC = [
- ['txt', '线索编号', 'num'],
- ['img', '封面', 'thumb'],
- ['txt', '线索名称', 'name'],
- ['txtC', '初定类别', 'typeDictId'],
- ['txtC', '初定年代', 'ageDictId'],
- ['select', '完残程度', 'tornLevel', selectObj['完残程度']]
- ]
- export const I3tableC = [
- ['txt', '编号类型', 'name'],
- ['txt', '前缀', 'prefix'],
- ['txt', '日期方式', 'dateType'],
- ['txt', '起始流水编号', 'length']
- ]
- export const I4tableC = [
- // ['txt', '流程类型', 'typeKey'],
- ['txt', '流程名称', 'name'],
- ['text', '流程说明', 'remark', 50],
- ['txtChange', '状态', 'enabled', { 0: '禁用', 1: '启用' }]
- ]
- export const I4tableC2 = [
- ['index', '序号'],
- ['txt', '节点名称', 'name'],
- ['txt', '排序值', 'sort'],
- ['txtChange', '办理人', 'type', { user: '指定用户', role: '按角色' }]
- ]
- export const I6tableC = [
- ['txt', '角色名称', 'roleName'],
- ['text', '角色说明', 'roleDesc', 50],
- ['txt', '排序值', 'sort']
- ]
- export const I7tableC = [
- ['txt', '登录账号', 'userName'],
- ['txt', '所属部门', 'deptNameRes'],
- ['txt', '角色', 'roleName'],
- ['txt', '真实姓名', 'realName'],
- ['txt', '创建日期', 'createTime']
- ]
- export const I8tableC = [
- ['index', '序号'],
- ['txt', '账号', 'userName'],
- ['txt', '操作日期', 'createTime'],
- ['txt', 'IP记录', 'ip'],
- ['txt', '操作模块', 'type'],
- ['txt', '操作事件', 'description']
- ]
- // 故事管理
- export const storyTableC = [
- ['txt', '故事标题', 'name'],
- ['txt', '关联藏品', 'goodName'],
- ['txt', '藏品标签', 'tagName'],
- ['txt', '录入人', 'creatorName'],
- ['txt', '录入日期', 'createTime']
- ]
- // 故事管理里面的添加藏品
- export const storyAndGoodsTableC = [
- ['txt', '藏品登记号', 'num'],
- ['img', '封面', 'thumb'],
- ['txt', '藏品标签', 'tagName'],
- ['txt', '藏品名称', 'name']
- ]
- // 库房设置
- export const storageSetTableC = [
- ['txt', '库房名称', 'storageName'],
- [
- 'custom',
- '仓位编号(排-列-层-格)',
- (item: any) =>
- [item.layer1, item.layer2, item.layer3, item.layer4].filter(i => Boolean(i)).join('-')
- ]
- ]
- export const warehouseSetTableC = [
- ['txt', '库房名称', 'name'],
- ['txt', '库房负责人', 'managerUser'],
- ['txt', '库房说明', 'description']
- ]
- //藏品附件
- export const goodsFileTableC = [
- ['select', '附件类型', 'type', selectObj['附件类型']],
- ['txt', '附件名称', 'fileName'],
- ['txt', '藏品登记号', 'joinNum'],
- ['txt', '藏品名称', 'joinName'],
- ['dateRes', '上传日期', 'createTime'],
- ['txtC', '上传人', 'creatorName'],
- ['sizeNum', '文件大小(mb)', 'fileSize', 1024]
- ]
- // 藏品入库
- export const inStorageTableC = [
- ['txt', '入库日期', 'createTime'],
- ['txt', '入库库房', 'storageName'],
- ['txt', '申请编号', 'num'],
- ['txt', '发起部门', 'deptName'],
- ['txt', '发起人', 'creatorName'],
- ['txt', '发起日期', 'date'],
- ['select', '申请状态', 'status', selectObj['藏品入库申请状态']]
- ]
- // 藏品出库
- export const outStorageTableC = [
- ['txt', '出库日期', 'createTime'],
- ['txt', '出库库房', 'storageName'],
- ['txt', '申请编号', 'num'],
- ['txt', '发起部门', 'deptName'],
- ['txt', '发起人', 'creatorName'],
- ['txt', '发起日期', 'date'],
- ['select', '申请状态', 'status', selectObj['藏品入库申请状态']]
- ]
- // 藏品详情----藏品附件
- export const GI3tableC = [
- ['select', '附件类型', 'type', selectObj['附件类型']],
- ['txt', '附件名称', 'fileName'],
- ['dateRes', '上传日期', 'createTime'],
- ['txtC', '上传人', 'creatorName'],
- ['sizeNum', '文件大小(mb)', 'fileSize', 1024]
- ]
- // 藏品详情----藏品故事
- export const GI4tableC = [
- ['txt', '故事名称', 'name'],
- ['text', '备注', 'remark', 50],
- ['txt', '编辑人', 'creatorName']
- ]
- // 藏品详情----藏品日志 / 工作台
- export const GI5tableC = (flag?: boolean) => {
- let arr = [
- ['dateRes', '业务发生日期', 'date'],
- ['txt', '申请编号', 'num'],
- ['txt', '发起部门', 'deptName'],
- ['txt', '发起人', 'creatorName'],
- ['txt', '发起日期', 'date'],
- ['select', '申请状态', 'status', selectObj['藏品入库申请状态']]
- ]
- if (flag) arr.shift()
- return arr
- }
- // 流程中心
- export const flowCenterTableC = [
- ['txt', '申请编号', 'num'],
- ['txt', '发起部门', 'deptName'],
- ['txt', '发起人', 'creatorName'],
- ['txt', '发起日期', 'date'],
- ['select', '申请状态', 'status', selectObj['藏品入库申请状态']]
- ]
- // 藏品盘点
- export const checkTableC = [
- ['txt', '盘点日期', 'createTime'],
- ['txt', '盘点库房', 'storageName'],
- ['txt', '申请编号', 'num'],
- ['txt', '发起部门', 'deptName'],
- ['txt', '发起人', 'creatorName'],
- ['txt', '发起日期', 'date'],
- ['select', '申请状态', 'status', selectObj['藏品入库申请状态']]
- ]
- // 导入藏品数据/图片
- export const importDataTableC = [
- ['txt', '文件名称', 'name'],
- ['txt', '导入数据', 'thumb'],
- ['txt', '成功数据', 'joinNum'],
- ['txt', '失败数据', 'joinName'],
- ['dateRes', '导入日期', 'createTime'],
- ['txt', '导入用户', 'creatorName'],
- ['txt', '导入结果', 'fileSize']
- ]
- // 资源使用
- export const resourceTableC = [
- ['txt', '使用日期', 'createTime'],
- ['txt', '申请编号', 'num'],
- ['txt', '发起部门', 'deptName'],
- ['txt', '发起人', 'creatorName'],
- ['txt', '发起日期', 'date'],
- ['select', '申请状态', 'status', selectObj['藏品入库申请状态']]
- ]
|