denglijiekou
This commit is contained in:
parent
c35051df0c
commit
938ebf1e28
|
@ -263,10 +263,10 @@ export const asyncRoutes = [
|
|||
meta: { title: '生产设备', icon: 'example', perms: ['em_equipment'] }
|
||||
},
|
||||
{
|
||||
path: 'detection ',
|
||||
name: 'detection ',
|
||||
component: () => import('@/views/em/detection'),
|
||||
meta: { title: '监视和测量设备', icon: 'example', perms: ['em_detection'] }
|
||||
path: 'monitoring ',
|
||||
name: 'monitoring ',
|
||||
component: () => import('@/views/em/monitoring'),
|
||||
meta: { title: '监视和测量设备', icon: 'example', perms: ['em_monitoring'] }
|
||||
},
|
||||
{
|
||||
path: 'record',
|
||||
|
|
|
@ -820,9 +820,7 @@
|
|||
this.getStatisticsData();
|
||||
this.getNoticeData();
|
||||
},
|
||||
updated() {
|
||||
this.drawChart()
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
>
|
||||
<el-input
|
||||
v-model="listQuery.search"
|
||||
placeholder="设备名称/设备编号/备注"
|
||||
placeholder="检测设备名称/检测设备编号/备注"
|
||||
style="width: 300px"
|
||||
class="filter-item"
|
||||
@keyup.enter.native="handleFilter"
|
||||
|
@ -40,7 +40,7 @@
|
|||
v-el-height-adaptive-table="{ bottomOffset: 42 }"
|
||||
>
|
||||
<el-table-column type="index" width="50" />
|
||||
<el-table-column label="设备编号">
|
||||
<el-table-column label="设备编号" width="100">
|
||||
<template slot-scope="scope">{{ scope.row.number }}</template>
|
||||
</el-table-column>
|
||||
|
||||
|
@ -70,7 +70,7 @@
|
|||
<el-table-column label="设备名称">
|
||||
<template slot-scope="scope">{{ scope.row.name }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="型号规格">
|
||||
<el-table-column label="型号规格" width="100">
|
||||
<template slot-scope="scope">{{ scope.row.model }}</template>
|
||||
</el-table-column>
|
||||
|
||||
|
@ -89,7 +89,7 @@
|
|||
scope.row.keeper_.username
|
||||
}}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="存放位置">
|
||||
<el-table-column label="存放位置" width="100">
|
||||
<template slot-scope="scope">{{ scope.row.place }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="绑定工序">
|
||||
|
@ -199,9 +199,9 @@
|
|||
>
|
||||
<el-option
|
||||
v-for="item in mgmoptions"
|
||||
:key="item.value"
|
||||
:key="item.id"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
:value="item.id"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
|
@ -226,9 +226,9 @@
|
|||
>
|
||||
<el-option
|
||||
v-for="item in keeperOptions"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
|
@ -307,8 +307,7 @@
|
|||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
<style>
|
||||
</style>
|
||||
|
||||
<script>
|
||||
import {
|
||||
getpEquipmentList,
|
||||
|
@ -317,10 +316,8 @@ import {
|
|||
deleteEquipment,
|
||||
} from "@/api/equipment";
|
||||
import { getUserList } from "@/api/user";
|
||||
import { getOrgList } from "@/api/org";
|
||||
import checkPermission from "@/utils/permission";
|
||||
|
||||
import { genTree } from "@/utils";
|
||||
import Pagination from "@/components/Pagination"; // secondary package based on el-pagination
|
||||
const defaultequipment = {
|
||||
name: "",
|
||||
|
@ -411,7 +408,7 @@ export default {
|
|||
type: [{ required: true, message: "请输入", trigger: "blur" }],
|
||||
model: [{ required: true, message: "请输入", trigger: "blur" }],
|
||||
state: [{ required: true, message: "请选择", trigger: "blur" }],
|
||||
belong_dept: [{ required: true, message: "请选择", trigger: "blur" }],
|
||||
|
||||
},
|
||||
datatime: null,
|
||||
};
|
||||
|
@ -422,7 +419,7 @@ export default {
|
|||
this.getList();
|
||||
|
||||
this.getUserList();
|
||||
this.getOrgList();
|
||||
|
||||
},
|
||||
methods: {
|
||||
checkPermission,
|
||||
|
@ -473,16 +470,11 @@ export default {
|
|||
//组员列表
|
||||
getUserList() {
|
||||
getUserList({ page: 0 }).then((res) => {
|
||||
this.keeperOptions = genTree(res.data);
|
||||
});
|
||||
},
|
||||
//部门列表
|
||||
getOrgList() {
|
||||
getOrgList({ page: 0 }).then((res) => {
|
||||
this.depOptions = genTree(res.data);
|
||||
this.keeperOptions = res.data;
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
handleFilter() {
|
||||
this.listQuery.page = 1;
|
||||
this.getList();
|
|
@ -8,67 +8,66 @@
|
|||
border
|
||||
fit
|
||||
stripe
|
||||
highlight-current-row
|
||||
height="620"
|
||||
v-el-height-adaptive-table="{ bottomOffset: 40 }"
|
||||
>
|
||||
<el-table-column type="index" width="50" />
|
||||
<el-table-column label="任务编号">
|
||||
<el-table-column label="任务编号" align="center">
|
||||
<template slot-scope="scope">{{ scope.row.number }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="产品名称">
|
||||
<el-table-column label="产品名称" align="center">
|
||||
<template slot-scope="scope">{{
|
||||
scope.row.product_.name
|
||||
}}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="规格型号">
|
||||
<el-table-column label="规格型号" align="center">
|
||||
<template slot-scope="scope">{{
|
||||
scope.row.product_.specification
|
||||
}}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="合格率">
|
||||
<el-table-column label="冷加工">
|
||||
<el-table-column label="合格率" align="center">
|
||||
<el-table-column label="冷加工" align="center">
|
||||
<template slot-scope="scope" v-if="scope.row.process_json['01']"
|
||||
>{{ scope.row.process_json["01"].rate }}%</template
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column label="热弯">
|
||||
<el-table-column label="热弯" align="center">
|
||||
<template slot-scope="scope" v-if="scope.row.process_json['02']"
|
||||
>{{ scope.row.process_json["02"].rate }}%</template
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column label="化学钢化">
|
||||
<el-table-column label="化学钢化" align="center">
|
||||
<template slot-scope="scope" v-if="scope.row.process_json['03']"
|
||||
>{{ scope.row.process_json["03"].rate }}%</template
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column label="镀膜">
|
||||
<el-table-column label="镀膜" align="center">
|
||||
<template slot-scope="scope" v-if="scope.row.process_json['05']"
|
||||
>{{ scope.row.process_json["05"].rate }}%</template
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column label="夹层">
|
||||
<el-table-column label="夹层" align="center">
|
||||
<template slot-scope="scope" v-if="scope.row.process_json['06']"
|
||||
>{{ scope.row.process_json["06"].rate }}%</template
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column label="包边">
|
||||
<el-table-column label="包边" align="center">
|
||||
<template slot-scope="scope" v-if="scope.row.process_json['07']"
|
||||
>{{ scope.row.process_json["07"].rate }}%</template
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column label="装框">
|
||||
<el-table-column label="装框" align="center">
|
||||
<template slot-scope="scope" v-if="scope.row.process_json['08']"
|
||||
>{{ scope.row.process_json["08"].rate }}%</template
|
||||
>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column label="创建时间">
|
||||
<el-table-column label="创建时间" align="center">
|
||||
<template slot-scope="scope">{{
|
||||
scope.row.create_time
|
||||
}}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作">
|
||||
<el-table-column label="操作" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-link
|
||||
v-if="checkPermission(['material_update'])"
|
||||
|
|
|
@ -28,15 +28,8 @@
|
|||
<el-table-column label="所在仓库">
|
||||
<template slot-scope="scope">{{ scope.row.warehouse_.name }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="是否已军检">
|
||||
<template slot-scope="scope">
|
||||
|
||||
|
||||
<el-tag v-if="scope.row.is_mtested == false">未军检</el-tag>
|
||||
<el-tag v-else>已军检</el-tag></template>
|
||||
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="军检">
|
||||
<template slot-scope="scope">
|
||||
|
||||
|
|
|
@ -23,12 +23,7 @@
|
|||
<el-table-column label="型号规格">
|
||||
<template slot-scope="scope" v-if="scope.row.material_">{{ scope.row.material_.specification }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="军检状态">
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="scope.row.is_mtested==false">未军检</el-tag>
|
||||
<el-tag v-if="scope.row.is_mtested==true">已军检</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="军检结论">
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="scope.row.is_mtestok==false">不合格</el-tag>
|
||||
|
|
|
@ -25,12 +25,7 @@
|
|||
<el-table-column label="型号规格">
|
||||
<template slot-scope="scope" v-if="scope.row.material_">{{ scope.row.material_.specification }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="军检状态">
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="scope.row.is_mtested==false">未军检</el-tag>
|
||||
<el-tag v-if="scope.row.is_mtested==true">已军检</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="军检结论">
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="scope.row.is_mtestok==false">不合格</el-tag>
|
||||
|
|
|
@ -131,18 +131,13 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="设备状态">
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="scope.row.state===0" type="success">
|
||||
<el-tag v-if="scope.row.equip_.type===1&&scope.row.equip_.state===10" type="success">
|
||||
{{ state_[scope.row.equip_.state] }}
|
||||
</el-tag>
|
||||
<el-tag v-else-if="scope.row.state===1" type="warning">
|
||||
{{ state_[scope.row.equip_.state] }}
|
||||
</el-tag>
|
||||
<el-tag v-else-if="scope.row.state===2" >
|
||||
{{ state_[scope.row.equip_.state] }}
|
||||
</el-tag>
|
||||
<el-tag v-else type="danger">
|
||||
{{ state_[scope.row.equip_.state] }}
|
||||
<el-tag v-else-if="scope.row.equip_.type===2&&scope.row.equip_.state===10" type="warning">
|
||||
{{ state2_[scope.row.equip_.state] }}
|
||||
</el-tag>
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
|
@ -572,8 +567,12 @@
|
|||
</div>
|
||||
</template>
|
||||
<style scoped>
|
||||
.word-wrap {
|
||||
padding: 25px;
|
||||
};
|
||||
.box-card {
|
||||
height: 300px;
|
||||
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
|
@ -620,10 +619,15 @@ export default {
|
|||
page_size: 20,
|
||||
},
|
||||
state_:{
|
||||
0:'完好',
|
||||
1:'限用',
|
||||
2:'在修',
|
||||
3:'禁用',
|
||||
10:'完好',
|
||||
20:'限用',
|
||||
30:'在修',
|
||||
40:'禁用',
|
||||
},
|
||||
state2_: {
|
||||
10: "合格",
|
||||
|
||||
40: "禁用",
|
||||
},
|
||||
scrap: [
|
||||
{ lable: "使用", value: true },
|
||||
|
|
Loading…
Reference in New Issue