Hwt 2 年之前
父節點
當前提交
037dc5389c
共有 1 個文件被更改,包括 11 次插入4 次删除
  1. 11 4
      operationSupport/src/views/businessManagement/InvestmentResources/index.vue

+ 11 - 4
operationSupport/src/views/businessManagement/InvestmentResources/index.vue

@@ -79,7 +79,7 @@
           class="item"
           class="item"
           effect="light"
           effect="light"
           placement="bottom"
           placement="bottom"
-          content="分配招人员"
+          content="分配招人员"
         >
         >
           <i
           <i
             class="zoniot_font zoniot-icon-fenpeirenyuan"
             class="zoniot_font zoniot-icon-fenpeirenyuan"
@@ -219,6 +219,13 @@ export default {
       if (!this.selectRow.length) {
       if (!this.selectRow.length) {
         this.$message.error('您尚未选择要分配的房间,请选择后再操作批量');
         this.$message.error('您尚未选择要分配的房间,请选择后再操作批量');
         return;
         return;
+      } else {
+        for (let i = 0; i < this.selectRow.length; i++) {
+          if (this.selectRow[i].releaseStatus == 1) {
+            this.$message.error('已发布无法修改招租人员');
+            return;
+          }
+        }
       }
       }
       new Promise((resolve) => {
       new Promise((resolve) => {
         this.$store.dispatch('addPopup', {
         this.$store.dispatch('addPopup', {
@@ -247,7 +254,7 @@ export default {
       this.$http
       this.$http
         .post('/czc-community/house/rent/out/release', rentOutIds)
         .post('/czc-community/house/rent/out/release', rentOutIds)
         .then(({ status, msg }) => {
         .then(({ status, msg }) => {
-          if (status == 0 && msg != "发布失败!请先制定招方案") {
+          if (status == 0 && msg != "发布失败!请先制定招方案") {
             this.$message.success(msg);
             this.$message.success(msg);
             this.mixins_search();
             this.mixins_search();
           } else {
           } else {
@@ -287,7 +294,7 @@ export default {
             callback: resolve,
             callback: resolve,
             row
             row
           },
           },
-          title: '招方案'
+          title: '招方案'
         });
         });
       }).then(() => {
       }).then(() => {
         this.mixins_search();
         this.mixins_search();
@@ -305,7 +312,7 @@ export default {
             callback: resolve,
             callback: resolve,
             arrData: this.findUser
             arrData: this.findUser
           },
           },
-          title: title == 'add' ? '添加招商信息' : '修改招商信息'
+          title: title == 'add' ? '添加招租信息' : '修改招租信息'
         });
         });
       }).then(() => {
       }).then(() => {
         this.mixins_search();
         this.mixins_search();