|
|
@ -42,7 +42,11 @@ |
|
|
:min-width="item.columnWidth" |
|
|
:min-width="item.columnWidth" |
|
|
:label="item.columnLabel"> |
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span> |
|
|
|
|
|
|
|
|
<span v-if="!item.columnHidden">{{ |
|
|
|
|
|
item.columnProp === 'partStage' |
|
|
|
|
|
? formatPartStageDesc(scope.row.partStage) |
|
|
|
|
|
: scope.row[item.columnProp] |
|
|
|
|
|
}}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
style="width: 100px; height: 100px"/></span> |
|
|
style="width: 100px; height: 100px"/></span> |
|
|
</template> |
|
|
</template> |
|
|
@ -457,6 +461,24 @@ export default { |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: false |
|
|
fixed: false |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: this.functionId, |
|
|
|
|
|
serialNumber: 'partTablePartStage', |
|
|
|
|
|
tableId: 'partTable', |
|
|
|
|
|
tableName: '产品信息', |
|
|
|
|
|
columnProp: 'partStage', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '物料阶段', |
|
|
|
|
|
columnWidth: '100', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: false |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: this.functionId, |
|
|
functionId: this.functionId, |
|
|
@ -625,6 +647,9 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
formatPartStageDesc (partStage) { |
|
|
|
|
|
return partStage === 'Approved' ? '正式物料' : '新增物料' |
|
|
|
|
|
}, |
|
|
getBaseList (val, type) { |
|
|
getBaseList (val, type) { |
|
|
this.tagNo = val |
|
|
this.tagNo = val |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
@ -769,7 +794,9 @@ export default { |
|
|
params: this.searchData, |
|
|
params: this.searchData, |
|
|
fileName: this.exportName + '.xlsx', |
|
|
fileName: this.exportName + '.xlsx', |
|
|
rowFetcher: res => res.data, |
|
|
rowFetcher: res => res.data, |
|
|
columnFormatter: [], |
|
|
|
|
|
|
|
|
columnFormatter: [ |
|
|
|
|
|
{ columnProp: 'partStage', formatter: (val) => this.formatPartStageDesc(val) } |
|
|
|
|
|
], |
|
|
dropColumns: [] |
|
|
dropColumns: [] |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|