diff --git a/src/components/Template/BaseInfoFormPackage.vue b/src/components/Template/BaseInfoFormPackage.vue
index 6ded5ec..b02a9df 100644
--- a/src/components/Template/BaseInfoFormPackage.vue
+++ b/src/components/Template/BaseInfoFormPackage.vue
@@ -453,11 +453,8 @@ export default {
if(sItem.hasOwnProperty("subDisabled")){
o.disabled = sItem.subDisabled;
}
- return {
- ...sItem,
- key: sItem.subKey,
- fillType: sItem.subFillType || sItem.fillType
- }
+ return o;
+
},
// 获取按钮项
getThirdButtonItem(sItem) {
diff --git a/src/components/Template/CustomTable.vue b/src/components/Template/CustomTable.vue
index 8ed469f..c7f930e 100644
--- a/src/components/Template/CustomTable.vue
+++ b/src/components/Template/CustomTable.vue
@@ -200,7 +200,7 @@
:orange-bg="hasOrangeBg(rowIndex, colIndex, col.otherCode)" />
-
@@ -224,11 +224,6 @@
:value="row[col.bodySubKey]"
@clickButton="(e, data) => handleClickButton(e, data, col.bodySubKey, rowIndex, colIndex)" />
-
- handleClickButton(e, data, col.bodyThirdKey, rowIndex, colIndex)" />
-
+
+ handleClickButton(e, data, col.bodyThirdKey, rowIndex, colIndex)" />
+
@@ -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,
diff --git a/src/views/business/comps/template/comps/yp/YP005.vue b/src/views/business/comps/template/comps/yp/YP005.vue
index 82cb9c7..f336e57 100644
--- a/src/views/business/comps/template/comps/yp/YP005.vue
+++ b/src/views/business/comps/template/comps/yp/YP005.vue
@@ -172,6 +172,10 @@ export default {
bodySubButtonName:"template.yp.yp005.ks",
bodySubKey:"startBtn",
showBodySub:this.fillType === "actFill",
+ bodyThirdType:"button",
+ bodyThirdButtonName:"结束",
+ bodyThirdKey:"endBtn",
+ bodyThirdFillType:"actFill",
width: 280,
bodyDisabled:true,
bodySubDisabled:false,