Browse Source

卷追溯 2022年11月10日 sxm

master
[li_she] 3 years ago
parent
commit
4e481c7539
  1. 36
      src/api/rollNoReview/rollNoReviewPage.js
  2. 3
      src/store/modules/user.js
  3. 444
      src/views/modules/rollNoReview/fgRollNoReviewPage.vue
  4. 2737
      src/views/modules/rollNoReview/rollNoReviewPage.vue
  5. 520
      src/views/modules/rollNoReview/rollTransPage.vue
  6. 489
      src/views/modules/soStatus/resourceStatusPage.vue
  7. 591
      src/views/modules/soStatus/soStatusPage.vue

36
src/api/rollNoReview/rollNoReviewPage.js

@ -0,0 +1,36 @@
import { createAPI } from "@/utils/httpRequest.js";
// 材料卷
export const getMaterialRollDatas = data => createAPI(`/review/getMaterialRollDatas`,'post',data)
// 成品卷
export const getFinishedRollDatas = data => createAPI(`/review/getFinishedRollDatas`,'post',data)
// 工具记录
export const getDieRecordDatas = data => createAPI(`/review/getDieRecordDatas`,'post',data)
// 生产时间信息
export const getProductionTimeDatas = data => createAPI(`/review/getProductionTimeDatas`,'post',data)
// 生产卷信息
export const getProductionRollDatas = data => createAPI(`/review/getProductionRollDatas`,'post',data)
// 不良
export const getBadRecordDatas = data => createAPI(`/review/getBadRecordDatas`,'post',data)
// 成品卷信息
export const fgRollNo = data => createAPI(`/review/fgRollNo`,'post',data)
// 卷交易记录
export const subTrans = data => createAPI(`/review/subTrans`,'post',data)
// 生产订单查询
export const soStatus = data => createAPI(`/review/soStatus`,'post',data)
// 车间状态
export const resourceStatus = data => createAPI(`/review/resourceStatus`,'get',data)

3
src/store/modules/user.js

