Browse Source

2024-08-28

采集优化(项目条件)
java8
fengyuan_yang 1 year ago
parent
commit
5eb444f8f8
  1. 9
      src/views/modules/qc/FAIResultEntry.vue
  2. 9
      src/views/modules/qc/FQCResultEntry.vue
  3. 9
      src/views/modules/qc/IPQCResultEntry.vue
  4. 15
      src/views/modules/report/IPQC_detail_report.vue
  5. 15
      src/views/modules/report/IQC_detail_report.vue

9
src/views/modules/qc/FAIResultEntry.vue

@ -307,7 +307,7 @@
</el-form-item>
</el-form>
<el-footer style="height:40px;margin-top: 55px;text-align:center">
<el-button type="primary" @click="saveData">保存</el-button>
<el-button type="primary" :loading="saveLoading" @click="saveData">保存</el-button>
<el-button type="primary" @click="modalFlag = false">关闭</el-button>
</el-footer>
</el-dialog>
@ -2382,7 +2382,8 @@
inspectionNo: ''
},
fileLoading: false,
subDetailLoading: false
subDetailLoading: false,
saveLoading: false
}
},
@ -3050,6 +3051,7 @@
this.$message.warning('请选择检验模板!')
return
}
this.saveLoading = true
if (this.modalData.flag === '1') {
saveFAIInspection(this.modalData).then(({data}) => {
if (data && data.code === 0) {
@ -3069,6 +3071,9 @@
confirmButtonText: '确定'
})
}
this.saveLoading = false
}).catch(()=>{
this.saveLoading = false
})
}
},

9
src/views/modules/qc/FQCResultEntry.vue

@ -291,7 +291,7 @@
</el-form-item>
</el-form>
<el-footer style="height:40px;margin-top: 55px;text-align:center">
<el-button type="primary" @click="saveData">保存</el-button>
<el-button type="primary" :loading="saveLoading" @click="saveData">保存</el-button>
<el-button type="primary" @click="modalFlag = false">关闭</el-button>
</el-footer>
</el-dialog>
@ -2356,7 +2356,8 @@
inspectionNo: ''
},
fileLoading: false,
subDetailLoading: false
subDetailLoading: false,
saveLoading: false
}
},
@ -3024,6 +3025,7 @@
this.$message.warning('请选择检验模板!')
return
}
this.saveLoading = true
if (this.modalData.flag === '1') {
saveFQCInspection(this.modalData).then(({data}) => {
if (data && data.code === 0) {
@ -3043,6 +3045,9 @@
confirmButtonText: '确定'
})
}
this.saveLoading = false
}).catch(()=>{
this.saveLoading = false
})
}
},

9
src/views/modules/qc/IPQCResultEntry.vue

@ -305,7 +305,7 @@
</el-form-item>
</el-form>
<el-footer style="height:40px;margin-top: 55px;text-align:center">
<el-button type="primary" @click="saveData">保存</el-button>
<el-button type="primary" :loading="saveLoading" @click="saveData">保存</el-button>
<el-button type="primary" @click="modalFlag = false">关闭</el-button>
</el-footer>
</el-dialog>
@ -2429,7 +2429,8 @@
inspectionNo: ''
},
fileLoading: false,
subDetailLoading: false
subDetailLoading: false,
saveLoading: false
}
},
@ -3318,6 +3319,7 @@
this.$message.warning('请选择检验模板!')
return
}
this.saveLoading = true
if(this.modalData.flag === '1'){
saveOsInspection(this.modalData).then(({data}) => {
if (data && data.code === 0) {
@ -3337,6 +3339,9 @@
confirmButtonText: '确定'
})
}
this.saveLoading = false
}).catch(()=>{
this.saveLoading = false
})
}
},

15
src/views/modules/report/IPQC_detail_report.vue

@ -1044,7 +1044,7 @@ export default {
this.getTableUserColumn(this.$route.meta.menuId+'table',1)
if (!this.authSearch) {
//
this.getDataList()
//this.getDataList()
}
},
@ -1115,6 +1115,19 @@ export default {
//
getDataList () {
let searchFlag = true
Object.keys(this.searchData).forEach(val=>{
if (val !== 'userName' && val !== 'inspectionTypeNo' && val !== 'page' && val !== 'limit' && val !== 'downloadType') {
if (this.searchData[val].length > 0) {
searchFlag = false
return
}
}
})
if (searchFlag) {
this.$message.warning('数据量过大,请填写查询条件后再执行操作!')
return
}
this.searchLoading = true
this.searchData.limit = this.pageSize
this.searchData.page = this.pageIndex

15
src/views/modules/report/IQC_detail_report.vue

@ -1089,7 +1089,7 @@ export default {
this.getTableUserColumn(this.$route.meta.menuId+'table',1)
if (!this.authSearch) {
//
this.getDataList()
//this.getDataList()
}
},
@ -1160,6 +1160,19 @@ export default {
//
getDataList () {
let searchFlag = true
Object.keys(this.searchData).forEach(val=>{
if (val !== 'userName' && val !== 'inspectionTypeNo' && val !== 'page' && val !== 'limit' && val !== 'downloadType') {
if (this.searchData[val].length > 0) {
searchFlag = false
return
}
}
})
if (searchFlag) {
this.$message.warning('数据量过大,请填写查询条件后再执行操作!')
return
}
this.searchLoading = true
this.searchData.limit = this.pageSize
this.searchData.page = this.pageIndex

Loading…
Cancel
Save