+
-
@@ -218,14 +234,16 @@ import '../components/idle-list-chart'
import '../components/people-number'
import ProblemmodifyDetail from './components/ProblemmodifyDetail.vue'
import showCheckingDlg from './quality/showCheckingDlg.vue'
+import materialSealDetialDlg from './quality/materialSealDetialDlg.vue'
export default {
components:{
- ProblemmodifyDetail,showCheckingDlg
+ ProblemmodifyDetail,showCheckingDlg,materialSealDetialDlg
},
data() {
return {
selDate:'',
elKey:0,
+ materialSealEl:0,
elSummaryKey:0,
elSummaryPrjKey:0,
elCheck:0,
@@ -238,14 +256,7 @@ export default {
fontSize:'12px',
height:'32px'
},
- samplingNav:1,
- //机械设备管理
- mechanicalData:[
- {value: '5',prop: '62.5', text: '履带挖掘机'},
- {value: '1',prop: '12.5', text: '洒水车'},
- {value: '1',prop: '12.5', text: '轮胎装载机'},
- {value: 1,prop: '12.5', text: '小轿车'},
- ],
+ samplingNav:1,
measuredNav:0,
measuredTotal:0,
measuredText:" 全部",
@@ -313,26 +324,47 @@ export default {
}
}]
},
+ prjs:[]
}
},
created() {
this.init()
},
mounted() {
+ this.$bus.$on("loadProjects", prjs => {
+ this.prjs = prjs;
+ });
this.$bus.$on("projectChange", res => {
this.projectInfo=res;
this.doDeptChane();
this.checkDetection(1);
this.doMeasuredNav(1,'混泥土工程')
+ this.selectTop20materialSeal();
});
this.$bus.$on("deptChange",dept=>{
this.dept=dept;
this.doDeptChane();
this.checkDetection(1);
this.doMeasuredNav(1,'混泥土工程')
+ this.selectTop20materialSeal();
});
},
methods: {
+ showMaterialSeal(it){
+ this.$refs.msDlg.showDialog(it);
+ },
+ selectTop20materialSeal(){
+ let postData={};
+ if(this.projectInfo?.id||0==0){
+ postData.deptId=this.dept?.id||0;
+ }else{
+ postData.projectId=this.projectInfo.id;
+ }
+ this.$api.materialSeal.selectTop20(postData).then(d=>{
+ this.materialSealList=d.data||[];
+ this.materialSealEl++;
+ });
+ },
doShowChecking(it){
this.$refs.checkDlg.showDialog(it);
},
@@ -345,9 +377,9 @@ export default {
checkType:""+n
};
if(this.projectInfo?.id||0==0){
- postData.deptId=this.dept.id;
+ postData.deptId=this.dept?.id||0;
}else{
- postData.projectId=this.projectInfo.id;
+ postData.projectId=this.projectInfo?.id||0;
}
this.$api.checkDetection.groupByCheckType(postData).then(d=>{
let datas=d.data||[];
@@ -365,7 +397,7 @@ export default {
})
},
doProbleRowClick(a,b,c){
- this.$refs.probDlg.showDialog(a,1,this.safeNav);
+ this.$refs.probDlg.showDialog(a,1,this.safeNav,this.selDate);
},
fmt(n){
n=""+n;
@@ -428,7 +460,7 @@ export default {
} else {
it.prop = (it.value * 100.0 / this.summaryPrjTotal).toFixed(1);
}
- it.rate = (it.checkState * 100.0 / it.value).toFixed(1);
+ it.rate =(it.value==0?0:it.isDel * 100.0 / it.value).toFixed(1);
})
this.elSummaryPrjKey++;
});
@@ -699,5 +731,37 @@ export default {
padding:0px 8px;
}
}
+ .material-seal-list{
+ .material-seal-item{
+ padding:8px;
+ display: flex;
+ border-bottom: solid 1px #fff;
+ box-shadow: inset 7px 0px 11px 5px rgb(36 131 167 / 70%);
+ &:last-child{
+ border-bottom: none;
+ }
+ .material-seal-left{
+ width:40%;
+ }
+ .material-seal-right{
+ width:60%;
+ padding-left:12px;
+ line-height: 24px;
+ img{
+ width: 8px;
+ position: relative;;
+ top:3px;
+ }
+ .sp-lbl{
+ color: aquamarine;
+ white-space: nowrap;
+ }
+ .div-text{
+ margin-left:24px;
+ }
+ }
+ }
+
+ }
}
\ No newline at end of file
diff --git a/src/pages/projectSafety.vue b/src/pages/projectSafety.vue
index a8699fb..d6ac524 100644
--- a/src/pages/projectSafety.vue
+++ b/src/pages/projectSafety.vue
@@ -64,10 +64,9 @@
-
+
-
@@ -407,7 +406,7 @@ export default {
this.$refs.insDlg.showDialog(this.projects, this.projectInfo,row)
},
doProbleRowClick(a,b,c){
- this.$refs.probDlg.showDialog(a,0,this.safeNav);
+ this.$refs.probDlg.showDialog(a,0,this.safeNav,this.selDate);
},
doSpecialRowClick(row){
row.title = row.projectName+"特种作业人员清单";
@@ -556,7 +555,7 @@ export default {
} else {
it.prop = (it.value * 100.0 / this.summaryPrjTotal).toFixed(1);
}
- it.rate = (it.checkState * 100.0 / it.value).toFixed(1);
+ it.rate =(it.value==0?0:it.isDel * 100.0 / it.value).toFixed(1);
})
this.elSummaryPrjKey++;
})
diff --git a/src/pages/quality/materialSealDetialDlg.vue b/src/pages/quality/materialSealDetialDlg.vue
new file mode 100644
index 0000000..dbfefc6
--- /dev/null
+++ b/src/pages/quality/materialSealDetialDlg.vue
@@ -0,0 +1,303 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
封样名称
+
+
{{ row.materialName }}
+
+
+
使用部位
+
+
{{ row.usePosition }}
+
+
指定品牌
+
+
{{ row.contractBrand }}
+
+
拟用品牌
+
+
封样日期
+
+
+
会签单
+
+
+
+ {{ it.name }}
+ 下载
+
+
+
+
+
变更单
+
+
+
+ {{ it.name }}
+ 下载
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/safe/projectInsuranceDlg.vue b/src/pages/safe/projectInsuranceDlg.vue
index 2bd9027..af560c6 100644
--- a/src/pages/safe/projectInsuranceDlg.vue
+++ b/src/pages/safe/projectInsuranceDlg.vue
@@ -204,6 +204,9 @@ export default {
border-bottom: solid 1px #fff;
padding: 12px 0px 12px 20px;
box-shadow: inset 7px 0px 11px 5px rgb(36 131 167 / 70%);
+ &:last-child{
+ border-bottom: none;
+ }
.data-table{
border-collapse:collapse;
td{
diff --git a/vue.config.js b/vue.config.js
index 7b5d4ae..4a0ad91 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -16,8 +16,8 @@ module.exports = defineConfig({
}
},
'/jhapi':{
- //target: `http://62.234.3.186/jhapi/`,
- target: `http://127.0.0.1:8090/jhapi/`,
+ target: `http://62.234.3.186/jhapi/`,
+ //target: `http://127.0.0.1:8090/jhapi/`,
changeOrigin: true,
pathRewrite: {
'^/jhapi':'/'