Qukatie пре 9 месеци
родитељ
комит
c4d6569ec3

+ 5 - 2
src/views/iosBasicData/bcorps/detailsPage.vue

@@ -1217,7 +1217,10 @@ export default {
       corpsAttnDialogIndex: null,
       formData: {
         status: 0,
+        corpType:null,
+        corpTypeName:null,
         accountPeriodType:'票结',
+        corpTypeList:[],
         corpsAttnList: [],
         corpsBankList: [],
         corpsFilesList: [],
@@ -1397,6 +1400,7 @@ export default {
     if (this.detailData.corpType != null) {
       this.formData.corpTypeList = [this.detailData.corpType]
       this.formData.corpType = this.detailData.corpType
+      this.formData.corpTypeName= this.detailData.corpTypeName
     }
     // 查询国家下拉
     bcountrysList(1, 10).then(res => {
@@ -1654,8 +1658,7 @@ export default {
         }
       }
       this.formData.corpType = ids.join(",")
-      this.formData.corpTypeName = arr.join(",")
-      // console.log(this.formData.corpTypeName);
+      this.formData.corpTypeName = arr.join(",")?arr.join(","):this.detailData.corpTypeName
     },
     salesChange(id) {
       if (id == null) {

+ 8 - 5
src/views/iosBasicData/bcorps/index.vue

@@ -44,7 +44,7 @@
               <!--<el-button type="success" size="small" @click="handleReportDesigner" icon="el-icon-printer">设计报表</el-button>-->
               <!--<el-button type="success" size="small" @click="handleReportPreview" icon="el-icon-printer">预览报表</el-button>-->
             </template>
-            <template v-if="!eldialog"  slot-scope="{ row, index }" slot="menu">
+            <template v-if="!eldialog" slot-scope="{ row, index }" slot="menu">
               <el-button icon="el-icon-edit" type="text" size="small" @click.stop="editOpen(row)">
                 编辑
               </el-button>
@@ -600,10 +600,11 @@ export default {
     // 左侧点击回调
     nodeClick(data) {
       // var reqiestData = this.search;
-      // // console.log(data, 904)
+      console.log(data, 904)
       // reqiestData.corpType = data.id
       // if (this.search.corpType == null) {
       this.query.corpType = data.id
+      this.query.corpTypeName = data.cnName
       // } else {
       //   this.search.corpType = null
       // }
@@ -617,9 +618,9 @@ export default {
       })
     },
     editOpen(row) {
-        if(this.eldialog){
-            return
-        }
+      if (this.eldialog) {
+        return
+      }
 
       this.detailData = {
         id: row.id
@@ -702,7 +703,9 @@ export default {
       this.detailData = {};
       if (this.query.corpType != null) {
         this.detailData.corpType = this.query.corpType
+        this.detailData.corpTypeName = this.query.corpTypeName
       }
+      console.log(this.detailData,123213123123)
       this.isShow = false;
       // if (["edit", "view"].includes(type)) {
       //   getBcorpsDetail(this.form.id).then(res => {