1. 附件配置
| 编辑人 | 修改时间 | 修改内容 | 文档状态 |
|---|---|---|---|
| 待归类,按标题分类,并确定标准模板 |
1.1. 电脑端
实现手机拍照、相册选图以及附件上传 ,目前附件功能无水印
<td colspan="5" caption="附件" style="">
<div addbyebs="true"
ebstype="attach"
category="印章刻制附件"
type="biz81"
objid="[this.ordid]"
attach="1"
min="1"
view=""
name="yzkzfj"
editable="0"
filetype="file">
attach
</div>
</td>
1、category:附件类别中文名称
2、attach:附件类别ID,值必须大于0 ,同一个表单中只能有唯一一个attach的属性值,即若表单存在多个类别的附件,需保证属性值不重复。
3、type: "biz+bizid"
4、name:需修改为字段名称拼音首字母缩写
5、当ebstype="attach",filetype为 album[手机相册]、audio[手机录音]、camera[手机拍照] 、image[pc(只能选图片)、手机(拍照+相册)]、file[pc(所有文件)、手机(拍照+相册)]。
6、view表示为列表或者缩略图形式显示 list为列表, icon为缩略图,默认大小为128*128,可指定大小,格式为icon100,大小为100*100
7、database 存数据库attach表中 0存库(默认值),1不存库
8、 compress:手机端compress=1为不压缩,为0为自动选择,大于1压缩。 电脑端compress=1024表示文件大于1k就压缩
9、popwin:附件查看属性,形如:popwin="宽,高/展示方式",展示方式可为0或1,0时当前页面弹窗窗口显示,1为浏览器新开选项卡方式查看,建议使用0
10、客户附件配置时 需要注意 type="cst"+tag值 例如tag=0时 type="cst",tag=1时,
type="cst1" objid = "[this.ccid]"相关参数可在客户配置的基本信息中看到
11、产品附件配置时 需要注意 type="prd"+tag值 例如tag=0时 type="prd",tag=1时,
type="prd1" objid = "[this.prdid]"12、 水印:添加属性 text="[_pobj2.username]拍摄于[now]" ,其中必须是 ebstype="photo",如
<td placeholder="拍照" colspan="3" style="padding-left:20px;padding-right:10px;height:100px;" valign="top" name="ord_photos" editable="0" caption="拍照文件" type="string" ebstype="photo" text="[_pobj2.username]拍摄于[now]" position="bottomcenter" max-length="200" view="82*82" min="1" mandatory="0"></td>13、必须:mandatory="0"></td>
11、产品附件配置时 需要注意
type="prd"+tag值 例如tag=0时 type="prd",tag=1时,