|
|
@@ -472,6 +472,23 @@
|
|
|
<van-field v-model="reportContents[3].tucReportingSuccessNum" type="digit" />
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <!-- 今日未拜访原因 如果为false,则不展示;如果为true,则展示,需要展示“今日拜访0家店的原因” -->
|
|
|
+ <div v-if="reportTarget.showNotVisitReason">
|
|
|
+ <p class="contentContainerTitle">
|
|
|
+ 今日拜访0家店的原因<span class="colorRed">(必填)</span>
|
|
|
+ </p>
|
|
|
+ <div style="padding: 10px 0">
|
|
|
+ <van-field
|
|
|
+ v-model="notVisitReason"
|
|
|
+ rows="3"
|
|
|
+ autosize
|
|
|
+ maxlength="800"
|
|
|
+ show-word-limit
|
|
|
+ type="textarea"
|
|
|
+ :formatter="formatter"
|
|
|
+ placeholder="若今日未拜访任何一家门店,则必填" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<p class="contentContainerTitle">今日机会与挑战总结<span class="colorRed">(必填)</span></p>
|
|
|
<div style="padding: 10px 0">
|
|
|
<van-field
|
|
|
@@ -609,6 +626,7 @@ export default {
|
|
|
JZQuota: false,
|
|
|
GZQuota: false,
|
|
|
titlejz: '',
|
|
|
+ notVisitReason: '', //今日拜访0家店的原因;
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
@@ -767,6 +785,13 @@ export default {
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
+ if (this.reportTarget.showNotVisitReason) {
|
|
|
+ if (this.notVisitReason === '') {
|
|
|
+ this.$toast('请输入今日拜访0家店的原因!');
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ this.reportTarget.notVisitReason = this.notVisitReason;
|
|
|
+ }
|
|
|
if (this.reportContents[0].dayContent.trim() == '') {
|
|
|
this.$toast('请输入日报内容!');
|
|
|
return false;
|