Compare commits
No commits in common. "20bf8c27f0f0fd891d706850f1cc3790e4754249" and "933a4e45a637660fa973771ba3d0bffcd07044df" have entirely different histories.
20bf8c27f0
...
933a4e45a6
@ -136,11 +136,11 @@ export default {
|
|||||||
params.teamId = val.data.id
|
params.teamId = val.data.id
|
||||||
params.teamName = val.data.name
|
params.teamName = val.data.name
|
||||||
this.workOrderList.map(item => {
|
this.workOrderList.map(item => {
|
||||||
if (val.data.workOrderId === item.id) {
|
if (this.queryParams.workOrderId === item.id) {
|
||||||
this.workOrderName = item.name
|
this.workOrderName = item.name
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
params.workOrderId = val.data.workOrderId
|
params.workOrderId = this.queryParams.workOrderId
|
||||||
params.workOrderName = this.workOrderName
|
params.workOrderName = this.workOrderName
|
||||||
params.roomNameDict = val.data.roomNameDict
|
params.roomNameDict = val.data.roomNameDict
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
@ -1,97 +0,0 @@
|
|||||||
<template>
|
|
||||||
<el-form :inline="true" class="demo-form-inline">
|
|
||||||
<span class="blue-block"></span>
|
|
||||||
<el-form-item label="班次信息">
|
|
||||||
<el-select v-model="queryParams.classesId" placeholder="班次信息" style="width: 200px;" size="small" clearable>
|
|
||||||
<el-option
|
|
||||||
v-for="item in classesArr"
|
|
||||||
:key="item.id"
|
|
||||||
:label="(item.roomName?item.roomName:'')+'-'+item.name"
|
|
||||||
:value="item.id">
|
|
||||||
<span>{{ item.roomName }}-{{item.name}}</span>
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="班组信息">
|
|
||||||
<el-input v-model="queryParams.teamName" placeholder="班组信息" style="width: 200px;" clearable></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="上班时间">
|
|
||||||
<el-date-picker
|
|
||||||
v-model="queryParams.tiemStr"
|
|
||||||
type="daterange"
|
|
||||||
format='yyyy-MM-dd'
|
|
||||||
value-format='yyyy-MM-dd'
|
|
||||||
range-separator='-'
|
|
||||||
style="width: 250px;"
|
|
||||||
size="small">
|
|
||||||
</el-date-picker>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item>
|
|
||||||
<el-button type="primary" size="small" @click="search">查询</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
</template>
|
|
||||||
<script>
|
|
||||||
import { groupClassesListAll } from '@/api/monitoring/teamProduction'
|
|
||||||
export default {
|
|
||||||
name: 'searchArea',
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
// 查询参数
|
|
||||||
queryParams: {
|
|
||||||
classesId: '',
|
|
||||||
teamName: '',
|
|
||||||
tiemStr: ''
|
|
||||||
},
|
|
||||||
classesArr: [],
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
this.getGroupClass()
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
getGroupClass() {
|
|
||||||
groupClassesListAll().then(res => {
|
|
||||||
this.classesArr = res.data || []
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 查询
|
|
||||||
search() {
|
|
||||||
console.log(this.queryParams)
|
|
||||||
this.$emit('submit', this.queryParams)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<style lang="scss">
|
|
||||||
.demo-form-inline {
|
|
||||||
.el-date-editor .el-range__icon {
|
|
||||||
font-size: 16px;
|
|
||||||
color: #0B58FF;
|
|
||||||
}
|
|
||||||
.el-input__prefix .el-icon-date {
|
|
||||||
font-size: 16px;
|
|
||||||
color: #0B58FF;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
.separateStyle {
|
|
||||||
display: inline-block;
|
|
||||||
width: 1px;
|
|
||||||
height: 24px;
|
|
||||||
background: #E8E8E8;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
.demo-form-inline {
|
|
||||||
.blue-block {
|
|
||||||
display: inline-block;
|
|
||||||
width: 4px;
|
|
||||||
height: 16px;
|
|
||||||
background-color: #0B58FF;
|
|
||||||
border-radius: 1px;
|
|
||||||
margin-right: 8px;
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -1,12 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<!-- 搜索工作栏 -->
|
<!-- 搜索工作栏 -->
|
||||||
<search-area @submit="buttonClick"/>
|
<search-bar
|
||||||
<!-- <search-bar
|
|
||||||
:formConfigs="formConfig"
|
:formConfigs="formConfig"
|
||||||
ref="searchBarForm"
|
ref="searchBarForm"
|
||||||
@headBtnClick="buttonClick"
|
@headBtnClick="buttonClick"
|
||||||
/> -->
|
/>
|
||||||
<!-- 列表 -->
|
<!-- 列表 -->
|
||||||
<base-table
|
<base-table
|
||||||
:page="queryParams.pageNo"
|
:page="queryParams.pageNo"
|
||||||
@ -35,11 +34,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { groupTeamSchedulingPage } from '@/api/monitoring/teamProduction'
|
import { groupTeamSchedulingPage, groupClassesListAll } from '@/api/monitoring/teamProduction'
|
||||||
import { parseTime } from '@/utils/ruoyi'
|
import { parseTime } from '@/utils/ruoyi'
|
||||||
import TeamProductionDetail from './components/teamProductionDetail'
|
import TeamProductionDetail from './components/teamProductionDetail'
|
||||||
import { publicFormatter } from '@/utils/dict'
|
import { publicFormatter } from '@/utils/dict'
|
||||||
import SearchArea from './components/searchArea'
|
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
prop: 'roomNameDict',
|
prop: 'roomNameDict',
|
||||||
@ -141,11 +139,12 @@ export default {
|
|||||||
paramVisible: false
|
paramVisible: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: { TeamProductionDetail, SearchArea },
|
components: { TeamProductionDetail },
|
||||||
mounted() {
|
mounted() {
|
||||||
window.addEventListener('resize', () => {
|
window.addEventListener('resize', () => {
|
||||||
this.tableH = this.tableHeight(260)
|
this.tableH = this.tableHeight(260)
|
||||||
})
|
})
|
||||||
|
this.getGroupClass()
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -164,6 +163,11 @@ export default {
|
|||||||
this.total = res.data.total || 0
|
this.total = res.data.total || 0
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getGroupClass() {
|
||||||
|
groupClassesListAll().then(res => {
|
||||||
|
this.formConfig[0].selectOptions = res.data || []
|
||||||
|
})
|
||||||
|
},
|
||||||
handleClick(val) {
|
handleClick(val) {
|
||||||
console.log(val)
|
console.log(val)
|
||||||
this.paramVisible = true
|
this.paramVisible = true
|
||||||
|
@ -236,8 +236,13 @@ export default {
|
|||||||
btnName: '终止',
|
btnName: '终止',
|
||||||
showTip: '终止',
|
showTip: '终止',
|
||||||
showParam: {
|
showParam: {
|
||||||
type: '&',
|
type: '|',
|
||||||
data: [
|
data: [
|
||||||
|
{
|
||||||
|
type: 'equal',
|
||||||
|
name: 'status',
|
||||||
|
value: 2
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: 'equal',
|
type: 'equal',
|
||||||
name: 'status',
|
name: 'status',
|
||||||
|
Loading…
Reference in New Issue
Block a user