diff --git a/src/api/checkDetection/index.js b/src/api/checkDetection/index.js index e9b4977..31d018e 100644 --- a/src/api/checkDetection/index.js +++ b/src/api/checkDetection/index.js @@ -16,7 +16,15 @@ const getList=(data,pageSize,pageNum)=>{ }) } +const groupCheckType=data=>{ + return request({ + url: `bgscreen/checkDetection/groupCheckType`, + method: 'post', + data:data + }) +} export default{ groupByCheckType, - getList + getList, + groupCheckType } \ No newline at end of file diff --git a/src/api/measure/index.js b/src/api/measure/index.js index 8120937..4ad063a 100644 --- a/src/api/measure/index.js +++ b/src/api/measure/index.js @@ -7,14 +7,23 @@ const groupMeasureInfo=(data)=> { data:data }) } -const getList=data=>{ +const getList=(data,pageSize,pageNum)=>{ return request({ - url: `bgscreen/measure/getList`, + url: `bgscreen/measure/getList?pageNum=${pageNum}&pageSize=${pageSize}`, method: 'post', data:data }) } +const groupMeasureType=data=>{ + return request({ + url: `bgscreen/measure/groupMeasureType`, + method: 'post', + data:data + }) +}; + export default{ groupMeasureInfo, - getList + getList, + groupMeasureType } \ No newline at end of file diff --git a/src/pages/projectQuality.vue b/src/pages/projectQuality.vue index 237844e..1591380 100644 --- a/src/pages/projectQuality.vue +++ b/src/pages/projectQuality.vue @@ -94,20 +94,9 @@ style="position: absolute; cursor: pointer; right: 12px; top: 12px" @click="doShowCheckDetectionDlg" />
-
- 汇总 -
-
- 钢筋原材料 -
-
- 钢筋试拉件 -
-
- 混凝土试件 -
-
- 其他 +
+ {{ it.text }}
@@ -214,27 +203,9 @@
-
- 汇总 -
-
- 混凝土 -
-
- 钢筋工程 -
-
- 二次结构 -
-
- 房间尺寸 -
-
- 装饰装修 -
-
- 其它 + style="padding-left: 12px; position: relative; z-index: 9"> +
+ {{it.text.replace("工程","") }}
{ + let tmps = (d || []).map(it => { + return { + text: it.dictLabel, + id: +it.dictValue + } + }); + this.detectionCheckType = [{ text: '汇总', id: 0 }, ...tmps] + }); + this.$api.dict("project_measure_type").then(d=>{ + let tmps = (d || []).map(it => { + return { + text: it.dictLabel, + id: +it.dictValue + } + }); + this.measureTypes = [{ text: '汇总', id: 0 }, ...tmps] + }); }, mounted() { let dt1 = this.$dt((+new Date()) - 30 * 24 * 3600 * 1000); @@ -472,7 +463,7 @@ export default { this.$refs.msListDlg.showDialog({ deptId: this.dept?.id || 0, projectId: this.projectInfo?.id || 0, - data:this.materialData + data: this.materialData }); }, initMe() { @@ -489,13 +480,15 @@ export default { deptId: this.dept?.id || 0, projectId: this.projectInfo.id, checkType: this.samplingNav, - data:this.chkDetection + types:this.detectionCheckType, + data: this.chkDetection }); }, doShowMeasuredDlg() { this.$refs.measuredDlg.showDialog({ deptId: this.dept?.id || 0, projectId: this.projectInfo.id, + types:this.measureTypes, measureType: this.measuredNav, }); }, diff --git a/src/pages/quality/checkDetectionDlg.vue b/src/pages/quality/checkDetectionDlg.vue index ac440c8..5dc1b92 100644 --- a/src/pages/quality/checkDetectionDlg.vue +++ b/src/pages/quality/checkDetectionDlg.vue @@ -35,8 +35,7 @@
-
审批中({{ total1}})
-
已完成({{ total2}})
+
{{it.text}}({{ it.count}})