Browse Source

工艺夹具前端页面展示绑定产品

oyq28 5 months ago
parent
commit
289e15f558

+ 2 - 1
imcs-ui/src/lang/zh/prepare.js

@@ -232,7 +232,8 @@ export default {
 				specification: '规格',
 				brand: '品牌',
 				positions: '使用加紧位置',
-				armorPic: '附件'
+				armorPic: '附件',
+        productionType: '产品类型',
 			},
 			// 【工艺版本管理-工艺分析-程序】列表table字段名称
 			program: {

+ 1 - 0
imcs-ui/src/views/zuihou/prepareProductMgr/technologyVersion/components/trayForm/components/Edit.vue

@@ -65,6 +65,7 @@
         <el-table-column prop="no" :label='$t("prepare.table.tools.no")' :show-overflow-tooltip="true"></el-table-column>
         <el-table-column prop="name" :label='$t("prepare.table.tools.name")' :show-overflow-tooltip="true" width="180px"></el-table-column>
         <el-table-column prop="materialType" label='物料类型' :show-overflow-tooltip="true" width="100px"></el-table-column>
+        <el-table-column prop="productionType" label='产品类型' :show-overflow-tooltip="true" width="180px"></el-table-column>
         <el-table-column prop="brand.data" :label='$t("prepare.table.tools.brand")' :show-overflow-tooltip="true" width="180px"></el-table-column>
         <el-table-column :label="$t('table.operation')" fixed="right" align="center" column-key="operation" width="100px">
           <template slot-scope="{ row }">

+ 10 - 8
imcs-ui/src/views/zuihou/prepareProductMgr/technologyVersion/components/trayForm/index.vue

@@ -41,7 +41,8 @@
 	    	<el-table-column prop="name" :label='$t("prepare.table.toolGroup.name")' align="center" width="150px" :show-overflow-tooltip="true"></el-table-column>
 	      <!-- 物料类型 -->
 	      <el-table-column prop="materialType" :label='$t("prepare.table.toolGroup.category")' width="100px" align="center"></el-table-column>
-		  
+	      <el-table-column prop="productionType" :label='$t("prepare.table.toolGroup.productionType")' width="100px" align="center"></el-table-column>
+
 	      <!-- 附件 -->
 	      <el-table-column prop="armorPic" :label='$t("prepare.table.toolGroup.armorPic")' align="center" width="300px">
 	      	<template slot-scope="{ row }">
@@ -209,7 +210,7 @@
 	      loading: false,
 	      tableData: [],
 	      spanArr: [],  // 【组序】合并单元格
-	      spanArr2: [],  // 【优先级】合并单元格		 
+	      spanArr2: [],  // 【优先级】合并单元格
 	    }
 	  },
 	  // 实例已经在内存中创建好,此时data和methods已将ok,如果要操作data中的数据或是调用methods中的方法,最早只能在created中操作
@@ -276,7 +277,7 @@
 	  	},
 	  	// 【托盘夹具组-来自上一工序】-函数
 	  	getPreMeterialList(){
-			console.log(this.technology)			
+			console.log(this.technology)
 	  		technologyMgrApi.getPreProcedureTrayList(this.technology).then(res => {
 	  			console.log("【托盘夹具组-来自上一工序】: ", res)
 	  			res = res.data
@@ -467,8 +468,8 @@
 	      if(this.tableData.length > 0){
 	      	let groupSort = parseInt(this.tableData[this.tableData.length -1].groupSort) + 1
 	      	this.$refs.add.tenant.groupSort = groupSort
-	      }		  
-	      this.$refs.add.setTenant(false)		  
+	      }
+	      this.$refs.add.setTenant(false)
 	      this.dialogAdd.title = this.$t("common.add") + this.$t("prepare.common.tpJgroup")
 	      this.dialogAdd.isVisible = true
 	    },
@@ -555,11 +556,11 @@
 	    // 【夹具】新增-事件
 	    addTools(){
 	    	this.$refs.edit.type = "add";
-	    	this.dialog.title = this.$t("common.add") + this.$t("prepare.common.tab5");			
+	    	this.dialog.title = this.$t("common.add") + this.$t("prepare.common.tab5");
 	        this.dialog.isVisible = true;
 			//console.log("====")
 			//console.log(this.condition.bomName)
-			this.$refs.edit.setTenant({name:this.condition.bomName})			
+			this.$refs.edit.setTenant({name:this.condition.bomName})
 	    },
 
 	    // 【夹具】修改-事件
@@ -588,7 +589,8 @@
 	    		no: tool.no, 							// 编号
 	    		name: tool.name,  				// 名称
 	    		brand: tool.brand, 				// 品牌
-	    		materialType: tool.materialType		// 物料类型
+	    		materialType: tool.materialType,		// 物料类型
+          productionType: tool.productionType //产品类型
 	    	};
 	    	if (type == "add") {
 	    		// 添加,附件