|
|
@@ -249,7 +249,7 @@ export default {
|
|
|
if (optionList[i].value == 'Y') {
|
|
|
if (optionList[i].customerClueItemList) {
|
|
|
// 必填校验
|
|
|
- this.isRequiredFlag(optionList[i].customerClueItemList[0]);
|
|
|
+ this.isRequiredFlag(optionList[i].customerClueItemList);
|
|
|
params.customerClueItemList.push(
|
|
|
...this.deepClone(optionList[i].customerClueItemList, 0)
|
|
|
);
|
|
|
@@ -286,11 +286,15 @@ export default {
|
|
|
return copy;
|
|
|
},
|
|
|
isRequiredFlag(optionList) {
|
|
|
+ console.log(optionList);
|
|
|
// 必填类型
|
|
|
- if (optionList.answerType == 'wb' && optionList.isMust == 0) {
|
|
|
- if (!optionList.answerValue) {
|
|
|
- this.requiredFlag = false;
|
|
|
- this.requiredMessage = optionList.remark;
|
|
|
+ for (let i = 0; i < optionList.length; i++) {
|
|
|
+ if (optionList[i].answerType == 'wb' && optionList[i].isMust == 0) {
|
|
|
+ if (!optionList[i].answerValue) {
|
|
|
+ this.requiredFlag = false;
|
|
|
+ this.requiredMessage = optionList[i].remark;
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|