diff --git a/src/views/plant/resource/workline.vue b/src/views/plant/resource/workline.vue
index 9654f5c..1e7708c 100644
--- a/src/views/plant/resource/workline.vue
+++ b/src/views/plant/resource/workline.vue
@@ -25,6 +25,7 @@
{{ getValue(scope.row['WorkLine-PlantNr']) }}
{{ parseTime(scope.row[item]) }}
{{ parseTime(scope.row[item]) }}
+ {{ workTypeTrans(scope.row[item]) }}
{{ scope.row[item] }}
@@ -243,7 +244,6 @@ export default {
},
created() {
this.options = getWorkshopList()
- this.getList()
// 获取产线类型
this.getStanderOne({ statid: 'WorkLine-LineType' }).then(res => {
this.lineTypeArray = res.data
@@ -264,6 +264,7 @@ export default {
getCostcenterList().then(res => {
this.costCenterArray = res.data
})
+ this.getList()
this.getAttrList()
},
methods: {
@@ -287,8 +288,9 @@ export default {
this.headers = [
'WorkLine-PlantNr',
'WorkLine-WorkLineid',
- 'WorkLine-WeekModelNr',
'WorkLine-Descr',
+ 'WorkLine-LineType',
+ 'WorkLine-LinePlanMode',
'WorkLine-WeekModelNr',
'WorkLine-WorkCalendarNr',
'WorkLine-Location',
@@ -296,6 +298,7 @@ export default {
'WorkLine-CostRate',
'WorkLine-ProdEff',
'WorkLine-ReqWorkers',
+ 'WorkLine-Pos',
'WorkLine-LastModify',
'WorkLine-LastUser',
'WorkLine-CreateTime',
@@ -315,21 +318,35 @@ export default {
this.open = false
this.reset()
},
+ // 产线类型字段转换
+ workTypeTrans(value) {
+ if (this.lineTypeArray.length > 0) {
+ let fieldValue = ''
+ this.lineTypeArray.forEach(el => {
+ if (value === el['stdeftab-stdeftyp']) {
+ fieldValue = el['stdeftab-bez']
+ }
+ })
+ return fieldValue
+ }
+ },
// 表单重置
reset() {
this.isAdd = true
this.form = {
'WorkLine-PlantNr': undefined,
'WorkLine-WorkLineid': undefined,
- 'WorkLine-WeekModelNr': undefined,
'WorkLine-Descr': undefined,
+ 'WorkLine-LineType': undefined,
+ 'WorkLine-LinePlanMode': undefined,
'WorkLine-WeekModelNr': undefined,
'WorkLine-WorkCalendarNr': undefined,
'WorkLine-Location': undefined,
'WorkLine-CostCenterId': undefined,
'WorkLine-CostRate': undefined,
'WorkLine-ProdEff': undefined,
- 'WorkLine-ReqWorkers': undefined
+ 'WorkLine-ReqWorkers': undefined,
+ 'WorkLine-Pos': undefined
}
this.activeName = 'first'
this.resetForm('form')