MrShi
2024-04-12 fe7ac1ca4e17db22417d1d61c084a0ab9857b77f
wx/pages/new_report/new_report.vue
@@ -34,10 +34,10 @@
         <view class="box_list">
            <view class="box_list_Label">事故信息</view>
            <view class="box_list_from">
               <u-form-item label="就诊医疗机构:" prop="hospital" borderBottom>
               <u-form-item label="就诊医疗机构:" prop="hospital" borderBottom v-if="!id">
                  <u--input v-model="model.hospital" placeholder="请输入就诊医疗机构名称" border="none"></u--input>
               </u-form-item>
               <u-form-item label="事故时间:" prop="happenTime" borderBottom required @click="show1 = true">
               <u-form-item label="事故时间:" prop="happenTime" borderBottom required v-if="!id" @click="show1 = true">
                  <u--input v-model="model.happenTime" disabled disabledColor="#ffffff" placeholder="请选择事故发生时间" border="none"></u--input>
                  <u-icon slot="right" name="arrow-right"></u-icon>
               </u-form-item>
@@ -205,6 +205,9 @@
      onLoad(option) {
         this.id = option.id
         if (this.id) {
            uni.setNavigationBarTitle({
               title: '编辑报案'
            })
            this.getDetails()
            this.getArea()
            this.getUser()
@@ -275,6 +278,7 @@
                     .then(res => {
                        if (res.code === 200) {
                           uni.showToast({ title: '提交成功', icon: 'success' })
                           uni.$emit('update')
                           setTimeout(() => {
                              uni.navigateBack({ delta: 1 });
                           }, 1500)
@@ -305,6 +309,9 @@
               memberId: this.model.memberId
            }).then(res => {
               if (res.code === 200) {
                  res.data.forEach(item => {
                     item.solutionName = '(' + item.startTime.substring(5, 10).replace('-', '.') + '-' + item.endTime.substring(5, 10).replace('-', '.') + ')' + item.solutionName
                  })
                  this.columns3 = [res.data]
                  this.show5 = true
               }