Browse Source

feat:[模板管理][update]

lkf
luojie 3 months ago
parent
commit
986286b0e6
3 changed files with 5 additions and 5 deletions
  1. +4
    -3
      src/components/Template/CustomTable.vue
  2. +1
    -0
      src/views/business/comps/template/comps/sp/SWYPNBGZYZBB.vue
  3. +0
    -2
      src/views/business/comps/template/formConfig/paralleAndLadderConfig.js

+ 4
- 3
src/components/Template/CustomTable.vue View File

@ -295,7 +295,7 @@ export default {
if (col.bodyFillType === this.templateFillType || col.bodySubFillType === this.templateFillType) {
//
const mainValue = row[col.prop];
if (this.isValueEmpty(mainValue) && !col.bodyDisabled) {
if (this.isValueEmpty(mainValue) && !col.bodyDisabled && col.bodyType!=='span') {
const errorItem = {
rowIndex,
colIndex,
@ -308,7 +308,7 @@ export default {
}
//
if (col.bodySubKey && !col.bodySubDisabled) {
if (col.bodySubKey && !col.bodySubDisabled && col.bodySubType!=='span') {
const subValue = row[col.bodySubKey];
console.log(col, subValue, "subValue")
if (this.isValueEmpty(subValue)) {
@ -326,7 +326,7 @@ export default {
}
});
});
console.log(errors,this.localDataSource,"errors")
return {
valid: errors.length === 0,
errors: errors
@ -411,6 +411,7 @@ export default {
placeholder: col.bodySubPlaceholder || "请输入",
precision: col.subPrecision || 0,
compareTo: col.bodySubCompareTo, // compareTo
type: col.bodySubType || "input",
}
if (col.bodySubDisabled) {
item.disabled = col.bodySubDisabled;

+ 1
- 0
src/views/business/comps/template/comps/sp/SWYPNBGZYZBB.vue View File

@ -301,6 +301,7 @@ export default {
refsToValidate.push(`paralleStepRef_${i}`);
}
}
console.log(refsToValidate,"refsToValidate")
return await this.validFormFields(refsToValidate);
},
getFilledFormData() {

+ 0
- 2
src/views/business/comps/template/formConfig/paralleAndLadderConfig.js View File

@ -307,7 +307,6 @@ export const getParallelColumnsConfig = ($this) => {
bodyType: "inputNumber",
bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true,
},
{
@ -338,7 +337,6 @@ export const getParallelColumnsConfig = ($this) => {
bodyType: "inputNumber",
bodyFillType: "actFill",
bodyMaxlength: 10,
bodyDisabled: true,
},
]
}

Loading…
Cancel
Save