1. 修改整理大盒子

This commit is contained in:
梁州 2025-04-15 13:23:45 +08:00
parent 59f6d0d1c2
commit 555ce81fa4
3 changed files with 58 additions and 1 deletions

2
src/env.d.ts vendored
View File

@ -1,2 +1,2 @@
declare module "vue3-print-nb"; declare module "vue3-print-nb";
declare module'element-plus/dist/locale/zh-cn.mjs'; declare module 'element-plus/dist/locale/zh-cn.mjs';

View File

@ -458,6 +458,31 @@ export default {
margin-top: 25px; margin-top: 25px;
} }
.display-form-div-left {
display: inline-flex;
justify-content: center;
width: 240px;
margin: 5px;
padding: 5px;
border: 5px double #000000;
}
.display-form-div-right {
display: inline-flex;
justify-content: center;
width: 60px;
margin: 5px;
padding: 5px;
background-color: #CCCCCC;
}
.display-form-text-right {
align-self: center;
font-weight: bold;
font-size: 25px;
}
.header-row { .header-row {
display: flex; display: flex;
/* align-items: center; */ /* align-items: center; */

View File

@ -15,6 +15,8 @@
placeholder="请选择灯光状态" :options="lightStatusOptions" @change="search()"></el-select-v2> placeholder="请选择灯光状态" :options="lightStatusOptions" @change="search()"></el-select-v2>
<el-select-v2 v-model="workStatusQuery" style="width: 158px; margin-right: 10px;" <el-select-v2 v-model="workStatusQuery" style="width: 158px; margin-right: 10px;"
placeholder="请选择工作状态" :options="workStatusOptions" @change="search()"></el-select-v2> placeholder="请选择工作状态" :options="workStatusOptions" @change="search()"></el-select-v2>
<el-select-v2 v-model="machineTypeQuery" style="width: 158px; margin-right: 10px;"
placeholder="请选择机型" :options="workStatusOptions" @change="search()"></el-select-v2>
<el-button type="primary" @click="search()">搜索</el-button> <el-button type="primary" @click="search()">搜索</el-button>
<el-button type="warning" @click="reset()">重置</el-button> <el-button type="warning" @click="reset()">重置</el-button>
</el-row> </el-row>
@ -42,6 +44,8 @@
<el-table-column prop="pickedNum" label="已拣数量" min-width="120px" /> <el-table-column prop="pickedNum" label="已拣数量" min-width="120px" />
<el-table-column prop="lightStatus" label="亮灯状态" :formatter="lightStatusFormat" min-width="120px" /> <el-table-column prop="lightStatus" label="亮灯状态" :formatter="lightStatusFormat" min-width="120px" />
<el-table-column prop="workStatus" label="工作状态" :formatter="workStatusFormat" min-width="120px" /> <el-table-column prop="workStatus" label="工作状态" :formatter="workStatusFormat" min-width="120px" />
<el-table-column prop="machineType" label="机型" :formatter="machineTypeFormat" min-width="120px" />
<el-table-column prop="planDate" label="计划日期" :formatter="dateFormat" min-width="120px" />
<el-table-column prop="createTime" label="创建时间" :formatter="timeFormat" min-width="120px" <el-table-column prop="createTime" label="创建时间" :formatter="timeFormat" min-width="120px"
show-overflow-tooltip /> show-overflow-tooltip />
<el-table-column prop="finishTime" label="完成时间" :formatter="timeFormat" min-width="120px" <el-table-column prop="finishTime" label="完成时间" :formatter="timeFormat" min-width="120px"
@ -246,6 +250,10 @@ export default {
value: -99, value: -99,
label: '全部' label: '全部'
}, },
{
value: -1,
label: '暂存'
},
{ {
value: 0, value: 0,
label: '未开始' label: '未开始'
@ -259,6 +267,20 @@ export default {
label: '已完成' label: '已完成'
} }
], ],
machineTypeOptions: [
{
value: -99,
label: '全部'
},
{
value: 1,
label: '装载机'
},
{
value: 2,
label: '平地机'
}
],
uploadDialogVisible: false, uploadDialogVisible: false,
uploadRecord: reactive({ uploadRecord: reactive({
fileName: '', fileName: '',
@ -328,6 +350,16 @@ export default {
return '未知' return '未知'
} }
}, },
machineTypeFormat: (row, column, cellValue, index) => {
switch (cellValue) {
case 1:
return '装载机'
case 2:
return '平地机'
default:
return '异常'
}
},
reset() { reset() {
this.standIdQuery = '' this.standIdQuery = ''
this.workOrderQuery = '' this.workOrderQuery = ''