信呼v2.5.1版本

This commit is contained in:
雨中磐石
2022-11-17 16:20:57 +08:00
parent 44100a4ab9
commit f4d68700c7
65 changed files with 1642 additions and 245 deletions

View File

@@ -1 +1 @@
<table width="100%" border="0" class="ke-zeroborder"><tbody><tr class="autoyijianview"><td height="34" width="15%" align="right" class="ys1">*^name^</td><td width="35%" class="ys2">{name}</td><td height="34" align="right" class="ys1"></td><td class="ys2"></td></tr><tr><td height="34" align="right" class="ys1">*^runren^</td><td colspan="3" class="ys2">{runren}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">*^startdt^</td><td width="35%" class="ys2">{startdt}</td><td height="34" width="15%" align="right" class="ys1">*^enddt^</td><td width="35%" class="ys2">{enddt}</td></tr><tr><td height="34" align="right" class="ys1">^explain^</td><td colspan="3" class="ys2">{explain}</td></tr><tr><td class="ys2" style="background-color:#CCCCCC;" colspan="4"><strong>收集字段</strong></td></tr><tr><td class="ys0" colspan="4"><table class="tablesub ke-zeroborder" id="tablesub0" style="width:100%;" border="0" cellspacing="0" cellpadding="0"><tbody><tr><td width="10%">序号</td><td>*字段名称</td><td>字段类型</td><td>说明/数据源</td><td>是否必填</td><td width="5%">操作</td></tr><tr><td>[xuhao0,0]</td><td>[pitem0,0]</td><td>[zxren0,0]</td><td>[zxrenid0,0]</td><td>[itemid0,0]</td><td>{删,0}</td></tr></tbody></table><div style="background-color:#F1F1F1;">{新增,0}</div></td></tr><tr><td height="34" align="right" class="ys1">^file_content^</td><td colspan="3" class="ys2">{file_content}</td></tr></tbody></table>
<table width="100%" border="0" class="ke-zeroborder"><tbody><tr class="autoyijianview"><td height="34" width="15%" align="right" class="ys1">*^name^</td><td width="35%" class="ys2">{name}</td><td height="34" width="15%" align="right" class="ys1">*^fenlei^</td><td width="35%" class="ys2">{fenlei}</td></tr><tr><td height="34" align="right" class="ys1">^runren^</td><td colspan="3" class="ys2">{runren}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">*^startdt^</td><td width="35%" class="ys2">{startdt}</td><td height="34" width="15%" align="right" class="ys1">*^enddt^</td><td width="35%" class="ys2">{enddt}</td></tr><tr><td height="34" align="right" class="ys1">^explain^</td><td colspan="3" class="ys2">{explain}</td></tr><tr><td height="34" align="right" class="ys1">^temp_beizhu^</td><td colspan="3" class="ys2">{temp_beizhu}</td></tr><tr><td class="ys2" style="background-color:#CCCCCC;" colspan="4"><strong>收集字段</strong></td></tr><tr><td class="ys0" colspan="4"><table class="tablesub ke-zeroborder" id="tablesub0" style="width:100%;" border="0" cellspacing="0" cellpadding="0"><tbody><tr><td width="10%">序号</td><td>*字段名称</td><td>字段类型</td><td>说明/数据源</td><td>是否必填</td><td width="5%">操作</td></tr><tr><td>[xuhao0,0]</td><td>[pitem0,0]</td><td>[zxren0,0]</td><td>[zxrenid0,0]</td><td>[itemid0,0]</td><td>{删,0}</td></tr></tbody></table><div style="background-color:#F1F1F1;">{新增,0}</div></td></tr><tr><td height="34" align="right" class="ys1">^file_content^</td><td colspan="3" class="ys2">{file_content}</td></tr></tbody></table>

View File

@@ -0,0 +1 @@
<table width="100%" border="0" class="ke-zeroborder"><tbody><tr class="autoyijianview"><td height="34" width="15%" align="right" class="ys1">*^applyname^</td><td width="35%" class="ys2">{applyname}</td><td height="34" width="15%" align="right" class="ys1">*^applydt^</td><td width="35%" class="ys2">{applydt}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">*^tiwen^</td><td width="35%" class="ys2">{tiwen}</td><td height="34" width="15%" align="right" class="ys1">*^state^</td><td width="35%" class="ys2">{state}</td></tr><tr><td height="34" align="right" class="ys1">^tupian^</td><td colspan="3" class="ys2">{tupian}</td></tr><tr><td height="34" align="right" class="ys1">^tupian1^</td><td colspan="3" class="ys2">{tupian1}</td></tr><tr><td height="34" align="right" class="ys1">^explain^</td><td colspan="3" class="ys2">{explain}</td></tr><tr><td height="34" align="right" class="ys1">^file_content^</td><td colspan="3" class="ys2">{file_content}</td></tr><tr><td height="34" align="right" class="ys1">^base_name^</td><td class="ys2">{base_name}</td><td align="right" class="ys1">^base_deptname^</td><td class="ys2">{base_deptname}</td></tr></tbody></table>

