rev:设备管理页面维护
This commit is contained in:
@@ -93,9 +93,9 @@
|
||||
<el-table-column prop="hours" label="实际生产耗时(h)" width="120" :formatter="crud.formatNum0"/>
|
||||
<el-table-column prop="theory" label="设计产能(ph)" width="120" />
|
||||
<el-table-column prop="realty" label="实际产能(ph)" width="120" />
|
||||
<el-table-column prop="realty" label="产能利用率(%)" width="120" >
|
||||
<el-table-column label="产能利用率(%)" width="120" >
|
||||
<template slot-scope="scope" :formatter="crud.formatNum0">
|
||||
<span>{{ Number(scope.row.realty/scope.row.theory).toFixed(3)}}</span>
|
||||
<span>{{ Number(scope.row.realty*100/scope.row.theory).toFixed(3)}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="orders" label="工单列表" width="150" show-overflow-tooltip/>
|
||||
|
||||
@@ -3,11 +3,10 @@
|
||||
title="工序设备"
|
||||
append-to-body
|
||||
:visible.sync="dialogVisible"
|
||||
destroy-on-close
|
||||
width="80%"
|
||||
>
|
||||
<el-card class="box-card" shadow="never">
|
||||
<el-form ref="form" :inline="true" :model="form" :rules="rules" disabled size="mini">
|
||||
<el-form ref="form" :inline="true" :model="form" disabled size="mini">
|
||||
<el-form-item label="所属工序">
|
||||
<el-input v-model="form.workprocedure_name" style="width: 120px;" />
|
||||
</el-form-item>
|
||||
@@ -94,40 +93,18 @@ import qualityanilysis from '@/views/wms/analysis_manage/qlmanage/qualityanilysi
|
||||
import CRUD, { header, presenter } from '@crud/crud'
|
||||
import rrOperation from '@crud/RR.operation'
|
||||
import pagination from '@crud/Pagination'
|
||||
import Treeselect, { LOAD_CHILDREN_OPTIONS } from '@riophae/vue-treeselect'
|
||||
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||
|
||||
export default {
|
||||
name: 'WorkprodureDevDialog',
|
||||
components: { rrOperation, pagination, Treeselect },
|
||||
components: { rrOperation, pagination },
|
||||
cruds() {
|
||||
return CRUD({ title: '工序设备', url: '/api/qualityanalysis/bydevice', crudMethod: { ...qualityanilysis }, optShow: {}})
|
||||
},
|
||||
mixins: [presenter(), header()],
|
||||
dicts: ['product_area'],
|
||||
props: {
|
||||
dialogShow: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
workprocedureid: {
|
||||
type: String
|
||||
},
|
||||
analysis: {
|
||||
type: String
|
||||
},
|
||||
createtime: {
|
||||
type: String
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
dialogVisible: false,
|
||||
classes: [],
|
||||
tableRadio: null,
|
||||
class_idStr: null,
|
||||
checkrow: null,
|
||||
rows: [],
|
||||
form: {
|
||||
analysis: null,
|
||||
workprocedure_name: null,
|
||||
@@ -136,13 +113,13 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
dialogShow: {
|
||||
handler(newValue) {
|
||||
this.dialogVisible = newValue
|
||||
}
|
||||
}
|
||||
},
|
||||
// watch: {
|
||||
// dialogShow: {
|
||||
// handler(newValue) {
|
||||
// this.dialogVisible = newValue
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
methods: {
|
||||
labelHead(h, { column, index }) { // 动态表头渲染
|
||||
// let l = column.label.length;
|
||||
@@ -151,9 +128,6 @@ export default {
|
||||
// 然后将列标题放在一个div块中,注意块的宽度一定要100%,否则表格显示不完全
|
||||
return h('span', { class: 'table-head', style: { width: '100%' }}, [column.label])
|
||||
},
|
||||
clickChange(item) {
|
||||
this.tableRadio = item
|
||||
},
|
||||
openQ(query) {
|
||||
this.crud.query = query
|
||||
console.log(query)
|
||||
@@ -166,25 +140,9 @@ export default {
|
||||
this.dialogVisible = true
|
||||
this.crud.toQuery()
|
||||
},
|
||||
handleSelectionChange(val, row) {
|
||||
if (this.isSingle) {
|
||||
if (val.length > 1) {
|
||||
this.$refs.table.clearSelection()
|
||||
this.$refs.table.toggleRowSelection(val.pop())
|
||||
} else {
|
||||
this.checkrow = row
|
||||
}
|
||||
}
|
||||
},
|
||||
onSelectAll() {
|
||||
this.$refs.table.clearSelection()
|
||||
},
|
||||
close() {
|
||||
this.crud.resetQuery(false)
|
||||
this.$emit('update:dialogShow', false)
|
||||
},
|
||||
submit() {
|
||||
this.dialogVisible = false
|
||||
this.$emit('closeDialog')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
<pagination />
|
||||
<WorkprodureDevDialog ref="WorkprodureDevDialog" :dialog-show.sync="workproduceShow" />
|
||||
<WorkprodureDevDialog ref="WorkprodureDevDialog" :dialog-show.sync="workproduceShow" @closeDialog="resetQuery"/>
|
||||
</div>
|
||||
<div id="main2" style="width: 100%;height:350px;" />
|
||||
</div>
|
||||
@@ -204,6 +204,9 @@ export default {
|
||||
this.workList = res
|
||||
})
|
||||
},
|
||||
resetQuery(){
|
||||
this.crud.resetQuery()
|
||||
},
|
||||
bydevice(index, row) {
|
||||
this.workproduceShow = true
|
||||
this.crud.query.workprocedure_id = row.workprocedure_id
|
||||
|
||||
@@ -238,7 +238,7 @@ export default {
|
||||
},
|
||||
queryClassId() {
|
||||
const param = {
|
||||
'class_idStr': this.class_idStr
|
||||
'class_idStr': '2'
|
||||
}
|
||||
crudClassstandard.queryClassById(param).then(res => {
|
||||
this.classes = res.content.map(obj => {
|
||||
|
||||
@@ -201,7 +201,7 @@ export default {
|
||||
},
|
||||
queryClassId() {
|
||||
const param = {
|
||||
'class_idStr': this.class_idStr
|
||||
'class_idStr': '2'
|
||||
}
|
||||
crudClassstandard.queryClassById(param).then(res => {
|
||||
this.classes = res.content.map(obj => {
|
||||
|
||||
@@ -238,7 +238,7 @@ export default {
|
||||
},
|
||||
queryClassId() {
|
||||
const param = {
|
||||
'class_idStr': this.class_idStr
|
||||
'class_idStr': '2'
|
||||
}
|
||||
crudClassstandard.queryClassById(param).then(res => {
|
||||
this.classes = res.content.map(obj => {
|
||||
|
||||
@@ -137,7 +137,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
classes: [],
|
||||
class_idStr: null,
|
||||
class_idStr: '2',
|
||||
materOpt_code: '23',
|
||||
dialogVisible: false,
|
||||
tableRadio: null,
|
||||
@@ -238,7 +238,7 @@ export default {
|
||||
},
|
||||
queryClassId() {
|
||||
const param = {
|
||||
'class_idStr': this.class_idStr
|
||||
'class_idStr': '2'
|
||||
}
|
||||
crudClassstandard.queryClassById(param).then(res => {
|
||||
this.classes = res.content.map(obj => {
|
||||
|
||||
Reference in New Issue
Block a user