Commit f3e8e7d6 authored by 黄奎's avatar 黄奎

新增表单

parent 9648603b
...@@ -121,16 +121,18 @@ ...@@ -121,16 +121,18 @@
line-height: 80rpx; line-height: 80rpx;
border-radius: 20rpx; border-radius: 20rpx;
} }
.activeStar{
color:red; .activeStar {
margin-right:5rpx; color: red;
font-size:23rpx; margin-right: 5rpx;
font-size: 23rpx;
} }
</style> </style>
<template> <template>
<view class="activeSignUp"> <view class="activeSignUp">
<view class="activeTopImg"> <view class="activeTopImg">
<image mode="heightFit" style="width:100%;height:100%" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/signBack.png" /> <image mode="heightFit" style="width:100%;height:100%"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/signBack.png" />
</view> </view>
<view class="active_Main"> <view class="active_Main">
<view style="width:100%;height:35px;"> <view style="width:100%;height:35px;">
...@@ -146,7 +148,8 @@ ...@@ -146,7 +148,8 @@
<input class="activeSign_Input" placeholder="请输入对应名称" v-model="signMsg.CompanyName" /> <input class="activeSign_Input" placeholder="请输入对应名称" v-model="signMsg.CompanyName" />
</view> </view>
<view class="activeMainDiv" style="border-bottom:1px solid #F5F6F7"> <view class="activeMainDiv" style="border-bottom:1px solid #F5F6F7">
<view class="activeSignName" style="margin-bottom:30rpx;"><text class="activeStar">*</text>性质(单选)</view> <view class="activeSignName" style="margin-bottom:30rpx;"><text class="activeStar">*</text>性质(单选)
</view>
<view class="active_Nature"> <view class="active_Nature">
<text v-for="(item,index) in natureList" @click="getckedId(item,index)" <text v-for="(item,index) in natureList" @click="getckedId(item,index)"
:class="{'checkedNature':commonIndex==index}" :key="index">{{item.Name}}</text> :class="{'checkedNature':commonIndex==index}" :key="index">{{item.Name}}</text>
...@@ -157,13 +160,15 @@ ...@@ -157,13 +160,15 @@
<text>*</text> <text>*</text>
联系人<text style="font-size:26rpx">{{signMsg.FirstShopLinkManList.length}}</text> 联系人<text style="font-size:26rpx">{{signMsg.FirstShopLinkManList.length}}</text>
</view> </view>
<view class="active_ContractContrent" v-for="(item,index) in signMsg.FirstShopLinkManList" :key="index"> <view class="active_ContractContrent" v-for="(item,index) in signMsg.FirstShopLinkManList"
:key="index">
<view class="active_Conleft"> <view class="active_Conleft">
<view class="AContra_Name">{{item.LinkMan}}</view> <view class="AContra_Name">{{item.LinkMan}}</view>
<view> <view>
<image mode="heightFit" @click="editSignPerson(item,index)" style="width:32rpx;height:32rpx" <image mode="heightFit" @click="editSignPerson(item,index)"
src="@/static/images/aedit.png"> style="width:32rpx;height:32rpx" src="@/static/images/aedit.png">
<image mode="heightFit" @click="removeSignPerson(index)" style="width:33rpx;height:33rpx;margin-left:40rpx;" <image mode="heightFit" @click="removeSignPerson(index)"
style="width:33rpx;height:33rpx;margin-left:40rpx;"
src="@/static/images/adel.png"> src="@/static/images/adel.png">
</view> </view>
</view> </view>
...@@ -188,6 +193,15 @@ ...@@ -188,6 +193,15 @@
<view class="activeSignName"><text class="activeStar">*</text>姓名</view> <view class="activeSignName"><text class="activeStar">*</text>姓名</view>
<input class="activeSign_Input" v-model="pMsg.LinkMan" placeholder="请输入您的姓名" /> <input class="activeSign_Input" v-model="pMsg.LinkMan" placeholder="请输入您的姓名" />
</view> </view>
<!-- 新增年龄 -->
<view class="activeMainDiv">
<view class="activeSignName">年龄</view>
<input type="number" class="activeSign_Input" v-model="pMsg.Age" placeholder="请输入您的年龄" />
</view>
<view class="activeMainDiv">
<view class="activeSignName">身份证号码</view>
<input type="number" class="activeSign_Input" v-model="pMsg.IdCard" placeholder="请输入您的身份证号码" />
</view>
<view class="activeMainDiv"> <view class="activeMainDiv">
<view class="activeSignName">公司职务</view> <view class="activeSignName">公司职务</view>
<input class="activeSign_Input" v-model="pMsg.Post" placeholder="请输入您在公司的职务" /> <input class="activeSign_Input" v-model="pMsg.Post" placeholder="请输入您在公司的职务" />
...@@ -200,6 +214,78 @@ ...@@ -200,6 +214,78 @@
<view class="activeSignName"><text class="activeStar">*</text>手机号</view> <view class="activeSignName"><text class="activeStar">*</text>手机号</view>
<input class="activeSign_Input" v-model="pMsg.LinkTel" placeholder="请输入您的11位手机号码" /> <input class="activeSign_Input" v-model="pMsg.LinkTel" placeholder="请输入您的11位手机号码" />
</view> </view>
<!-- 新增表单 -->
<view class="activeMainDiv">
<view class="activeSignName">是否完成新冠接种</view>
<u-radio-group v-model="pMsg.IsInoculate" :size="36">
<u-radio shape="circle" :name="1"></u-radio>
<u-radio shape="circle" :name="0"></u-radio>
</u-radio-group>
</view>
<view class="activeMainDiv">
<view class="activeSignName">1、活动前21天有港台地区和国外旅居史</view>
<u-radio-group v-model="pMsg.IsGATLJ" :size="36">
<u-radio shape="circle" :name="1"></u-radio>
<u-radio shape="circle" :name="0"></u-radio>
</u-radio-group>
<!-- <view class="activeSignName" style='margin-top: 20rpx;'>备注</view> -->
<input class="activeSign_Input" style='margin-top: 20rpx;' v-model="pMsg.GATLJRemark" placeholder="备注" />
</view>
<view class="activeMainDiv">
<view class="activeSignName">2、活动前14天内有境内中高风险地区及所在县(市、区)旅居史。</view>
<u-radio-group v-model="pMsg.IsZGFX" :size="36">
<u-radio shape="circle" :name="1"></u-radio>
<u-radio shape="circle" :name="0"></u-radio>
</u-radio-group>
<!-- <view class="activeSignName" style='margin-top: 20rpx;'>备注</view> -->
<input class="activeSign_Input" style='margin-top: 20rpx;' v-model="pMsg.ZGFXRemark" placeholder="备注" />
</view>
<view class="activeMainDiv">
<view class="activeSignName">3、活动前14天有来自新冠肺炎确诊病例、无症状感染者报告社区的发热和/或有呼吸道症状患者接触史。</view>
<u-radio-group v-model="pMsg.IsQZJC" :size="36">
<u-radio shape="circle" :name="1"></u-radio>
<u-radio shape="circle" :name="0"></u-radio>
</u-radio-group>
<!-- <view class="activeSignName" style='margin-top: 20rpx;'>备注</view> -->
<input class="activeSign_Input" style='margin-top: 20rpx;' v-model="pMsg.QZJCRemark" placeholder="备注" />
</view>
<view class="activeMainDiv">
<view class="activeSignName">4、活动前14天有居家隔离医学观察人员接触史</view>
<u-radio-group v-model="pMsg.IsJJGLGX" :size="36">
<u-radio shape="circle" :name="1"></u-radio>
<u-radio shape="circle" :name="0"></u-radio>
</u-radio-group>
<!-- <view class="activeSignName" style='margin-top: 20rpx;'>备注</view> -->
<input class="activeSign_Input" style='margin-top: 20rpx;' v-model="pMsg.JJGLGXRemark" placeholder="备注" />
</view>
<view class="activeMainDiv">
<view class="activeSignName">5、已治愈出院的确诊病例和已解除集中隔离医学观察的无症状感染者,尚在随访或医学观察期内</view>
<u-radio-group v-model="pMsg.IsZYCYJCGL" :size="36">
<u-radio shape="circle" :name="1"></u-radio>
<u-radio shape="circle" :name="0"></u-radio>
</u-radio-group>
<!-- <view class="activeSignName" style='margin-top: 20rpx;'>备注</view> -->
<input class="activeSign_Input" style='margin-top: 20rpx;' v-model="pMsg.ZYCYJCGLRemark" placeholder="备注" />
</view>
<view class="activeMainDiv">
<view class="activeSignName">6、被判定为新冠肺炎病毒感染者(确诊病例或无症状感染者)的密切接触者和密接的密接。</view>
<u-radio-group v-model="pMsg.IsMJ" :size="36">
<u-radio shape="circle" :name="1"></u-radio>
<u-radio shape="circle" :name="0"></u-radio>
</u-radio-group>
<!-- <view class="activeSignName" style='margin-top: 20rpx;'>备注</view> -->
<input class="activeSign_Input" style='margin-top: 20rpx;' v-model="pMsg.MJRemark" placeholder="备注" />
</view>
<view class="activeMainDiv">
<view class="activeSignName">7、有发热、干咳、乏力、咽痛、嗅(味)觉减退、腹泻等症状,且未排除传染病感染者</view>
<u-radio-group v-model="pMsg.IsFRGK" :size="36">
<u-radio shape="circle" :name="1"></u-radio>
<u-radio shape="circle" :name="0"></u-radio>
</u-radio-group>
<!-- <view class="activeSignName" style='margin-top: 20rpx;'>备注</view> -->
<input class="activeSign_Input" style='margin-top: 20rpx;' v-model="pMsg.FRGKRemark" placeholder="备注" />
</view>
<!-- 新增表单 -->
</view> </view>
<template v-if="signMsg.FirstShopLinkManList.length==0"> <template v-if="signMsg.FirstShopLinkManList.length==0">
<view> <view>
...@@ -216,31 +302,32 @@ ...@@ -216,31 +302,32 @@
@click="goOnAdd()">继续添加联系人</view> @click="goOnAdd()">继续添加联系人</view>
</view> </view>
</template> </template>
<view style="font-size: 16px;margin-top: 52rpx;font-weight: 600;">2022中国(成都)首店经济发展大会疫情防控提醒</view>
<view style="font-size: 16px;margin-top: 52rpx;font-weight: 600;">2021中国(成都)首店经济发展大会疫情防控提醒</view>
<view style="font-size:13px !important;margin-top: 24rpx;"> <view style="font-size:13px !important;margin-top: 24rpx;">
1、本次大会不接待14天内有国内中高风险地区旅居史人员; 1、请如实填写,有异常情况的,请及时报告。
</view> </view>
<view style="font-size:13px !important;margin-top: 24rpx;"> <view style="font-size:13px !important;margin-top: 24rpx;">
2、省外参会人员需持72小时以内的核酸检测阴性证明报告; 1、请如实填写,有异常情况的,请及时报告。
</view> </view>
<view style="font-size:13px !important;margin-top: 24rpx;"> <view style="font-size:13px !important;margin-top: 24rpx;">
3、请佩戴口罩、测温、扫场所码,出示绿码进入会场 3、按照填报当天全国疫情中高风险地区调整情况
</view> </view>
<view style="font-size:13px !important;margin-top: 24rpx;"> <view style="font-size:13px !important;margin-top: 24rpx;">
谢谢配合 谢谢配合
</view> </view>
<!-- 新增表单 -->
<!-- <view class="active_InTitle" style="margin-top: 40rpx;">
<text class="activeStar">*</text>
流行病学史筛查和症状监测情况表
</view> -->
<!-- 新增表单 -->
</view> </view>
<view> <view>
<view class="ac_upBtn" style="width:90%;margin:25rpx auto" @click="goSignUp()">提交</view> <view class="ac_upBtn" style="width:90%;margin:25rpx auto" @click="goSignUp()">提交</view>
</view> </view>
</view> </view>
<auth <auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth>
v-if="showAuth"
@changeuserinfo="reloadUserinfo"
@gbAuth="gbAuth"
></auth>
</view> </view>
</template> </template>
...@@ -263,16 +350,33 @@ ...@@ -263,16 +350,33 @@
Remark: '', Remark: '',
FirstShopLinkManList: [] FirstShopLinkManList: []
}, },
pMsg:{ pMsg: {
LinkMan: '', LinkMan: '',
LinkTel: '', LinkTel: '',
Post: '', Post: '',
CountryInfo: '' CountryInfo: '',
Age:null,
IdCard:'',
IsInoculate:null,
IsGATLJ:null,
GATLJRemark:'',
IsZGFX:null,
ZGFXRemark:'',
IsQZJC:null,
QZJCRemark:'',
IsJJGLGX:null,
JJGLGXRemark:'',
IsZYCYJCGL:null,
ZYCYJCGLRemark:'',
IsMJ:null,
MJRemark:'',
IsFRGK:null,
FRGKRemark:''
}, },
isShowAdd:true, isShowAdd: true,
isEdit:false, isEdit: false,
EditIndex:-1, EditIndex: -1,
showAuth:false, showAuth: false,
u: {} u: {}
} }
}, },
...@@ -335,15 +439,15 @@ ...@@ -335,15 +439,15 @@
}, },
//提交联系人信息 //提交联系人信息
addPerson() { addPerson() {
if(!this.isEdit){ if (!this.isEdit) {
if(this.pMsg.LinkMan==''){ if (this.pMsg.LinkMan == '') {
uni.showToast({ uni.showToast({
title: '请输入姓名', title: '请输入姓名',
icon: 'none' icon: 'none'
}) })
return return
} }
if(this.pMsg.LinkTel==''){ if (this.pMsg.LinkTel == '') {
uni.showToast({ uni.showToast({
title: '请输入联系手机号', title: '请输入联系手机号',
icon: 'none' icon: 'none'
...@@ -351,61 +455,77 @@ ...@@ -351,61 +455,77 @@
return return
} }
this.signMsg.FirstShopLinkManList.push(JSON.parse(JSON.stringify(this.pMsg))); this.signMsg.FirstShopLinkManList.push(JSON.parse(JSON.stringify(this.pMsg)));
this.isShowAdd=false; this.isShowAdd = false;
}else{ } else {
this.signMsg.FirstShopLinkManList[this.EditIndex]=JSON.parse(JSON.stringify(this.pMsg)); this.signMsg.FirstShopLinkManList[this.EditIndex] = JSON.parse(JSON.stringify(this.pMsg));
if(this.signMsg.FirstShopLinkManList[this.EditIndex].LinkMan==''){ if (this.signMsg.FirstShopLinkManList[this.EditIndex].LinkMan == '') {
uni.showToast({ uni.showToast({
title: '请输入姓名', title: '请输入姓名',
icon: 'none' icon: 'none'
}) })
return return
} }
if(this.signMsg.FirstShopLinkManList[this.EditIndex].LinkTel==''){ if (this.signMsg.FirstShopLinkManList[this.EditIndex].LinkTel == '') {
uni.showToast({ uni.showToast({
title: '请输入联系手机号', title: '请输入联系手机号',
icon: 'none' icon: 'none'
}) })
return return
} }
this.isShowAdd=false; this.isShowAdd = false;
} }
}, },
//继续添加联系人 //继续添加联系人
goOnAdd(){ goOnAdd() {
this.isShowAdd=true; this.isShowAdd = true;
this.isEdit=false; this.isEdit = false;
this.clearInput(); this.clearInput();
}, },
//清空方法 //清空方法
clearInput(){ clearInput() {
this.pMsg.LinkMan=''; this.pMsg.LinkMan = '';
this.pMsg.LinkTel=''; this.pMsg.LinkTel = '';
this.pMsg.Post=''; this.pMsg.Post = '';
this.pMsg.CountryInfo=''; this.pMsg.CountryInfo = '';
this.pMsg.Age=''
this.pMsg.IdCard='',
this.pMsg.IsInoculate=null,
this.pMsg.IsGATLJ=null,
this.pMsg.GATLJRemark='',
this.pMsg.IsZGFX=null,
this.pMsg.ZGFXRemark='',
this.pMsg.IsQZJC=null,
this.pMsg.QZJCRemark='',
this.pMsg.IsJJGLGX=null,
this.pMsg.JJGLGXRemark='',
this.pMsg.IsZYCYJCGL=null,
this.pMsg.ZYCYJCGLRemark='',
this.pMsg.IsMJ=null,
this.pMsg.MJRemark='',
this.pMsg.IsFRGK=null,
this.pMsg.FRGKRemark=''
}, },
//删除联系人 //删除联系人
removeSignPerson(index){ removeSignPerson(index) {
let that=this let that = this
uni.showModal({ uni.showModal({
title: "提示", title: "提示",
content: "确认删除?", content: "确认删除?",
success: function (res) { success: function(res) {
if (res.confirm) { if (res.confirm) {
that.signMsg.FirstShopLinkManList.splice(index,1); that.signMsg.FirstShopLinkManList.splice(index, 1);
that.clearInput(); that.clearInput();
that.isShowAdd=true; that.isShowAdd = true;
that.isEdit=false; that.isEdit = false;
} else if (res.cancel) { } else if (res.cancel) {}
}
}, },
}); });
}, },
//编辑联系人 //编辑联系人
editSignPerson(item,index){ editSignPerson(item, index) {
this.isShowAdd=true; this.isShowAdd = true;
this.isEdit=true; this.isEdit = true;
this.EditIndex = index; this.EditIndex = index;
this.pMsg.LinkMan = item.LinkMan; this.pMsg.LinkMan = item.LinkMan;
this.pMsg.LinkTel = item.LinkTel; this.pMsg.LinkTel = item.LinkTel;
...@@ -414,21 +534,21 @@ ...@@ -414,21 +534,21 @@
}, },
//立即报名 //立即报名
goSignUp() { goSignUp() {
if(this.signMsg.CompanyName==''){ if (this.signMsg.CompanyName == '') {
uni.showToast({ uni.showToast({
title: '请输入单位/企业/机构名称', title: '请输入单位/企业/机构名称',
icon: 'none' icon: 'none'
}) })
return return
} }
if(this.signMsg.Nature==''){ if (this.signMsg.Nature == '') {
uni.showToast({ uni.showToast({
title: '请选择性质', title: '请选择性质',
icon: 'none' icon: 'none'
}) })
return return
} }
if(this.signMsg.FirstShopLinkManList.length==0){ if (this.signMsg.FirstShopLinkManList.length == 0) {
uni.showToast({ uni.showToast({
title: '请至少提交1个联系人信息', title: '请至少提交1个联系人信息',
icon: 'none' icon: 'none'
...@@ -442,14 +562,14 @@ ...@@ -442,14 +562,14 @@
(res) => { (res) => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
uni.showToast({ uni.showToast({
title:res.message, title: res.message,
icon:'none' icon: 'none'
}) })
setTimeout(()=>{ setTimeout(() => {
uni.redirectTo({ uni.redirectTo({
url:"/pages/kotra/signSuccse" url: "/pages/kotra/signSuccse"
}) })
},1000) }, 1000)
} }
} }
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment