Browse Source

12.0 修复

bding 1 year ago
parent
commit
b1dcd35d73
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/views/rai_manage/reportManage/components/specialDlg.vue

+ 3 - 2
src/views/rai_manage/reportManage/components/specialDlg.vue

@@ -9,13 +9,14 @@
         placeholder="请输入客户姓名"
         :trigger-on-focus="false"
       ></el-autocomplete>
+      <p v-if="keyAuthor" style="color: #f00">系统中无此人,请先将其添加到对应公司的联系人列表下</p>
       <span slot="footer" class="dialog-footer">
         <el-button @click="handleCloseAuthor">取 消</el-button>
         <el-button type="primary" @click="addAuthorHandler">确 定</el-button>
       </span>
     </el-dialog>
     <el-dialog title="驳回" :visible.sync="submitRejectDlgVisible" width="500px" v-dialogDrag :close-on-click-modal="false" :modal-append-to-body="false" center @close="handleCloseReject">
-      <el-input type="textarea" :rows="4" style="margin-bottom: 20px" v-model="textReject" placeholder="请输入驳回原因"></el-input>
+      <el-input type="textarea" :rows="4" style="margin-bottom: 20px" v-model.trim="textReject" placeholder="请输入驳回原因"></el-input>
       <span slot="footer" class="dialog-footer">
         <el-button @click="handleCloseReject">取 消</el-button>
         <el-button type="primary" @click="submitRejectHandler">确 定</el-button>
@@ -104,7 +105,7 @@ export default {
     },
     // 驳回的弹框确定事件
     async submitRejectHandler() {
-      if (!this.textReject) return;
+      if (!this.textReject) return this.$message.error("请输入驳回原因");
       // 提交成功后刷新页面
       const res = await raiInterface.yanxuan_specialEnable({
         Id: this.submitRejectId,