生产追溯维护接口联调

dev-scheduling
zhangdi 4 days ago
parent 4f4eb1f1f1
commit 2980d793a0
  1. 16
      src/views/zhgd-work/retrospectDefend/components/oneRetrospectDefend.vue
  2. 2
      src/views/zhgd-work/retrospectDefend/components/twoRetrospectDefend.vue

@ -48,18 +48,16 @@
<el-table-column label="当前工序" align="center" prop="currentWpTitle" /> <el-table-column label="当前工序" align="center" prop="currentWpTitle" />
<el-table-column align="center" width="100" fixed="right" label="操作"> <el-table-column align="center" width="100" fixed="right" label="操作">
<template #default="scope"> <template #default="scope">
<el-button type="text" @click="deleteRow(scope.row.currentWpId)" <el-button type="text" @click="deleteRow(scope.row.currentWpId)">删除</el-button>
>删除</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span style="color: rgb(85, 85, 243);">维护电子档案</span> <span style="color: rgb(85, 85, 243)">维护电子档案</span>
</div> </div>
<el-form ref="form" :model="formData" :rules="rulesMold" inline style="margin-top: 10px;"> <el-form ref="form" :model="formData" :rules="rulesMold" inline style="margin-top: 10px">
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="设备编码:" prop="ecId"> <el-form-item label="设备编码:" prop="ecId">
@ -414,7 +412,7 @@ export default {
rbFilePreserveChange() { rbFilePreserveChange() {
getByRfpId({ rfpId: this.formData.rfpId }).then(res => { getByRfpId({ rfpId: this.formData.rfpId }).then(res => {
this.mtnCode = null; this.mtnCode = null;
this.preserveSlotList = res.data.data.preserveSlotList this.preserveSlotList = res.data.data.preserveSlotList;
}); });
// this.$ajax.get('dsRbFilePreserveSlot/getByRfpId/' + this.formData.rfpId).then(res => { // this.$ajax.get('dsRbFilePreserveSlot/getByRfpId/' + this.formData.rfpId).then(res => {
// if (this.$ifAjax(res)) { // if (this.$ifAjax(res)) {
@ -506,7 +504,7 @@ export default {
} }
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
:deep(.el-form--inline .el-form-item){ :deep(.el-form--inline .el-form-item) {
margin-bottom: 5px; margin-bottom: 5px;
} }
</style> </style>

@ -287,7 +287,7 @@ export default {
onSubmit() { onSubmit() {
let query = { let query = {
mtuId: this.obj.mtuId, mtuId: this.obj.mtuId,
line: this.line, line: this.line?'1':'0',
produceMonitorFileSlotVOList: this.preserveSlotList, produceMonitorFileSlotVOList: this.preserveSlotList,
}; };
remarryRedeemSaveRetrospectDefend(query).then(res => { remarryRedeemSaveRetrospectDefend(query).then(res => {

Loading…
Cancel
Save