瀏覽代碼

2021-12-12 21:42

王克恕 3 年之前
父節點
當前提交
731743d96f

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

@@ -518,11 +518,11 @@ export default {
 	    				item.jjImgList.push(item.armorPic)
 	    			}
 	    			// 添加类型
-	    			if(item.bizType == '1'){
+	    			/*if(item.bizType == '1'){
 	    				item.category = {key: '03',data: '托盘'}
 	    			}else{
 	    				item.category = {key: '02',data: '夹具'}
-	    			}
+	    			}*/
 	    		}
 	    		arr.push(item)
 	    	})

+ 3 - 2
imcs-ui/src/views/zuihou/prepareProductMgr/technologyVersion/components/programForm/components/ProgramncMgr.vue

@@ -279,9 +279,10 @@ export default {
 	  			toolNums: val.toolList ? val.toolList.length : 0
     		};
     		// 如果附件存在 /
-    		if(!!val.programId){
+    		let pid = val.programId || val.id;
+    		if(!!pid){
     			// 查询【程序】信息
-	  			this.getProgram(val.programId)
+	  			this.getProgram(pid);
     		}
     	} else {
     		// 新增,清空数据

+ 5 - 2
imcs-ui/src/views/zuihou/prepareProductMgr/technologyVersion/components/trayForm/index.vue

@@ -303,11 +303,11 @@
 		    				item.jjImgList.push(item.armorPic)
 		    			}
 		    			// 添加类型
-		    			if(item.bizType == '1'){
+		    			/*if(item.bizType == '1'){
 		    				item.category = {key: '03',data: '托盘'}
 		    			}else{
 		    				item.category = {key: '02',data: '夹具'}
-		    			}
+		    			}*/
 		    		}
 		    		arr.push(item)
 		    	})
@@ -317,6 +317,7 @@
 	    	}
 	    	return list
 	    },
+	    
 	  	//获得数据相同的行数
 	 		rowspanFiled(data, filed) {
 	 			let spanArr5 = [];
@@ -583,6 +584,8 @@
 	    		category: tool.category		// 物料类型
 	    	};
 	    	if (type == "add") {
+	    		// 添加,附件
+	    		item.jjImgList = [];
 		    	// 添加数据
 		    	list.push(item);
 		    	// 重新赋值