yemianduobankuaiyangshixiugai

This commit is contained in:
shijing 2022-03-31 11:18:29 +08:00
parent 5d21c4e72e
commit e9cdb49787
4 changed files with 260 additions and 248 deletions

View File

@ -47,21 +47,21 @@
v-el-height-adaptive-table="{bottomOffset: 42}" v-el-height-adaptive-table="{bottomOffset: 42}"
> >
<el-table-column type="index" width="50"/> <el-table-column type="index" width="50"/>
<el-table-column label="设备名称" prop="name" width="120" show-overflow-tooltip> <el-table-column label="设备名称" prop="name" min-width="120" show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column label="设备编号" prop="number" width="120"> <el-table-column label="设备编号" prop="number" min-width="120">
</el-table-column> </el-table-column>
<el-table-column label="型号规格" prop="model" width="120"> <el-table-column label="型号规格" prop="model" min-width="120">
</el-table-column> </el-table-column>
<el-table-column label="生产厂及国别" prop="factory" width="120" show-overflow-tooltip> <el-table-column label="生产厂及国别" prop="factory" min-width="120" show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column label="生产日期" prop="production_date" width="120"> <el-table-column label="生产日期" prop="production_date" min-width="120">
</el-table-column> </el-table-column>
<el-table-column label="购置日期" prop="buy_date" width="120"> <el-table-column label="购置日期" prop="buy_date" min-width="120">
</el-table-column> </el-table-column>
<el-table-column label="数量" prop="count" width="120"> <el-table-column label="数量" prop="count" min-width="120">
</el-table-column> </el-table-column>
<el-table-column label="状态" width="120"> <el-table-column label="状态" min-width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.state===10" type="success"> <el-tag v-if="scope.row.state===10" type="success">
{{ state_[scope.row.state] }} {{ state_[scope.row.state] }}
@ -77,16 +77,16 @@
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="技术指标" width="120" show-overflow-tooltip> <el-table-column label="技术指标" min-width="120" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.parameter }}</template> <template slot-scope="scope">{{ scope.row.parameter }}</template>
</el-table-column> </el-table-column>
<el-table-column label="保管人" width="120"> <el-table-column label="保管人" min-width="120">
<template slot-scope="scope" v-if="scope.row.keeper_">{{ scope.row.keeper_.username }}</template> <template slot-scope="scope" v-if="scope.row.keeper_">{{ scope.row.keeper_.username }}</template>
</el-table-column> </el-table-column>
<el-table-column label="存放位置" width="120" show-overflow-tooltip> <el-table-column label="存放位置" min-width="120" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.place }}</template> <template slot-scope="scope">{{ scope.row.place }}</template>
</el-table-column> </el-table-column>
<el-table-column label="绑定工序" width="120" show-overflow-tooltip> <el-table-column label="绑定工序" min-width="160" show-overflow-tooltip>
<template slot-scope="scope" v-if="scope.row.step_"> <template slot-scope="scope" v-if="scope.row.step_">
<el-tag v-for="item in scope.row.step_" <el-tag v-for="item in scope.row.step_"
:key="item.number" :key="item.number"
@ -101,7 +101,7 @@
<el-table-column <el-table-column
align="center" align="center"
label="操作" label="操作"
width="120px" min-width="120px"
fixed="right" fixed="right"
> >
<template slot-scope="scope"> <template slot-scope="scope">

View File

@ -16,9 +16,10 @@
:data="subPlanList" :data="subPlanList"
fit fit
style="width: 100%" style="width: 100%"
height="100"
stripe stripe
border border
height="100"
highlight-current-row
v-el-height-adaptive-table="{bottomOffset: 50}" v-el-height-adaptive-table="{bottomOffset: 50}"
> >
<el-table-column type="index" width="50"/> <el-table-column type="index" width="50"/>

View File

@ -9,8 +9,9 @@
border border
fit fit
stripe stripe
height="100"
highlight-current-row highlight-current-row
max-height="600" v-el-height-adaptive-table="{bottomOffset: 60}"
> >
<el-table-column type="index" width="50"/> <el-table-column type="index" width="50"/>
<el-table-column label="成品名称"> <el-table-column label="成品名称">
@ -53,7 +54,6 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="wproductList.count > 0"
:total="wproductList.count" :total="wproductList.count"
:page.sync="listQuery.page" :page.sync="listQuery.page"
:limit.sync="listQuery.page_size" :limit.sync="listQuery.page_size"
@ -73,8 +73,9 @@
border border
fit fit
stripe stripe
height="100"
highlight-current-row highlight-current-row
max-height="600" v-el-height-adaptive-table="{bottomOffset: 60}"
> >
<el-table-column type="selection" width="55"></el-table-column> <el-table-column type="selection" width="55"></el-table-column>
<el-table-column type="index" width="50"/> <el-table-column type="index" width="50"/>
@ -124,7 +125,6 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="wproductList1.count > 0"
:total="wproductList1.count" :total="wproductList1.count"
:page.sync="listQuery1.page" :page.sync="listQuery1.page"
:limit.sync="listQuery1.page_size" :limit.sync="listQuery1.page_size"

