|
|
@ -43,8 +43,8 @@ |
|
|
:label="item.columnLabel"> |
|
|
:label="item.columnLabel"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="!item.columnHidden">{{ |
|
|
<span v-if="!item.columnHidden">{{ |
|
|
item.columnProp === 'status' |
|
|
|
|
|
? (scope.row.status === 'Y' ? '在用' : scope.row.status === 'N' ? '禁用' : scope.row.status) |
|
|
|
|
|
|
|
|
item.columnProp === 'partStage' |
|
|
|
|
|
? formatPartStageDesc(scope.row.partStage) |
|
|
: scope.row[item.columnProp] |
|
|
: scope.row[item.columnProp] |
|
|
}}</span> |
|
|
}}</span> |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
@ -166,10 +166,10 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="6"> |
|
|
<el-col :span="6"> |
|
|
<el-form-item label="是否在用"> |
|
|
|
|
|
|
|
|
<el-form-item label="状态"> |
|
|
<el-select v-model="currentpart.status" placeholder="请选择" > |
|
|
<el-select v-model="currentpart.status" placeholder="请选择" > |
|
|
<el-option label="在用" value="Y"></el-option> |
|
|
|
|
|
<el-option label="禁用" value="N"></el-option> |
|
|
|
|
|
|
|
|
<el-option label="启用" value="N"></el-option> |
|
|
|
|
|
<el-option label="停用" value="Y"></el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
@ -461,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, |
|
|
@ -470,7 +488,7 @@ export default { |
|
|
columnProp: 'status', |
|
|
columnProp: 'status', |
|
|
headerAlign: 'center', |
|
|
headerAlign: 'center', |
|
|
align: 'center', |
|
|
align: 'center', |
|
|
columnLabel: '是否在用', |
|
|
|
|
|
|
|
|
columnLabel: '状态', |
|
|
columnWidth: '80', |
|
|
columnWidth: '80', |
|
|
columnHidden: false, |
|
|
columnHidden: false, |
|
|
columnImage: false, |
|
|
columnImage: false, |
|
|
@ -583,7 +601,7 @@ export default { |
|
|
sourcingName: '', |
|
|
sourcingName: '', |
|
|
category: '', |
|
|
category: '', |
|
|
unit: '', |
|
|
unit: '', |
|
|
status: 'Y', |
|
|
|
|
|
|
|
|
status: 'N', |
|
|
codeNo: '', |
|
|
codeNo: '', |
|
|
createBy: '', |
|
|
createBy: '', |
|
|
remark: '', |
|
|
remark: '', |
|
|
@ -629,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(() => { |
|
|
@ -773,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: [] |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
@ -841,7 +864,7 @@ export default { |
|
|
sourcingName: '', |
|
|
sourcingName: '', |
|
|
category: '', |
|
|
category: '', |
|
|
unit: '', |
|
|
unit: '', |
|
|
status: 'Y', |
|
|
|
|
|
|
|
|
status: 'N', |
|
|
codeNo: '', |
|
|
codeNo: '', |
|
|
createBy: this.$store.state.user.name, |
|
|
createBy: this.$store.state.user.name, |
|
|
remark: '', |
|
|
remark: '', |
|
|
|