瀏覽代碼

物料基础档案界面财务信息页签中选择数据修改显示的不是选中的数据问题处理

shiy 2 年之前
父節點
當前提交
74d100b245
共有 1 個文件被更改,包括 3 次插入6 次删除
  1. 3 6
      src/views/material/basicFile/details.vue

+ 3 - 6
src/views/material/basicFile/details.vue

@@ -1323,19 +1323,16 @@
       },
       // 除基本信息之后的修改
       handleOtherEdit() {
-        console.log('除基本信息之后的修改', this.otherDeatils.queryKey);
-
-        if ((this.otherDeatils.queryKey && this.otherDeatils.queryKey != '') || this.mainMsg.checkedList.length == 1) {
+        console.log('除基本信息之后的修改');
+        if (this.mainMsg.checkedList.length == 1) {
           this.otherDeatils.show = true;
           this.otherDeatils.isEdit = true;
           let activeTab = this.detailsTabs.filter(item => item.code == this.activeMainTab)[0];
+          this.otherDeatils.queryKey = this.mainMsg.checkedList[0].id;
           this.otherDeatils.title = activeTab.label;
-          this.otherDeatils.queryKey = this.otherDeatils.queryKey || this.mainMsg.checkedList[0].id;
           console.log(this.otherDeatils, 'this.otherDeatils');
           // 查询其他标签页列表详情
           this.getOtherListDetails(activeTab.code, this.otherDeatils.queryKey);
-
-
         } else {
           this.$message({
             message: '修改请选择单个数据!',