| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- export interface ConstructionDailyReportRow {
- id?: number
- deptId?: number
- projectId?: number
- taskId?: number
- status?: number
- auditStatus?: number
- createTime?: number | string
- deptName?: string
- projectName?: string
- location?: string
- mainDeviceNum?: number | null
- wellName?: string
- wokDeviceNum?: number | null
- fiveStatusLabel?: string
- dailyWorkingLayers?: number | null
- dailySandVolume?: number | null
- dailyLiquidVolume?: number | null
- jingshu?: number | null
- cengshu?: number | null
- dailyFuel?: number | null
- nonProductionTime?: number | null
- nptReason?: string
- singleWellWorkload?: number | string | null
- productionStatus?: string
- planWorkingLayers?: number | null
- weather?: string
- temperature?: string
- deviceNames?: string
- customer?: string
- reportName?: string
- constructionEndDate?: string | number
- constructionStartDate?: string | number
- monthWorkingLayers?: number | null
- monthWorkingWells?: number | null
- }
- export interface ConstructionDailyReportQuery {
- pageNo: number
- pageSize: number
- deptId?: number
- projectName?: string
- wellName?: string
- createTime?: string[]
- }
- export interface ConstructionDailyReportField {
- prop: keyof ConstructionDailyReportRow
- label: string
- type?: 'text' | 'number' | 'textarea'
- span?: 1 | 2
- precision?: number
- }
- export interface ConstructionDailyReportSection {
- title: string
- fields: ConstructionDailyReportField[]
- }
- export const tableColumns: Array<{
- prop: keyof ConstructionDailyReportRow
- label: string
- width?: number
- minWidth?: number
- fixed?: 'left' | 'right'
- }> = [
- { prop: 'reportName', label: '日报名称', minWidth: 180, fixed: 'left' },
- { prop: 'createTime', label: '创建(施工)日期', width: 120 },
- // { prop: 'constructionStartDate', label: '施工开始日期', width: 120 },
- { prop: 'constructionEndDate', label: '施工结束日期', width: 120 },
- { prop: 'projectName', label: '项目', minWidth: 160, fixed: 'left' },
- { prop: 'location', label: '施工区域', minWidth: 140 },
- { prop: 'deptName', label: '队伍', minWidth: 140 },
- { prop: 'mainDeviceNum', label: '主设备(泵车)数量', width: 110 },
- { prop: 'wellName', label: '生产任务', minWidth: 140 },
- { prop: 'wokDeviceNum', label: '作业泵车数量', width: 120 },
- { prop: 'fiveStatusLabel', label: '队伍状态', minWidth: 120 },
- { prop: 'dailyWorkingLayers', label: '当日主压层数', width: 120 },
- { prop: 'dailySandVolume', label: '当日加砂量(吨)', width: 120 },
- { prop: 'dailyLiquidVolume', label: '当日注液量(m³)', width: 120 },
- { prop: 'monthWorkingWells', label: '当月作业井数', width: 120 },
- { prop: 'monthWorkingLayers', label: '当月作业层数', width: 120 },
- { prop: 'dailyFuel', label: '当日油耗(L)', width: 110 },
- { prop: 'nonProductionTime', label: '当日非生产时间', width: 130 },
- { prop: 'nptReason', label: '造成非生产时间原因', minWidth: 180 },
- { prop: 'singleWellWorkload', label: '单井工作量', width: 120 },
- { prop: 'productionStatus', label: '施工动态', minWidth: 180 },
- { prop: 'planWorkingLayers', label: '本月计划层数', width: 120 },
- { prop: 'weather', label: '天气', width: 100 },
- { prop: 'temperature', label: '气温', width: 100 },
- { prop: 'deviceNames', label: '设备名称', minWidth: 180 },
- { prop: 'customer', label: '合同甲方', minWidth: 140 }
- ]
- export const formSections: ConstructionDailyReportSection[] = [
- {
- title: '基础信息',
- fields: [
- { prop: 'reportName', label: '日报名称' },
- { prop: 'createTime', label: '日报日期' },
- { prop: 'constructionEndDate', label: '施工结束日期' },
- { prop: 'projectName', label: '项目' },
- { prop: 'location', label: '施工区域' },
- { prop: 'deptName', label: '队伍' },
- { prop: 'wellName', label: '生产任务' },
- { prop: 'deviceNames', label: '设备名称', span: 2 },
- { prop: 'customer', label: '合同甲方' }
- ]
- },
- {
- title: '生产数据',
- fields: [
- { prop: 'mainDeviceNum', label: '主设备数量', type: 'number' },
- { prop: 'wokDeviceNum', label: '作业泵车数量', type: 'number' },
- { prop: 'fiveStatusLabel', label: '队伍状态' },
- { prop: 'dailyWorkingLayers', label: '当日主压层数', type: 'number', precision: 2 },
- { prop: 'dailySandVolume', label: '当日加砂量', type: 'number', precision: 2 },
- { prop: 'dailyLiquidVolume', label: '当日注液量', type: 'number', precision: 2 },
- { prop: 'jingshu', label: '当月作业井数', type: 'number' },
- { prop: 'cengshu', label: '当月作业层数', type: 'number' },
- { prop: 'dailyFuel', label: '当日油耗', type: 'number', precision: 2 },
- { prop: 'nonProductionTime', label: '当日非生产时间', type: 'number', precision: 2 },
- { prop: 'singleWellWorkload', label: '单井工作量' },
- { prop: 'planWorkingLayers', label: '本月计划层数', type: 'number', precision: 2 }
- ]
- },
- {
- title: '现场说明',
- fields: [
- { prop: 'nptReason', label: '造成非生产时间原因', type: 'textarea', span: 2 },
- { prop: 'productionStatus', label: '施工动态', type: 'textarea', span: 2 },
- { prop: 'weather', label: '天气' },
- { prop: 'temperature', label: '气温' }
- ]
- }
- ]
- export function createEmptyConstructionDailyReport(): ConstructionDailyReportRow {
- return {
- mainDeviceNum: null,
- wokDeviceNum: null,
- dailyWorkingLayers: null,
- dailySandVolume: null,
- dailyLiquidVolume: null,
- jingshu: null,
- cengshu: null,
- dailyFuel: null,
- nonProductionTime: null,
- singleWellWorkload: null,
- planWorkingLayers: null
- }
- }
|