返乡登记
This commit is contained in:
@@ -168,12 +168,12 @@
|
|||||||
<h2>到达地区</h2>
|
<h2>到达地区</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-item__right">
|
<div class="form-item__right">
|
||||||
<ai-area-picker
|
<AiAreaPicker
|
||||||
ref="area"
|
ref="area"
|
||||||
class="ai-area"
|
class="ai-area"
|
||||||
:value="form.arriveAreaId"
|
:value="form.arriveAreaId"
|
||||||
:fullName.sync="form.arriveAreaName"
|
:fullName.sync="form.arriveAreaName"
|
||||||
:areaId="$areaId"
|
:areaId="areaId"
|
||||||
mode="custom"
|
mode="custom"
|
||||||
@select="(v) => (form.arriveAreaId = v)"
|
@select="(v) => (form.arriveAreaId = v)"
|
||||||
>
|
>
|
||||||
@@ -184,7 +184,7 @@
|
|||||||
<i v-else>请选择</i>
|
<i v-else>请选择</i>
|
||||||
<u-icon name="arrow-right" color="#ddd" />
|
<u-icon name="arrow-right" color="#ddd" />
|
||||||
</div>
|
</div>
|
||||||
</ai-area-picker>
|
</AiAreaPicker>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -251,7 +251,7 @@
|
|||||||
<h2>本人健康码截图或核酸检测报告</h2>
|
<h2>本人健康码截图或核酸检测报告</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-item__right">
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -389,12 +389,15 @@ export default {
|
|||||||
travelType: "",
|
travelType: "",
|
||||||
type: "",
|
type: "",
|
||||||
unusual: "",
|
unusual: "",
|
||||||
|
arriveGirdId: '',
|
||||||
|
arriveGirdName: '',
|
||||||
|
corpId: '',
|
||||||
},
|
},
|
||||||
dictList: [],
|
dictList: [],
|
||||||
arr: [],
|
arr: [],
|
||||||
gridList: [[], [], []],
|
gridList: [[], [], []],
|
||||||
flag: false,
|
flag: false,
|
||||||
$areaId: "",
|
areaId: "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -403,9 +406,14 @@ export default {
|
|||||||
...mapState(["user"]),
|
...mapState(["user"]),
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad() {
|
onLoad(option) {
|
||||||
this.$areaId = this.user.$areaId;
|
this.areaId = this.user.areaId;
|
||||||
document.title = '返乡登记'
|
document.title = '返乡登记'
|
||||||
|
if(option.corpId) {
|
||||||
|
this.form.corpId = option.corpId
|
||||||
|
}
|
||||||
|
this.form.arriveGirdId = option.arriveGirdId
|
||||||
|
this.form.arriveGirdName = option.arriveGirdName
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
@@ -531,7 +539,6 @@ export default {
|
|||||||
this.$http
|
this.$http
|
||||||
.post(`/app/appepidemicbackhomerecord/addOrUpdate`, {
|
.post(`/app/appepidemicbackhomerecord/addOrUpdate`, {
|
||||||
...this.form,
|
...this.form,
|
||||||
openid: this.user.openid,
|
|
||||||
startTime: this.form.startTime + ":00",
|
startTime: this.form.startTime + ":00",
|
||||||
arriveTime: this.form.arriveTime + ":00",
|
arriveTime: this.form.arriveTime + ":00",
|
||||||
checkTime: this.form.checkTime + " 00:00:00",
|
checkTime: this.form.checkTime + " 00:00:00",
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="pad-b120"></div>
|
<div class="pad-b120"></div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div class="bg-fff" @click="linkTo('./Add')">登记</div>
|
<div class="bg-fff" @click="linkTo(`./Add?arriveGirdId=${girdId}&arriveGirdName=${girdName}`)">登记</div>
|
||||||
<div class="bg-blue" @click="show=true">邀请居民填写</div>
|
<div class="bg-blue" @click="show=true">邀请居民填写</div>
|
||||||
</div>
|
</div>
|
||||||
<u-popup v-model="show" mode="bottom" border-radius="14">
|
<u-popup v-model="show" mode="bottom" border-radius="14">
|
||||||
@@ -66,14 +66,14 @@
|
|||||||
<img src="./components/img/lj.png" alt="">
|
<img src="./components/img/lj.png" alt="">
|
||||||
<p>获取链接</p>
|
<p>获取链接</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="item" @click="linkTo('./Qrcode')">
|
<div class="item" @click="linkTo(`./Qrcode?girdId=${girdId}&girdName=${girdName}`)">
|
||||||
<img src="./components/img/ewm.png" alt="">
|
<img src="./components/img/ewm.png" alt="">
|
||||||
<p>保存二维码</p>
|
<p>保存二维码</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn" @click="show=false">取消</div>
|
<div class="btn" @click="show=false">取消</div>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
<u-select v-model="showSelect" :list="girdList" label-name="dictName" value-name="dictValue" @confirm="confirmSelect"/>
|
<u-select v-model="showSelect" :list="girdList" label-name="girdName" value-name="id" @confirm="confirmSelect"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
<img src="./components/img/qrcode-header.png" alt="" class="header-img">
|
<img src="./components/img/qrcode-header.png" alt="" class="header-img">
|
||||||
<div class="code-content">
|
<div class="code-content">
|
||||||
<div class="img-div">
|
<div class="img-div">
|
||||||
<img src="./components/img/ewm.png" alt="">
|
<img :src="imgUrl" alt="">
|
||||||
</div>
|
</div>
|
||||||
<p>扫二维码填写返乡人员信息</p>
|
<p>扫二维码填写返乡人员信息</p>
|
||||||
<p>网格信息:千岩街网格</p>
|
<p>网格信息:{{girdName}}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -19,7 +19,9 @@ import { mapState } from 'vuex'
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
girdName: '',
|
||||||
|
girdId: '',
|
||||||
|
imgUrl: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: { ...mapState(['user']) },
|
computed: { ...mapState(['user']) },
|
||||||
@@ -27,10 +29,18 @@ export default {
|
|||||||
document.title = '返乡人员信息'
|
document.title = '返乡人员信息'
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
|
this.girdName = option.girdName
|
||||||
|
this.girdId = option.girdId
|
||||||
|
this.getQrcode()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getQrcode() {
|
||||||
|
this.$http.post(`/app/appepidemicbackhomerecord/addQrCodeURL?arriveGirdId=${this.girdId}&arriveGirdName=${this.girdName}`).then((res) => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.imgUrl = res.data
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user