/**
 * 该模块是M3签章组件<br>
 *  <strong>
 *          页面需要导入的文件
 *          <ul>
 *              <li>cmp-handWriteSignature.js</li>
 *          </ul>
 *          <span style="color:red">此接口不支持微协同</span>
 *      </strong>
 * @module HandWriteSignature
 * @subtitle 金格签章
 */

/**
 * 签章<br>
 * @class handWriteSignature
 * @namespace cmp
 * @type {{}}
 */

/**
 * 初始化签章图片
 * @namespace cmp.handWriteSignature
 * @method initSignatureData
 * @param {Object} options 配置参数
 *       @param {Object} options.value value 为一个数组[object] object.fieldName、object.fieldValue、object.picData
 *       @param {Function} options.success 成功回调
 *       @param {Function} options.error 失败回调
 * @example
 * ```
 * <script>
 *    cmp.handWriteSignature.initSignatureData({
 *           value: [{fieldName:"field0001",fieldValue:"12222",picData:"base64"}],
 *           success: function () {
 *           },
 *           error: function(){}
 *    });
 * </script>
 * ```
 */

/**
 * 显示签章组件
 * @namespace cmp.handWriteSignature
 * @method show
 * @param {Object} options 配置参数
 *       @param {String} options.fieldName 输入域名称
 *       @param {String} options.fieldValue 需要提交到服务前端的base64数据
 *       @param {Number} options.height 签章控件高
 *       @param {Number} options.width 签章控件宽
 *       @param {String} options.picData 可以显示在当前表单的签章图片base64
 *       @param {String} options.recordID
 *       @param {String} options.summaryID
 *       @param {String} options.currentOrgID
 *       @param {String} options.currentOrgName
 *       @param {String} options.signatureListUrl 签章列表url地址,http//10.5.6.240:88/seeyon/rest/signet/signets
 *       @param {String} options.signaturePicUrl 获取签章数据url地址,http//10.5.6.240:88/seeyon/rest/signet/signetPic
 *       @param {Boolean} options.hasSignetures 是否有签章权限
 *       @param {String} options.affairId
 *       @param {Function} options.success 成功回调
 *       @param {Function} options.error 失败回调
 * @example
 * ```
 * <script>
 *    cmp.handWriteSignature.show({
 *           fieldName: "field0001",
 *           fieldValue:"0001",
 *           height:50,
 *           width:50,
 *           picData:"base64",
 *           recordID:"xxxx",
 *           summaryID:"xxxx",
 *           currentOrgID:"xxxx",
 *           currentOrgName:"xxxx",
 *           signatureListUrl:"xxxx",
 *           signaturePicUrl:"xxx",
 *           hasSignetures:true,
 *           affairId:"xxxx",
 *           success: function () {
 *           },
 *           error: function(){}
 *    });
 * </script>
 * ```
 */

/**
 * 清除签章
 * @namespace cmp.handWriteSignature
 * @method clear
 * @param {Object} options 配置参数
 *       @param {Function} options.success 成功回调
 *       @param {Function} options.error 失败回调
 * @example
 * ```
 * <script>
 *    cmp.handWriteSignature.clear({
 *           success: function () {
 *           },
 *           error: function(){}
 *    });
 * </script>
 * ```
 */


    
Top