diff --git a/src/api/checkDetection/index.js b/src/api/checkDetection/index.js index 1508128..e97e28c 100644 --- a/src/api/checkDetection/index.js +++ b/src/api/checkDetection/index.js @@ -6,8 +6,17 @@ const groupByCheckType=(data)=> { method: 'post', data:data }) - } +} + +const getList=data=>{ + return request({ + url: `bgscreen/checkDetection/getList`, + method: 'post', + data:data + }) +} export default{ - groupByCheckType + groupByCheckType, + getList } \ No newline at end of file diff --git a/src/api/measure/index.js b/src/api/measure/index.js index 436e6f0..8120937 100644 --- a/src/api/measure/index.js +++ b/src/api/measure/index.js @@ -7,7 +7,14 @@ const groupMeasureInfo=(data)=> { data:data }) } - +const getList=data=>{ + return request({ + url: `bgscreen/measure/getList`, + method: 'post', + data:data + }) +} export default{ - groupMeasureInfo + groupMeasureInfo, + getList } \ No newline at end of file diff --git a/src/pages/projectQuality.vue b/src/pages/projectQuality.vue index f47e9ec..3c1338c 100644 --- a/src/pages/projectQuality.vue +++ b/src/pages/projectQuality.vue @@ -225,6 +225,8 @@ + + @@ -241,12 +243,15 @@ import '../components/people-number' import ProblemmodifyDetail from './components/ProblemmodifyDetail.vue' import showCheckingDlg from './quality/showCheckingDlg.vue' import materialSealDetialDlg from './quality/materialSealDetialDlg.vue' +import checkDetectionDlg from './quality/checkDetectionDlg.vue' +import measuredDlg from './quality/measuredDlg.vue' export default { components:{ - ProblemmodifyDetail,showCheckingDlg,materialSealDetialDlg + ProblemmodifyDetail,showCheckingDlg,materialSealDetialDlg,checkDetectionDlg,measuredDlg }, data() { return { + materialSealList:[], selDate:'', elKey:0, materialSealEl:0, @@ -357,10 +362,19 @@ export default { }, methods: { doShowCheckDetectionDlg(){ - + this.$refs.chkDetectionDlg.showDialog({ + deptId:this.dept?.id||0, + projectId:this.projectInfo.id, + checkType:this.samplingNav + }); }, doShowMeasuredDlg(){ - + /* + this.$refs.measuredDlg.showDialog({ + deptId:this.dept?.id||0, + projectId:this.projectInfo.id, + measureType:this.measuredNav + });*/ }, showMaterialSeal(it){ this.$refs.msDlg.showDialog(it); @@ -368,7 +382,7 @@ export default { selectTop20materialSeal(){ let postData={}; postData.deptId=this.dept?.id||0; - postData.projectId=this.projectInfo.id; + postData.projectId=this.projectInfo?.id||0; this.$api.materialSeal.selectTop20(postData).then(d=>{ this.materialSealList=d.data||[]; this.materialSealEl++; diff --git a/src/pages/quality/checkDetectionDlg.vue b/src/pages/quality/checkDetectionDlg.vue index 600d4fb..73f4d13 100644 --- a/src/pages/quality/checkDetectionDlg.vue +++ b/src/pages/quality/checkDetectionDlg.vue @@ -1,49 +1,127 @@ @@ -56,43 +134,183 @@ export default { }, data() { return { - nav: 0, + fontSize: 0, + title:'', show: false, - tableData: [] + dataTable: [] }; }, mounted() { - window.dlg2 = this - this.tableData = [ - - ] }, - methods: { toggleNav(n) { this.nav = n; }, - showDialog() { - this.show = true + showDialog(opt) { + + this.show = true + this.$api.checkDetection.getList(opt).then(d=>{ + this.dataTable=d.data||[]; + this.title="材料进场取样复试-"+['汇总','钢筋原材料','钢筋试拉件','混凝土试件','其他'][opt.checkType||0]+`[${this.dataTable.length}]`; + }); } }, }; - \ No newline at end of file diff --git a/src/pages/quality/measuredDlg.vue b/src/pages/quality/measuredDlg.vue index afee935..3c5db8f 100644 --- a/src/pages/quality/measuredDlg.vue +++ b/src/pages/quality/measuredDlg.vue @@ -1,49 +1,127 @@ @@ -56,43 +134,183 @@ export default { }, data() { return { - nav: 0, + fontSize: 0, + title:'', show: false, - tableData: [] + dataTable: [] }; }, mounted() { - window.dlg2 = this - this.tableData = [ - - ] }, - methods: { toggleNav(n) { this.nav = n; }, - showDialog() { - this.show = true + showDialog(opt) { + + this.show = true + this.$api.measure.getList(opt).then(d=>{ + this.dataTable=d.data||[]; + this.title="实测实量-"+['汇总','混泥土工程','二次构建','房间尺寸','抹灰工程','其它'][opt.checkType||0]+`[${this.dataTable.length}]`; + }); } }, }; - \ No newline at end of file