|
@@ -0,0 +1,144 @@
|
|
|
|
|
+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
|
|
|
|
|
+ wokDeviceMum?: 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
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+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: 'createTime', label: '日报日期', width: 120, fixed: 'left' },
|
|
|
|
|
+ { prop: 'deptName', label: '公司', minWidth: 150, fixed: 'left' },
|
|
|
|
|
+ { 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: 'wokDeviceMum', label: '作业泵车数量', width: 120 },
|
|
|
|
|
+ { prop: 'fiveStatusLabel', label: '队伍状态', minWidth: 120 },
|
|
|
|
|
+ { prop: 'dailyWorkingLayers', label: '当日主压层数', width: 120 },
|
|
|
|
|
+ { prop: 'dailySandVolume', label: '当日加砂量', width: 120 },
|
|
|
|
|
+ { prop: 'dailyLiquidVolume', label: '当日注液量', width: 120 },
|
|
|
|
|
+ { prop: 'jingshu', label: '当月作业井数', width: 120 },
|
|
|
|
|
+ { prop: 'cengshu', label: '当月作业层数', width: 120 },
|
|
|
|
|
+ { prop: 'dailyFuel', label: '当日油耗', 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: 'createTime', label: '日报日期' },
|
|
|
|
|
+ { prop: 'deptName', 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: 'wokDeviceMum', 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,
|
|
|
|
|
+ wokDeviceMum: null,
|
|
|
|
|
+ dailyWorkingLayers: null,
|
|
|
|
|
+ dailySandVolume: null,
|
|
|
|
|
+ dailyLiquidVolume: null,
|
|
|
|
|
+ jingshu: null,
|
|
|
|
|
+ cengshu: null,
|
|
|
|
|
+ dailyFuel: null,
|
|
|
|
|
+ nonProductionTime: null,
|
|
|
|
|
+ singleWellWorkload: null,
|
|
|
|
|
+ planWorkingLayers: null
|
|
|
|
|
+ }
|
|
|
|
|
+}
|