Browse Source

工艺信息查询报表

master
yzz 2 years ago
parent
commit
d57fcad97d
  1. 7
      src/api/part/routingManagement.js
  2. 88
      src/views/modules/part/partAllInfoSearch.vue
  3. 721
      src/views/modules/part/routingAllInfoSearch.vue

7
src/api/part/routingManagement.js

@ -162,4 +162,9 @@ export const routingToolEdit = data => createAPI(`/plm/routingManagement/routing
export const deleteRoutingTool = data => createAPI(`/plm/routingManagement/deleteRoutingTool`,'post',data)
/**
* @Author Yzz
* @Description 工艺路线信息查询
* @Date 2024/10/21 10:14:35
**/
export const routingAllInfoSearch = data => createAPI(`/plm/routingManagement/routingAllInfoSearch`,'post',data)

88
src/views/modules/part/partAllInfoSearch.vue

@ -126,7 +126,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
columnWidth: 100
},
{
userId: this.$store.state.user.name,
@ -144,7 +144,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
columnWidth: 180
},
{
userId: this.$store.state.user.name,
@ -288,7 +288,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 60
columnWidth: 120
},
{
userId: this.$store.state.user.name,
@ -306,7 +306,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
columnWidth: 100
},
{
userId: this.$store.state.user.name,
@ -342,7 +342,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
columnWidth: 100
},
{
userId: this.$store.state.user.name,
@ -414,7 +414,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
columnWidth: 100
},
{
userId: this.$store.state.user.name,
@ -504,7 +504,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
columnWidth: 100
},
{
userId: this.$store.state.user.name,
@ -532,7 +532,7 @@
tableName: '物料信息表',
columnProp: 'dimQuality',
headerAlign: 'center',
align: 'center',
align: 'right',
columnLabel: '尺寸/质量',
columnHidden: false,
columnImage: false,
@ -540,7 +540,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 60
columnWidth: 80
},
{
userId: this.$store.state.user.name,
@ -576,7 +576,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 60
columnWidth: 100
},
{
userId: this.$store.state.user.name,
@ -594,7 +594,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 60
columnWidth: 100
},
{
userId: this.$store.state.user.name,
@ -604,7 +604,7 @@
tableName: '物料信息表',
columnProp: 'manufacturingLeadTime',
headerAlign: 'center',
align: 'center',
align: 'right',
columnLabel: '制造提前期',
columnHidden: false,
columnImage: false,
@ -622,7 +622,7 @@
tableName: '物料信息表',
columnProp: 'expectedLeadTime',
headerAlign: 'center',
align: 'center',
align: 'right',
columnLabel: '预期交货期',
columnHidden: false,
columnImage: false,
@ -694,7 +694,7 @@
tableName: '物料信息表',
columnProp: 'durabilityDay',
headerAlign: 'center',
align: 'center',
align: 'right',
columnLabel: '天数',
columnHidden: false,
columnImage: false,
@ -712,7 +712,7 @@
tableName: '物料信息表',
columnProp: 'intrastatConvFactor',
headerAlign: 'center',
align: 'center',
align: 'right',
columnLabel: '内部统计转换系数',
columnHidden: false,
columnImage: false,
@ -720,7 +720,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 60
columnWidth: 120
},
{
userId: this.$store.state.user.name,
@ -748,7 +748,7 @@
tableName: '物料信息表',
columnProp: 'estimatedMaterialCost',
headerAlign: 'center',
align: 'center',
align: 'right',
columnLabel: '预计材料成本',
columnHidden: false,
columnImage: false,
@ -756,7 +756,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 60
columnWidth: 100
},
{
userId: this.$store.state.user.name,
@ -774,7 +774,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
columnWidth: 120
},
{
userId: this.$store.state.user.name,
@ -792,7 +792,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 60
columnWidth: 80
},
{
userId: this.$store.state.user.name,
@ -828,7 +828,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
columnWidth: 130
},
{
userId: this.$store.state.user.name,
@ -846,7 +846,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
columnWidth: 130
},
{
userId: this.$store.state.user.name,
@ -874,7 +874,7 @@
tableName: '物料信息表',
columnProp: 'safetyStock',
headerAlign: 'center',
align: 'center',
align: 'right',
columnLabel: '安全库存',
columnHidden: false,
columnImage: false,
@ -892,7 +892,7 @@
tableName: '物料信息表',
columnProp: 'minOrderQty',
headerAlign: 'center',
align: 'center',
align: 'right',
columnLabel: '最小批量',
columnHidden: false,
columnImage: false,
@ -910,7 +910,7 @@
tableName: '物料信息表',
columnProp: 'maxOrderQty',
headerAlign: 'center',
align: 'center',
align: 'right',
columnLabel: '最大批量',
columnHidden: false,
columnImage: false,
@ -928,7 +928,7 @@
tableName: '物料信息表',
columnProp: 'mulOrderQty',
headerAlign: 'center',
align: 'center',
align: 'right',
columnLabel: '多个批量',
columnHidden: false,
columnImage: false,
@ -946,7 +946,7 @@
tableName: '物料信息表',
columnProp: 'safetyLeadTime',
headerAlign: 'center',
align: 'center',
align: 'right',
columnLabel: '安全提前期',
columnHidden: false,
columnImage: false,
@ -964,7 +964,7 @@
tableName: '物料信息表',
columnProp: 'shrinkageFac',
headerAlign: 'center',
align: 'center',
align: 'right',
columnLabel: '报废率(%)',
columnHidden: false,
columnImage: false,
@ -982,7 +982,7 @@
tableName: '物料信息表',
columnProp: 'stdOrderQty',
headerAlign: 'center',
align: 'center',
align: 'right',
columnLabel: '标准批量',
columnHidden: false,
columnImage: false,
@ -1054,7 +1054,7 @@
tableName: '物料信息表',
columnProp: 'overReportTolerance',
headerAlign: 'center',
align: 'center',
align: 'right',
columnLabel: '报告公差过大',
columnHidden: false,
columnImage: false,
@ -1062,7 +1062,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
columnWidth: 100
},
{
userId: this.$store.state.user.name,
@ -1072,7 +1072,7 @@
tableName: '物料信息表',
columnProp: 'density',
headerAlign: 'center',
align: 'center',
align: 'right',
columnLabel: '密度',
columnHidden: false,
columnImage: false,
@ -1098,7 +1098,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 60
columnWidth: 130
},
{
userId: this.$store.state.user.name,
@ -1116,7 +1116,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 60
columnWidth: 80
},
{
userId: this.$store.state.user.name,
@ -1134,7 +1134,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 60
columnWidth: 80
},
{
userId: this.$store.state.user.name,
@ -1144,7 +1144,7 @@
tableName: '物料信息表',
columnProp: 'cumLeadTime',
headerAlign: 'center',
align: 'center',
align: 'right',
columnLabel: '累计提前期',
columnHidden: false,
columnImage: false,
@ -1162,7 +1162,7 @@
tableName: '物料信息表',
columnProp: 'unprotectedLeadTime',
headerAlign: 'center',
align: 'center',
align: 'right',
columnLabel: '无保护提前期',
columnHidden: false,
columnImage: false,
@ -1180,7 +1180,7 @@
tableName: '物料信息表',
columnProp: 'fixedLeadTimeDay',
headerAlign: 'center',
align: 'center',
align: 'right',
columnLabel: '按日固定提前期',
columnHidden: false,
columnImage: false,
@ -1198,7 +1198,7 @@
tableName: '物料信息表',
columnProp: 'variableLeadTimeDay',
headerAlign: 'center',
align: 'center',
align: 'right',
columnLabel: '按天列出的可变提前期',
columnHidden: false,
columnImage: false,
@ -1206,7 +1206,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
columnWidth: 130
},
{
userId: this.$store.state.user.name,
@ -1216,7 +1216,7 @@
tableName: '物料信息表',
columnProp: 'fixedLeadTimeHour',
headerAlign: 'center',
align: 'center',
align: 'right',
columnLabel: '按小时计算的固定交货时间',
columnHidden: false,
columnImage: false,
@ -1224,7 +1224,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
columnWidth: 160
},
{
userId: this.$store.state.user.name,
@ -1234,7 +1234,7 @@
tableName: '物料信息表',
columnProp: 'variableLeadTimeHour',
headerAlign: 'center',
align: 'center',
align: 'right',
columnLabel: '按小时计算的可变提前期',
columnHidden: false,
columnImage: false,
@ -1242,7 +1242,7 @@
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
columnWidth: 150
},
{
userId: this.$store.state.user.name,

721
src/views/modules/part/routingAllInfoSearch.vue

@ -0,0 +1,721 @@
<template>
<div class="mod-config">
<el-form :inline="true" label-position="top" :model="searchData" @keyup.enter.native="getDataList()">
<el-form-item :label="'物料编码'">
<el-input v-model="searchData.partNo" clearable style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'物料描述'">
<el-input v-model="searchData.partDesc" clearable style="width: 210px"></el-input>
</el-form-item>
<el-form-item :label="' '">
<el-button @click="getDataList()">查询</el-button>
<download-excel
:fields="fields()"
:data="exportData"
type="xls"
:name="exportName"
:header="exportHeader"
:footer="exportFooter"
:fetch="createExportData"
:before-generate="startDownload"
:before-finish="finishDownload"
worksheet="导出信息"
class="el-button el-button--primary el-button--medium">
{{ "导出" }}
</download-excel>
</el-form-item>
</el-form>
<el-table
:height="height"
:data="dataList"
border
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column
v-for="(item,index) in columnList" :key="index"
:sortable="item.columnSortable"
:prop="item.columnProp"
:header-align="item.headerAlign"
:show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align"
:fixed="item.fixed==''?false:item.fixed"
:min-width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
</el-table>
<el-pagination style="margin-top: 0px"
@size-change="sizeChangeHandle"
@current-change="currentChangeHandle"
:current-page="pageIndex"
:page-sizes="[20, 50, 100, 200, 500]"
:page-size="pageSize"
:total="totalPage"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
</div>
</template>
<script>
import {
routingAllInfoSearch
} from "@/api/part/routingManagement.js"
export default {
components: {
},
watch: {
searchData: {
deep: true,
handler: function (newV, oldV) {
this.searchData.partNo = this.searchData.partNo.toUpperCase()
}
}
},
data () {
return {
//
favorite: false,
// start
exportData: [],
exportName: "工艺信息" + this.dayjs().format('YYYYMMDDHHmmss'),
exportHeader: ["工艺信息"],
exportFooter: [],
exportList:[],
// end
tagNo:'',
searchData: {
site: this.$store.state.user.site,
partNo: '',
partDesc: '',
page: 1,
limit: 10,
},
dataList:[],
dataListLoading: false,
height: 200,
pageIndex: 1,
pageSize: 50,
totalPage: 0,
modalDisableFlag:false,
columnList: [
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1PartNo',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'partNo',
headerAlign: 'center',
align: 'center',
columnLabel: '物料编码',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1PartDesc',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'partDesc',
headerAlign: 'center',
align: 'left',
columnLabel: '物料描述',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 160
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1PrintUnitName',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'printUnitName',
headerAlign: 'center',
align: 'center',
columnLabel: '物料单位',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 60
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1RoutingRevision',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'routingRevision',
headerAlign: 'center',
align: 'center',
columnLabel: '工艺路线版本号',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1RoutingType',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'routingType',
headerAlign: 'center',
align: 'center',
columnLabel: '工艺类型',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1PhaseInDate',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'phaseInDate',
headerAlign: 'center',
align: 'center',
columnLabel: '开始日期',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1PhaseOutDate',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'phaseOutDate',
headerAlign: 'center',
align: 'center',
columnLabel: '结束日期',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1NoteText',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'noteText',
headerAlign: 'center',
align: 'left',
columnLabel: '工艺路线备注',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 180
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1AlternativeNo',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'alternativeNo',
headerAlign: 'center',
align: 'center',
columnLabel: '替代编码',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1AlternativeDescription',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'alternativeDescription',
headerAlign: 'center',
align: 'center',
columnLabel: '替代名称',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1Status',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'status',
headerAlign: 'center',
align: 'center',
columnLabel: '替代状态',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1AlternativeNoteText',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'alternativeNoteText',
headerAlign: 'center',
align: 'left',
columnLabel: '替代备注',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 180
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1OperationNo',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'operationNo',
headerAlign: 'center',
align: 'center',
columnLabel: '工序编码',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1OperationName',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'operationName',
headerAlign: 'center',
align: 'center',
columnLabel: '工序名称',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1OperationNoteText',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'operationNoteText',
headerAlign: 'center',
align: 'left',
columnLabel: '工序备注',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 180
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1EfficiencyFactor',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'efficiencyFactor',
headerAlign: 'center',
align: 'right',
columnLabel: '机器效率(%)',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1MachRunFactor',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'machRunFactor',
headerAlign: 'center',
align: 'right',
columnLabel: '机器运行速度',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1MachSetupTime',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'machSetupTime',
headerAlign: 'center',
align: 'right',
columnLabel: '调机时长',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1RunTimeCode',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'runTimeCode',
headerAlign: 'center',
align: 'center',
columnLabel: '时长单位',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 60
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1LaborRunFactor',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'laborRunFactor',
headerAlign: 'center',
align: 'right',
columnLabel: '人工效率(%)',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1LaborSetupTime',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'laborSetupTime',
headerAlign: 'center',
align: 'right',
columnLabel: '人工生产速度',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1CrewSize',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'crewSize',
headerAlign: 'center',
align: 'right',
columnLabel: '生产过程中人数',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1SetupCrewSize',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'setupCrewSize',
headerAlign: 'center',
align: 'right',
columnLabel: '调机过程中人数',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1OutsideOpItem',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'outsideOpItem',
headerAlign: 'center',
align: 'center',
columnLabel: '外协采购料号',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1WorkCenterDesc',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'workCenterDesc',
headerAlign: 'center',
align: 'center',
columnLabel: '加工中心',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1LaborClassDesc',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'laborClassDesc',
headerAlign: 'center',
align: 'center',
columnLabel: '人员等级',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1SetupLaborClassDesc',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'setupLaborClassDesc',
headerAlign: 'center',
align: 'center',
columnLabel: '调机时的人员等级',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 140
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1ToolDescription',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'toolDescription',
headerAlign: 'center',
align: 'center',
columnLabel: '工具',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1ToolQty',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'toolQty',
headerAlign: 'center',
align: 'right',
columnLabel: '工具数量',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
},
{
userId: this.$store.state.user.name,
functionId: 104003004,
serialNumber: '104003004Table1Remark',
tableId: '104003004Table1',
tableName: '工艺路线信息表',
columnProp: 'remark',
headerAlign: 'center',
align: 'center',
columnLabel: '工具备注',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 120
}
],
rules:{
}
}
},
mounted () {
this.$nextTick(() => {
this.height = window.innerHeight - 180
})
},
created () {
this.getDataList();
},
methods: {
//excel
async createExportData() {
this.searchData.limit = -1
this.searchData.page = 1
await routingAllInfoSearch(this.searchData).then(({data}) => {
this.exportList= data.page.list;
})
return this.exportList;
},
startDownload() {
},
finishDownload() {
},
fields() {
let json = "{"
this.columnList.forEach((item, index) => {
if (index == this.columnList.length - 1) {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
} else {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
}
})
json += "}"
let s = eval("(" + json + ")")
return s
},
// end
//
getDataList () {
this.searchData.limit = this.pageSize
this.searchData.page = this.pageIndex
routingAllInfoSearch(this.searchData).then(({data}) => {
if (data.code == 0) {
this.dataList = data.page.list
this.pageIndex = data.page.currPage
this.pageSize = data.page.pageSize
this.totalPage = data.page.totalCount
}
this.dataListLoading = false
})
},
//
sizeChangeHandle (val) {
this.pageSize = val
this.pageIndex = 1
this.getDataList()
},
//
currentChangeHandle (val) {
this.pageIndex = val
this.getDataList()
},
selectFlag(){
return true;
},
}
}
</script>
Loading…
Cancel
Save