徐明浩 3 éve
szülő
commit
d23f8e2316
1 módosított fájl, 68 hozzáadás és 15 törlés
  1. 68 15
      ui/src/views/invoicing/hazardwork/index.vue

+ 68 - 15
ui/src/views/invoicing/hazardwork/index.vue

@@ -2541,6 +2541,7 @@ export default {
         console.log(id);*/
       });
     },
+    //取消选中时-清除危害物质-危险性选中状态
     falseCheckbox() {
       this.cIsToxic = null;
       this.cIsFlammable = null;
@@ -2552,11 +2553,13 @@ export default {
       this.cIsCompressedGas = null;
       this.cIsEnvironmentalHazard = null;
     },
+    //获取装置设备数据
     queryDevices() {
       listDevice(this.bDeviceParams).then(response => {
         this.bDevices = response.rows;
       })
     },
+    //获取危害物质数据
     queryMatters() {
       listMatters().then(response => {
         this.matterNames = response.data;
@@ -2585,28 +2588,22 @@ export default {
         this[m] = '1';
       })
     },
-
+    //全部打开按钮
     allExpand() {
       this.activeNames = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14'];
     },
+    //全部关闭按钮
     allShrink() {
       this.activeNames = [];
     },
-
-    commonYesMethod(val) {
-      /*this[val] = "1";*/
-      console.log(val + " : " + this[val])
-    },
-    commonNoMethod(val) {
-      /*this[val] = "0";*/
-      console.log(val + " : " + this[val])
-    },
+    //提交当前数据
     onSubmit() {
       this.dataSet();
       updateTicket(this.form).then(response => {
         this.msgSuccess(this.$t('票据数据已更新'));
       });
     },
+    //点击生成ID
     aIdClick() {
       if (this.form.aId == null) {
         addTicket(this.form).then(response => {
@@ -2618,7 +2615,7 @@ export default {
 
       }
     },
-    //TODO 生产装置后台数据联动
+    //生产装置后台数据联动
     aEquipmentChange(val) {
       if (val == 1) {
         this.form.aEquipmentLeader = 'xmh';
@@ -2631,7 +2628,7 @@ export default {
         this.form.aEquipmentOffice = 'D600-B楼';
       }
     },
-    //TODO 施工单位后台数据联动
+    //施工单位后台数据联动
     aConstructionChange(val) {
       this.aConstructions.forEach(t => {
         console.log(val)
@@ -2642,7 +2639,7 @@ export default {
         }
       })
     },
-    //TODO 用户后台数据联动
+    //用户后台数据联动
     aContractorChange(val) {
       if (val == 1) {
         this.form.aContractorLeader = 'xmh';
@@ -2655,7 +2652,7 @@ export default {
         this.form.aContractorOffice = 'D600';
       }
     },
-    //TODO 安全联络员后台数据联动
+    //安全联络员后台数据联动
     aSafeLiaisonChange(val) {
       if (val == 1) {
         this.form.aSafeLiaisonTel = '10086';
@@ -2673,7 +2670,7 @@ export default {
       this.form.aSafeLiaisonTel = null;
       this.form.aSafeLiaisonOffice = null;
     },
-    //TODO 装置设备后台数据联动
+    //装置设备后台数据联动
     bDeviceChange(val) {
       this.bDevices.forEach(t => {
         if (t.id == val) {
@@ -2682,21 +2679,27 @@ export default {
         }
       })
     },
+    //高温
     highTempChange() {
       this.form.cIsLowTemp = "0";
     },
+    //低温
     lowTempChange() {
       this.form.cIsHighTemp = "0";
     },
+    //正压
     posPressureChange() {
       this.form.cIsNegPressure = "0";
     },
+    //负压
     negPressureChange() {
       this.form.cIsPosPressure = "0";
     },
+    //热表面
     hotSurfacesChange() {
       this.form.cIsColdSurfaces = "0";
     },
+    //冷表面
     coldSurfacesChange() {
       this.form.cIsHotSurfaces = "0";
     },
@@ -2774,21 +2777,25 @@ export default {
       this.form.eResProtectContent = this.eResProtectContent;
       this.form.eProtectSuitContent = this.eProtectSuitContent;
     },
+    //取消其他危害选中时-清除数据
     otherDangerChange() {
       if (this.form.cIsOtherDanger == '0') {
         this.form.cOtherDangerContent = null;
       }
     },
+    //电气回路编号与仪表号/测点编号二选一
     dElecircuitChange() {
       if (this.form.dEleCircuitNo != null && this.form.dEleCircuitNo != '/') {
         this.form.dInsTagNo = '/';
       }
     },
+    //电气回路编号与仪表号/测点编号二选一
     dInsTagChange() {
       if (this.form.dInsTagNo != null && this.form.dInsTagNo != '/') {
         this.form.dEleCircuitNo = '/';
       }
     },
+    //取消选中设备内物质处于危险状态-清除数据
     eHazardsChange() {
       if (this.isEquipmentHazards == '0') {
         this.form.cIsHighTemp = null;
@@ -2797,11 +2804,13 @@ export default {
         this.form.cIsNegPressure = null;
       }
     },
+    //取消施工对生产单位的危害-清除数据
     cHazardsProdChange() {
       if (this.form.cIsHazardsProd == '0') {
         this.form.cIsHazardsProdContent = null;
       }
     },
+    //取消来自设备/设施的危害-清除数据
     facilityChange() {
       if (this.isFacilityHazards == '0') {
         this.form.cIsMovingParts = null;
@@ -2810,6 +2819,7 @@ export default {
         this.form.cIsVoltages = null;
       }
     },
+    //取消安全保护设备的施工-清除数据
     workProChange() {
       if (this.form.cIsWorkProtective == '0') {
         this.form.cIsDy = null;
@@ -2817,24 +2827,29 @@ export default {
         this.form.cIsLq = null;
       }
     },
+    //TODO D栏否的状态清除数据\
+    //D-1.1
     dIsOpenSafeChange() {
       if (this.form.dIsOpenSafe == '0') {
         this.form.dSafeImplSign11 = null;
         this.form.dSafeImplDate11 = null;
       }
     },
+    //D-1.2
     dIsDkdyxChange() {
       if (this.form.dIsDkdyx == '0') {
         this.form.dDkdyxImplSign = null;
         this.form.dDkdyxImplDate = null;
       }
     },
+    //D-1.2
     dIsDisFeederChange() {
       if (this.form.dIsDisFeeder == '0') {
         this.form.dDisFeederImplSign = null;
         this.form.dDisFeederImplDate = null;
       }
     },
+    //D-1.2
     dIsBreakInclChange() {
       if (this.form.dIsBreakIncl == '0') {
         this.form.dBreakInclContent = null;
@@ -2842,6 +2857,7 @@ export default {
         this.form.dBreakInclImplDate = null;
       }
     },
+    //D-1.2
     dIsDqhlChange() {
       if (this.form.dIsDqhl == '0') {
         this.form.dEleCircuitNo = null;
@@ -2849,6 +2865,7 @@ export default {
         this.form.dDqhlImplDate = null;
       }
     },
+    //D-1.2
     dIsYbhChange() {
       if (this.form.dIsYbh == '0') {
         this.form.dInsTagNo = null;
@@ -2856,12 +2873,14 @@ export default {
         this.form.dSafeImplDate12 = null;
       }
     },
+    //D-1.3
     dIsRadioactiveSourcesChange() {
       if (this.form.dIsRadioactiveSources == '0') {
         this.form.dSafeImplSign13 = null;
         this.form.dSafeImplDate13 = null;
       }
     },
+    //D-1.4
     dIsOtherEquSafeChange() {
       if (this.form.dIsOtherEquSafe == '0') {
         this.form.dIsOtherEquSafeContent = null;
@@ -2869,24 +2888,28 @@ export default {
         this.form.dSafeImplDate14 = null;
       }
     },
+    //D-2.1
     dIsDepressChange() {
       if (this.form.dIsDepress == '0') {
         this.form.dSafeImplSign21 = null;
         this.form.dSafeImplDate21 = null;
       }
     },
+    //D-2.2
     dIsSingleBlockingChange() {
       if (this.form.dIsSingleBlocking == '0') {
         this.form.dSafeImplSign22 = null;
         this.form.dSafeImplDate22 = null;
       }
     },
+    //D-2.3
     dIsDoubleBlockChange() {
       if (this.form.dIsDoubleBlock == '0') {
         this.form.dSafeImplSign23 = null;
         this.form.dSafeImplDate23 = null;
       }
     },
+    //D-2.4
     dIsLockoutUsingChange() {
       if (this.form.dIsLockoutUsing == '0') {
         this.form.dLockoutUsingContent = null;
@@ -2894,24 +2917,28 @@ export default {
         this.form.dSafeImplDate24 = null;
       }
     },
+    //D-2.5
     dIsRemovePipeChange() {
       if (this.form.dIsRemovePipe == '0') {
         this.form.dSafeImplSign25 = null;
         this.form.dSafeImplDate25 = null;
       }
     },
+    //D-2.6
     dIsDisPipesChange() {
       if (this.form.dIsDisPipes == '0') {
         this.form.dSafeImplSign26 = null;
         this.form.dSafeImplDate26 = null;
       }
     },
+    //D-2.7
     dIsInsertBlindPlageChange() {
       if (this.form.dIsInsertBlindPlage == '0') {
         this.form.dSafeImplSign27 = null;
         this.form.dSafeImplDate27 = null;
       }
     },
+    //D-2.8
     dIsMecSecureChange() {
       if (this.form.dIsMecSecure == '0') {
         this.form.dMecSecureContent = null;
@@ -2919,12 +2946,14 @@ export default {
         this.form.dSafeImplDate28 = null;
       }
     },
+    //D-2.9
     dIsIsolationDiagramChange() {
       if (this.form.dIsIsolationDiagram == '0') {
         this.form.dSafeImplSign29 = null;
         this.form.dSafeImplDate29 = null;
       }
     },
+    //D-2.10
     dIsOtherSafePlantChange() {
       if (this.form.dIsOtherSafePlant == '0') {
         this.form.dOtherSafePlantContent = null;
@@ -2932,12 +2961,14 @@ export default {
         this.form.dSafeImplDate210 = null;
       }
     },
+    //D-3.1
     dIsDrainChange() {
       if (this.form.dIsDrain == '0') {
         this.form.dSafeImplSign31 = null;
         this.form.dSafeImplDate31 = null;
       }
     },
+    //D-3.2
     dIsCleanChange() {
       if (this.form.dIsClean == '0') {
         this.form.dCleanContent = null;
@@ -2945,6 +2976,7 @@ export default {
         this.form.dSafeImplDate32 = null;
       }
     },
+    //D-3.3
     dIsFlushChange() {
       if (this.form.dIsFlush == '0') {
         this.form.dFlushContent = null;
@@ -2952,6 +2984,7 @@ export default {
         this.form.dSafeImplDate33 = null;
       }
     },
+    //D-3.4
     dIsOhterCleanChange() {
       if (this.form.dIsOhterClean == '0') {
         this.form.dOtherCleanContent = null;
@@ -2959,6 +2992,7 @@ export default {
         this.form.dSafeImplDate34 = null;
       }
     },
+    //D-4.1
     dIsSiteDemarcationChange() {
       if (this.form.dIsSiteDemarcation == '0') {
         this.form.dSiteDemarcationContent = null;
@@ -2966,6 +3000,7 @@ export default {
         this.form.dSafeImplDate41 = null;
       }
     },
+    //D-4.2
     dIsAreaCoverChange() {
       if (this.form.dIsAreaCover == '0') {
         this.form.dAreaCoverContent = null;
@@ -2973,18 +3008,21 @@ export default {
         this.form.dSafeImplDate42 = null;
       }
     },
+    //D-4.3
     dIsCloseTrucksChange() {
       if (this.form.dIsCloseTrucks == '0') {
         this.form.dSafeImplSign43 = null;
         this.form.dSafeImplDate43 = null;
       }
     },
+    //D-4.4
     dIsLeakFlangesChange() {
       if (this.form.dIsLeakFlanges == '0') {
         this.form.dSafeImplSign44 = null;
         this.form.dSafeImplDate44 = null;
       }
     },
+    //D-4.5
     dIsOtherWorkSafeChange() {
       if (this.form.dIsOtherWorkSafe == '0') {
         this.form.dOtherWorkSafeContent = null;
@@ -2992,6 +3030,7 @@ export default {
         this.form.dSafeImplDate45 = null;
       }
     },
+    //D-5.1
     dIsOtherMeasureChange() {
       if (this.form.dIsOtherMeasure == '0') {
         this.form.dOtherMeasureContent = null;
@@ -2999,6 +3038,7 @@ export default {
         this.form.dSafeImplDate51 = null;
       }
     },
+    //D-6
     dIsSafeBriefingChange() {
       if (this.form.dIsSafeBriefing == '0') {
         this.form.dPartakeBriefingSign = null;
@@ -3008,68 +3048,81 @@ export default {
         this.form.dNoReasonContent = null;
       }
     },
+    //取消仅限定时间内佩戴的PPE选中-清除数据
     eIsRequiredPpeChange() {
       if (this.form.eIsRequiredPpe == '0') {
         this.form.ePpeContent = null;
       }
     },
+    //取消防护手套选中-清除数据
     eIsProtectGlovesChange() {
       if (this.eIsProtectGloves == '0') {
         this.eProtectGlovesContent = null;
       }
     },
+    //取消防护服选中-清除数据
     eIsProtectSuitChange() {
       if (this.eIsProtectSuit == '0') {
         this.eProtectSuitContent = null;
       }
     },
+    //取消呼吸保护用品选中-清除数据
     eIsResProtectChange() {
       if (this.eIsResProtect == '0') {
         this.eResProtectContent = null;
       }
     },
+    //取消防坠落装置选中-清除数据
     eIsFallArrestChange() {
       if (this.eIsFallArrest == '0') {
         this.form.eFallArrestContent = null;
       }
     },
+    //E-2.9
     eIsOtherProtectChange() {
       if (this.form.eIsOtherProtect == '0') {
         this.form.eOtherProtectContent = null;
       }
     },
+    //取消安全监护人单位/签字选中-清除数据
     eIsContinueMonitoringChange() {
       if (this.form.eIsContinueMonitoring == '0') {
         this.form.eSafeAttendant = null;
         this.form.eSafeAttendantSign = null;
       }
     },
+    //取消自然通风选中-清除数据
     eIsNaturalVenChange() {
       if (this.form.eIsNaturalVen == '0') {
         this.form.eNaturalVenContent = null;
       }
     },
+    //取消机械通风选中-清除数据
     eIsMecVenChange() {
       if (this.form.eIsMecVen == '0') {
         this.form.eMecVenContent = null;
       }
     },
+    //取消空气分析内容选中-清除数据
     eIsAnalyzeAirChange() {
       if (this.form.eIsAnalyzeAir == '0') {
         this.form.eAnalyzeAirContent = null;
         this.form.eAnalyzeAirInterval = null;
       }
     },
+    //E-4.5
     eIsOtherVenChange() {
       if (this.form.eIsOtherVen == '0') {
         this.form.eOtherVenContent = null;
       }
     },
+    //取消F施工后的安全措施选中-清除数据
     fIsAfterWorkSafeChange() {
       if (this.form.fIsAfterWorkSafe == '0') {
         this.form.fAfterWorkSafeContent = null;
       }
     },
+    //取消G由专门部门人员评估的项目选中-清除数据
     gIsSpecialAssessmentChange() {
       if (this.form.gIsSpecialAssessment == '0') {
         this.form.gSpecialAssessment = null;