Commit 34aa44c6 authored by 吴志坤's avatar 吴志坤

页面改动

parent c3381046
<template>
<div class="app-container">
<el-form ref="queryForm" style="padding: 0 0 0 10px" :model="queryParams" :inline="true">
<el-form-item label="设备名称" prop="roleName">
<el-form-item label="设备编码" prop="equipmentCode">
<el-input
v-model="queryParams.roleName"
placeholder="请输入设备名称"
v-model="queryParams.equipmentCode"
placeholder="请输入设备编码"
clearable
:maxlength="30"
size="small"
......@@ -12,10 +12,20 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="设备编码" prop="roleKey">
<el-form-item label="lot" prop="lot">
<el-input
v-model="queryParams.roleKey"
placeholder="请输入设备编码"
placeholder="请输入设备lot"
clearable
size="small"
style="width: 150px"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="位置" prop="location">
<el-input
v-model="queryParams.location"
placeholder="请输入设备位置"
clearable
size="small"
style="width: 150px"
......@@ -40,43 +50,46 @@
<div class="placeholder" />
<div style="padding:5px 10px">
<div class="mb12 font-small-bold">设备管理列表</div>
<el-table v-loading="loading" border :data="roleList" @selection-change="handleSelectionChange">
<el-table-column label="名称" prop="roleName" :show-overflow-tooltip="true">
<el-table v-loading="loading" border :data="equipmentList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" />
<el-table-column type="index" label="序号" width="80" />
<el-table-column label="编码" prop="equipmentCode" width="120">
<template slot-scope="scope">
{{ scope.row.roleName || '-' }}
{{ scope.row.equipmentCode || '-' }}
</template>
</el-table-column>
<el-table-column label="编码" prop="roleKey">
<el-table-column label="lot" prop="lot" width="120">
<template slot-scope="scope">
{{ scope.row.roleKey || '-' }}
{{ scope.row.lot || '-' }}
</template>
</el-table-column>
<el-table-column label="lot" prop="roleSort">
<el-table-column label="位置" prop="location">
<template slot-scope="scope">
{{ scope.row.roleSort || '-' }}
{{ scope.row.location || '-' }}
</template>
</el-table-column>
<el-table-column label="位置" prop="roleSort">
<el-table-column label="厚度" prop="thickness">
<template slot-scope="scope">
{{ scope.row.roleSort || '-' }}
{{ scope.row.thickness || '-' }}
</template>
</el-table-column>
<el-table-column label="厚度" prop="roleSort">
<el-table-column label="创建员" prop="createBy">
<template slot-scope="scope">
{{ scope.row.roleSort || '-' }}
{{ scope.row.createBy || '-' }}
</template>
</el-table-column>
<el-table-column label="创建人" prop="roleSort">
<el-table-column label="操作时间" :show-overflow-tooltip="true" align="center" prop="createTime">
<template slot-scope="scope">
{{ scope.row.roleSort || '-' }}
<span>{{ scope.row.createTime | transformDateByFormat('YYYY-MM-DD HH:mm') }}</span>
</template>
</el-table-column>
<el-table-column label="创建时间" :show-overflow-tooltip="true" align="center" prop="createTime">
<el-table-column label="操作" class-name="small-padding fixed-width" width="150px">
<template slot-scope="scope">
<span>{{ scope.row.createDate | transformDateByFormat('YYYY-MM-DD HH:mm') }}</span>
<el-button :type="typeParent" :size="size" @click="handleDetail(scope.row)">
详情
</el-button>
</template>
</el-table-column>
</el-table>
</div>
<pagination
......@@ -130,6 +143,29 @@
<el-button type="primary" @click="submitForm">确 定</el-button>
</div>
</el-dialog>
<!-- TODO: 单项详情信息表单配置 -->
<el-dialog class="aboutSingleDetails" :title="title" :visible.sync="openDetails" width="700px" append-to-body>
<el-form ref="formDetails" :model="singleDetails" size="small" label-width="90px">
<el-form-item label="编码:" prop="processName">
<el-input v-model.trim="singleDetails.equipmentCode" :readonly="true" />
</el-form-item>
<el-form-item label="lot:" prop="workshop">
<el-input v-model.trim="singleDetails.lot" :readonly="true" />
</el-form-item>
<el-form-item label="位置:" prop="location">
<el-input v-model.trim="singleDetails.location" :readonly="true" />
</el-form-item>
<el-form-item label="厚度:" prop="thickness">
<el-input v-model.trim="singleDetails.thickness" :readonly="true" />
</el-form-item>
<el-form-item label="创建时间:" prop="createTime">
<el-input v-model.trim="singleDetails.createTime" :readonly="true" />
</el-form-item>
<el-form-item label="创建人:" prop="createBy">
<el-input v-model.trim="singleDetails.createBy" :readonly="true" />
</el-form-item>
</el-form>
</el-dialog>
</div>
</template>
......@@ -144,6 +180,20 @@ export default {
components: { Coolbutton },
data() {
return {
// TODO: 表单里的单项详情参数
singleDetails: {
equipmentName: '',
equipmentCode: '',
lot: '',
location: '',
thickness: '',
createBy: '',
createTime: ''
},
// 是否显示弹出层(数据详情)
openDetails: false,
// TODO: 模拟测试数据
equipmentList: [{ equipmentCode: '001', lot: 'xxx', location: '位置01', thickness: '50', createBy: '操作员01', createTime: new Date() }, { equipmentCode: '002', lot: 'xxx', location: '位置02', thickness: '70', createBy: '操作员02', createTime: new Date() }, { equipmentCode: '001', lot: 'xxx', location: '位置01', thickness: '50', createBy: '操作员01', createTime: new Date() }, { equipmentCode: '001', lot: 'xxx', location: '位置01', thickness: '50', createBy: '操作员01', createTime: new Date() }, { equipmentCode: '001', lot: 'xxx', location: '位置01', thickness: '50', createBy: '操作员01', createTime: new Date() }, { equipmentCode: '001', lot: 'xxx', location: '位置01', thickness: '50', createBy: '操作员01', createTime: new Date() }, { equipmentCode: '001', lot: 'xxx', location: '位置01', thickness: '50', createBy: '操作员01', createTime: new Date() }, { equipmentCode: '001', lot: 'xxx', location: '位置01', thickness: '50', createBy: '操作员01', createTime: new Date() }, { equipmentCode: '001', lot: 'xxx', location: '位置01', thickness: '50', createBy: '操作员01', createTime: new Date() }, { equipmentCode: '001', lot: 'xxx', location: '位置01', thickness: '50', createBy: '操作员01', createTime: new Date() }],
check: '盘点',
typeParent: 'text',
typePrimary: 'primary',
......@@ -282,6 +332,13 @@ export default {
// });
},
methods: {
// TODO: 获取所选行详情信息操作
handleDetail(row) {
this.singleDetails = this.formReset
this.singleDetails = row
this.title = '详情信息'
this.openDetails = !this.openDetails
},
handelTab(i, e) {
const that = this
if (!that.$refs['input' + i]) {
......@@ -608,6 +665,18 @@ export default {
}
</script>
<style lang="scss" scoped>
.aboutSingleDetails{
.el-form-item{
.el-input >>> .el-input__inner {
-webkit-appearance: none;
background-color: #FFF;
background-image: none;
border-radius: 4px;
border: 0;
width: 100%;
}
}
}
.app-container {
font-size: 18px;
padding: 0;
......
This diff is collapsed.
<template>
<div class="app-container">
<el-form ref="queryForm" style="padding: 0 0 0 10px" :model="queryParams" :inline="true">
<el-form-item label="设备名称" prop="roleName">
<el-form-item label="编码" prop="equipmentCode">
<el-input
v-model="queryParams.roleName"
placeholder="请输入设备名称"
v-model="queryParams.equipmentCode"
placeholder="请输入编码"
clearable
:maxlength="30"
size="small"
......@@ -12,10 +12,20 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="设备编码" prop="roleKey">
<el-form-item label="lot" prop="lot">
<el-input
v-model="queryParams.roleKey"
placeholder="请输入设备编码"
placeholder="请输入设备lot"
clearable
size="small"
style="width: 150px"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="位置" prop="location">
<el-input
v-model="queryParams.location"
placeholder="请输入设备位置"
clearable
size="small"
style="width: 150px"
......@@ -30,7 +40,7 @@
<coolbutton
style="padding: 8px 7px;"
:type="typePrimary"
:name="check"
:name="addProcess"
:size="smallSize"
:icon="addIcon"
/>
......@@ -40,40 +50,42 @@
<div class="placeholder" />
<div style="padding:5px 10px">
<div class="mb12 font-small-bold">设备管理列表</div>
<el-table v-loading="loading" border :data="roleList" @selection-change="handleSelectionChange">
<el-table-column label="名称" prop="roleName" :show-overflow-tooltip="true">
<el-table v-loading="loading" border :data="processList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" />
<el-table-column type="index" label="序号" width="80" />
<el-table-column label="工序名称" prop="processCode" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.roleName || '-' }}
{{ scope.row.processCode || '-' }}
</template>
</el-table-column>
<el-table-column label="编码" prop="roleKey">
<el-table-column label="编码" prop="lot">
<template slot-scope="scope">
{{ scope.row.roleKey || '-' }}
{{ scope.row.lot || '-' }}
</template>
</el-table-column>
<el-table-column label="lot" prop="roleSort">
<el-table-column label="位置" prop="location">
<template slot-scope="scope">
{{ scope.row.roleSort || '-' }}
{{ scope.row.location || '-' }}
</template>
</el-table-column>
<el-table-column label="位置" prop="roleSort">
<el-table-column label="位置" prop="location">
<template slot-scope="scope">
{{ scope.row.roleSort || '-' }}
{{ scope.row.location || '-' }}
</template>
</el-table-column>
<el-table-column label="厚度" prop="roleSort">
<el-table-column label="厚度" prop="thickness">
<template slot-scope="scope">
{{ scope.row.roleSort || '-' }}
{{ scope.row.thickness || '-' }}
</template>
</el-table-column>
<el-table-column label="创建人" prop="roleSort">
<el-table-column label="创建人" prop="createBy">
<template slot-scope="scope">
{{ scope.row.roleSort || '-' }}
{{ scope.row.createBy || '-' }}
</template>
</el-table-column>
<el-table-column label="创建时间" :show-overflow-tooltip="true" align="center" prop="createTime">
<template slot-scope="scope">
<span>{{ scope.row.createDate | transformDateByFormat('YYYY-MM-DD HH:mm') }}</span>
<span>{{ scope.row.createTime | transformDateByFormat('YYYY-MM-DD HH:mm') }}</span>
</template>
</el-table-column>
......@@ -100,9 +112,6 @@
<el-input-number v-model="form.roleSort" style="width: 100%" controls-position="right" :min="0" />
</el-form-item>
<el-form-item label="设备批次">
<!-- <el-checkbox v-model="menuExpand" @change="handleCheckedTreeExpand($event, 'menu')">展开/折叠</el-checkbox>-->
<!-- <el-checkbox v-model="menuNodeAll" @change="handleCheckedTreeNodeAll($event, 'menu')">全选/全不选</el-checkbox>-->
<!-- <el-checkbox v-model="form.menuCheckStrictly" @change="handleCheckedTreeConnect($event, 'menu')">父子联动</el-checkbox>-->
<el-tree
ref="menu"
class="tree-border"
......@@ -144,7 +153,21 @@ export default {
components: { Coolbutton },
data() {
return {
check: '盘点',
// TODO: 表单里的单项详情参数
singleDetails: {
equipmentName: '',
equipmentCode: '',
lot: '',
location: '',
thickness: '',
createBy: '',
createTime: ''
},
// 是否显示弹出层(数据详情)
openDetails: false,
// TODO: 模拟测试数据
processList: [{ processCode: '001', lot: 'xxx', location: '位置01', thickness: '50', createBy: '操作员01', createTime: new Date() }, { processCode: '002', lot: 'xxx', location: '位置02', thickness: '70', createBy: '操作员02', createTime: new Date() }, { processCode: '001', lot: 'xxx', location: '位置01', thickness: '50', createBy: '操作员01', createTime: new Date() }, { processCode: '001', lot: 'xxx', location: '位置01', thickness: '50', createBy: '操作员01', createTime: new Date() }, { processCode: '001', lot: 'xxx', location: '位置01', thickness: '50', createBy: '操作员01', createTime: new Date() }, { processCode: '001', lot: 'xxx', location: '位置01', thickness: '50', createBy: '操作员01', createTime: new Date() }, { processCode: '001', lot: 'xxx', location: '位置01', thickness: '50', createBy: '操作员01', createTime: new Date() }, { processCode: '001', lot: 'xxx', location: '位置01', thickness: '50', createBy: '操作员01', createTime: new Date() }, { processCode: '001', lot: 'xxx', location: '位置01', thickness: '50', createBy: '操作员01', createTime: new Date() }, { processCode: '001', lot: 'xxx', location: '位置01', thickness: '50', createBy: '操作员01', createTime: new Date() }],
addProcess: '入库',
typeParent: 'text',
typePrimary: 'primary',
typeSuccess: 'success',
......@@ -282,6 +305,13 @@ export default {
// });
},
methods: {
// TODO: 获取所选行详情信息操作
handleDetail(row) {
this.singleDetails = this.formReset
this.singleDetails = row
this.title = '详情信息'
this.openDetails = !this.openDetails
},
handelTab(i, e) {
const that = this
if (!that.$refs['input' + i]) {
......
......@@ -39,17 +39,17 @@
<el-form-item />
</div>
</el-form>
<div class="placeholder" />
<div class="Role" style="width: 100%; height: 400px; display: flex; padding-left: 100px">
<div class="placeholder"></div>
<div class="Role" style="width: 100%; height: 600px; display: flex; padding-left: 50px">
<!--左边两个图-->
<div class="left-charts" style="width: 100%; height: 100%; display: flex; flex-direction: column;">
<div id="myChart1" style="width: 50%; height: 50%;"></div>
<div id="myChart2" style="width: 50%; height: 50%;"></div>
<div class="left-charts" style="width: 50%; display: flex; flex-direction: column;">
<div id="myChart1" style="flex: 1; margin-bottom: 100px;"></div>
<div id="myChart2" style="flex: 1;"></div>
</div>
<!--右边两个图-->
<div class="right-charts" style="width: 100%; height: 100%; display: flex; flex-direction: column;">
<div id="myChart5" style="width: 50%; height: 50%;"></div>
<div id="myChart3" style="width: 50%; height: 50%;"></div>
<div class="right-charts" style="width: 50%; display: flex; flex-direction: column;">
<div id="myChart5" style="flex: 1; margin-bottom: 60px;"></div>
<div id="myChart3" style="flex: 1;"></div>
</div>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment