wupengfei
2 天以前 ffe106598cb2def7e7e905695f5d6893eddcf3fd
src/views/ProtocolManage/EditTemplate.vue
@@ -181,6 +181,10 @@
        showDownloadBtn: false,
        formatter: (row: API.GetEnterpriseContractTemplatesQueryResultItem) => setOSSLink(row.file),
      },
      isAutoSign: {
        formatter: (row: API.GetEnterpriseContractTemplatesQueryResultItem) =>
          row.isAutoSign ? '是' : '否',
      },
    },
  }
);
@@ -198,6 +202,8 @@
    isEnterpriseUserCreated: false,
    templateEditData: '',
    enterpriseId: '',
    isAutoSign: false,
    autoSignPowerAttorneyUrl: [] as UploadUserFile[],
  },
  closeAfterConfirm: false,
});
@@ -215,6 +221,8 @@
        access: row.access,
        isEnterpriseUserCreated: detail.isEnterpriseUserCreated,
        templateEditData: detail.templateEditData,
        isAutoSign: detail.isAutoSign ?? false,
        autoSignPowerAttorneyUrl: convertApi2FormUrlOnlyOne(detail.autoSignPowerAttorneyUrl),
        enterpriseId: enterpriseId,
      });
    } else {
@@ -234,6 +242,7 @@
      code: editForm.code,
      access: editForm.access,
      templateId: editForm.templateId,
      autoSignPowerAttorneyUrl: editForm.autoSignPowerAttorneyUrl?.[0]?.path ?? '',
      templateEditData: JSON.stringify(
        pdfToImage.map(
          (x) =>
@@ -245,6 +254,11 @@
        )
      ),
    };
    if (editForm.access === EnumElectronSignAccess.BestSign) {
      params.isAutoSign = editForm.isAutoSign;
    } else {
      params.isAutoSign = false;
    }
    if (isEdit) {
      params.id = editForm.id;
    }