返乡登记

This commit is contained in:
liuye
2022-02-08 16:08:17 +08:00
parent 3de1640b6f
commit e8a7db7f05
3 changed files with 33 additions and 16 deletions

View File

@@ -168,12 +168,12 @@
<h2>到达地区</h2>
</div>
<div class="form-item__right">
<ai-area-picker
<AiAreaPicker
ref="area"
class="ai-area"
:value="form.arriveAreaId"
:fullName.sync="form.arriveAreaName"
:areaId="$areaId"
:areaId="areaId"
mode="custom"
@select="(v) => (form.arriveAreaId = v)"
>
@@ -184,7 +184,7 @@
<i v-else>请选择</i>
<u-icon name="arrow-right" color="#ddd" />
</div>
</ai-area-picker>
</AiAreaPicker>
</div>
</div>
</div>
@@ -251,7 +251,7 @@
<h2>本人健康码截图或核酸检测报告</h2>
</div>
<div class="form-item__right">
<AiUploader v-model="form.checkPhoto" :limit="1"></AiUploader>
<AiUploader :def.sync="form.checkPhoto" :limit="1" action="/admin/file/add2"></AiUploader>
</div>
</div>
</div>
@@ -389,12 +389,15 @@ export default {
travelType: "",
type: "",
unusual: "",
arriveGirdId: '',
arriveGirdName: '',
corpId: '',
},
dictList: [],
arr: [],
gridList: [[], [], []],
flag: false,
$areaId: "",
areaId: "",
};
},
@@ -403,9 +406,14 @@ export default {
...mapState(["user"]),
},
onLoad() {
this.$areaId = this.user.$areaId;
onLoad(option) {
this.areaId = this.user.areaId;
document.title = '返乡登记'
if(option.corpId) {
this.form.corpId = option.corpId
}
this.form.arriveGirdId = option.arriveGirdId
this.form.arriveGirdName = option.arriveGirdName
},
methods: {
@@ -531,7 +539,6 @@ export default {
this.$http
.post(`/app/appepidemicbackhomerecord/addOrUpdate`, {
...this.form,
openid: this.user.openid,
startTime: this.form.startTime + ":00",
arriveTime: this.form.arriveTime + ":00",
checkTime: this.form.checkTime + " 00:00:00",