| | |
| | | <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> |
| | |
| | | onLoad(option) { |
| | | this.id = option.id |
| | | if (this.id) { |
| | | uni.setNavigationBarTitle({ |
| | | title: '编辑报案' |
| | | }) |
| | | this.getDetails() |
| | | this.getArea() |
| | | this.getUser() |
| | |
| | | .then(res => { |
| | | if (res.code === 200) { |
| | | uni.showToast({ title: '提交成功', icon: 'success' }) |
| | | uni.$emit('update') |
| | | setTimeout(() => { |
| | | uni.navigateBack({ delta: 1 }); |
| | | }, 1500) |
| | |
| | | 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 |
| | | } |