生产追溯维护数据处理

dev-scheduling
zhangdi 5 days ago
parent 2980d793a0
commit e32bcb366c
  1. 18
      src/views/zhgd-work/retrospectDefend/components/twoRetrospectDefend.vue

@ -34,7 +34,7 @@
<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>
<div class="tableBox"> <div class="tableBoxss">
<table <table
v-if="preserveSlotList.length > 0" v-if="preserveSlotList.length > 0"
id="cus-table" id="cus-table"
@ -260,12 +260,12 @@ export default {
}, },
codeKeyUp() { codeKeyUp() {
if (this.cardNo) { if (this.cardNo) {
remarryRedeemRetrospectDefend({ cardNo: this.cardNo, line: this.line }).then(res => { remarryRedeemRetrospectDefend({ cardNo: this.cardNo, line: this.line?'1':'0' }).then(res => {
if (res.data != null && res.data.dsRbFilePreserveSlotList.length <= 0) { if (res.data.data != null && res.data.data.dsRbFilePreserveSlotList.length <= 0) {
return this.$message.warning('暂未查到对应的数据'); return this.$message.warning('暂未查到对应的数据');
} }
this.preserveSlotList = res.data.dsRbFilePreserveSlotList; this.preserveSlotList = res.data.data.dsRbFilePreserveSlotList;
this.obj = res.data; this.obj = res.data.data;
}); });
// this.$ajax // this.$ajax
// .post('prMakeRec/remarryRedeemRetrospectDefend', { // .post('prMakeRec/remarryRedeemRetrospectDefend', {
@ -287,7 +287,7 @@ export default {
onSubmit() { onSubmit() {
let query = { let query = {
mtuId: this.obj.mtuId, mtuId: this.obj.mtuId,
line: this.line?'1':'0', line: this.line,
produceMonitorFileSlotVOList: this.preserveSlotList, produceMonitorFileSlotVOList: this.preserveSlotList,
}; };
remarryRedeemSaveRetrospectDefend(query).then(res => { remarryRedeemSaveRetrospectDefend(query).then(res => {
@ -316,13 +316,15 @@ export default {
}, },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.content-box { .content-box {
height: calc(100vh - 40px - 40px - 20px - 10px - 51px - 60px); height: calc(100vh - 40px - 40px - 20px - 10px - 51px - 60px);
overflow-y: auto; overflow-y: auto;
} }
.tableBox { </style>
<style lang="scss" >
.tableBoxss {
min-height: 100%; min-height: 100%;
overflow: auto; overflow: auto;
padding-bottom: 30px; padding-bottom: 30px;

Loading…
Cancel
Save