成品发货

This commit is contained in:
2023-11-03 16:59:07 +08:00
parent 013c08710c
commit 046a5eea32
20 changed files with 2253 additions and 109 deletions

View File

@@ -34,36 +34,42 @@
</div>
</template>
<script>
import { groupTeamSchedulingPage } from '@/api/monitoring/teamProduction'
import { groupTeamSchedulingPage, groupClassesListAll } from '@/api/monitoring/teamProduction'
import { parseTime } from '@/utils/ruoyi'
import TeamProductionDetail from './components/teamProductionDetail'
const tableProps = [
{
prop: 'createTime',
label: '排班创建时间',
filter: parseTime
filter: parseTime,
minWidth: 150
},
{
prop: 'startDay',
label: '上班日期'
label: '上班日期',
minWidth: 100
},
{
prop: 'startTime',
label: '上班时间',
filter: parseTime
filter: parseTime,
minWidth: 150
},
{
prop: 'endTime',
label: '下班时间',
filter: parseTime
filter: parseTime,
minWidth: 150
},
{
prop: 'classesName',
label: '班次名称'
label: '班次名称',
showOverflowtooltip: true
},
{
prop: 'teamName',
label: '班组名称'
label: '班组名称',
showOverflowtooltip: true
}
]
const tableBtn = [
@@ -93,8 +99,9 @@ export default {
type: 'datePicker',
label: '上班日期',
dateType: 'date',
format: 'yyyy-MM-dd HH:mm:ss',
valueFormat: "timestamp",
format: 'yyyy-MM-dd',
valueFormat: 'yyyy-MM-dd',
// valueFormat: "timestamp",
param: 'startDay',
defaultSelect: '',
width: 200
@@ -117,7 +124,7 @@ export default {
tableProps,
tableBtn,
list: [],
tableH: this.tableHeight(220),
tableH: this.tableHeight(260),
total: 0,
paramVisible: false
}
@@ -125,25 +132,30 @@ export default {
components: { TeamProductionDetail },
mounted() {
window.addEventListener('resize', () => {
this.tableH = this.tableHeight(220)
this.tableH = this.tableHeight(260)
})
this.getGroupClass()
this.getList()
},
methods: {
buttonClick(val) {
this.queryParams.pageNo = 1;
this.queryParams.cnName = val.cnName
this.queryParams.classesId = val.classesId
this.queryParams.teamName = val.teamName
this.queryParams.startDay = val.startDay
this.getList()
},
getList() {
groupTeamSchedulingPage().then(res => {
groupTeamSchedulingPage({...this.queryParams}).then(res => {
console.log(res)
this.list = res.data.list || []
this.total = res.data.total || 0
})
},
getGroupClass() {
groupClassesListAll().then(res => {
this.formConfig[0].selectOptions = res.data || []
})
},
handleClick(val) {
console.log(val)