GULIMMO
2023-11-11 bbddbdf9c384b0c34cda34947b358e6aa95ca35c
subPackage/workbench/views/editExamine.vue
@@ -45,7 +45,7 @@
      <u-button type="success" plain class="add-person" @click="addPerson">在加一人</u-button>
      <view class="btn-group">
         <u-button class="btn-item" type="primary" @click="submit">提交</u-button>
         <u-button class="btn-item">我上报的事件</u-button>
         <u-button class="btn-item" @click="pushPage">我上报的事件</u-button>
      </view>
   </div>
</template>
@@ -66,7 +66,8 @@
      data() {
         return {
            form: {
               id: '',
               id: '',
               placeId: '',
               localtion: '',
               placeName: '',
               legalPerson: '',
@@ -92,8 +93,7 @@
               }
            },
            personNum: 1,
            curSelectSite: {},
            placeId: '',
            curSelectSite: {},
         }
      },
      onShow() {
@@ -113,7 +113,6 @@
                  })
                  return
               }
               this.placeId = data.placeId
               const placePractitioner = data?.placePractitioner || []
               Object.keys(this.form).forEach(key => {
                  this.form[key] = data[key]
@@ -124,8 +123,9 @@
               })
               this.personNum = placePractitioner.length
               this.$nextTick(() => {
                  console.log(placePractitioner);
                  this.$refs.formItemRef.forEach((item, index) => {
                     item.form = this.$refs.formItemRef[index].form
                     item.form = placePractitioner[index]
                  })
               })
            })
@@ -159,11 +159,14 @@
         submit() {
            const placePractitioner = []
            this.$refs.formItemRef.forEach(item => {
               item.form.placeId = this.placeId
               item.form.placeId = this.form.placeId
               placePractitioner.push(item.form)
            })
            this.form.placePractitioner = placePractitioner
            this.updatePlaceExt(this.form)
         },
         pushPage() {
            this.$u.func.globalNavigator('/subPackage/workbench/views/cshw')
         }
      }
   }