中航光电热表web
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

290 lines
7.2 KiB

<template>
<basic-container>
<avue-crud
:option="option"
:table-loading="loading"
:data="data"
v-model:page="page"
v-model="form"
ref="crud"
@search-change="searchChange"
@search-reset="searchReset"
@selection-change="selectionChange"
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad"
>
<template #menu="{ row }">
<el-button type="text" @click="assignFn(row)">转派</el-button>
<el-button type="text" @click="handleFn(row)">处理</el-button>
<el-button type="text" @click="taskHandleFun(row)">质量处理</el-button>
</template>
</avue-crud>
<!-- 处理 -->
<taskHandleDialog
v-if="isHandleShow"
:showDialog="isHandleShow"
@closeDialog="closeDialog"
:rowItem="rowItem"
></taskHandleDialog>
<!-- 质量处理 -->
<taskHandleQuality
v-if="isTaskHandleQuality"
:showDialog="isTaskHandleQuality"
@closeDialog="closeDialog"
:rowItem="rowItem"
></taskHandleQuality>
<!-- 转派 -->
<assignDaialog
v-if="isAssignShow"
:showDialog="isAssignShow"
@closeDialog="closeDialog"
:rowItem="rowItem"
></assignDaialog>
</basic-container>
</template>
<script>
import { status } from 'nprogress';
import taskHandleDialog from './components/taskHandleDialog.vue';
import assignDaialog from './components/assignDaialog.vue';
import taskHandleQuality from './components/taskHandleQuality.vue';
import { getList, taskComplete } from '@/api/productionManagement/WIPChange.js';
export default {
components: {
taskHandleDialog,
assignDaialog,
taskHandleQuality,
},
data() {
return {
loading: false,
page: {},
data: [],
form: {},
option: {
tip: false,
height: 'auto',
calcHeight: 32,
columnSort: true,
// simplePage: true,
searchShow: true,
searchMenuSpan: 6,
searchIcon: true,
searchIndex: 3,
tree: false,
border: true,
index: true,
selection: false,
viewBtn: false,
delBtn: false,
addBtn: false,
editBtn: false,
editBtnText: '修改',
viewBtnText: '详情',
addBtnIcon: ' ',
viewBtnIcon: ' ',
delBtnIcon: ' ',
editBtnIcon: ' ',
labelWidth: '200px',
dialogWidth: 600,
menuWidth: 180,
dialogClickModal: false,
searchEnter: true,
filterBtn: true,
searchShowBtn: false,
excelBtn: true,
showOverflowTooltip: true,
align: 'center',
searchLabelPosition: 'left',
searchGutter: 24,
searchSpan: 6,
menuAlign: 'left',
gridBtn: false,
searchMenuPosition: 'right',
column: [
{
label: '物料号',
prop: 'partCode',
search: true,
sortable: true,
filter: true,
width: 120,
},
{
label: '物料名称',
prop: 'partName',
search: true,
sortable: true,
filter: true,
width: 120,
},
{
label: '镀种',
prop: 'plate',
search: true,
sortable: true,
filter: true,
width: 120,
},
{
label: '批次号',
prop: 'batchNo',
search: false,
sortable: true,
filter: true,
width: 120,
},
{
label: '流程卡号',
prop: 'cardNo',
search: false,
sortable: true,
filter: true,
width: 120,
},
{
label: '版本',
prop: 'version',
search: true,
sortable: true,
filter: true,
width: 120,
},
{
label: 'PDM发布时间',
prop: 'pdmCreateTime',
search: false,
sortable: true,
filter: true,
width: 140,
},
{
label: '工艺路线详情',
prop: 'wayDetails',
search: false,
sortable: true,
filter: true,
width: 140,
},
{
label: '在制品意见',
prop: 'wipTake',
search: false,
sortable: true,
filter: true,
width: 120,
},
{
label: '更改单号',
prop: 'changeNo',
search: true,
sortable: true,
filter: true,
width: 120,
},
{
label: '调度员',
prop: 'dispatchManName',
search: true,
sortable: true,
filter: true,
width: 120,
},
{
label: '完成时间',
prop: 'craftTime',
search: false,
sortable: true,
filter: true,
width: 120,
},
{
label: '任务时间',
prop: 'taskTime',
search: false,
sortable: true,
filter: true,
width: 120,
},
{
label: '状态',
prop: 'status',
search: true,
sortable: true,
filter: true,
width: 120,
type: 'select',
dicData: [
{
label: '待处理',
value: 1,
},
{
label: '已处理',
value: 2,
},
],
},
],
},
isHandleShow: false,
isAssignShow: false,
isTaskHandleQuality: false,
rowItem: {},
};
},
mounted() {},
methods: {
taskHandleFun(row) {
this.isTaskHandleQuality = true;
this.rowItem = row;
},
assignFn(row) {
this.isAssignShow = true;
this.rowItem = row;
},
handleFn(row) {
this.rowItem = row;
this.isHandleShow = true;
},
closeDialog() {
this.isHandleShow = false;
this.isAssignShow = false;
this.isTaskHandleQuality = false;
this.onLoad(this.page, this.query);
},
currentChange(currentPage) {
this.page.currentPage = currentPage;
this.onLoad(this.page, this.query);
},
sizeChange(pageSize) {
this.page.pageSize = pageSize;
this.onLoad(this.page, this.query);
},
refreshChange() {
this.onLoad(this.page, this.query);
},
searchReset() {
this.query = {};
this.treeDeptId = '';
this.onLoad(this.page, this.query);
},
searchChange(params, done) {
this.query = params;
this.page.currentPage = 1;
this.onLoad(this.page, params);
done();
},
onLoad(page, params = {}) {
this.loading = true;
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
this.data = res.data.data.records;
this.loading = false;
this.page.total = res.data.data.total;
});
},
},
};
</script>
<style lang="scss" scoped></style>