| | |
| | | } |
| | | return data |
| | | } |
| | | |
| | | |
| | | export function timeForMat (count) { |
| | | // 拼接时间 |
| | | const time1 = new Date() |
| | | const time2 = new Date() |
| | | if (count === 1) { |
| | | // time1.setTime(time1.getTime() - (24 * 60 * 60 * 1000)) |
| | | time1.setTime(time1.getTime()) |
| | | } else { |
| | | time1.setTime(time1.getTime()) |
| | | } |
| | | |
| | | const Y1 = time1.getFullYear() |
| | | const M1 = ((time1.getMonth() + 1) > 9 ? (time1.getMonth() + 1) : '0' + (time1.getMonth() + 1)) |
| | | const D1 = (time1.getDate() > 9 ? time1.getDate() : '0' + time1.getDate()) |
| | | const timer1 = Y1 + '-' + M1 + '-' + D1 + ' ' + '23:59:59' // 当前时间 |
| | | |
| | | time2.setTime(time2.getTime() - (24 * 60 * 60 * 1000 * count)) |
| | | const Y2 = time2.getFullYear() |
| | | const M2 = ((time2.getMonth() + 1) > 9 ? (time2.getMonth() + 1) : '0' + (time2.getMonth() + 1)) |
| | | const D2 = (time2.getDate() > 9 ? time2.getDate() : '0' + time2.getDate()) |
| | | const timer2 = Y2 + '-' + M2 + '-' + D2 + ' ' + '00:00:00' // 之前的7天或者30天 |
| | | return [timer2, timer1] |
| | | } |
| | |
| | | <div slot="search-form"> |
| | | <el-form ref="searchForm" :model="searchForm" label-width="100px" inline> |
| | | <el-form-item label="风险类型" prop="typeIdPath"> |
| | | <!-- <el-cascader v-model="searchForm.categoryList" :options="categorys" @change="handleChangeCategory" :show-all-levels="false" |
| | | clearable filterable :props="categoryprops" > |
| | | <template slot-scope="{ node, data }"> |
| | | <span>{{ data.name }}</span> <!– 自定义显示内容 –> |
| | | </template> |
| | | </el-cascader>--> |
| | | <treeselect |
| | | style="width: 150px" |
| | | v-model="searchForm.typeIdPath" |
| | |
| | | </el-form-item> |
| | | <el-form-item label="工单号" prop="code"> |
| | | <el-input v-model="searchForm.code" clearable placeholder="请输入工单号" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="提交时间" prop="queryStartTime"> |
| | | <el-date-picker type="datetime" v-model="searchForm.queryStartTime" value-format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="请选择开始时间" @change="changeRadio" /> |
| | | </el-form-item> |
| | | <el-form-item label="" prop="queryEndTime"> |
| | | <el-date-picker type="datetime" v-model="searchForm.queryEndTime" value-format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="请选择结束时间" @change="changeRadio" /> |
| | | </el-form-item> |
| | | <el-form-item label="" prop="radio"> |
| | | <el-radio-group v-model="searchForm.radio" size="small" @input="changeRadio"> |
| | | <el-radio-button label="0">当天</el-radio-button> |
| | | <el-radio-button label="1">近7天</el-radio-button> |
| | | <el-radio-button label="2">近30天</el-radio-button> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <section> |
| | | <el-button type="primary" @click="search">搜索</el-button> |
| | |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaWorkorderDetailDbhWindow from '@/components/business/OperaWorkorderDetailDbhWindow' |
| | | import { treeList } from '@/api/business/category' |
| | | import { timeForMat } from '@/utils/util' |
| | | export default { |
| | | name: 'Workorder', |
| | | extends: BaseTable, |
| | |
| | | return { |
| | | // 搜索 |
| | | searchForm: { |
| | | queryStartTime: null, |
| | | queryEndTime: null, |
| | | radio: null, |
| | | type: '3', |
| | | memberName: '', |
| | | memberCompanyId: '', |
| | |
| | | this.search() |
| | | }, |
| | | methods: { |
| | | changeRadio(e) { |
| | | if (e === '0') { |
| | | this.searchForm.queryStartTime = timeForMat(0)[0] |
| | | this.searchForm.queryEndTime = timeForMat(0)[1] |
| | | } else if (e === '1') { |
| | | this.searchForm.queryStartTime = timeForMat(6)[0] |
| | | this.searchForm.queryEndTime = timeForMat(6)[1] |
| | | } else if (e === '2') { |
| | | this.searchForm.queryStartTime = timeForMat(29)[0] |
| | | this.searchForm.queryEndTime = timeForMat(29)[1] |
| | | } else { |
| | | this.searchForm.radio = '' |
| | | } |
| | | if (this.searchForm.queryStartTime && this.searchForm.endTime && new Date(this.searchForm.startTime).getTime() > new Date(this.searchForm.endTime).getTime()) { |
| | | this.$message.error('开始时间不能大于结束时间') |
| | | this.searchForm.queryStartTime = '' |
| | | return |
| | | } |
| | | this.search() |
| | | }, |
| | | normalizeOptions(node) { |
| | | if (node.childList && !node.childList.length) { |
| | | // 去掉children=[]的children属性 |
| | |
| | | <div slot="search-form"> |
| | | <el-form ref="searchForm" :model="searchForm" label-width="100px" inline> |
| | | <el-form-item label="观察主题" prop="typeId"> |
| | | <el-select v-model="searchForm.typeId" @change="search"> |
| | | <el-select v-model="searchForm.typeId" @change="search" style="width: 120px"> |
| | | <el-option clearable filterable |
| | | v-for="item in categorys" |
| | | :key="item.id" |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="上报人员" prop="memberName"> |
| | | <el-input v-model="searchForm.memberName" clearable placeholder="人员姓名或手机号" @keypress.enter.native="search"></el-input> |
| | | |
| | | |
| | | <el-input v-model="searchForm.memberName" style="width: 120px" clearable placeholder="人员姓名或手机号" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="工单号" prop="code"> |
| | | <el-input v-model="searchForm.code" clearable placeholder="请输入工单号" @keypress.enter.native="search"></el-input> |
| | | <el-input v-model="searchForm.code" clearable style="width: 150px" placeholder="工单号" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="提交时间" prop="queryStartTime"> |
| | | <el-date-picker style="width: 185px" type="datetime" v-model="searchForm.queryStartTime" value-format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="开始时间" @change="changeRadio" /> |
| | | </el-form-item> |
| | | <el-form-item label="" prop="queryEndTime"> |
| | | <el-date-picker style="width: 185px" type="datetime" v-model="searchForm.queryEndTime" value-format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="结束时间" @change="changeRadio" /> |
| | | </el-form-item> |
| | | <el-form-item label="" prop="radio"> |
| | | <el-radio-group v-model="searchForm.radio" size="small" @input="changeRadio"> |
| | | <el-radio-button label="0">当天</el-radio-button> |
| | | <el-radio-button label="1">近7天</el-radio-button> |
| | | <el-radio-button label="2">近30天</el-radio-button> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <section> |
| | | <el-button type="primary" @click="search">搜索</el-button> |
| | |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaWorkorderDetailDcaWindow from '@/components/business/OperaWorkorderDetailDcaWindow' |
| | | import { allList } from '@/api/business/category' |
| | | import { timeForMat } from '@/utils/util' |
| | | export default { |
| | | name: 'Workorder', |
| | | extends: BaseTable, |
| | |
| | | return { |
| | | // 搜索 |
| | | searchForm: { |
| | | queryStartTime: null, |
| | | queryEndTime: null, |
| | | radio: null, |
| | | type: '1', |
| | | memberName: '', |
| | | memberCompanyId: '', |
| | |
| | | this.search() |
| | | }, |
| | | methods: { |
| | | changeRadio(e) { |
| | | if (e === '0') { |
| | | this.searchForm.queryStartTime = timeForMat(0)[0] |
| | | this.searchForm.queryEndTime = timeForMat(0)[1] |
| | | } else if (e === '1') { |
| | | this.searchForm.queryStartTime = timeForMat(6)[0] |
| | | this.searchForm.queryEndTime = timeForMat(6)[1] |
| | | } else if (e === '2') { |
| | | this.searchForm.queryStartTime = timeForMat(29)[0] |
| | | this.searchForm.queryEndTime = timeForMat(29)[1] |
| | | } else { |
| | | this.searchForm.radio = '' |
| | | } |
| | | if (this.searchForm.queryStartTime && this.searchForm.endTime && new Date(this.searchForm.startTime).getTime() > new Date(this.searchForm.endTime).getTime()) { |
| | | this.$message.error('开始时间不能大于结束时间') |
| | | this.searchForm.queryStartTime = '' |
| | | return |
| | | } |
| | | this.search() |
| | | }, |
| | | handleChangeCategory (value) { |
| | | if (this.searchForm.categoryList && this.searchForm.categoryList.length >= 1) { |
| | | this.searchForm.typeId = this.searchForm.categoryList[this.searchForm.categoryList.length - 1] |
| | |
| | | <div slot="search-form"> |
| | | <el-form ref="searchForm" :model="searchForm" label-width="100px" inline> |
| | | <el-form-item label="观察主题" prop="typeId"> |
| | | <el-select v-model="searchForm.typeId" @change="changeType" style="width: 120px"> |
| | | <el-select v-model="searchForm.typeId" placeholder="一级主题" clearable @change="changeType" style="width: 120px"> |
| | | <el-option clearable filterable |
| | | v-for="item in categorys" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id"> |
| | | </el-option> |
| | | </el-select> - |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="" prop="categoryId"> |
| | | <el-select v-model="searchForm.categoryId" @change="search" style="width: 120px"> |
| | | <el-option clearable filterable |
| | | <el-select v-model="searchForm.categoryId" clearable placeholder="二级主题" style="width: 120px" @change="search" > |
| | | <el-option filterable |
| | | v-for="item in categorys1" |
| | | :key="item.id" |
| | | :label="item.name" |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="上报人员" prop="memberName"> |
| | | <el-input v-model="searchForm.memberName" clearable placeholder="人员姓名或手机号" @keypress.enter.native="search"></el-input> |
| | | <el-input v-model="searchForm.memberName" style="width: 120px" clearable placeholder="人员姓名或手机号" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="工单号" prop="code"> |
| | | <el-input v-model="searchForm.code" clearable placeholder="请输入工单号" @keypress.enter.native="search"></el-input> |
| | | <el-input v-model="searchForm.code" style="width: 120px" clearable placeholder="工单号" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="提交时间" prop="queryStartTime"> |
| | | <el-date-picker type="datetime" v-model="searchForm.queryStartTime" value-format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="开始时间" @change="changeRadio" /> |
| | | </el-form-item> |
| | | <el-form-item label="" prop="queryEndTime"> |
| | | <el-date-picker type="datetime" v-model="searchForm.queryEndTime" value-format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="结束时间" @change="changeRadio" /> |
| | | </el-form-item> |
| | | <el-form-item label="" prop="radio"> |
| | | <el-radio-group v-model="searchForm.radio" size="small" @input="changeRadio"> |
| | | <el-radio-button label="0">当天</el-radio-button> |
| | | <el-radio-button label="1">近7天</el-radio-button> |
| | | <el-radio-button label="2">近30天</el-radio-button> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <section> |
| | | <el-button type="primary" @click="search">搜索</el-button> |
| | |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaWorkorderDetailDcaInfoWindow from '@/components/business/OperaWorkorderDetailDcaInfoWindow' |
| | | import { allList } from '@/api/business/category' |
| | | import {timeForMat} from "@/utils/util"; |
| | | export default { |
| | | name: 'Workorder', |
| | | extends: BaseTable, |
| | |
| | | return { |
| | | // 搜索 |
| | | searchForm: { |
| | | queryStartTime: null, |
| | | queryEndTime: null, |
| | | radio: null, |
| | | type: '2', |
| | | memberName: '', |
| | | memberCompanyId: '', |
| | |
| | | this.search() |
| | | }, |
| | | methods: { |
| | | changeRadio(e) { |
| | | if (e === '0') { |
| | | this.searchForm.queryStartTime = timeForMat(0)[0] |
| | | this.searchForm.queryEndTime = timeForMat(0)[1] |
| | | } else if (e === '1') { |
| | | this.searchForm.queryStartTime = timeForMat(6)[0] |
| | | this.searchForm.queryEndTime = timeForMat(6)[1] |
| | | } else if (e === '2') { |
| | | this.searchForm.queryStartTime = timeForMat(29)[0] |
| | | this.searchForm.queryEndTime = timeForMat(29)[1] |
| | | } else { |
| | | this.searchForm.radio = '' |
| | | } |
| | | if (this.searchForm.queryStartTime && this.searchForm.endTime && new Date(this.searchForm.startTime).getTime() > new Date(this.searchForm.endTime).getTime()) { |
| | | this.$message.error('开始时间不能大于结束时间') |
| | | this.searchForm.queryStartTime = '' |
| | | return |
| | | } |
| | | this.search() |
| | | }, |
| | | changeType(){ |
| | | this.search() |
| | | this.categorys1 = [] |
| | |
| | | <div slot="search-form"> |
| | | <el-form ref="searchForm" :model="searchForm" label-width="100px" inline> |
| | | <el-form-item label="伤害类型" prop="typeIdPath"> |
| | | <!-- <el-cascader v-model="searchForm.categoryList" :options="categorys" @change="handleChangeCategory" :show-all-levels="false" |
| | | clearable filterable :props="categoryprops" > |
| | | <template slot-scope="{ node, data }"> |
| | | <span>{{ data.name }}</span> <!– 自定义显示内容 –> |
| | | </template> |
| | | </el-cascader>--> |
| | | <treeselect |
| | | style="width: 150px" |
| | | style="width: 200px" |
| | | v-model="searchForm.typeIdPath" |
| | | placeholder="伤害类型" |
| | | clearable |
| | |
| | | noResultsText="没有匹配的结果" /> |
| | | </el-form-item> |
| | | <el-form-item label="上报人员" prop="memberName"> |
| | | <el-input v-model="searchForm.memberName" clearable placeholder="人员姓名或手机号" @keypress.enter.native="search"></el-input> |
| | | <el-input v-model="searchForm.memberName" style="width: 150px" clearable placeholder="人员姓名或手机号" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="工单号" prop="code"> |
| | | <el-input v-model="searchForm.code" clearable placeholder="请输入工单号" @keypress.enter.native="search"></el-input> |
| | | <el-input v-model="searchForm.code" clearable style="width: 150px" placeholder="工单号" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="提交时间" prop="queryStartTime"> |
| | | <el-date-picker type="datetime" v-model="searchForm.queryStartTime" style="width: 190px" value-format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="开始时间" @change="changeRadio" /> |
| | | </el-form-item> |
| | | <el-form-item label="" prop="queryEndTime"> |
| | | <el-date-picker type="datetime" v-model="searchForm.queryEndTime" style="width: 190px" value-format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="结束时间" @change="changeRadio" /> |
| | | </el-form-item> |
| | | <el-form-item label="" prop="radio"> |
| | | <el-radio-group v-model="searchForm.radio" size="small" @input="changeRadio"> |
| | | <el-radio-button label="0">当天</el-radio-button> |
| | | <el-radio-button label="1">近7天</el-radio-button> |
| | | <el-radio-button label="2">近30天</el-radio-button> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <section> |
| | | <el-button type="primary" @click="search">搜索</el-button> |
| | |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaWorkorderDetailSheWindow from '@/components/business/OperaWorkorderDetailSheWindow' |
| | | import { treeList } from '@/api/business/category' |
| | | import {timeForMat} from "@/utils/util"; |
| | | export default { |
| | | name: 'Workorder', |
| | | extends: BaseTable, |
| | |
| | | return { |
| | | // 搜索 |
| | | searchForm: { |
| | | queryStartTime: null, |
| | | queryEndTime: null, |
| | | radio: null, |
| | | type: '0', |
| | | memberName: '', |
| | | memberCompanyId: '', |
| | |
| | | this.search() |
| | | }, |
| | | methods: { |
| | | |
| | | changeRadio(e) { |
| | | if (e === '0') { |
| | | this.searchForm.queryStartTime = timeForMat(0)[0] |
| | | this.searchForm.queryEndTime = timeForMat(0)[1] |
| | | } else if (e === '1') { |
| | | this.searchForm.queryStartTime = timeForMat(6)[0] |
| | | this.searchForm.queryEndTime = timeForMat(6)[1] |
| | | } else if (e === '2') { |
| | | this.searchForm.queryStartTime = timeForMat(29)[0] |
| | | this.searchForm.queryEndTime = timeForMat(29)[1] |
| | | } else { |
| | | this.searchForm.radio = '' |
| | | } |
| | | if (this.searchForm.queryStartTime && this.searchForm.endTime && new Date(this.searchForm.startTime).getTime() > new Date(this.searchForm.endTime).getTime()) { |
| | | this.$message.error('开始时间不能大于结束时间') |
| | | this.searchForm.queryStartTime = '' |
| | | return |
| | | } |
| | | this.search() |
| | | }, |
| | | normalizeOptions(node) { |
| | | if (node.childList && !node.childList.length) { |
| | | // 去掉children=[]的children属性 |
| | |
| | | @TableField(exist = false) |
| | | private List<Workorder> dcaChildList; |
| | | |
| | | @ApiModelProperty(value = "查询开始时间") |
| | | @TableField(exist = false) |
| | | private Date queryStartTime; |
| | | @ApiModelProperty(value = "查询结束时间") |
| | | @TableField(exist = false) |
| | | private Date queryEndTime; |
| | | |
| | | } |
| | |
| | | .eq( pageWrap.getDcaNoNum() != null, Workorder::getDcaNoNum, pageWrap.getDcaNoNum()) |
| | | .eq( pageWrap.getDcaRecordId() != null, Workorder::getDcaRecordId, pageWrap.getDcaRecordId()) |
| | | .likeRight( pageWrap.getTypeIdPath() != null,"c3.id_path", pageWrap.getTypeIdPath()) |
| | | .eq( pageWrap.getDcaCsIds() != null, Workorder::getDcaCsIds, pageWrap.getDcaCsIds()) ; |
| | | .eq( pageWrap.getDcaCsIds() != null, Workorder::getDcaCsIds, pageWrap.getDcaCsIds()) |
| | | .ge( pageWrap.getQueryStartTime() != null, Workorder::getCreateDate,pageWrap.getQueryStartTime()) |
| | | .le( pageWrap.getQueryEndTime() != null, Workorder::getCreateDate,pageWrap.getQueryEndTime()) ; |
| | | if ( pageWrap.getMemberName() != null) { |
| | | queryWrapper.and( ms->ms.like(Member::getName, pageWrap.getMemberName()) |
| | | .or().like(Member::getPhone, pageWrap.getMemberName()) ); |
| | |
| | | spring: |
| | | # 数据源配置 |
| | | datasource: |
| | | # url: jdbc:mysql://localhost:3306/lianhelihua_sh?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai |
| | | # username: root |
| | | # password: Titi@168.com |
| | | url: jdbc:mysql://112.26.66.25:3306/lianhelihua_sh?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai |
| | | username: root |
| | | password: Doumee@168&QWERT |