add:修改工单相关
This commit is contained in:
174
mes/qd/src/views/wms/product_manage/workorder/reportDialog.vue
Normal file
174
mes/qd/src/views/wms/product_manage/workorder/reportDialog.vue
Normal file
@@ -0,0 +1,174 @@
|
||||
<template>
|
||||
<el-dialog
|
||||
title="报工审核"
|
||||
append-to-body
|
||||
fullscreen
|
||||
:visible.sync="dialogVisible"
|
||||
@open="open"
|
||||
@close="close"
|
||||
>
|
||||
<el-card class="box-card" shadow="never">
|
||||
<el-form ref="form" :inline="true" :model="form" :rules="rules" size="mini" label-width="180px">
|
||||
<el-form-item label="工单编码">
|
||||
<el-input v-model="form.workorder_code" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
<el-form-item label="只显示未审核">
|
||||
<el-switch
|
||||
v-model="form.is_report"
|
||||
active-color="#409EFF"
|
||||
inactive-color="#F56C6C"
|
||||
active-value="true"
|
||||
inactive-valu="false"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-dropdown split-button type="primary" class="filter-item" @click>
|
||||
<i class="el-icon-search el-icon--left" />查询
|
||||
</el-dropdown>
|
||||
</el-form>
|
||||
|
||||
</el-card>
|
||||
<div class="crud-opts2" style="margin-top: 30px;margin-bottom: 15px">
|
||||
<span class="role-span">工单生产记录详情</span>
|
||||
<span class="crud-opts-right2">
|
||||
<!--左侧插槽-->
|
||||
<slot name="left" />
|
||||
</span>
|
||||
|
||||
</div>
|
||||
<!--表格渲染-->
|
||||
<el-table
|
||||
ref="table"
|
||||
:data="tableData"
|
||||
style="width: 100%;"
|
||||
max-height="300"
|
||||
border
|
||||
:highlight-current-row="true"
|
||||
:header-cell-style="{background:'#f5f7fa',color:'#606266'}"
|
||||
>
|
||||
<el-table-column prop="device_code" label="设备编码" align="center" />
|
||||
<el-table-column prop="workorder_code" label="工单编号" />
|
||||
<el-table-column prop="shift_type_scode" label="班次类型" />
|
||||
<el-table-column prop="product_area" label="生产车间" />
|
||||
<el-table-column prop="device_name" label="设备名称" align="center" min-width="200" show-overflow-tooltip />
|
||||
<el-table-column prop="dq_init_qty" label="电气期初数量" />
|
||||
<el-table-column prop="person_init_qty" label="人员期初数量" />
|
||||
<el-table-column prop="dq_report_qty" label="电气报工数量" />
|
||||
<el-table-column prop="person_report_qty" label="人员报工数量" />
|
||||
<el-table-column prop="dq_finish_qty" label="电气期末数量" />
|
||||
<el-table-column prop="person_finish_qty" label="人员期末数量" />
|
||||
<el-table-column prop="operatetime_start" label="开工时间" />
|
||||
<el-table-column prop="operatetime_end" label="完工时间" />
|
||||
<el-table-column prop="nick_name" label="操作人" align="center" />
|
||||
</el-table>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogVisible = false">取 消</el-button>
|
||||
<el-button type="primary" @click="dialogVisible = false">确定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { crud } from '@crud/crud'
|
||||
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||
import crudProduceshiftorder from '@/views/wms/product_manage/workorder/produceshiftorder'
|
||||
|
||||
export default {
|
||||
name: 'ViewDialog',
|
||||
components: { },
|
||||
dicts: ['PDM_BI_SHIFTTYPE', 'MPS_BD_ORDERSTATUS', 'is_used', 'PDM_BI_ORDERTYPE', 'IS_OR_NOT'],
|
||||
mixins: [crud()],
|
||||
props: {
|
||||
dialogShow: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
bussConfig: {
|
||||
type: Object
|
||||
},
|
||||
openParam: {
|
||||
type: Object
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
dialogVisible: false,
|
||||
classes3: [],
|
||||
form: {
|
||||
sale_id: null,
|
||||
workorder_id: null,
|
||||
workorder_code: null,
|
||||
producedeviceorder_code: null,
|
||||
shift_type_scode: null,
|
||||
workprocedure_id: null,
|
||||
produce_date: null,
|
||||
plan_qty: null,
|
||||
real_qty: null,
|
||||
report_qty: null,
|
||||
material_id: null,
|
||||
material_code: null,
|
||||
material_weight: null,
|
||||
planproducestart_date: null,
|
||||
planproduceend_date: null,
|
||||
realproducestart_date: null,
|
||||
realproduceend_date: null,
|
||||
order_status: null,
|
||||
is_needmove: null,
|
||||
order_type_scode: null,
|
||||
create_id: null,
|
||||
create_name: null,
|
||||
create_time: null,
|
||||
update_optid: null,
|
||||
update_optname: null,
|
||||
update_time: null,
|
||||
sysdeptid: null,
|
||||
syscompanyid: null,
|
||||
is_delete: null,
|
||||
material_name: null,
|
||||
device_id: null,
|
||||
is_canupdate_update: null,
|
||||
material_spec: null
|
||||
},
|
||||
workprocedureList: [],
|
||||
tableData: [],
|
||||
rules: {
|
||||
}
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
dialogShow: {
|
||||
handler(newValue) {
|
||||
this.dialogVisible = newValue
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
open() {
|
||||
// this.getworkprocedure()
|
||||
// this.initClass3()
|
||||
// this.is_null()
|
||||
// crudProduceshiftorder.getDtl({ workorder_id: this.form.workorder_id }).then(res => {
|
||||
// this.tableData = res
|
||||
// })
|
||||
},
|
||||
setForm() {
|
||||
this.dialogVisible = true
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.crud-opts2 {
|
||||
padding: 0 0;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.crud-opts2 .crud-opts-right2 {
|
||||
margin-left: auto;
|
||||
padding: 4px 4px;
|
||||
}
|
||||
.input-with-select {
|
||||
background-color: #fff;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user