|
|
@@ -164,11 +164,57 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div
|
|
|
- v-if="taskType == 1"
|
|
|
+ v-if="taskType == 1 || taskType == 4"
|
|
|
class="container"
|
|
|
style="width: 94%; margin: 0 auto; border-radius: 6px; padding: 10px 10px 10px 0">
|
|
|
<van-form ref="tabstoreVal">
|
|
|
<div v-for="(item, index) in collectionItemList" :key="index">
|
|
|
+ <div v-if="item.answerType == 'tel_send_code'" class="formLabel z-cell">
|
|
|
+ <van-cell>
|
|
|
+ <template #title>
|
|
|
+ <span v-if="item.isMust == 0" class="van-f-red">*</span>
|
|
|
+ {{ item.collectionName }}
|
|
|
+ <!-- 操作说明图片和电话 -->
|
|
|
+ <taskTips
|
|
|
+ v-if="item.contactPhone || item.examplePhoto"
|
|
|
+ :contactPhone="item.contactPhone"
|
|
|
+ :examplePhoto="item.examplePhoto">
|
|
|
+ </taskTips>
|
|
|
+ </template>
|
|
|
+ </van-cell>
|
|
|
+ <van-field
|
|
|
+ v-model="item.answerValue"
|
|
|
+ :placeholder="item.text"
|
|
|
+ type="tel"
|
|
|
+ @blur="telFn(item, index, 'A')">
|
|
|
+ <template #button>
|
|
|
+ <van-button size="small" type="primary">发送验证码</van-button>
|
|
|
+ </template>
|
|
|
+ </van-field>
|
|
|
+ <p
|
|
|
+ style="color: #444; font-size: 12px; margin: 0; padding: 10px 0; text-align: right"
|
|
|
+ v-if="item.collectionOptionList[0].collectionOption">
|
|
|
+ {{ item.collectionOptionList[0].collectionOption }}
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+ <div v-if="item.answerType == 'check_code'" class="formLabel z-cell">
|
|
|
+ <van-cell>
|
|
|
+ <template #title>
|
|
|
+ <span v-if="item.isMust == 0" class="van-f-red">*</span>
|
|
|
+ {{ item.collectionName }}
|
|
|
+ </template>
|
|
|
+ </van-cell>
|
|
|
+ <van-field
|
|
|
+ v-model="item.answerValue"
|
|
|
+ :placeholder="item.text"
|
|
|
+ type="number"
|
|
|
+ @input="numberFn(item, index, 'A')"></van-field>
|
|
|
+ <p
|
|
|
+ style="color: red; font-size: 14px; margin: 0; padding: 10px 0; text-align: right"
|
|
|
+ v-if="item.collectionOptionList[0].collectionOption">
|
|
|
+ {{ item.collectionOptionList[0].collectionOption }}
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
<div v-if="item.answerType == 'sz'" class="formLabel z-cell">
|
|
|
<van-cell>
|
|
|
<template #title
|
|
|
@@ -3363,7 +3409,7 @@ export default {
|
|
|
console.log(params.id);
|
|
|
getCollectionInfos(params).then((res) => {
|
|
|
loading1.clear();
|
|
|
- this.productTitles = res.data.productTitles; //产品类型表头数据
|
|
|
+ this.productTitles = res.data.productTitles || null; //产品类型表头数据
|
|
|
var checkUnManage = res.data;
|
|
|
var collectionItemLists = res.data.collectionItemList;
|
|
|
if (checkUnManage.checkUnManage != null && checkUnManage.checkUnManage != 'N') {
|
|
|
@@ -3389,14 +3435,16 @@ export default {
|
|
|
this.processKey = false;
|
|
|
}
|
|
|
this.infoShow = res.data.isMust;
|
|
|
- if (this.$route.query.taskType == 1) {
|
|
|
+ if (this.$route.query.taskType == 1 || this.$route.query.taskType == 4) {
|
|
|
for (var q = 0; q < collectionItemLists.length; q++) {
|
|
|
if (
|
|
|
collectionItemLists[q].answerType == 'sz' ||
|
|
|
collectionItemLists[q].answerType == 'wb' ||
|
|
|
collectionItemLists[q].answerType == 'sm' ||
|
|
|
collectionItemLists[q].answerType == 'tel' ||
|
|
|
- collectionItemLists[q].answerType == 'date'
|
|
|
+ collectionItemLists[q].answerType == 'date' ||
|
|
|
+ collectionItemLists[q].answerType == 'tel_send_code' ||
|
|
|
+ collectionItemLists[q].answerType == 'check_code'
|
|
|
) {
|
|
|
collectionItemLists[q].answerValue =
|
|
|
collectionItemLists[q].collectionOptionList[0].answerValue;
|
|
|
@@ -4309,7 +4357,7 @@ export default {
|
|
|
};
|
|
|
}
|
|
|
|
|
|
- if (this.$route.query.taskType == 1) {
|
|
|
+ if (this.$route.query.taskType == 1 || this.$route.query.taskType == 4) {
|
|
|
for (var b = 0; b < this.collectionItemList.length; b++) {
|
|
|
if (
|
|
|
this.collectionItemList[b].answerType == 'sz' ||
|