View File

@@ -113,6 +113,7 @@
},
onloadbefore:function(){},
oncolumns:function(d){return d},
loaddatabefore:function(d){
var das = d.listinfo;
if(das){
@@ -173,7 +174,7 @@
},
daoru:function(){
window['managelist'+modenum+''] = a;
addtabs({num:'daoruuser',url:'flow,input,daoru,modenum='+modenum+'',icons:'plus',name:'导入'+modename+''});
addtabs({num:'daoru'+modenum+'',url:'flow,input,daoru,modenum='+modenum+'',icons:'plus',name:'导入'+modename+''});
},
initcolumns:function(bots){
var num = 'columns_'+modenum+'_'+pnum+'',d=[],d1,d2={},i,len=fieldsarr.length,bok,sa=[{name:'默认搜索',fields:'','inputtype':'dev'}];
@@ -208,6 +209,7 @@
if(isflow>0)d.push({text:'流程状态',dataIndex:'statustext'});
if(nstr=='' || nstr.indexOf(',caozuo,')>=0)d.push({text:'',dataIndex:'caozuo',callback:'opegs{rand}'});
for(i=0;i<d.length;i++)if(this.setcinfo[d[i].dataIndex])d[i] = js.apply(d[i],this.setcinfo[d[i].dataIndex]);
d = this.oncolumns(d);
bootparams.columns = d;
if(bots)a.setColumns(d);
d1 = this.fieldzarr;

View File

@@ -21,13 +21,28 @@ $(document).ready(function(){
c.setcolumns('leixing',{
renderer:function(v,d,i){
return ''+v+'&nbsp;<a href="javascript:;" onclick="viespere{rand}('+i+')">查看</a>';
var str = ''+v+'';
str+='&nbsp;<a href="javascript:;" onclick="viespere{rand}('+i+',0)">查看</a>';
str+='&nbsp;<a href="javascript:;" onclick="viespere{rand}('+i+',1)">统计</a>';
return str;
}
});
viespere{rand}=function(id){
viespere{rand}=function(id,lx){
var d = a.getData(id);
var bo = addtabs({name:'信息收集表['+d.name+']',url:'flow,page,collects,atype=all,pnum=all,leixingid='+d.id+'',num:'collects'+d.id+''});
if(lx==1){
addtabs({name:'信息收集表['+d.name+']统计',url:'flow,page,collectstotal,mid='+d.id+'',num:'collectstotal'+d.id+''});
}else{
addtabs({name:'信息收集表['+d.name+']',url:'flow,page,collects,atype=all,pnum=all,leixingid='+d.id+'',num:'collects'+d.id+''});
}
}
c.createouturl=function(d){
var url = c.getacturl('createouturl')+'&id='+d.id+'';
js.tanbody('createurl','['+d.name+']外部收集地址', 300,200,{
html:'<div style="height:160px;padding:5px" align="center"><div><img id="createurlimg" src="images/logo.png" width="130" height="130"></div><div><a href="'+url+'" download="'+d.name+'130x130.png" class="blue">保存二维码</a><a href="javascript:;" onclick="js.open(\'?m=login&a=collect&mid='+d.id+'\',350,500)" class="blue">打开页面</a></div></div>'
});
get('createurlimg').src = url;
}
//[自定义区域end]

View File

@@ -21,6 +21,7 @@ $(document).ready(function(){
var plid = params.leixingid;
if(plid)bootparams.url+='&leixingid='+plid+'';
$('#tdleft_{rand}').hide();
//[自定义区域end]
c.initpagebefore();

View File

@@ -0,0 +1,65 @@
<?php if(!defined('HOST'))die('not access');?>
<script >
$(document).ready(function(){
{params}
var mid = params.mid;
var a = $('#veiw_{rand}').bootstable({
tablename:'planm',checked:false,fanye:true,statuschange:false,
url:publicmodeurl('collects','',{'mid':mid}),defaultorder:'`optdt` desc',
storeafteraction:'collectstotal_after',storebeforeaction:'collectstotal_before',
columns:[{
text:'填写时间',dataIndex:'optdt',sortable:true
},{
text:'状态',dataIndex:'status',sortable:true
}],
loadbefore:function(d){
if(d.columns)a.setColumns(d.columns);
},
itemdblclick:function(d){
openxiangs('详情','collects',d.id);
}
});
var c = {
daochu:function(){
a.exceldown();
},
search:function(){
var key = get('key_{rand}').value;
a.setparams({key:key}, true);
},
prints:function(){
pirnttablelist(a, nowtabs.name);
}
};
c{rand} = c;
js.initbtn(c);
});
</script>
<div>
<table width="100%">
<tr>
<td width="95%" align="left">
<div class="input-group" style="width:220px;">
<input class="form-control" id="key_{rand}" onkeydown="if(event.keyCode==13)c{rand}.search()" placeholder="关键词">
<span class="input-group-btn">
<button class="btn btn-default" click="search" type="button"><i class="icon-search"></i></button>
</span>
</div>
</td>
<td align="right" nowrap>
<button class="btn btn-default" click="daochu" type="button">导出</button>&nbsp;
<button class="btn btn-default" click="prints" type="button">打印</button>&nbsp;
</td>
</tr>
</table>
</div>
<div class="blank10"></div>
<div id="veiw_{rand}"></div>

View File

@@ -29,7 +29,7 @@ c.setcolumns('recename',{
c.setcolumns('fengmian',{
renderer:function(v){
if(!v)return '&nbsp;';
return '<img src="'+v+'" height="60">';
return '<img src="'+v+'" onclick="$.imgview({\'url\':this.src})" height="60">';
}
});
c.setcolumns('title',{

View File

@@ -0,0 +1,70 @@
<?php
/**
* 模块yqhealthy.健康报备
* 说明:自定义区域内可写你想要的代码
* 来源:流程模块→表单元素管理→[模块.健康报备]→生成列表页
*/
defined('HOST') or die ('not access');
?>
<script>
$(document).ready(function(){
{params}
var modenum = 'yqhealthy',modename='健康报备',isflow=0,modeid='142',atype = params.atype,pnum=params.pnum,modenames='',listname='eXVxaW5nbQ::';
if(!atype)atype='';if(!pnum)pnum='';
var fieldsarr = [],fieldsselarr= [],chufarr= [];
<?php
include_once('webmain/flow/page/rock_page.php');
?>
//[自定义区域start]
c.setcolumns('tupian',{
renderer:function(v){
if(!v)return '&nbsp;';
return '<img src="'+v+'" onclick="$.imgview({\'url\':this.src})" height="60">';
}
});
c.setcolumns('tupian1',{
renderer:function(v){
if(!v)return '&nbsp;';
return '<img src="'+v+'" onclick="$.imgview({\'url\':this.src})" height="60">';
}
});
//[自定义区域end]
c.initpagebefore();
js.initbtn(c);
var a = $('#view'+modenum+'_{rand}').bootstable(bootparams);
c.init();
});
</script>
<!--SCRIPTend-->
<!--HTMLstart-->
<div>
<table width="100%">
<tr>
<td style="padding-right:10px;" id="tdleft_{rand}" nowrap><button id="addbtn_{rand}" class="btn btn-primary" click="clickwin,0" disabled type="button"><i class="icon-plus"></i> 新增</button></td>
<td><select class="form-control" style="width:110px;border-top-right-radius:0;border-bottom-right-radius:0;padding:0 2px" id="fields_{rand}"></select></td>
<td><select class="form-control" style="width:60px;border-radius:0px;border-left:0;padding:0 2px" id="like_{rand}"><option value="0">包含</option><option value="1">等于</option><option value="2">大于等于</option><option value="3">小于等于</option><option value="4">不包含</option></select></td>
<td><select class="form-control" style="width:130px;border-radius:0;border-left:0;display:none;padding:0 5px" id="selkey_{rand}"><option value="">-请选择-</option></select><input class="form-control" style="width:130px;border-radius:0;border-left:0;padding:0 5px" id="keygj_{rand}" placeholder="关键词"><input class="form-control" style="width:130px;border-radius:0;border-left:0;padding:0 5px;display:none;" id="key_{rand}" placeholder="关键字">
</td>
<td>
<div style="white-space:nowrap">
<button style="border-right:0;border-radius:0;border-left:0" class="btn btn-default" click="searchbtn" type="button">搜索</button><button class="btn btn-default" id="downbtn_{rand}" type="button" style="padding-left:8px;padding-right:8px;border-top-left-radius:0;border-bottom-left-radius:0"><i class="icon-angle-down"></i></button>
</div>
</td>
<td width="90%" style="padding-left:10px"><div id="changatype{rand}" class="btn-group"></div></td>
<td align="right" id="tdright_{rand}" nowrap>
<span style="display:none" id="daoruspan_{rand}"><button class="btn btn-default" click="daoru,1" type="button">导入</button>&nbsp;&nbsp;&nbsp;</span><button class="btn btn-default" style="display:none" id="daobtn_{rand}" disabled click="daochu" type="button">导出 <i class="icon-angle-down"></i></button>
</td>
</tr>
</table>
</div>
<div class="blank10"></div>
<div id="viewyqhealthy_{rand}"></div>
<!--HTMLend-->