View File

@ -1,5 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-card>
<el-tabs v-model="activeName" @tab-click="handleClick" type="border-card"> <el-tabs v-model="activeName" @tab-click="handleClick" type="border-card">
<el-tab-pane <el-tab-pane
v-for="item in processOption" v-for="item in processOption"
@ -13,7 +14,7 @@
border border
stripe stripe
style="width: 100%" style="width: 100%"
height="250" :height="tableHeight"
highlight-current-row highlight-current-row
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
> >
@ -115,6 +116,10 @@
:limit.sync="listQuery.page_size" :limit.sync="listQuery.page_size"
@pagination="subproductionplanList" @pagination="subproductionplanList"
/> />
</el-tab-pane>
</el-tabs>
</el-card>
<el-card>
<el-row :gutter="2"> <el-row :gutter="2">
<el-col :span="12"> <el-col :span="12">
<el-card class="box-card"> <el-card class="box-card">
@ -155,41 +160,41 @@
fit fit
stripe stripe
style="width: 100%" style="width: 100%"
max-height="300" :height="secondTableHeight"
:data="wproductData" :data="wproductData"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<el-table-column type="selection" width="40"></el-table-column> <el-table-column type="selection" width="40"></el-table-column>
<el-table-column type="index" width="50"/> <el-table-column type="index" width="50"/>
<el-table-column label="子计划编号" width="100" show-overflow-tooltip> <el-table-column label="子计划编号" min-width="100" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.number }}</template>> <template slot-scope="scope">{{ scope.row.number }}</template>>
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.subproduction_plan_.number}} {{scope.row.subproduction_plan_.number}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="玻璃编号" prop="number" width="100" show-overflow-tooltip> <el-table-column label="玻璃编号" prop="number" min-width="100" show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column label="玻璃状态" width="100" show-overflow-tooltip> <el-table-column label="玻璃状态" min-width="100" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.material_.name}} {{scope.row.material_.name}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="所在子工序" width="100" show-overflow-tooltip> <el-table-column label="所在子工序" min-width="100" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.step_.name}} {{scope.row.step_.name}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="进行状态" width="100" show-overflow-tooltip> <el-table-column label="进行状态" min-width="100" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
{{actstate_[scope.row.act_state]}} {{actstate_[scope.row.act_state]}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="不合格标记" width="100"> <el-table-column label="不合格标记" min-width="100">
<template slot-scope="scope"> <template slot-scope="scope">
{{ ng_sign_[scope.row.ng_sign] }} {{ ng_sign_[scope.row.ng_sign] }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="更新时间" prop="update_time" width="160"> <el-table-column label="更新时间" prop="update_time" min-width="160">
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-card> </el-card>
@ -205,7 +210,7 @@
fit fit
stripe stripe
style="width: 100%" style="width: 100%"
max-height="300" :height="tableHeight"
> >
<el-table-column type="index" width="50"/> <el-table-column type="index" width="50"/>
<el-table-column label="子计划编号" min-width="100" show-overflow-tooltip> <el-table-column label="子计划编号" min-width="100" show-overflow-tooltip>
@ -231,8 +236,7 @@
</el-card> </el-card>
</el-col> </el-col>
</el-row> </el-row>
</el-tab-pane> </el-card>
</el-tabs>
<el-dialog <el-dialog
title="半成品报废" title="半成品报废"
:close-on-click-modal="false" :close-on-click-modal="false"
@ -781,7 +785,6 @@
4: "已完成", 4: "已完成",
}, },
listLoading: true, listLoading: true,
listLoading: true,
id: "", id: "",
dialogTableVisible: false, dialogTableVisible: false,
dialogVisible: false, dialogVisible: false,
@ -828,6 +831,8 @@
{lable: "其他", value: 40}, {lable: "其他", value: 40},
], ],
count: null, count: null,
tableHeight: null,
secondTableHeight: null,
}; };
}, },
process: "", process: "",
@ -1187,5 +1192,11 @@
}); });
}, },
}, },
mounted() {
let H = document.getElementsByClassName('app-main')[0].clientHeight;
let h = H/2-85;
this.tableHeight = h+'px';
this.secondTableHeight = h-36+'px';
}
}; };
</script> </script>