ソースを参照

前端页面功能处理

oyq28 3 ヶ月 前
コミット
ef07c40e48

+ 27 - 4
imcs-ui/src/views/zuihou/prepareProductMgr/technologyVersion/components/TechnologyEdit.vue

@@ -104,7 +104,9 @@
 						<div v-if="tenant.labelMachineConf == '1'" class="szbInput">
 							<span>
 								<span>{{ $t("prepare.form.labelMachinePrograme") }}:</span>
-								<el-input v-model="tenant.labelMachinePrograme" :placeholder='$t("common.pleaseEnter")' style="width: 500px;"></el-input>
+								<el-tooltip content="例如:C_1" placement="top">
+									<el-input v-model="tenant.labelMachinePrograme" :placeholder='$t("common.pleaseEnter")' style="width: 500px;"></el-input>
+								</el-tooltip>
 							</span>
 						</div>
 					</div>
@@ -449,13 +451,34 @@ export default {
     		return false
     	}
     	// 可执行设备(位置)-简单验证
-    	/*if(this.tenant.productionresourceList.length <= 0){
+    	if(this.tenant.threeDimensionalConf=="1" && this.tenant.threeDimensionalPrograme==''){
     		this.$message({
-              message: "【可执行设备(位置)】没有数据~",
+              message: "三坐标配置启用检测程序不能为空",
               type: 'warning'
             })
     		return false
-    	}*/
+    	}
+		if(this.tenant.labelMachineConf=="1" && this.tenant.labelMachinePrograme==''){
+    		this.$message({
+              message: "打标机配置启用打标程序不能为空",
+              type: 'warning'
+            })
+    		return false
+    	}
+		if(this.tenant.threeDimensionalDeviationConf=="1" && this.tenant.threeDimensionalDeviationPrograme==''){
+    		this.$message({
+              message: "三坐标配置点检测配置启用检测程序不能为空",
+              type: 'warning'
+            })
+    		return false
+    	}		
+		if(this.tenant.randomCheckConf=="1" && this.tenant.randomCheckPrograme==''){
+    		this.$message({
+              message: "工序抽检配置启用抽检程序不能为空",
+              type: 'warning'
+            })
+    		return false
+    	}
     	// 所需原材料-简单验证
     	/*if(this.tenant.meterialList.length <= 0){
     		this.$message({

+ 2 - 2
imcs-ui/src/views/zuihou/statisticalAnalysis/deviceIndicator/Index.vue

@@ -475,7 +475,7 @@ export default {
       page2: 1, // 当前页码
       limit2: 10, // 每页记录数
       total2: 0, // 总记录数
-      zoneId : "KT",
+      zoneId : "CT",
       taskType: "1",
       searchObj: {        
         month: "",
@@ -559,7 +559,7 @@ export default {
 	  				this.resourceIds = res.data
             if(this.resourceIds.length >= 1){
                this.searchObj.resourceId = this.resourceIds[0].id
-               //this.fetch()
+               this.fetch()
             }else{              
               this.searchObj.resourceId = ""
             }            

+ 1 - 1
imcs-ui/src/views/zuihou/statisticalAnalysis/resourceRate/Index.vue

@@ -134,7 +134,7 @@
 	  			if(res.code == 0) {
 	  				this.productionresourceList = res.data;
             if(this.productionresourceList.length > 1){
-               this.resourceId = this.productionresourceList[0].id
+               this.resourceId = this.productionresourceList[2].id
             }
             this.fetch()
 	  			}