Commit 7141158e authored by 黄奎's avatar 黄奎

1

parent 0f1a5ca5
...@@ -41,23 +41,23 @@ ...@@ -41,23 +41,23 @@
line-height: 40px; line-height: 40px;
} }
/deep/.guestSign .el-checkbox-group .el-checkbox__inner { /deep/.guestSign .el-checkbox .el-checkbox__inner {
width: 40px; width: 40px;
height: 40px; height: 40px;
line-height: 40px; line-height: 40px;
} }
/deep/.guestSign .el-checkbox-group .el-checkbox__input { /deep/.guestSign .el-checkbox .el-checkbox__inner {
line-height: 3; line-height: 3;
} }
/* 调整checkbox的选择框大小 */ /* 调整checkbox的选择框大小 */
/deep/.guestSign .el-checkbox-group .el-checkbox__inner::after { /deep/.guestSign .el-checkbox .el-checkbox__inner::after {
width: 40px; width: 40px;
height: 40px; height: 40px;
} }
/deep/.guestSign .el-checkbox-group .el-checkbox__label { /deep/.guestSign .el-checkbox .el-checkbox__label {
font-size: 36px; font-size: 36px;
} }
...@@ -104,10 +104,11 @@ ...@@ -104,10 +104,11 @@
</el-radio-group> </el-radio-group>
</template> </template>
<template v-if="item.SurveyType === 3"> <template v-if="item.SurveyType === 3">
<el-checkbox-group v-model="item.SurveyOptionsList">
<el-checkbox v-for="(radio, rIndex) in item.SurveyOptionsList" :label="radio.ID" :key="rIndex"> <el-checkbox v-for="(radio, rIndex) in item.SurveyOptionsList" v-model="radio.IsCheckS" :label="radio.ID"
{{radio.OptionsName}}</el-checkbox> :key="rIndex">
</el-checkbox-group> {{radio.OptionsName}}</el-checkbox>
</template> </template>
<template v-if="item.SurveyType === 4"> <template v-if="item.SurveyType === 4">
<el-input type="textarea" :rows="2" :placeholder="$t('fnc.qsrneirong')" v-model="item.TextContent"> <el-input type="textarea" :rows="2" :placeholder="$t('fnc.qsrneirong')" v-model="item.TextContent">
...@@ -221,8 +222,18 @@ ...@@ -221,8 +222,18 @@
item.OrderID = this.qMsg.OrderId; item.OrderID = this.qMsg.OrderId;
if (item.SurveyType === 2 || item.SurveyType === 3) { if (item.SurveyType === 2 || item.SurveyType === 3) {
item.SurveyOptionsList.forEach(y => { item.SurveyOptionsList.forEach(y => {
if (item.ScoreNum == y.ID) { //单选
y.IsCheck = "1"; if (item.SurveyType == 2) {
if (item.ScoreNum == y.ID) {
y.IsCheck = "1";
}
}
//多选
if (item.SurveyType == 3) {
y.IsCheck = "0";
if (y.IsCheckS) {
y.IsCheck = "1";
}
} }
}) })
item.ScoreNum = 0; item.ScoreNum = 0;
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
postMsg: { postMsg: {
type: 1, //1-手机号码验证登录,2-护照号码验证登录 type: 1, //1-手机号码验证登录,2-护照号码验证登录
//E75385750 13970261014 //E75385750 13970261014
guestMobile: "13970261014", //1-为手机号码,2-护照号码 guestMobile: "13088987863", //1-为手机号码,2-护照号码
TCID: 21633 TCID: 21633
}, },
qMsg: { qMsg: {
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
GuestId: 0, GuestId: 0,
SurName: "", //中文姓 SurName: "", //中文姓
Sex: 0, //性别 1-男 2-女 Sex: 0, //性别 1-男 2-女
OrderId:0 OrderId: 0
} }
}; };
}, },
...@@ -53,20 +53,22 @@ ...@@ -53,20 +53,22 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempData = res.data.data; var tempData = res.data.data;
console.log(tempData); console.log(tempData);
this.qMsg.GuestId = tempData[0].Id; if (tempData && tempData.length > 0) {
this.qMsg.SurName = tempData[0].SurName; this.qMsg.GuestId = tempData[0].Id;
this.qMsg.Sex = tempData[0].Sex; this.qMsg.SurName = tempData[0].SurName;
this.qMsg.OrderId=tempData[0].OrderId; this.qMsg.Sex = tempData[0].Sex;
this.$router.push({ this.qMsg.OrderId = tempData[0].OrderId;
name: "guestSign", this.$router.push({
query: { name: "guestSign",
TCID: this.qMsg.TCID, query: {
GuestId: this.qMsg.GuestId, TCID: this.qMsg.TCID,
SurName: this.qMsg.SurName, GuestId: this.qMsg.GuestId,
Sex: this.qMsg.Sex, SurName: this.qMsg.SurName,
OrderId:this.qMsg.OrderId Sex: this.qMsg.Sex,
} OrderId: this.qMsg.OrderId
}) }
})
}
} }
}, },
err => {} err => {}
......
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