@ -6,7 +6,8 @@ export default {
site: 0,
languageDefault: '',
userDisplay: '',
userDev: false
userDev: false,
languageStatus: false,
},
mutations: {
updateId (state, id) {

444
src/views/modules/rollNoReview/fgRollNoReviewPage.vue

@ -0,0 +1,444 @@
<template>
<div class="mod-config">
<el-row>
<el-col :span="24">
<el-button @click="searchRollList()" type="primary">{{ labelData.search }}</el-button>
<download-excel
:fields="fields()"
:type="'xls'"
:name="labelData.exportName+this.dayjs().format('YYYY-MM-DD')"
:fetch="createExportData"
worksheet="导出信息"
class="el-button el-button--primary el-button--medium">
{{ labelData.export }}
</download-excel>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
<el-row>
<el-col :span="24">
<el-form-item :label="labelData.site">
<el-input v-model="rollQuery.site"></el-input>
</el-form-item>
<el-form-item :label="labelData.rollno">
<el-input v-model="rollQuery.rollno"></el-input>
</el-form-item>
<el-form-item :label="labelData.partno">
<el-input v-model="rollQuery.partno"></el-input>
</el-form-item>
<el-form-item :label="labelData.rolldate">
<el-date-picker fomart="yyyy-MM-dd" value-fomart="yyyy-MM-dd" style="width: 145px"
v-model="rollQuery.rolldate"></el-date-picker>
-
<el-date-picker value-format='yyyy-MM-dd'
format='yyyy-MM-dd' style="width: 145px"
v-model="rollQuery.rolldateEnd"></el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col style="margin-top: -5px" :span="24">
<el-form-item :label="labelData.status">
<el-select style="width: 145px" v-model="rollQuery.status">
<el-option value="全部" label="全部"></el-option>
<el-option value="待入库" label="待入库"></el-option>
<el-option value="已入库" label="已入库"></el-option>
</el-select>
</el-form-item>
<el-form-item :label="labelData.orderref1">
<el-input v-model="rollQuery.orderref1"></el-input>
</el-form-item>
<el-form-item :label="labelData.partdescription">
<el-input v-model="rollQuery.partdescription"></el-input>
</el-form-item>
<el-form-item :label="labelData.createddate">
<el-date-picker fomart="yyyy-MM-dd" value-fomart="yyyy-MM-dd" style="width: 145px"
v-model="rollQuery.createddate"></el-date-picker>
-
<el-date-picker value-format='yyyy-MM-dd'
format='yyyy-MM-dd' style="width: 145px"
v-model="rollQuery.createddateEnd"></el-date-picker>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-table
ref="materialRoll"
:height="height"
:data="rollList"
highlight-current-row
border
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column
v-for="(item,index) in rollTable" :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"
:width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden">
<span v-if="item.format=='dateTime'"> {{ dayjs(scope.row[item.columnProp]).format('YYYY-MM-DD HH:mm:ss') }}</span>
<span
v-if="item.format=='date'"> {{ dayjs(scope.row[item.columnProp]).format('YYYY-MM-DD') }}</span>
<span v-if="!item.format"> {{ scope.row[item.columnProp] }}</span>
</span>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
</div>
</template>
<script>
import {
fgRollNo,
} from '@/api/rollNoReview/rollNoReviewPage.js'
export default {
data() {
return {
height: 0,
dataListLoading: false,
// materialRoll
rollList: [],
rollQuery: {
site: this.$store.state.user.site,
rollno: '',
orderref1: '',
partno: '',
partdescription: '',
rolldate: '',
rolldateEnd: '',
createddate: '',
createddateEnd: '',
status: '全部'
},
rollTable: [
{
tableId: "rollTable",
tableName: "成品卷号查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 20,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'rollno',
columnLabel: '卷号',
sortable: true,
columnWidth: 120,
}, {
tableId: "rollTable",
tableName: "成品卷号查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 30,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'partno',
columnLabel: '物料编号',
sortable: true,
columnWidth: 120,
}, {
tableId: "rollTable",
tableName: "成品卷号查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 40,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'partdescription',
columnLabel: '物料描述',
columnWidth: 150
}, {
tableId: "rollTable",
tableName: "成品卷号查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 50,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'rollqty',
columnLabel: '卷数量',
columnWidth: 120,
}, {
tableId: "rollTable",
tableName: "成品卷号查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 60,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'rolltype',
columnLabel: '卷类型',
columnWidth: 120,
}, {
tableId: "rollTable",
tableName: "成品卷号查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: 'date',
functionId: this.$route.meta.menuId,
sortLv: 70,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'rolldate',
columnLabel: '卷创建日期',
columnWidth: 120
}, {
tableId: "rollTable",
tableName: "成品卷号查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 80,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'status',
columnLabel: '状态',
columnWidth: 120,
}, {
tableId: "rollTable",
tableName: "成品卷号查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: 'date',
functionId: this.$route.meta.menuId,
sortLv: 90,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'createddate',
columnLabel: '卷入库日期',
columnWidth: 120,
}, {
tableId: "rollTable",
tableName: "成品卷号查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 100,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'createdby',
columnLabel: '入库人',
columnWidth: 120,
}, {
tableId: "rollTable",
tableName: "成品卷号查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 110,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'orderreftype',
columnLabel: '订单类型',
columnWidth: 120,
}, {
tableId: "rollTable",
tableName: "成品卷号查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 120,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'orderref1',
columnLabel: '生产订单号',
columnWidth: 120,
}, {
tableId: "rollTable",
tableName: "成品卷号查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 130,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'site',
columnLabel: '工厂编号',
columnWidth: 120,
}],
// label
labelData: {
search: '查询',
export: '导出',
exportName: '成品卷号',
site: '工厂编号',
rollno: '卷号',
partno: "物料编码",
partdescription: '物料描述',
orderref1: '生产订单号',
rolldate: '卷创建日期',
createddate: '卷入库日期',
status: '入库状态'
},
}
},
mounted() {
this.$nextTick(() => {
this.height = window.innerHeight - 200;
})
},
methods: {
// materialRoll
searchRollList() {
fgRollNo(this.rollQuery).then(({data}) => {
if (data && data.code == 0) {
this.rollList = data.data
}
})
},
//
fields() {
let json = "{"
this.rollTable.forEach((item, index) => {
if (index == this.rollTable.length - 1) {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
} else {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
}
})
json += "}"
let s = eval("(" + json + ")")
return s
},
createExportData() {
// ,,
return this.rollList;
},
},
created() {
}
}
</script>
<style scoped>
/deep/ .customer-tab .el-tabs__content {
padding: 3px !important;
font-size: 12px;
}
/deep/ .customer-tab .el-tabs__item {
padding: 0 20px;
height: 30px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
line-height: 30px;
display: inline-block;
list-style: none;
font-size: 12px;
font-weight: 500;
color: #303133;
position: relative;
}
.el-textarea__inner {
padding: 5px 5px;
}
.el-dropdown-menu--medium .el-dropdown-menu__item {
line-height: 18px;
padding: 0 17px;
font-size: 12px;
}
hr {
margin-top: 0px;
width: 95%;
}
.el-dropdown-link {
cursor: pointer;
color: #409EFF;
}
</style>

2737
src/views/modules/rollNoReview/rollNoReviewPage.vue
File diff suppressed because it is too large
View File

520
src/views/modules/rollNoReview/rollTransPage.vue

@ -0,0 +1,520 @@
<template>
<div class="mod-config">
<el-row>
<el-col :span="24">
<el-button @click="searchRollTransList()" type="primary">{{ labelData.search }}</el-button>
<download-excel
:fields="fields()"
:type="'xls'"
:name="labelData.exportName+this.dayjs().format('YYYY-MM-DD')"
:fetch="createExportData"
worksheet="导出信息"
class="el-button el-button--primary el-button--medium">
{{ labelData.export }}
</download-excel>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
<el-row>
<el-col :span="24">
<el-form-item :label="labelData.site">
<el-input v-model="rollTransQuery.site"></el-input>
</el-form-item>
<el-form-item :label="labelData.partno">
<el-input v-model="rollTransQuery.partno"></el-input>
</el-form-item>
<el-form-item :label="labelData.warehouseid">
<el-input v-model="rollTransQuery.warehouseid"></el-input>
</el-form-item>
<el-form-item :label="labelData.orderref1">
<el-input v-model="rollTransQuery.orderref1"></el-input>
</el-form-item>
<el-form-item :label="labelData.sapOrder">
<el-input v-model="rollTransQuery.sapOrder"></el-input>
</el-form-item>
<el-form-item :label="labelData.transdate">
<el-date-picker fomart="yyyy-MM-dd"
value-fomart="yyyy-MM-dd" style="width: 145px"
v-model="rollTransQuery.transdate"></el-date-picker>
-
<el-date-picker value-format='yyyy-MM-dd'
format='yyyy-MM-dd' style="width: 145px"
v-model="rollTransQuery.transdateEnd"></el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col style="margin-top: -5px" :span="24">
<el-form-item :label="labelData.rollno">
<el-input v-model="rollTransQuery.rollno"></el-input>
</el-form-item>
<el-form-item :label="labelData.partdescription">
<el-input v-model="rollTransQuery.partdescription"></el-input>
</el-form-item>
<el-form-item :label="labelData.transno">
<el-input v-model="rollTransQuery.transno"></el-input>
</el-form-item>
<el-form-item :label="labelData.orderref2">
<el-input v-model="rollTransQuery.orderref2"></el-input>
</el-form-item>
<el-form-item :label="labelData.direction">
<el-select style="width: 145px" v-model="rollTransQuery.direction">
<el-option value="ALL" label="ALL"></el-option>
<el-option value="+" label="+"></el-option>
<el-option value="-" label="-"></el-option>
</el-select>
</el-form-item>
<el-form-item :label="labelData.transtypeDb">
<el-select style="width: 145px" v-model="rollTransQuery.transtypeDb">
<el-option value="全部" label="全部"></el-option>
<el-option value="CRT" label="采购订单入库(CRT)"></el-option>
<el-option value="YKC" label="移库 – 出库(YKC)"></el-option>
<el-option value="YKR" label="移库 – 入库(YKR)"></el-option>
<el-option value="SI" label="生产订单发料(SI)"></el-option>
<el-option value="SR" label="生产订单入库(SR)"></el-option>
<el-option value="SIR" label="生产订单退料(SIR)"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-table
ref="materialRoll"
:height="height"
:data="rollTransList"
highlight-current-row
border
style="width: 100%;">
<el-table-column
v-for="(item,index) in rollTransTable" :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"
:width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden">
<span v-if="item.format=='dateTime'"> {{ dayjs(scope.row[item.columnProp]).format('YYYY-MM-DD HH:mm:ss') }}</span>
<span
v-if="item.format=='date'"> {{ dayjs(scope.row[item.columnProp]).format('YYYY-MM-DD') }}</span>
<span v-if="!item.format"> {{ scope.row[item.columnProp] }}</span>
</span>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
</div>
</template>
<script>
import {
subTrans,
} from '@/api/rollNoReview/rollNoReviewPage.js'
export default {
data() {
return {
height: 0,
dataListLoading: false,
// materialRoll
rollTransList: [],
rollTransQuery: {
site: this.$store.state.user.site,
transno: '',
subno: '',
partno: '',
partdescription: '',
warehouseid: '',
transdate: '',
transdateEnd: '',
orderref1: '',
orderref2: '',
sapOrder: '',
transtypeDb: '全部',
direction: 'ALL',
},
rollTransTable: [
{
tableId: "rollTransTable",
tableName: "卷交易历史",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 10,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'transno',
columnLabel: '交易号',
columnWidth: 100
},{
tableId: "rollTransTable",
tableName: "卷交易历史",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 20,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'subno',
columnLabel: '卷号',
columnWidth:100,
},{
tableId: "rollTransTable",
tableName: "卷交易历史",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 30,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'partNo',
columnLabel: '物料编码',
columnWidth:100,
},{
tableId: "rollTransTable",
tableName: "卷交易历史",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 40,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'partdescription',
columnLabel: '物料描述',
columnWidth:160
},{
tableId: "rollTransTable",
tableName: "卷交易历史",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 50,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'transtypeDb',
columnLabel: '交易类型',
columnWidth:100
},{
tableId: "rollTransTable",
tableName: "卷交易历史",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 60,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'subqty',
columnLabel: '卷数量',
columnWidth:130
},{
tableId: "rollTransTable",
tableName: "卷交易历史",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 70,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'direction',
columnLabel: '交易方向',
columnWidth:70
},{
tableId: "rollTransTable",
tableName: "卷交易历史",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 80,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'warehouseID',
columnLabel: '仓库号',
columnWidth:100
},{
tableId: "rollTransTable",
tableName: "卷交易历史",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 90,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'userID',
columnLabel: '用户ID',
columnWidth:100
},{
tableId: "rollTransTable",
tableName: "卷交易历史",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 100,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'userName',
columnLabel: '用户名称',
columnWidth:100
},{
tableId: "rollTransTable",
tableName: "卷交易历史",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 110,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'transDate',
columnLabel: '交易日期',
columnWidth:150,
},{
tableId: "rollTransTable",
tableName: "卷交易历史",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 120,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'orderRef1',
columnLabel: '订单参考1',
columnWidth:100
},{
tableId: "rollTransTable",
tableName: "卷交易历史",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 130,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'orderRef2',
columnLabel: '订单参考2',
columnWidth:100
},{
tableId: "rollTransTable",
tableName: "卷交易历史",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 140,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'sapOrder',
columnLabel: 'SAP交易号',
columnWidth:100
},{
tableId: "rollTransTable",
tableName: "卷交易历史",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 150,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'site',
columnLabel: '工厂编号',
columnWidth:100
}
],
// label
labelData: {
search: '查询',
export: '导出',
exportName: '卷交易历史记录',
site:'工厂编号',
rollno: '卷号',
transno:'交易号',
subno:'卷号',
partno:'物料编号',
partdescription:'物料描述',
warehouseid:'仓库号',
orderref1:'订单参考1',
orderref2:'订单参考2',
sapOrder:'SAP交易号',
transdate:'交易日期',
direction: '交易方向',
transtypeDb: '交易类型'
},
}
},
mounted() {
this.$nextTick(() => {
this.height = window.innerHeight - 200;
})
},
methods: {
// materialRoll
searchRollTransList() {
subTrans(this.rollTransQuery).then(({data}) => {
if (data && data.code == 0) {
this.rollTransList = data.data
}
})
},
//
fields() {
let json = "{"
this.rollTransTable.forEach((item, index) => {
if (index == this.rollTransTable.length - 1) {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
} else {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
}
})
json += "}"
let s = eval("(" + json + ")")
return s
},
createExportData() {
// ,,
return this.rollTransList;
},
},
created() {
}
}
</script>
<style scoped>
/deep/ .customer-tab .el-tabs__content {
padding: 3px !important;
font-size: 12px;
}
/deep/ .customer-tab .el-tabs__item {
padding: 0 20px;
height: 30px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
line-height: 30px;
display: inline-block;
list-style: none;
font-size: 12px;
font-weight: 500;
color: #303133;
position: relative;
}
.el-textarea__inner {
padding: 5px 5px;
}
.el-dropdown-menu--medium .el-dropdown-menu__item {
line-height: 18px;
padding: 0 17px;
font-size: 12px;
}
hr {
margin-top: 0px;
width: 95%;
}
.el-dropdown-link {
cursor: pointer;
color: #409EFF;
}
</style>

489
src/views/modules/soStatus/resourceStatusPage.vue

@ -0,0 +1,489 @@
<template>
<div class="mod-config">
<el-row>
<el-col :span="24">
<el-button @click="searchResourceStatusList()" type="primary">{{ labelData.search }}</el-button>
<download-excel
:fields="fields()"
:type="'xls'"
:name="labelData.exportName+this.dayjs().format('YYYY-MM-DD')"
:fetch="createExportData"
worksheet="导出信息"
class="el-button el-button--primary el-button--medium">
{{ labelData.export }}
</download-excel>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
<el-row>
<el-col :span="24">
<el-form-item :label="labelData.site">
<el-input v-model="resourceQuery.site"></el-input>
</el-form-item>
<el-form-item >
<span slot="label" style="" @click="getBaseList(24)"><a herf="#">加工中心编码</a></span>
<el-input v-model="resourceQuery.workCenterNo" style="width: 130px"></el-input>
</el-form-item>
<el-form-item >
<span slot="label" style="" @click="getBaseList(88)"><a herf="#">机台编码</a></span>
<el-input v-model="resourceQuery.resourceID" style="width: 130px"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-table
ref="materialRoll"
:height="height"
:data="resourceList"
highlight-current-row
border
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column
v-for="(item,index) in resourceTable" :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"
:width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden">
<span v-if="item.format=='dateTime'"> {{ dayjs(scope.row[item.columnProp]).format('YYYY-MM-DD HH:mm:ss') }}</span>
<span v-if="item.format=='date'"> {{ dayjs(scope.row[item.columnProp]).format('YYYY-MM-DD') }}</span>
<span v-if="item.format=='time'"> {{ dayjs(scope.row[item.columnProp]).format('HH:mm:ss') }}</span>
<span v-if="item.format=='int'"> {{ parseInt(scope.row[item.columnProp]) }}</span>
<span v-if="!item.format"> {{ scope.row[item.columnProp] }}</span>
</span>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
</div>
</template>
<script>
import {
resourceStatus,
} from '@/api/rollNoReview/rollNoReviewPage.js'
import Chooselist from '@/views/modules/common/Chooselist'
export default {
data() {
return {
height: 0,
dataListLoading: false,
tagNo: '',
// resource
resourceList: [],
resourceQuery: {
site: this.$store.state.user.site,
workCenterNo : '',
resourceID : ''
},
resourceTable: [
{
tableId: "resourceTable",
tableName: "车间状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 10,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'workCenterNo',
columnLabel: '加工中心编码',
columnWidth:120
},{
tableId: "resourceTable",
tableName: "车间状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 20,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'resourceID',
columnLabel: '机台编号',
columnWidth:100
},{
tableId: "resourceTable",
tableName: "车间状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 30,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'resourceDesc',
columnLabel: '机台描述',
columnWidth:150
},{
tableId: "resourceTable",
tableName: "车间状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 40,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'efficiency',
columnLabel: '机台效率',
columnWidth:100,
},{
tableId: "resourceTable",
tableName: "车间状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 50,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'latestStatus',
columnLabel: '最新生产状态',
columnWidth:100
},{
tableId: "resourceTable",
tableName: "车间状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: 'time',
functionId: this.$route.meta.menuId,
sortLv: 60,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'eventTime',
columnLabel: '发生时间',
columnWidth:150,
},{
tableId: "resourceTable",
tableName: "车间状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 70,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'orderNo',
columnLabel: '生产订单号',
columnWidth:100
},{
tableId: "resourceTable",
tableName: "车间状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 80,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'partNo',
columnLabel: '物料编号',
columnWidth:100
},{
tableId: "resourceTable",
tableName: "车间状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 90,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'partDesc',
columnLabel: '物料描述',
columnWidth:150
},{
tableId: "resourceTable",
tableName: "车间状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: 'int',
functionId: this.$route.meta.menuId,
sortLv: 100,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'itemNo',
columnLabel: '工序号',
columnWidth:100,
},{
tableId: "resourceTable",
tableName: "车间状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 110,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'seqNo',
columnLabel: '派工单号',
columnWidth:100
},{
tableId: "resourceTable",
tableName: "车间状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 120,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'rollNo',
columnLabel: '在线卷号',
columnWidth:100
},{
tableId: "resourceTable",
tableName: "车间状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 130,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'toolInstanceid',
columnLabel: '在线工具实例号',
columnWidth:100
},{
tableId: "resourceTable",
tableName: "车间状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 140,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'toolDesc',
columnLabel: '在线工具描述',
columnWidth:130
},{
tableId: "resourceTable",
tableName: "车间状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: false,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 150,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'site',
columnLabel: '工厂编号',
columnWidth:100
}],
// label
labelData: {
search: '查询',
export: '导出',
exportName: '车间状态查询',
site: '工厂编号',
workCenterNo : '加工中心编码',
resourceID : '机台编码'
},
}
},
components: {
Chooselist
},
mounted() {
this.$nextTick(() => {
this.height = window.innerHeight - 170;
})
},
methods: {
// ResourceStatus
searchResourceStatusList() {
resourceStatus(this.resourceQuery).then(({data}) => {
if (data && data.code == 0) {
this.resourceList = data.data
}
})
},
getBaseData(val) {
if (this.tagNo === 24) {
this.resourceQuery.workCenterNo = val.WorkCenterNo
}
if (this.tagNo === 88) {
this.resourceQuery.resourceID = val.ResourceID
}
},
//
getBaseList(val) {
this.tagNo = val
this.$nextTick(() => {
let strVal = "";
if (val === 24) {
strVal = this.resourceQuery.workCenterNo
}
if (val === 88) {
strVal= this.resourceQuery.resourceID
if (this.resourceQuery.workCenterNo){
this.$refs.baseList.init(val, strVal, " AND WorkCenterNo = '"+this.resourceQuery.workCenterNo+"'")
}else {
this.$refs.baseList.init(val, strVal)
}
}else {
this.$refs.baseList.init(val, strVal)
}
})
},
//
fields() {
let json = "{"
this.resourceTable.forEach((item, index) => {
if (index == this.resourceTable.length - 1) {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
} else {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
}
})
json += "}"
let s = eval("(" + json + ")")
return s
},
createExportData() {
// ,,
return this.resourceList;
},
},
created() {
}
}
</script>
<style scoped>
/deep/ .customer-tab .el-tabs__content {
padding: 3px !important;
font-size: 12px;
}
/deep/ .customer-tab .el-tabs__item {
padding: 0 20px;
height: 30px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
line-height: 30px;
display: inline-block;
list-style: none;
font-size: 12px;
font-weight: 500;
color: #303133;
position: relative;
}
.el-textarea__inner {
padding: 5px 5px;
}
.el-dropdown-menu--medium .el-dropdown-menu__item {
line-height: 18px;
padding: 0 17px;
font-size: 12px;
}
hr {
margin-top: 0px;
width: 95%;
}
.el-dropdown-link {
cursor: pointer;
color: #409EFF;
}
</style>

591
src/views/modules/soStatus/soStatusPage.vue

@ -0,0 +1,591 @@
<template>
<div class="mod-config">
<el-row>
<el-col :span="24">
<el-button @click="searchSoStatusList()" type="primary">{{ labelData.search }}</el-button>
<download-excel
:fields="fields()"
:type="'xls'"
:name="labelData.exportName+this.dayjs().format('YYYY-MM-DD')"
:fetch="createExportData"
worksheet="导出信息"
class="el-button el-button--primary el-button--medium">
{{ labelData.export }}
</download-excel>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
<el-row>
<el-col :span="24">
<el-form-item :label="labelData.site">
<el-input v-model="soQuery.site"></el-input>
</el-form-item>
<el-form-item :label="labelData.status">
<el-select style="width: 145px" v-model="soQuery.status">
<el-option value="全部" label="全部"></el-option>
<el-option value="已计划" label="已计划" ></el-option>
<el-option value="已下达" label="已下达" ></el-option>
<el-option value="已排产" label="已排产" ></el-option>
<el-option value="已开工" label="已开工" ></el-option>
<el-option value="已关闭" label="已关闭" ></el-option>
</el-select>
</el-form-item>
<el-form-item :label="labelData.orderno">
<el-input v-model="soQuery.orderno"></el-input>
</el-form-item>
<el-form-item :label="labelData.partdesc">
<el-input v-model="soQuery.partdesc"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col style="margin-top: -5px" :span="24">
<el-form-item :label="labelData.partno">
<el-input v-model="soQuery.partno"></el-input>
</el-form-item>
<el-form-item :label="labelData.schedulingStatus">
<el-select style="width: 145px" v-model="soQuery.schedulingStatus">
<el-option value="" label="全部"></el-option>
<el-option value="A" label="未排产"></el-option>
<el-option value="B" label="部分排产未达数量"></el-option>
<el-option value="C" label="部分排产已达数量"></el-option>
<el-option value="D" label="已排产未达数量"></el-option>
<el-option value="E" label="已排产已达数量"></el-option>
</el-select>
</el-form-item>
<el-form-item :label="labelData.enterdate">
<el-date-picker fomart="yyyy-MM-dd" value-fomart="yyyy-MM-dd" style="width: 145px"
v-model="soQuery.enterdate"></el-date-picker>
-
<el-date-picker value-format='yyyy-MM-dd'
format='yyyy-MM-dd' style="width: 145px"
v-model="soQuery.enterdateEnd"></el-date-picker>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-table
ref="materialRoll"
:height="height"
:data="soList"
highlight-current-row
border
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column
v-for="(item,index) in soTable" :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"
:width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden">
<span v-if="item.format=='dateTime'"> {{ dayjs(scope.row[item.columnProp]).format('YYYY-MM-DD HH:mm:ss') }}</span>
<span v-if="item.format=='date'"> {{ dayjs(scope.row[item.columnProp]).format('YYYY-MM-DD') }}</span>
<span v-if="item.format=='int'"> {{ parseInt(scope.row[item.columnProp]) }}</span>
<span v-if="!item.format"> {{ scope.row[item.columnProp] }}</span>
</span>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
</div>
</template>
<script>
import {
soStatus,
} from '@/api/rollNoReview/rollNoReviewPage.js'
export default {
data() {
return {
height: 0,
dataListLoading: false,
// materialRoll
soList: [],
soQuery: {
site: this.$store.state.user.site,
orderno: '',
enterdate: '',
enterdateEnd: '',
partno: '',
partdesc: '',
status: '全部',
schedulingStatus: ''
},
soTable: [
{
tableId: "soTable",
tableName: "生产订单状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 10,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'orderno',
columnLabel: '生产订单号',
columnWidth: 100,
}, {
tableId: "soTable",
tableName: "生产订单状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: 'dateTime',
functionId: this.$route.meta.menuId,
sortLv: 20,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'enterDate',
columnLabel: '订单录入日期',
columnWidth: 150,
sortable: true
}, {
tableId: "soTable",
tableName: "生产订单状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 40,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'partno',
columnLabel: '物料编号',
columnWidth: 120,
sortable: true
}, {
tableId: "soTable",
tableName: "生产订单状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 50,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'partdesc',
columnLabel: '物料描述',
columnWidth: 220
}, {
tableId: "soTable",
tableName: "生产订单状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: 'int',
functionId: this.$route.meta.menuId,
sortLv: 60,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'lotsize',
columnLabel: '订单需求数量',
columnWidth: 100,
}, {
tableId: "soTable",
tableName: "生产订单状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 70,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'status',
columnLabel: '订单状态',
columnWidth: 100,
sortable: true
}, {
tableId: "soTable",
tableName: "生产订单状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: 'int',
functionId: this.$route.meta.menuId,
sortLv: 80,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'itemNo',
columnLabel: '工序号',
columnWidth: 100,
}, {
tableId: "soTable",
tableName: "生产订单状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 90,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'operationDesc',
columnLabel: '工序描述',
columnWidth: 100
}, {
tableId: "soTable",
tableName: "生产订单状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: 'int',
functionId: this.$route.meta.menuId,
sortLv: 100,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'qtyrequiredOp',
columnLabel: '工序要求数量',
columnWidth: 100,
}, {
tableId: "soTable",
tableName: "生产订单状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 110,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'scheduledflag',
columnLabel: '是否排产',
columnWidth: 100,
sortable: true
}, {
tableId: "soTable",
tableName: "生产订单状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: 'int',
functionId: this.$route.meta.menuId,
sortLv: 120,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'qtyScheduled',
columnLabel: '排产数量',
columnWidth: 100,
}, {
tableId: "soTable",
tableName: "生产订单状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: 'int',
functionId: this.$route.meta.menuId,
sortLv: 130,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'qtyapproveOp',
columnLabel: '报告良品数量',
columnWidth: 120,
}, {
tableId: "soTable",
tableName: "生产订单状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 140,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'seqno',
columnLabel: '派工单号',
columnWidth: 100
}, {
tableId: "soTable",
tableName: "生产订单状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 150,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'sResourceid',
columnLabel: '派工单机台',
columnWidth: 100
}, {
tableId: "soTable",
tableName: "生产订单状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: 'int',
functionId: this.$route.meta.menuId,
sortLv: 160,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'qtyrequiredSeq',
columnLabel: '派工单需求数量',
columnWidth: 100,
}, {
tableId: "soTable",
tableName: "生产订单状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: 'int',
functionId: this.$route.meta.menuId,
sortLv: 170,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'qtyapproveSeq',
columnLabel: '派工单报告良品数量',
columnWidth: 130,
}, {
tableId: "soTable",
tableName: "生产订单状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 180,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'closedFlag',
columnLabel: '派工单是否完成',
columnWidth: 100
}, {
tableId: "soTable",
tableName: "生产订单状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 190,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'noRollsComp',
columnLabel: '派工单生产卷数',
columnWidth: 100
}, {
tableId: "soTable",
tableName: "生产订单状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 200,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'rollnoOnline',
columnLabel: '派工单在线卷号',
columnWidth: 100
}, {
tableId: "soTable",
tableName: "生产订单状态查询",
headerAlign: 'center',
columnHidden: false,
columnImage: false,
columnSortable: true,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 210,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: null,
columnProp: 'site',
columnLabel: '工厂编号',
columnWidth: 100
}],
// label
labelData: {
search: '查询',
export: '导出',
exportName: '生产订单状态',
site: '工厂编号',
orderno: '生产订单号',
rollno: '卷号',
enterdate: '录入日期',
partno: '物料编码',
partdesc: '物料描述',
status: '订单状态',
schedulingStatus: '排产状态'
},
}
},
mounted() {
this.$nextTick(() => {
this.height = window.innerHeight - 200;
})
},
methods: {
// materialRoll
searchSoStatusList() {
soStatus(this.soQuery).then(({data}) => {
if (data && data.code == 0) {
this.soList = data.data
}
})
},
//
fields() {
let json = "{"
this.soTable.forEach((item, index) => {
if (index == this.soTable.length - 1) {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
} else {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
}
})
json += "}"
let s = eval("(" + json + ")")
return s
},
createExportData() {
// ,,
return this.soList;
},
},
created() {
}
}
</script>
<style scoped>
/deep/ .customer-tab .el-tabs__content {
padding: 3px !important;
font-size: 12px;
}
/deep/ .customer-tab .el-tabs__item {
padding: 0 20px;
height: 30px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
line-height: 30px;
display: inline-block;
list-style: none;
font-size: 12px;
font-weight: 500;
color: #303133;
position: relative;
}
.el-textarea__inner {
padding: 5px 5px;
}
.el-dropdown-menu--medium .el-dropdown-menu__item {
line-height: 18px;
padding: 0 17px;
font-size: 12px;
}
hr {
margin-top: 0px;
width: 95%;
}
.el-dropdown-link {
cursor: pointer;
color: #409EFF;
}
</style>
Loading…
Cancel
Save