Browse Source

2022-02-16 23:01

王克恕 4 years ago
parent
commit
192a70de8a

+ 5 - 4
imcs-ui/src/views/zuihou/prepareProductMgr/technologyMgr/Index.vue

@@ -241,7 +241,7 @@ export default {
 	    // 查询【工艺管理】列表数据
       this.$refs.technology.fetch({bomId: this.currentRow.id, bomVersionId: this.currentRow.id})
 	  },
-  	// 跳转【产线管理】-;列表上的Btn事件
+  	// 跳转【版本管理】-;列表上的Btn事件
     factoryMgr() {
     	if (!this.currentRow) {
         this.$message({
@@ -254,17 +254,18 @@ export default {
 			this.$store.dispatch('tagsView/delView', this.$route).then(res => {
 				let obj = {
 					bomId: this.currentRow.id,
-					bomName: this.currentRow.name
+					bomName: this.currentRow.name,
+					partsAlias: this.currentRow.partsAlias
 				}
 				this.$router.push({ path: '/prepareProductMgr/technologyVersion', query: obj}) //带参跳转
 			})
       
     },
-    // 跳转【产线管理-Row】-table的操作;
+    // 跳转【版本管理-Row】-table的操作;
     factoryRowMgr(row){
     	// 调用全局挂载的方法
 			this.$store.dispatch('tagsView/delView', this.$route).then(res => {
-				this.$router.push({ path: '/prepareProductMgr/technologyVersion', query: {bomId: row.id}}) //带参跳转
+				this.$router.push({ path: '/prepareProductMgr/technologyVersion', query: {bomId: row.id, bomName: row.name, partsAlias: row.partsAlias}}) //带参跳转
 			})
     },
     // 【启用/冻结】按钮-事件

+ 3 - 2
imcs-ui/src/views/zuihou/prepareProductMgr/technologyVersion/Index.vue

@@ -2,8 +2,8 @@
   <div class="app-container">
   	<!-- 搜索部分 -->
     <div class="filter-container">
-    	<span>产品名称:{{bomName}}</span>
-    	<!--<span style="margin-left: 20px;">产品编号:</span>-->
+    	<span>{{$t("prepare.searchForm.parts_name")}}:{{bomName}}</span>
+    	<span style="margin-left: 20px;">{{$t("prepare.searchForm.partsAlias")}}:{{partsAlias}}</span>
     </div>
   	<!-- 搜索部分 -->
     <div class="filter-container">
@@ -187,6 +187,7 @@ export default {
     return {
     	bomId: this.$route.query.bomId, // 由【工艺管理】组件,通过路由传值
     	bomName: this.$route.query.bomName, // 由【工艺管理】组件,通过路由传值
+    	partsAlias: this.$route.query.partsAlias, // 由【工艺管理】组件,通过路由传值
     	tags: ['','warning','success','danger'], // 对应状态的标签
     	qiyongStatus: [], //状态
       dialog: {