|
@@ -70,11 +70,23 @@
|
|
|
{{ val.customerClueName }}
|
|
{{ val.customerClueName }}
|
|
|
</div>
|
|
</div>
|
|
|
<van-field
|
|
<van-field
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ val.customerClueName.indexOf('开户门店代码') != -1 ||
|
|
|
|
|
+ val.customerClueName.indexOf('开户经销商代码') != -1
|
|
|
|
|
+ "
|
|
|
|
|
+ class="fieldInput"
|
|
|
|
|
+ v-model="val.answerValue"
|
|
|
|
|
+ :placeholder="val.remark"
|
|
|
|
|
+ maxlength="10"
|
|
|
|
|
+ :minTextLength="val.minTextLength"
|
|
|
|
|
+ type="digit"
|
|
|
|
|
+ @focus="inputFocus(val)"></van-field>
|
|
|
|
|
+ <van-field
|
|
|
|
|
+ v-else
|
|
|
class="fieldInput"
|
|
class="fieldInput"
|
|
|
v-model="val.answerValue"
|
|
v-model="val.answerValue"
|
|
|
:placeholder="val.remark"
|
|
:placeholder="val.remark"
|
|
|
:minTextLength="val.minTextLength"
|
|
:minTextLength="val.minTextLength"
|
|
|
- :error-message="val.remark"
|
|
|
|
|
type="number"></van-field>
|
|
type="number"></van-field>
|
|
|
</template>
|
|
</template>
|
|
|
<!-- 照片 -->
|
|
<!-- 照片 -->
|
|
@@ -248,6 +260,11 @@ export default {
|
|
|
val.itemData.fileInfoList.splice(val.index, 1);
|
|
val.itemData.fileInfoList.splice(val.index, 1);
|
|
|
this.setFileIdList(val);
|
|
this.setFileIdList(val);
|
|
|
},
|
|
},
|
|
|
|
|
+ // 设置输入框长度限制
|
|
|
|
|
+ inputFocus(val) {
|
|
|
|
|
+ if (val.minTextLength) return;
|
|
|
|
|
+ this.$set(val, 'minTextLength', 10);
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|