|
|
@ -22,7 +22,6 @@ |
|
|
|
<span v-if="item === 'AP_CustDemandVerHead-PlantNr'">{{ getWorkshopName(scope.row['AP_CustDemandVerHead-PlantNr']) }}</span> |
|
|
|
<span v-else-if="item === 'AP_CustDemandVerHead-Status'">{{ scope.row['AP_CustDemandVerHead-Status'] == '1' ? '已发布':'未发布' }}</span> |
|
|
|
<span v-else-if="item === 'AP_CustDemandVerHead-Valid'">{{ scope.row['AP_CustDemandVerHead-Valid'] == true ? '当前使用':'' }}</span> |
|
|
|
<!-- AP_CustDemandVerHead-Valid --> |
|
|
|
<span v-else>{{ scope.row[item] }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
@ -88,9 +87,11 @@ export default { |
|
|
|
this.getWithRingStatus(newData) |
|
|
|
}, |
|
|
|
// 获取预测版本列表 |
|
|
|
getPredictList(id, data) { |
|
|
|
getPredictList(id, data, valid) { |
|
|
|
this.loading = true |
|
|
|
get(`/admin/ap/custdemandverhead/selectlist`, {customerId: id, ...{VersionId: data}}).then(({ code, data }) => { |
|
|
|
get(`/admin/ap/custdemandverhead/selectdata`, { |
|
|
|
customerId: id, ...{artId: data}, valid: valid |
|
|
|
}).then(({ code, data }) => { |
|
|
|
if (code === 200) { |
|
|
|
this.loading = false |
|
|
|
this.tableData = data |
|
|
@ -98,7 +99,7 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
searchEmitHandle(data) { |
|
|
|
this.getPredictList(this.customerId, data) |
|
|
|
this.getPredictList(this.customerId, data.artId, data.valid) |
|
|
|
}, |
|
|
|
resetEmitHandle() { |
|
|
|
this.getPredictList(this.customerId) |
|
|
|