|
|
|
@ -200,7 +200,7 @@ |
|
|
|
:orange-bg="hasOrangeBg(rowIndex, colIndex, col.otherCode)" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="m-l-5" :class="{ 'flex1': col.bodySubType !== 'button' }" |
|
|
|
<div class="m-l-5 flex" :class="{ 'flex1': col.bodySubType !== 'button' }" |
|
|
|
v-if="isShowBodySub(col, row)"> |
|
|
|
<template |
|
|
|
v-if="col.bodySubType === 'inputNumber' || col.bodySubType === 'input' || col.bodySubType === 'select'"> |
|
|
|
@ -224,11 +224,6 @@ |
|
|
|
:value="row[col.bodySubKey]" |
|
|
|
@clickButton="(e, data) => handleClickButton(e, data, col.bodySubKey, rowIndex, colIndex)" /> |
|
|
|
</template> |
|
|
|
<template v-else-if="col.bodyThirdType === 'button'"> |
|
|
|
<HandleFormItem class="ml-10" type="button" :item="getBodyThirdButtonItem(col, rowIndex)" |
|
|
|
:value="row[col.bodyThirdKey]" |
|
|
|
@clickButton="(e, data) => handleClickButton(e, data, col.bodyThirdKey, rowIndex, colIndex)" /> |
|
|
|
</template> |
|
|
|
<div class="flex flex1" v-else-if="isRegent(col, 'bodySubType')"> |
|
|
|
<HandleFormItem :fieldKey="prefixKey + '_' + col.bodySubKey + '_' + row.id" |
|
|
|
:fieldItemLabel="fieldItemLabel" :type="col.bodySubType" class="body-clickable" |
|
|
|
@ -240,6 +235,11 @@ |
|
|
|
@update:error="onErrorUpdate(rowIndex, colIndex, col.bodySubKey, $event)" |
|
|
|
:orange-bg="hasOrangeBg(rowIndex, colIndex, col.bodySubKey)" /> |
|
|
|
</div> |
|
|
|
<template v-if="col.bodyThirdType === 'button'"> |
|
|
|
<HandleFormItem class="ml-10" type="button" :item="getBodyThirdButtonItem(col, rowIndex)" |
|
|
|
:value="row[col.bodyThirdKey]" |
|
|
|
@clickButton="(e, data) => handleClickButton(e, data, col.bodyThirdKey, rowIndex, colIndex)" /> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -461,7 +461,7 @@ export default { |
|
|
|
isValid = value && value.some(tag => tag.checked === true); |
|
|
|
} else if (this.templateFillType === "preFill") { |
|
|
|
// preFill时,检查所有tagValue是否不为空 |
|
|
|
isValid = value && value.every(tag => tag.tagValue && tag.tagValue.trim() !== ''); |
|
|
|
isValid = value && value.every(tag => tag.tagValue && (tag.tagValue+'').trim() !== ''); |
|
|
|
} |
|
|
|
this.onErrorUpdate(rowIndex, colIndex, col.prop, !isValid); |
|
|
|
this.$emit("onCheckboxTagChange", rowIndex, col, value) |
|
|
|
@ -675,7 +675,7 @@ export default { |
|
|
|
} |
|
|
|
} else if (this.templateFillType === "preFill") { |
|
|
|
// preFill时,检查所有tagValue是否不为空 |
|
|
|
const allTagValuesFilled = mainValue && mainValue.every(tag => tag.tagValue && tag.tagValue.trim() !== ''); |
|
|
|
const allTagValuesFilled = mainValue && mainValue.every(tag => tag.tagValue && (tag.tagValue+'').trim() !== ''); |
|
|
|
if (!allTagValuesFilled && !col.bodyDisabled) { |
|
|
|
const errorItem = { |
|
|
|
rowIndex, |
|
|
|
|