|
|
@@ -49,151 +49,153 @@
|
|
|
</div>
|
|
|
</van-cell-group>
|
|
|
<!-- 批量采购 -->
|
|
|
- <template v-if="infoData.cid == 5">
|
|
|
- <div class="taskGather" v-if="taskGather">
|
|
|
- <radioGroup :clueOptionList="taskGather"></radioGroup>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <template v-else>
|
|
|
- <div
|
|
|
- v-if="infoData.isClose != 1"
|
|
|
- class="container"
|
|
|
- style="width: 94%; margin: 0px auto; border-radius: 6px">
|
|
|
- <van-form ref="form">
|
|
|
- <div v-for="(item, index) in collectionItemList" :key="index">
|
|
|
- <div v-if="item.answerType == 'sz' && totalMoneyFlag" class="formLabel z-cell">
|
|
|
- <van-cell>
|
|
|
- <template #title>
|
|
|
- <span class="van-f-red">*</span>{{ item.customerClueName }}
|
|
|
- <!-- <span style="font-size: 12px; color: #888">{{ item.remark }}</span> -->
|
|
|
- </template>
|
|
|
- </van-cell>
|
|
|
- <van-field
|
|
|
- class="fieldNumber"
|
|
|
- v-model="item.answerValue"
|
|
|
- :placeholder="item.remark"
|
|
|
- type="number"
|
|
|
- @input="numberFn(item, index)"></van-field>
|
|
|
- </div>
|
|
|
- <div v-if="item.answerType == 'rq'" class="formLabel z-cell">
|
|
|
- <van-cell>
|
|
|
- <template #title>
|
|
|
- <span v-if="item.isMust == 0" class="van-f-red">*</span>{{ item.customerClueName
|
|
|
- }}<span style="font-size: 14px; color: #ccc">{{ item.remark }}</span>
|
|
|
- </template>
|
|
|
- </van-cell>
|
|
|
- <van-field
|
|
|
- v-model="item.answerValue"
|
|
|
- clickable
|
|
|
- name="calendar"
|
|
|
- placeholder="点击选择日期"
|
|
|
- readonly
|
|
|
- @click="showCalendarClick(index)" />
|
|
|
- <p
|
|
|
- style="
|
|
|
- color: #444;
|
|
|
- font-size: 12px;
|
|
|
- margin: 0;
|
|
|
- padding: 10px 0;
|
|
|
- text-align: right;
|
|
|
- "></p>
|
|
|
- </div>
|
|
|
- <div v-if="item.answerType == 'zp'" class="formLabel z-cell">
|
|
|
- <van-cell>
|
|
|
- <template #title>
|
|
|
- <span v-if="item.isMust == 0" class="van-f-red">*</span
|
|
|
- >{{ item.customerClueName }}
|
|
|
- </template>
|
|
|
- </van-cell>
|
|
|
- <van-row gutter="10" style="margin-bottom: 10px">
|
|
|
- <p style="margin-top: 0">
|
|
|
- <span style="font-size: 12px; color: #888">{{ item.remark }}</span>
|
|
|
- </p>
|
|
|
- <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
|
|
|
- <upload-img
|
|
|
- :uploadid="uploadid2"
|
|
|
- @newimgarr="newimgarr1"
|
|
|
- imgText="上传照片"
|
|
|
- :indexImg="index"
|
|
|
- :customId="item.customerClueId"
|
|
|
- :summaryId="item.customerClueItemId"
|
|
|
- @click="imgClick(item, index)"></upload-img>
|
|
|
- </van-row>
|
|
|
- </div>
|
|
|
- <div v-if="item.answerType == 'wb' && showv" class="formLabel z-cell formLabeltext">
|
|
|
- <van-cell>
|
|
|
- <template #title>
|
|
|
- <span class="van-f-red" v-if="requ">*</span>{{ item.customerClueName }}
|
|
|
- </template>
|
|
|
- </van-cell>
|
|
|
- <van-field
|
|
|
- v-model="item.answerValue"
|
|
|
- :formatter="formatter"
|
|
|
- :placeholder="item.remark"
|
|
|
- rows="1"
|
|
|
- autosize
|
|
|
- type="textarea"></van-field>
|
|
|
- <!-- <p style="color: #444;font-size: 12px;margin: 0;padding:10px 0;text-align: right">{{ item.remark }}</p>-->
|
|
|
- </div>
|
|
|
- <div v-if="item.answerType == 'wb' && showvnum" class="formLabel z-cell formLabeltext">
|
|
|
- <van-cell>
|
|
|
- <template #title>
|
|
|
- <span class="van-f-red" v-if="requ">*</span>{{ item.customerClueName }}
|
|
|
- </template>
|
|
|
- </van-cell>
|
|
|
- <van-field
|
|
|
- type="digit"
|
|
|
- v-model="item.answerValue"
|
|
|
- maxlength="10"
|
|
|
- :formatter="formatter"
|
|
|
- :placeholder="item.remark"></van-field>
|
|
|
- <!-- <p style="color: #444;font-size: 12px;margin: 0;padding:10px 0;text-align: right">{{ item.remark }}</p>-->
|
|
|
- </div>
|
|
|
- <div v-if="item.answerType == 'duox'" class="formLabel z-cell">
|
|
|
- <van-cell>
|
|
|
- <template #title>
|
|
|
- <span v-if="item.isMust == 0" class="van-f-red">*</span
|
|
|
- >{{ item.customerClueName }}
|
|
|
- </template>
|
|
|
- </van-cell>
|
|
|
- <z-checkbox
|
|
|
- :answerType="item.answerType"
|
|
|
- :checkboxval="item.answerValue"
|
|
|
- :collectionType="item.customOptionList"
|
|
|
- :textc="item.customerClueId"
|
|
|
- :zCheckboxcolumns="item.customerClueOptionList"
|
|
|
- @zSelectVal="zSelectVal"></z-checkbox>
|
|
|
+ <template v-if="infoData && infoData.isClose != 1">
|
|
|
+ <template v-if="infoData.cid == 5">
|
|
|
+ <div class="taskGather" v-if="taskGather">
|
|
|
+ <radioGroup :clueOptionList="taskGather"></radioGroup>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <div class="container" style="width: 94%; margin: 0px auto; border-radius: 6px">
|
|
|
+ <van-form ref="form">
|
|
|
+ <div v-for="(item, index) in collectionItemList" :key="index">
|
|
|
+ <div v-if="item.answerType == 'sz' && totalMoneyFlag" class="formLabel z-cell">
|
|
|
+ <van-cell>
|
|
|
+ <template #title>
|
|
|
+ <span class="van-f-red">*</span>{{ item.customerClueName }}
|
|
|
+ <!-- <span style="font-size: 12px; color: #888">{{ item.remark }}</span> -->
|
|
|
+ </template>
|
|
|
+ </van-cell>
|
|
|
+ <van-field
|
|
|
+ class="fieldNumber"
|
|
|
+ v-model="item.answerValue"
|
|
|
+ :placeholder="item.remark"
|
|
|
+ type="number"
|
|
|
+ @input="numberFn(item, index)"></van-field>
|
|
|
+ </div>
|
|
|
+ <div v-if="item.answerType == 'rq'" class="formLabel z-cell">
|
|
|
+ <van-cell>
|
|
|
+ <template #title>
|
|
|
+ <span v-if="item.isMust == 0" class="van-f-red">*</span
|
|
|
+ >{{ item.customerClueName
|
|
|
+ }}<span style="font-size: 14px; color: #ccc">{{ item.remark }}</span>
|
|
|
+ </template>
|
|
|
+ </van-cell>
|
|
|
+ <van-field
|
|
|
+ v-model="item.answerValue"
|
|
|
+ clickable
|
|
|
+ name="calendar"
|
|
|
+ placeholder="点击选择日期"
|
|
|
+ readonly
|
|
|
+ @click="showCalendarClick(index)" />
|
|
|
+ <p
|
|
|
+ style="
|
|
|
+ color: #444;
|
|
|
+ font-size: 12px;
|
|
|
+ margin: 0;
|
|
|
+ padding: 10px 0;
|
|
|
+ text-align: right;
|
|
|
+ "></p>
|
|
|
+ </div>
|
|
|
+ <div v-if="item.answerType == 'zp'" class="formLabel z-cell">
|
|
|
+ <van-cell>
|
|
|
+ <template #title>
|
|
|
+ <span v-if="item.isMust == 0" class="van-f-red">*</span
|
|
|
+ >{{ item.customerClueName }}
|
|
|
+ </template>
|
|
|
+ </van-cell>
|
|
|
+ <van-row gutter="10" style="margin-bottom: 10px">
|
|
|
+ <p style="margin-top: 0">
|
|
|
+ <span style="font-size: 12px; color: #888">{{ item.remark }}</span>
|
|
|
+ </p>
|
|
|
+ <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
|
|
|
+ <upload-img
|
|
|
+ :uploadid="uploadid2"
|
|
|
+ @newimgarr="newimgarr1"
|
|
|
+ imgText="上传照片"
|
|
|
+ :indexImg="index"
|
|
|
+ :customId="item.customerClueId"
|
|
|
+ :summaryId="item.customerClueItemId"
|
|
|
+ @click="imgClick(item, index)"></upload-img>
|
|
|
+ </van-row>
|
|
|
+ </div>
|
|
|
+ <div v-if="item.answerType == 'wb' && showv" class="formLabel z-cell formLabeltext">
|
|
|
+ <van-cell>
|
|
|
+ <template #title>
|
|
|
+ <span class="van-f-red" v-if="requ">*</span>{{ item.customerClueName }}
|
|
|
+ </template>
|
|
|
+ </van-cell>
|
|
|
+ <van-field
|
|
|
+ v-model="item.answerValue"
|
|
|
+ :formatter="formatter"
|
|
|
+ :placeholder="item.remark"
|
|
|
+ rows="1"
|
|
|
+ autosize
|
|
|
+ type="textarea"></van-field>
|
|
|
+ <!-- <p style="color: #444;font-size: 12px;margin: 0;padding:10px 0;text-align: right">{{ item.remark }}</p>-->
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ v-if="item.answerType == 'wb' && showvnum"
|
|
|
+ class="formLabel z-cell formLabeltext">
|
|
|
+ <van-cell>
|
|
|
+ <template #title>
|
|
|
+ <span class="van-f-red" v-if="requ">*</span>{{ item.customerClueName }}
|
|
|
+ </template>
|
|
|
+ </van-cell>
|
|
|
+ <van-field
|
|
|
+ type="digit"
|
|
|
+ v-model="item.answerValue"
|
|
|
+ maxlength="10"
|
|
|
+ :formatter="formatter"
|
|
|
+ :placeholder="item.remark"></van-field>
|
|
|
+ <!-- <p style="color: #444;font-size: 12px;margin: 0;padding:10px 0;text-align: right">{{ item.remark }}</p>-->
|
|
|
+ </div>
|
|
|
+ <div v-if="item.answerType == 'duox'" class="formLabel z-cell">
|
|
|
+ <van-cell>
|
|
|
+ <template #title>
|
|
|
+ <span v-if="item.isMust == 0" class="van-f-red">*</span
|
|
|
+ >{{ item.customerClueName }}
|
|
|
+ </template>
|
|
|
+ </van-cell>
|
|
|
+ <z-checkbox
|
|
|
+ :answerType="item.answerType"
|
|
|
+ :checkboxval="item.answerValue"
|
|
|
+ :collectionType="item.customOptionList"
|
|
|
+ :textc="item.customerClueId"
|
|
|
+ :zCheckboxcolumns="item.customerClueOptionList"
|
|
|
+ @zSelectVal="zSelectVal"></z-checkbox>
|
|
|
+ </div>
|
|
|
+ <div v-if="item.answerType == 'dx'" class="formLabel z-cell">
|
|
|
+ <van-cell>
|
|
|
+ <template #title>
|
|
|
+ <span v-if="item.isMust == 0" class="van-f-red">*</span
|
|
|
+ >{{ item.customerClueName }}
|
|
|
+ </template>
|
|
|
+ </van-cell>
|
|
|
+ <van-field>
|
|
|
+ <template #input>
|
|
|
+ <z-radio
|
|
|
+ :answerType="item.answerType"
|
|
|
+ :collectionType="item.collectionType"
|
|
|
+ :radio="item.answerValue"
|
|
|
+ :textc="item.customerClueId"
|
|
|
+ :Tindex="index"
|
|
|
+ :zRadiocolumns="item.customerClueOptionList"
|
|
|
+ @zSelectVal="zSelectVal"></z-radio>
|
|
|
+ </template>
|
|
|
+ </van-field>
|
|
|
+ </div>
|
|
|
+ <br />
|
|
|
</div>
|
|
|
- <div v-if="item.answerType == 'dx'" class="formLabel z-cell">
|
|
|
- <van-cell>
|
|
|
- <template #title>
|
|
|
- <span v-if="item.isMust == 0" class="van-f-red">*</span
|
|
|
- >{{ item.customerClueName }}
|
|
|
- </template>
|
|
|
- </van-cell>
|
|
|
- <van-field>
|
|
|
- <template #input>
|
|
|
- <z-radio
|
|
|
- :answerType="item.answerType"
|
|
|
- :collectionType="item.collectionType"
|
|
|
- :radio="item.answerValue"
|
|
|
- :textc="item.customerClueId"
|
|
|
- :Tindex="index"
|
|
|
- :zRadiocolumns="item.customerClueOptionList"
|
|
|
- @zSelectVal="zSelectVal"></z-radio>
|
|
|
- </template>
|
|
|
- </van-field>
|
|
|
+ <div style="height: auto" v-if="tipSHow">
|
|
|
+ <p style="color: orange; margin: 6px 16px; font-size: 14px">
|
|
|
+ <van-icon name="info-o" /> {{ tipText }}
|
|
|
+ </p>
|
|
|
</div>
|
|
|
<br />
|
|
|
- </div>
|
|
|
- <div style="height: auto" v-if="tipSHow">
|
|
|
- <p style="color: orange; margin: 6px 16px; font-size: 14px">
|
|
|
- <van-icon name="info-o" /> {{ tipText }}
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- <br />
|
|
|
- </van-form>
|
|
|
- </div>
|
|
|
+ </van-form>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
</template>
|
|
|
<br />
|
|
|
<div v-if="infoData.isClose != 1" class="tc" style="padding: 0 16px">
|
|
|
@@ -387,10 +389,10 @@
|
|
|
{{ scope.row[item.prop] }}
|
|
|
</template>
|
|
|
<template v-if="item.answerType == 'wb'">
|
|
|
- <van-field v-model="scope.row[item.prop]" />
|
|
|
+ <span>{{ scope.row[item.prop] }}</span>
|
|
|
</template>
|
|
|
<template v-if="item.answerType == 'sz'">
|
|
|
- <van-field v-model="scope.row[item.prop]" type="number" />
|
|
|
+ <span>{{ scope.row[item.prop] }}</span>
|
|
|
</template>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -565,6 +567,9 @@ export default {
|
|
|
taskGather: null, //跟进任务集合
|
|
|
};
|
|
|
},
|
|
|
+ activated() {
|
|
|
+ this.getCustomerClueInfoById();
|
|
|
+ },
|
|
|
created() {
|
|
|
this.formData.startTime = this.getThreeDaysAgo();
|
|
|
this.strtcurrentDate = new Date(this.getThreeDaysAgo());
|
|
|
@@ -573,7 +578,7 @@ export default {
|
|
|
this.powerGrade = localStorage.getItem('powerGrade');
|
|
|
this.id = this.$route.query.id;
|
|
|
this.getDeptInfo();
|
|
|
- this.getCustomerClueInfoById();
|
|
|
+ // this.getCustomerClueInfoById();
|
|
|
},
|
|
|
watch: {
|
|
|
$route(to, from) {
|
|
|
@@ -583,7 +588,7 @@ export default {
|
|
|
this.SBshow = false;
|
|
|
this.tipSHow = false;
|
|
|
this.followUpResult = '';
|
|
|
- this.getCustomerClueInfoById();
|
|
|
+ // this.getCustomerClueInfoById();
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
@@ -992,24 +997,19 @@ export default {
|
|
|
followUpResult: this.followUpResult,
|
|
|
customerClueItemList: this.collectionItemList,
|
|
|
};
|
|
|
- if (this.flagclick) {
|
|
|
- this.flagclick = false;
|
|
|
- this.timer = null;
|
|
|
- this.timer = setTimeout(() => {
|
|
|
- this.flagclick = true;
|
|
|
- }, 2000);
|
|
|
- insertCustomerClueAnswer(form).then((res) => {
|
|
|
- if (res.code == 200) {
|
|
|
- if (this.$route.query.token != undefined) {
|
|
|
- window.location.replace(window.location.origin + '/mobile/clew');
|
|
|
- } else {
|
|
|
- this.$router.go(-1);
|
|
|
- }
|
|
|
+ this.toastLoading(0, '加载中...', true);
|
|
|
+ insertCustomerClueAnswer(form).then((res) => {
|
|
|
+ this.toastLoading().clear();
|
|
|
+ if (res.code == 200) {
|
|
|
+ if (this.$route.query.token != undefined) {
|
|
|
+ window.location.replace(window.location.origin + '/mobile/clew');
|
|
|
} else {
|
|
|
- this.$toast(res.msg);
|
|
|
+ this.$router.go(-1);
|
|
|
}
|
|
|
- });
|
|
|
- }
|
|
|
+ } else {
|
|
|
+ this.$toast(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
getThreeDaysAgo() {
|
|
|
@@ -1274,7 +1274,7 @@ export default {
|
|
|
.containertext {
|
|
|
.el-table {
|
|
|
.el-table__cell {
|
|
|
- padding: 0;
|
|
|
+ padding: 3px 0;
|
|
|
}
|
|
|
}
|
|
|
}
|