| | |
| | | checkTemplateParamObjectListNotNull, |
| | | convertJsonMapToTemplateParamObjectList, |
| | | } from '../utils'; |
| | | import { CanvasHeight, CanvasWidth } from '../constants'; |
| | | |
| | | export interface TemplateDetailContext { |
| | | templateDetail: Ref<API.GetContractTemplateQueryResult>; |
| | |
| | | |
| | | async function saveCustomerTemplateParam() { |
| | | try { |
| | | console.log('templateEditState: ', templateEditState); |
| | | const templateParamObjectList = convertJsonMapToTemplateParamObjectList( |
| | | templateEditState.jsonMap |
| | | ); |
| | |
| | | type: x.templateParamType, |
| | | recorder: x.recorder, |
| | | userType: x.userType, |
| | | bindProperty: x.bindProperty, |
| | | x: x.left / CanvasWidth, |
| | | y: x.top / CanvasHeight, |
| | | page: x.pageNum + 1, |
| | | } as API.SaveContractTemplateValuesCommandItem) |
| | | ), |
| | | templateJsonData: JSON.stringify(templateEditState.jsonMap), |