Bläddra i källkod

提交一下

1
mo 2 år sedan
förälder
incheckning
da05c0cbfd

+ 5 - 4
src/views/returnVisitManager/components/waitVisit.vue

@@ -40,13 +40,13 @@
         </el-form-item>
         <el-form-item>
           <el-select
-            v-model.trim="searchForm.visiterType"
+            v-model.trim="searchForm.isVisit"
             placeholder="回访状态"
             clearable
             filterable
           >
-          <el-option value="EDU_TEACHER" label="已回访"></el-option>
-            <el-option value="TEACHER" label="未回访"></el-option>
+          <el-option :value="1" label="已回访"></el-option>
+            <el-option :value="0" label="未回访"></el-option>
 
           </el-select>
         </el-form-item>
@@ -150,8 +150,9 @@
         :detail="activeRow"
         :username="activeRow.username"
         @close="visitVisible = false"
+        :useVisitType="false"
         @submited="getList"
-        :isMainGo="true"
+        :isMainGo="false"
       />
     </el-dialog>
   </div>

+ 49 - 1
src/views/withdrawal-application/modals/visit.vue

@@ -70,11 +70,56 @@
           show-word-limit
         ></el-input>
       </el-form-item>
+      <el-form-item label="家长反馈" prop="feedbackType">
+        <el-radio-group
+          v-model="visitForm.feedbackType"
+          @change="
+            () => {
+              visitForm.feedbackTypeDesc = '';
+            }
+          "
+        >
+          <el-radio-button
+            :label="item.value"
+            v-for="(item, index) in feedbackTypeList"
+            :key="index"
+            >{{ item.label }}</el-radio-button
+          >
+        </el-radio-group>
+      </el-form-item>
+      <el-form-item
+        label="反馈详情"
+        prop="feedbackTypeDesc"
+        v-if="
+          visitForm.feedbackType == 'THINKING' ||
+          visitForm.feedbackType == 'LOST'
+        "
+      >
+        <el-radio-group v-model="visitForm.feedbackTypeDesc">
+          <el-radio-button
+            :label="item.value"
+            v-for="(item, index) in feedbackTypeDescList"
+            :key="index"
+            >{{ item.label }}</el-radio-button
+          >
+        </el-radio-group>
+      </el-form-item>
       <el-form-item label="回访图片">
         <div style="width: 80% !important">
           <uploadImageList :uploaded="visitForm.attachments" />
         </div>
       </el-form-item>
+      <el-form-item label="原因" prop="feedback" :rules="[{ required: isRequire, message: '请输入家长反馈内容' }]">
+        <el-input
+          type="textarea"
+          v-model="visitForm.feedback"
+          style="width: 80% !important"
+          placeholder="原因"
+          :rows="3"
+          maxlength="50"
+          show-word-limit
+        ></el-input>
+      </el-form-item>
     </el-form>
     <div
       slot="footer"
@@ -129,6 +174,9 @@ export default {
         feedback: "",
         studentName: "",
         attachments: [],
+        feedback,
+        feedbackTypeDesc,
+        feedbackType
       },
       visitRules: {
         overview: [{ required: true, message: "请输入学生近况" }],
@@ -187,7 +235,7 @@ export default {
             studentId: this.studentId,
             type: visitType[0],
             purpose: visitType[1],
-               attachments:attachmentsList.join(',')
+            attachments: attachmentsList.join(","),
           };
           addVisit(cleanDeep(data)).then((res) => {
             if (res.code === 200) {