Browse Source

修改来访申请提交的逻辑

凉纪 1 year ago
parent
commit
dde8ad86e3
2 changed files with 5 additions and 5 deletions
  1. 3 3
      src/views/menu/safetyBook/index.vue
  2. 2 2
      src/views/menu/visitRegister/add.vue

+ 3 - 3
src/views/menu/safetyBook/index.vue

@@ -3,7 +3,7 @@
     <NavBar />
     <div class="page-container">
       <div class="search-box">
-        <org-tree v-model="query.orgId" placeholder="选择检查机构" @change="refreshData"></org-tree>
+        <org-tree v-model="query.partyBOrg" placeholder="选择检查机构" @change="refreshData"></org-tree>
       </div>
       <div class="scroll-box">
         <Scroll
@@ -51,7 +51,7 @@ export default {
     return {
       pullup:true,
       query:{
-        orgId:null,
+        partyBOrg:null,
         pageNum:1,
         pageSize:10,
       },
@@ -64,7 +64,7 @@ export default {
     ...mapGetters(['orgId','dictionary'])
   },
   mounted(){
-    this.query.orgId = this.orgId;
+    this.query.partyBOrg = this.orgId;
   },
   methods:{
     dayjs,

+ 2 - 2
src/views/menu/visitRegister/add.vue

@@ -33,7 +33,7 @@
               v-model="formData.reasons"
               placeholder="请输入"
               show-word-limit
-              :maxlength="200"/>
+              :maxlength="100"/>
             <date-cell
               v-if="visitType=='2'"
               is-row
@@ -340,7 +340,7 @@ export default {
         this.formData.status = 1;
         this.formData.type = this.visitType;
         this.formData.receptionOrgIds = [this.orgId];
-        this.formData.userInfos = this.pList;
+        this.formData.userInfos = JSON.parse(JSON.stringify(this.pList));
         let data = this.formData;
         if(this.formData.letterFile && this.formData.letterFile.length > 0){
           data.letterFile = this.formData.letterFile.map(v=>{