385 lines
14 KiB
JavaScript
385 lines
14 KiB
JavaScript
/**
|
||
* 单据页配置:component 对应表名 → 单据页布局配置
|
||
* 配置后由 BILL_MAP(table-map.js)把列表页"新增/编辑"接入全屏单据页
|
||
* 字段名统一用 camelCase(与后端 meta/data 接口返回一致)
|
||
* span:24 整行 / 16 占 2/3 行 / 8 每行 3 列(默认)
|
||
*/
|
||
export const BILL_CONFIGS = {
|
||
// ================= Process 工艺管理 =================
|
||
Process_Trial: {
|
||
title: '样茧试缫单',
|
||
codeField: 'billNo',
|
||
groups: [
|
||
{ title: '试缫信息', fields: ['billNo', 'trialType', 'zhuangkouId', 'processZhuangkouId', 'trialDate', 'trialMan'] },
|
||
{ title: '试缫数据', fields: [{ name: 'dataJson', span: 16 }] }
|
||
]
|
||
},
|
||
Process_ProcessZhuangkou: {
|
||
title: '工艺庄口',
|
||
codeField: 'code',
|
||
statusField: 'status',
|
||
groups: [
|
||
{ title: '基本信息', fields: ['code', 'name', 'shortName', 'displayName', 'isLocal', 'tags'] },
|
||
{ title: '生产信息', fields: ['zhuangkouId', 'progress', 'status', 'startDate', 'planEndDate', 'endDate'] }
|
||
]
|
||
},
|
||
Process_Sheet: {
|
||
title: '工艺单',
|
||
codeField: 'sheetNo',
|
||
statusField: 'status',
|
||
groups: [
|
||
{ title: '工艺单信息', fields: ['sheetNo', 'name', 'processZhuangkouId', 'version', 'sourceSheetId', 'status'] },
|
||
{ title: '发布信息', fields: ['publisher', 'publishTime'] }
|
||
]
|
||
},
|
||
|
||
// ================= ProPlan 生产计划 =================
|
||
ProPlan_WorkOrder: {
|
||
title: '生产工单',
|
||
codeField: 'orderNo',
|
||
statusField: 'status',
|
||
groups: [
|
||
{ title: '工单信息', fields: ['orderNo', 'processZhuangkouId', 'sheetId', 'targetProcess', 'priority', 'status'] },
|
||
{ title: '计划与执行', fields: ['planInput', 'planOutput', 'actualInput', 'actualOutput', 'planStartDate', 'planEndDate'] }
|
||
]
|
||
},
|
||
ProPlan_Change: {
|
||
title: '计划变更单',
|
||
codeField: 'changeNo',
|
||
groups: [
|
||
{ title: '变更信息', fields: ['changeNo', 'processZhuangkouId', 'changeType', 'fromOrder', 'toOrder', 'operatorId', 'changeTime', { name: 'reason', span: 16 }] }
|
||
]
|
||
},
|
||
|
||
// ================= ProXuan 选茧 =================
|
||
ProXuan_Daily: {
|
||
title: '选茧日报',
|
||
groups: [
|
||
{ title: '日报信息', fields: ['dailyDate', 'teamId', 'zhuangkouId', 'workerCount', 'workHours'] },
|
||
{ title: '产量数据', fields: ['inputWeight', 'goodWeight', 'wasteWeight'] },
|
||
{ title: '备注', fields: [{ name: 'remark', span: 16 }] }
|
||
]
|
||
},
|
||
ProXuan_Quality: {
|
||
title: '选茧质量记录',
|
||
groups: [
|
||
{ title: '质量信息', fields: ['qualityDate', 'zhuangkouId', 'goodRate', 'wasteRate', 'qualityLevel'] },
|
||
{ title: '问题描述', fields: [{ name: 'issueDesc', span: 16 }] }
|
||
]
|
||
},
|
||
|
||
// ================= ProQian 前纺 =================
|
||
ProQian_Schedule: {
|
||
title: '前纺排班',
|
||
groups: [
|
||
{ title: '排班信息', fields: ['scheduleDate', 'shift', 'workshopId', 'machineId', 'employeeId', 'postType', 'xuCount'] }
|
||
]
|
||
},
|
||
ProQian_ShiftTime: {
|
||
title: '看台时长记录',
|
||
groups: [
|
||
{ title: '时长记录', fields: ['employeeId', 'processZhuangkouId', 'workDate', 'shift', 'machineId', 'hours', 'opType', 'sourceId'] }
|
||
]
|
||
},
|
||
ProQian_ThreadRecord: {
|
||
title: '落丝记录',
|
||
groups: [
|
||
{ title: '落丝信息', fields: ['recordDate', 'processZhuangkouId', 'machineId', 'shift', 'specId', 'employeeId', 'threadCount', 'weight'] }
|
||
]
|
||
},
|
||
|
||
// ================= ProHou 后纺 =================
|
||
ProHou_Daily: {
|
||
title: '后纺日报',
|
||
groups: [
|
||
{ title: '日报信息', fields: ['dailyDate', 'processZhuangkouId', 'teamId', 'workerCount'] },
|
||
{ title: '产量数据', fields: ['inputWeight', 'outputWeight', 'outputCount'] },
|
||
{ title: '备注', fields: [{ name: 'remark', span: 16 }] }
|
||
]
|
||
},
|
||
ProHou_SpoolLedger: {
|
||
title: '丝片台账',
|
||
codeField: 'code',
|
||
statusField: 'status',
|
||
groups: [
|
||
{ title: '丝片信息', fields: ['code', 'processZhuangkouId', 'specId', 'grade', 'pieceNo'] },
|
||
{ title: '生产信息', fields: ['produceDate', 'teamId', 'weight', 'status'] }
|
||
]
|
||
},
|
||
ProHou_SpoolCheck: {
|
||
title: '丝片检查',
|
||
groups: [
|
||
{ title: '检查信息', fields: ['spoolId', 'checkDate', 'checker', 'checkResult'] },
|
||
{ title: '检查明细', fields: [{ name: 'checkItemsJson', span: 16 }] },
|
||
{ title: '备注', fields: [{ name: 'remark', span: 16 }] }
|
||
]
|
||
},
|
||
ProHou_WeighBig: {
|
||
title: '秤大丝记录',
|
||
codeField: 'billNo',
|
||
groups: [
|
||
{ title: '称重信息', fields: ['billNo', 'processZhuangkouId', 'specId', 'grade', 'weighDate', 'operator'] },
|
||
{ title: '称重数据', fields: ['totalWeight', 'packageCount'] }
|
||
]
|
||
},
|
||
|
||
// ================= Lims 检验 =================
|
||
Lims_SpoolCheck: {
|
||
title: '丝片检验单',
|
||
codeField: 'checkNo',
|
||
statusField: 'status',
|
||
groups: [
|
||
{ title: '检验单信息', fields: ['checkNo', 'checkDate', 'processZhuangkouId', 'teamId', 'shift', 'checker'] },
|
||
{ title: '检验数据', fields: ['checkCount', 'checkWeight', 'passCount', 'passRate', 'status'] }
|
||
]
|
||
},
|
||
Lims_BlackBoard: {
|
||
title: '黑板检验单',
|
||
codeField: 'checkNo',
|
||
groups: [
|
||
{ title: '检验单信息', fields: ['checkNo', 'checkDate', 'processZhuangkouId', 'specId', 'checker'] },
|
||
{ title: '检验指标', fields: ['uniformity', 'cleanliness', 'neatness', 'grade'] },
|
||
{ title: '原始数据', fields: [{ name: 'dataJson', span: 16 }] }
|
||
]
|
||
},
|
||
Lims_Denier: {
|
||
title: '纤度检验单',
|
||
codeField: 'checkNo',
|
||
groups: [
|
||
{ title: '检验单信息', fields: ['checkNo', 'checkDate', 'processZhuangkouId', 'specId', 'checker'] },
|
||
{ title: '纤度指标', fields: ['centerDenier', 'avgDenier', 'deviation', 'deviationRate', 'wildCount', 'breakingStrength', 'breakingElongation'] }
|
||
]
|
||
},
|
||
Lims_Moisture: {
|
||
title: '公量检验单',
|
||
codeField: 'checkNo',
|
||
groups: [
|
||
{ title: '检验单信息', fields: ['checkNo', 'checkDate', 'processZhuangkouId', 'specId', 'checker'] },
|
||
{ title: '公量指标', fields: ['moistureRegain', 'standardRegain', 'grossWeight', 'netWeight', 'conditionWeight'] }
|
||
]
|
||
},
|
||
Lims_Abnormal: {
|
||
title: '检验异常记录',
|
||
codeField: 'abnormalNo',
|
||
statusField: 'status',
|
||
groups: [
|
||
{ title: '异常信息', fields: ['abnormalNo', 'checkType', 'processZhuangkouId', 'abnormalType', 'foundDate'] },
|
||
{ title: '异常描述', fields: [{ name: 'description', span: 16 }] },
|
||
{ title: '处理信息', fields: ['status', 'handler', { name: 'handleResult', span: 16 }] }
|
||
]
|
||
},
|
||
Lims_GradeResult: {
|
||
title: '厂检定级单',
|
||
codeField: 'gradeNo',
|
||
statusField: 'status',
|
||
groups: [
|
||
{ title: '判定单信息', fields: ['gradeNo', 'processZhuangkouId', 'specId', 'standardId', 'grade', 'grader', 'gradeDate', 'status'] },
|
||
{ title: '判定依据', fields: [{ name: 'basisDesc', span: 16 }] },
|
||
{ title: '原始数据', fields: [{ name: 'dataJson', span: 16 }] }
|
||
]
|
||
},
|
||
|
||
// ================= Qums 质量 =================
|
||
Qums_GrainCount: {
|
||
title: '生丝粒数测定',
|
||
codeField: 'billNo',
|
||
groups: [
|
||
{ title: '测定信息', fields: ['billNo', 'zhuangkouId', 'testDate', 'tester'] },
|
||
{ title: '测定数据', fields: ['sampleWeight', 'grainCount', 'countPerKg'] }
|
||
]
|
||
},
|
||
Qums_CheckTask: {
|
||
title: '质检任务',
|
||
codeField: 'taskNo',
|
||
statusField: 'status',
|
||
groups: [
|
||
{ title: '任务信息', fields: ['taskNo', 'name', 'checkType', 'scope', 'planDate', 'manager', 'status'] }
|
||
]
|
||
},
|
||
|
||
// ================= Fims 成品 =================
|
||
Fims_Batch: {
|
||
title: '成品批次',
|
||
codeField: 'batchNo',
|
||
statusField: 'status',
|
||
groups: [
|
||
{ title: '批次信息', fields: ['batchNo', 'processZhuangkouId', 'specId', 'grade', 'createDate', 'status'] },
|
||
{ title: '重量数据', fields: ['totalWeight', 'packageCount'] },
|
||
{ title: '来源信息', fields: ['inStockId'] }
|
||
]
|
||
},
|
||
Fims_Package: {
|
||
title: '成品包件',
|
||
codeField: 'packageNo',
|
||
statusField: 'status',
|
||
groups: [
|
||
{ title: '包件信息', fields: ['packageNo', 'batchId', 'processZhuangkouId', 'specId', 'grade', 'status'] },
|
||
{ title: '重量数据', fields: ['grossWeight', 'tareWeight', 'netWeight'] },
|
||
{ title: '出入库信息', fields: ['inDate', 'outDate'] }
|
||
]
|
||
},
|
||
Fims_InStock: {
|
||
title: '成品入库单',
|
||
codeField: 'billNo',
|
||
statusField: 'status',
|
||
groups: [
|
||
{ title: '入库单信息', fields: ['billNo', 'processZhuangkouId', 'specId', 'grade', 'gradeResultId', 'inDate', 'location', 'status'] },
|
||
{ title: '入库数据', fields: ['netWeight', 'packageCount'] }
|
||
]
|
||
},
|
||
Fims_OutStock: {
|
||
title: '成品出库单',
|
||
codeField: 'billNo',
|
||
statusField: 'status',
|
||
groups: [
|
||
{ title: '出库单信息', fields: ['billNo', 'customerId', 'contractId', 'outType', 'outDate', 'carrier', 'status'] },
|
||
{ title: '出库数据', fields: ['netWeight', 'packageCount'] }
|
||
]
|
||
},
|
||
|
||
// ================= Sams 销售 =================
|
||
Sams_Customer: {
|
||
title: '客户档案',
|
||
codeField: 'code',
|
||
groups: [
|
||
{ title: '基本信息', fields: ['code', 'name', 'shortName', 'contact', 'phone', { name: 'address', span: 16 }] },
|
||
{ title: '财务信息', fields: ['creditLevel', 'bankName', 'bankAccount', 'taxNo'] },
|
||
{ title: '状态', fields: ['isEnable'] }
|
||
]
|
||
},
|
||
Sams_Contract: {
|
||
title: '销售合同',
|
||
codeField: 'contractNo',
|
||
statusField: 'status',
|
||
groups: [
|
||
{ title: '合同信息', fields: ['contractNo', 'name', 'customerId', 'signDate', 'status'] },
|
||
{ title: '金额信息', fields: ['totalAmount', 'executedAmount', 'paidAmount'] },
|
||
{ title: '备注', fields: [{ name: 'memo', span: 16 }] }
|
||
]
|
||
},
|
||
Sams_DispatchPlan: {
|
||
title: '发货计划',
|
||
codeField: 'planNo',
|
||
statusField: 'status',
|
||
groups: [
|
||
{ title: '计划信息', fields: ['planNo', 'contractItemId', 'planDate', 'planQuantity', 'shippedQuantity', 'carrier', 'status'] }
|
||
]
|
||
},
|
||
Sams_Payment: {
|
||
title: '回款登记',
|
||
codeField: 'paymentNo',
|
||
groups: [
|
||
{ title: '回款信息', fields: ['paymentNo', 'contractId', 'customerId', 'payDate', 'amount', 'payType', 'outBillNo', 'operator'] }
|
||
]
|
||
},
|
||
Sams_Invoice: {
|
||
title: '开票登记',
|
||
codeField: 'invoiceNo',
|
||
statusField: 'status',
|
||
groups: [
|
||
{ title: '发票信息', fields: ['invoiceNo', 'contractId', 'customerId', 'invoiceDate', 'amount', 'taxRate', 'invoiceType', 'status'] }
|
||
]
|
||
},
|
||
|
||
// ================= HRS 人事 =================
|
||
HRS_Employee: {
|
||
title: '职工档案',
|
||
codeField: 'code',
|
||
statusField: 'status',
|
||
groups: [
|
||
{ title: '基本信息', fields: ['code', 'name', 'gender', 'idCard', 'phone', 'orgId', 'workTypeId', 'position', 'status'] },
|
||
{ title: '任职信息', fields: ['hireDate', 'leaveDate'] },
|
||
{ title: '银行信息', fields: ['bankCardNo', 'bankName'] }
|
||
]
|
||
},
|
||
HRS_EmployeeChange: {
|
||
title: '职工异动记录',
|
||
groups: [
|
||
{ title: '异动信息', fields: ['employeeId', 'changeType', 'changeDate', 'fromOrgId', 'toOrgId', { name: 'reason', span: 16 }] }
|
||
]
|
||
},
|
||
HRS_Attendance: {
|
||
title: '出勤管理',
|
||
groups: [
|
||
{ title: '出勤信息', fields: ['employeeId', 'attDate', 'attType', 'hours', 'inputType', 'periodId'] }
|
||
]
|
||
},
|
||
HRS_CanteenRecord: {
|
||
title: '食堂消费记录',
|
||
groups: [
|
||
{ title: '消费信息', fields: ['employeeId', 'eatDate', 'mealType', 'amount', 'subsidy', 'orgId'] }
|
||
]
|
||
},
|
||
|
||
// ================= FlexPay 计件薪资 =================
|
||
FlexPay_Payroll: {
|
||
title: '薪资发放批次',
|
||
codeField: 'batchNo',
|
||
statusField: 'status',
|
||
groups: [
|
||
{ title: '发放信息', fields: ['batchNo', 'periodId', 'totalAmount', 'empCount', 'status', 'payTime'] },
|
||
{ title: '银行文件', fields: [{ name: 'bankFilePath', span: 16 }] }
|
||
]
|
||
},
|
||
|
||
// ================= Enms 能源 =================
|
||
Enms_Reading: {
|
||
title: '抄表记录',
|
||
groups: [
|
||
{ title: '抄表信息', fields: ['meterId', 'readDate', 'reading', 'lastReading', 'usage', 'reader', 'readType'] }
|
||
]
|
||
},
|
||
|
||
// ================= WmsWu 五金仓储 =================
|
||
WmsWu_InStock: {
|
||
title: '五金入库单',
|
||
codeField: 'billNo',
|
||
statusField: 'status',
|
||
groups: [
|
||
{ title: '入库单信息', fields: ['billNo', 'supplierId', 'purchaseId', 'inDate', 'totalAmount', 'status'] }
|
||
]
|
||
},
|
||
WmsWu_OutStock: {
|
||
title: '五金出库单',
|
||
codeField: 'billNo',
|
||
statusField: 'status',
|
||
groups: [
|
||
{ title: '出库单信息', fields: ['billNo', 'outOrgId', 'outDate', 'receiver', 'status'] }
|
||
]
|
||
},
|
||
WmsWu_PurchasePlan: {
|
||
title: '五金采购计划',
|
||
codeField: 'planNo',
|
||
statusField: 'status',
|
||
groups: [
|
||
{ title: '计划信息', fields: ['planNo', 'name', 'planAmount', 'status'] }
|
||
]
|
||
},
|
||
WmsWu_Apply: {
|
||
title: '领料申请',
|
||
codeField: 'applyNo',
|
||
statusField: 'status',
|
||
groups: [
|
||
{ title: '申请信息', fields: ['applyNo', 'applyOrgId', 'applicant', 'applyDate', 'status'] }
|
||
]
|
||
},
|
||
|
||
// ================= WmsFu 副产品仓储 =================
|
||
WmsFu_InStock: {
|
||
title: '副产品入库单',
|
||
codeField: 'billNo',
|
||
statusField: 'status',
|
||
groups: [
|
||
{ title: '入库单信息', fields: ['billNo', 'materialId', 'processZhuangkouId', 'inDate', 'netWeight', 'sourceProcess', 'status'] }
|
||
]
|
||
},
|
||
WmsFu_OutStock: {
|
||
title: '副产品出库单',
|
||
codeField: 'billNo',
|
||
statusField: 'status',
|
||
groups: [
|
||
{ title: '出库单信息', fields: ['billNo', 'materialId', 'customerId', 'outDate', 'netWeight', 'outType', 'status'] }
|
||
]
|
||
}
|
||
}
|