发布v2.6.8版本
This commit is contained in:
@@ -4,7 +4,7 @@ class inputAction extends Action
|
||||
public $mid = 0;
|
||||
public $flow;
|
||||
public $rs = array();
|
||||
public $gongsiarr,$actclss,$fieldarrall,$inputobj,$subfielsa,$checkobj,$mdb;
|
||||
public $gongsiarr,$actclss,$fieldarrall,$inputobj,$subfielsa,$checkobj,$mdb,$mallfields;
|
||||
|
||||
public function initAction()
|
||||
{
|
||||
@@ -70,8 +70,8 @@ class inputAction extends Action
|
||||
if(!$fieldsarr)$this->backmsg('没有录入元素');
|
||||
|
||||
$db = m($table);$subna = '提交';$addbo = false;$where = "`id`='$id'"; $oldrs = false;
|
||||
$this->mdb = $db;
|
||||
|
||||
$this->mdb = $db;
|
||||
$filelx = (int)arrvalue($this->moders,'filelx','0');
|
||||
if($id==0){
|
||||
$where = '';
|
||||
$addbo = true;
|
||||
@@ -140,6 +140,7 @@ class inputAction extends Action
|
||||
|
||||
//默认字段保存
|
||||
$allfields = $this->db->getallfields('[Q]'.$table.'');
|
||||
$this->mallfields = $allfields;
|
||||
if(in_array('optdt', $allfields))$uaarr['optdt'] = $this->now;
|
||||
if(in_array('optid', $allfields))$uaarr['optid'] = $this->adminid;
|
||||
if(in_array('optname', $allfields))$uaarr['optname'] = $this->adminname;
|
||||
@@ -185,6 +186,8 @@ class inputAction extends Action
|
||||
if(isset($uaarr[$rs['fields']]))$ss = $this->flow->savedatastr($uaarr[$rs['fields']], $rs, $uaarr);
|
||||
if($ss!='')$this->backmsg($ss);
|
||||
}
|
||||
$fileid = $this->post('fileid');
|
||||
if($filelx==1 && isempt($fileid))$this->backmsg('必须添加“相关文件”');
|
||||
|
||||
//判断保存前的
|
||||
$ss = '';
|
||||
@@ -243,7 +246,8 @@ class inputAction extends Action
|
||||
|
||||
if($id==0)$id = $this->db->insert_id();
|
||||
$fobj = m('file');
|
||||
$fobj->addfile($this->post('fileid'), $table, $id, $modenum);
|
||||
|
||||
$fobj->addfile($fileid, $table, $id, $modenum);
|
||||
if($this->otherfileid!=''){
|
||||
$ofid1 = substr($this->otherfileid,1);
|
||||
$fobj->addxuan($ofid1,$this->post('sxuanfileid'),''.$modenum.'|'.$id.'');
|
||||
@@ -366,8 +370,16 @@ class inputAction extends Action
|
||||
$len = count($data);
|
||||
$idss = '0';
|
||||
$whes = '';
|
||||
|
||||
$allfields = $this->db->getallfields('[Q]'.$tables.'');
|
||||
$allfields = array();
|
||||
$ischuli = false;
|
||||
|
||||
$allfielda = $this->db->gettablefields('[Q]'.$tables.'');
|
||||
foreach($allfielda as $k1=>$rs1){
|
||||
$allfields[] = $rs1['name'];
|
||||
if($rs1['name']=='mid' && contain($rs1['types'],'int(11)'))$ischuli = true;
|
||||
}
|
||||
|
||||
//$allfields = $this->db->getallfields('[Q]'.$tables.'');
|
||||
$oarray = array();
|
||||
if(in_array('optdt', $allfields))$oarray['optdt'] = $this->now;
|
||||
if(in_array('optid', $allfields))$oarray['optid'] = $this->adminid;
|
||||
@@ -382,6 +394,12 @@ class inputAction extends Action
|
||||
|
||||
if(in_array('comid', $allfields))$oarray['comid'] = $this->companyid;
|
||||
|
||||
if(!$ischuli){
|
||||
$usql = 'alter table `[Q]'.$tables.'` MODIFY `mid` int(11) DEFAULT 0 COMMENT \'对应主表'.$this->flow->mtable.'.id\';';
|
||||
$this->db->query($usql, false);
|
||||
}
|
||||
|
||||
|
||||
if($data)foreach($data as $k=>$uaarr){
|
||||
$sid = $uaarr['id'];
|
||||
$where = "`id`='$sid'";
|
||||
@@ -571,6 +589,8 @@ class inputAction extends Action
|
||||
|
||||
if($content=='')exit('未设置录入页面,请到[流程模块→表单元素管理]下设置');
|
||||
|
||||
$filelx = (int)arrvalue($moders,'filelx','0');
|
||||
|
||||
$content = $this->flow->flowinputtpl($content, $this->ismobile);
|
||||
|
||||
$this->actclss = $this;
|
||||
@@ -593,13 +613,14 @@ class inputAction extends Action
|
||||
$this->inputobj->flow = $this->flow;
|
||||
$this->inputobj->mid = $this->mid;
|
||||
$this->inputobj->initUser($this->adminid);
|
||||
$redfont = '<font color=red>*</font>';
|
||||
|
||||
$chufarr= array();
|
||||
$chufarr = array();
|
||||
if(method_exists($this->flow, 'flowxiangfields'))$chufarr = $this->flow->flowxiangfields($chufarr);
|
||||
$this->fieldarrall['base_sericnum'] = array('name'=>arrvalue($chufarr,'base_sericnum','单号'));
|
||||
$this->fieldarrall['base_name'] = array('name'=>arrvalue($chufarr,'base_name','申请人'));
|
||||
$this->fieldarrall['base_deptname'] = array('name'=>arrvalue($chufarr,'base_deptname','申请人部门'));
|
||||
$this->fieldarrall['file_content'] = array('name'=>arrvalue($chufarr,'file_content','相关文件'));
|
||||
$this->fieldarrall['file_content'] = array('name'=>arrvalue($chufarr,'file_content',''.(($filelx==1)? $redfont:'').'相关文件'));
|
||||
|
||||
preg_match_all('/\{(.*?)\}/', $content, $list);
|
||||
foreach($list[1] as $k=>$nrs){
|
||||
@@ -608,7 +629,7 @@ class inputAction extends Action
|
||||
}
|
||||
$this->subfielsa = array();
|
||||
$content = $this->pisubduolie($content, $modeid, $nameaas);//多列子表匹配的是[]
|
||||
$content = str_replace('*','<font color=red>*</font>', $content);
|
||||
$content = str_replace('*',$redfont, $content);
|
||||
|
||||
//替换字段名^^
|
||||
preg_match_all('/\^(.*?)\^/', $content, $list);
|
||||
@@ -674,6 +695,7 @@ class inputAction extends Action
|
||||
$this->smartydata['zbnamearr'] = $nameaas;
|
||||
$this->smartydata['zbshu'] = $zbshu;//子表数
|
||||
$this->smartydata['isupfile'] = $isupfile;//是否有上传
|
||||
$this->smartydata['isupfiles'] = $this->fieldarrall['file_content']['name'];
|
||||
$this->assign('inputobj', c('input'));
|
||||
|
||||
|
||||
@@ -762,11 +784,12 @@ class inputAction extends Action
|
||||
$rows = array();
|
||||
$act = $this->get('act');
|
||||
$modenum= $this->get('sysmodenum');
|
||||
$actstr = $this->get('actstr');
|
||||
$actstr = $this->jm->base64decode($this->get('actstr'));
|
||||
$acta = explode(',', $actstr);
|
||||
$where = arrvalue($acta, 2);
|
||||
if(isempt($act)){
|
||||
if($actstr){
|
||||
$actstr1 = $this->jm->base64decode($actstr);
|
||||
$rows = c('input')->sqlstore($actstr1);
|
||||
$rows = c('input')->sqlstore($actstr);
|
||||
}
|
||||
return $rows;
|
||||
}
|
||||
@@ -776,23 +799,23 @@ class inputAction extends Action
|
||||
$objs = m($acta[0]);
|
||||
$tacs = $acta[1];
|
||||
if(method_exists($objs, $tacs)){
|
||||
$rows = $objs->$tacs();
|
||||
$rows = $objs->$tacs($where);
|
||||
}
|
||||
}
|
||||
|
||||
if(!$rows && !isempt($act) && method_exists($this, $act)){
|
||||
$rows = $this->$act();
|
||||
$rows = $this->$act($where);
|
||||
}
|
||||
//从Model上读取
|
||||
if(!$rows && !isempt($modenum)){
|
||||
$this->flow = m('flow')->initflow($modenum);
|
||||
if(method_exists($this->flow, $act)){
|
||||
$rows = $this->flow->$act();
|
||||
$rows = $this->flow->$act($where);
|
||||
}
|
||||
}
|
||||
//从数据选项读取
|
||||
if(!$rows && $actstr){
|
||||
$acta = explode(',', $this->jm->base64decode($actstr));
|
||||
$acta = explode(',', $actstr);
|
||||
if(count($acta)<=3){
|
||||
$sarr = m('option')->getmnum($acta[0]);
|
||||
if($sarr){
|
||||
|
||||
@@ -146,7 +146,7 @@ var inputtwo={
|
||||
this.initupssa[sna]=$.rockupload({
|
||||
'inputfile':'filed_'+sna+'_inp',
|
||||
'initremove':false,'uptype':uptp,'formming':sna,
|
||||
'urlparams':{'sysmodenum':modenum,'sysmid':mid},
|
||||
'urlparams':{'sysmodenum':modenum,'sysmid':mid,'sysuptype':tsye},
|
||||
'oparams':{sname:sna,snape:tsye},
|
||||
'onsuccess':function(f,gstr){
|
||||
var sna= f.sname,tsye=f.snape,d=js.decode(gstr);
|
||||
@@ -313,9 +313,24 @@ var inputtwo={
|
||||
},
|
||||
|
||||
//2020-09-02新增地图上选择位置
|
||||
selectlocation:function(sna,snall,iszb){
|
||||
js.msg('wait','定位中...');
|
||||
this.selectmapdata={sna:sna,snall:snall};
|
||||
js.importjs('js/dingwei.js?'+js.getrand()+'', function(){
|
||||
js.dw.dwsuccess = function(ret){
|
||||
this.clearchao();
|
||||
c.selectmapdata.lat=ret.latitude;
|
||||
c.selectmapdata.lng=ret.longitude;
|
||||
c.selectmapdata.zoom=12;
|
||||
c.geocoder(ret.latitude,ret.longitude,ret.accuracy);
|
||||
}
|
||||
js.dw.init();
|
||||
js.dw.start();
|
||||
});
|
||||
},
|
||||
selectmap:function(sna,snall,fna,iszb){
|
||||
var hei = winHb()-150;
|
||||
var url = 'https://map.qq.com/api/js?v=2.exp&key=55QBZ-JGYLO-BALWX-SZE4H-5SV5K-JCFV7&callback=c.showmap';
|
||||
var url = 'https://map.qq.com/api/js?v=2.exp&key=OB4BZ-D4W3U-B7VVO-4PJWW-6TKDJ-WPB77&callback=c.showmap';
|
||||
js.tanbody('selectmap','选择['+fna+']',winWb()-((ismobile==1)?5:80),hei,{
|
||||
html:'<div style="padding:5px"><input onkeyup="if(event.keyCode==13)c.selectmapsou(this)" type="text" placeholder="请输入格式(地址 城市)如:鼓浪屿 厦门" class="inputs"></div><div id="selectmap" style="height:'+(hei-20)+'px;overflow:hidden"></div>',
|
||||
btn:[{text:'确定'}]
|
||||
@@ -378,18 +393,18 @@ var inputtwo={
|
||||
this.selectmapdata.lat=x;
|
||||
this.selectmapdata.lng=y;
|
||||
this.selectmapdata.zoom=zoom;
|
||||
js.msg('wait','确定搜索地址...');
|
||||
this.geocoder(x,y);
|
||||
},
|
||||
//搜索位置
|
||||
geocoder:function(lat,lng, jid){
|
||||
js.msg('wait','确定搜索地址...');
|
||||
js.ajax('api.php?m=kaoqin&a=gcoder',{lat:lat,lng:lng},function(ret){
|
||||
js.msg();
|
||||
if(ret.status==0){
|
||||
var result = ret.result;
|
||||
var address= result.formatted_addresses.recommend;
|
||||
var d1 = c.selectmapdata;
|
||||
d1.address = address;
|
||||
d1.address = result.address;
|
||||
if(!result.address_component)result.address_component={province:'',city:'未知',district:'',street_number:'',street:''}
|
||||
var info = result.address_component;
|
||||
d1.addressinfo = {
|
||||
province:info.province,
|
||||
@@ -398,7 +413,6 @@ var inputtwo={
|
||||
streetNumber:info.street_number,
|
||||
street:info.street
|
||||
};
|
||||
js.msg();
|
||||
var sna = d1.sna;
|
||||
if(form(sna))form(sna).value=d1.address+'|'+d1.lat+','+d1.lng+'';
|
||||
var sna1 = d1.snall;
|
||||
@@ -450,68 +464,22 @@ var inputtwo={
|
||||
if(lx==1)obj.imports();
|
||||
if(lx==2)obj.clear();
|
||||
},
|
||||
//自动完成2022-10-30添加
|
||||
autocompletearr:{},
|
||||
|
||||
|
||||
//自动完成2024-11-20添加
|
||||
autocomplete:function(o1,s1,id1,zb){
|
||||
clearTimeout(this.autoctime);
|
||||
this.autocompletea=[o1,s1,id1,zb];
|
||||
if(this.nowinpvle == o1.value && get('completelist'))return;
|
||||
if(this.autocompletearr[id1]){
|
||||
this.autoctime = setTimeout(function(){c.autocompleteshow(o1,c.autocompletearr[id1]);},10);
|
||||
return;
|
||||
}
|
||||
var a1 = s1.split(',');
|
||||
var a1 = s1.split(',');
|
||||
var gcan = {'act':a1[0],'actstr':jm.base64encode(s1),'acttyle':'act','sysmodenum':modenum,'sysmid':mid};
|
||||
js.ajax(geturlact('getselectdata', gcan),{key:jm.base64encode(o1.value)}, function(ret){
|
||||
c.autocompletearr[id1] = ret;
|
||||
c.autocompleteshow(o1,ret);
|
||||
},'get,json')
|
||||
},
|
||||
autocompleteshow:function(o1,da){
|
||||
if(!da || da.length==0)return;
|
||||
var o2 = $(o1),lefta=o2.offset(),i,len=da.length,ds=[],zl=10,j=0;
|
||||
$('#completelist').remove();
|
||||
var str= '<div id="completelist" style="position:absolute;z-index:9;left:'+lefta.left+'px;top:'+(lefta.top+29)+'px;background:white;border:1px var(--main-color) solid;border-radius:5px;box-shadow: 0px 0px 5px rgb(0,0,0,0.3)"></div>';
|
||||
var val= strreplace(o1.value);
|
||||
if(val){
|
||||
for(i=0;i<len;i++)if(da[i].name.indexOf(val)>-1 || (da[i].subname && da[i].subname.indexOf(val)>-1)){
|
||||
ds.push(da[i]);j++;if(j>=zl*3)break;
|
||||
}
|
||||
}else{
|
||||
ds=da;
|
||||
}
|
||||
this.autodata = ds;
|
||||
this.nowinpvle= o1.value;
|
||||
$('body').append(str);
|
||||
this.autocompleteshows(zl,1)
|
||||
js.addbody('completelist', 'remove','completelist');
|
||||
},
|
||||
autocompleteshows:function(zl,p){
|
||||
var ds = this.autodata;
|
||||
var str='',i,len=ds.length,j=0;
|
||||
for(i=(p-1)*zl;i<len;i++){
|
||||
str+='<div class="list-itemv" onclick="c.autocompleteclick('+i+')" value="'+i+'" style="padding:5px 10px">'+ds[i].name+'';
|
||||
if(ds[i].subname)str+=' <span style="font-size:12px">('+ds[i].subname+')</span>';
|
||||
str+='</div>';
|
||||
j++;
|
||||
if(j>=zl)break;
|
||||
}
|
||||
if(len>zl){
|
||||
str+='<div style="padding:5px 10px;background:rgba(0,0,0,0.1)">总记录'+len+'条';
|
||||
if(p>1)str+=' <a href="javascript:;" class="zhu" onclick="c.autocompleteshows(\''+zl+'\','+(p-1)+')"><上页</a>';
|
||||
if(j==zl)str+=' <a href="javascript:;" class="zhu" onclick="c.autocompleteshows(\''+zl+'\','+(p+1)+')">下页></a>';
|
||||
str+='</div>';
|
||||
}
|
||||
setTimeout(function(){$('#completelist').html(str)},10);
|
||||
},
|
||||
autocompleteclick:function(i){
|
||||
var d = this.autodata[i],o1=this.autocompletea[0];
|
||||
o1.value=d.name;
|
||||
var a1 = this.autocompletea[1].split(',');
|
||||
if(a1[1]){
|
||||
if(form(a1[1]))form(a1[1]).value = d.value;
|
||||
}
|
||||
this.onselectdataall(o1.name,d);
|
||||
$('#completelist').remove();
|
||||
var url = geturlact('getselectdata', gcan);
|
||||
js.chajian('rockselect', {
|
||||
viewobj:o1,num:o1.name,limit:10,url:url,zb:zb,strsss:s1,
|
||||
onitemclick:function(sna,val, d){
|
||||
var fid= this.nameobj.name;
|
||||
var a1 = this.strsss.split(',');
|
||||
if(a1[1])if(form(a1[1]))form(a1[1]).value = val
|
||||
c.onselectdataall(fid,d);
|
||||
},
|
||||
nameobj:o1
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,9 @@ c.onselectmap=function(sna,res){
|
||||
var info = res.addressinfo;
|
||||
if(form('sheng'))form('sheng').value = info.province;
|
||||
if(form('shi'))form('shi').value = info.city;
|
||||
var dz = info.town;
|
||||
dz+=(info.streetNumber)?info.streetNumber:info.street;
|
||||
form(sna).value=dz;
|
||||
if(!res.address){
|
||||
var dz = info.town;
|
||||
dz+=(info.streetNumber)?info.streetNumber:info.street;
|
||||
form(sna).value=dz;
|
||||
}
|
||||
}
|
||||
@@ -87,7 +87,7 @@ class mode_flowelementClassAction extends inputAction{
|
||||
|
||||
return array(
|
||||
'rows' => $rows,
|
||||
'modearr' => m('mode')->getmodearr(),
|
||||
//'modearr' => m('mode')->getmodearr(),
|
||||
'mkrs' => $mkrs,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ class mode_flowmenuClassAction extends inputAction{
|
||||
public $alldata = array();
|
||||
protected function storeafter($table, $rows)
|
||||
{
|
||||
$this->db->update('[Q]menu', '`status`=1' , '`id` in(1,2) and `status`=0');//总有一些人把系统菜单给停用了
|
||||
$pid = (int)$this->post('pid','0');
|
||||
if($pid>0){
|
||||
$this->showgetmenu($rows,0,1,1);
|
||||
|
||||
@@ -6,6 +6,9 @@ class mode_flowsetClassAction extends inputAction{
|
||||
|
||||
public $pobj;
|
||||
protected function savebefore($table, $arr, $id, $addbo){
|
||||
if(!in_array('filelx', $this->mallfields)){
|
||||
$this->db->addFields('[Q]'.$table.'','filelx','tinyint(1)','0','录入页相应文件0选上传,1必须上传');
|
||||
}
|
||||
include_once('webmain/main/flow/flowAction.php');
|
||||
$this->pobj = new flowClassAction();
|
||||
return $this->pobj->flowsetsavebefore($table, $arr);
|
||||
|
||||
@@ -14,5 +14,10 @@ class mode_goodsClassAction extends inputAction{
|
||||
}
|
||||
|
||||
|
||||
public function reloadstockAjax()
|
||||
{
|
||||
m('goods')->setstock();
|
||||
return 'ok';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,23 +27,27 @@ $maincolors= $colarr['colors'];
|
||||
.ys1{padding:5px 5px;color:#666666}
|
||||
.ys2{padding:5px 5px;}
|
||||
|
||||
.inputs,.textarea{flex:1;width:95%;margin:3px 0px}
|
||||
.inputs,.textarea{flex:1;width:95%;margin:3px 0px;width:-webkit-fill-available}
|
||||
.cionsss{padding:4px; background-color:#dddddd}
|
||||
.datesss{background:url(mode/icons/date.png) no-repeat right;cursor:pointer}
|
||||
|
||||
.status{position: absolute;right:5px;top:10px;display:none;width:80px;height:80px;overflow:hidden; border:3px red solid;border-radius:50%;font-size:20px;text-align:center;line-height:80px;color:red;transform:rotate(-45deg);-o-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-webkit-transform:rotate(-45deg);filter:progid:DXImagetransform.Microsoft.Matrix(M11=0.707,M12=-0.707,M21=0.707,M22=0.707,SizingMethod='auto expand');}
|
||||
|
||||
.tablesub td{height:25px;text-align:center;border:var(--border);}
|
||||
.tablesub .inputs,.tablesub .textarea{border:none;background:none;border-radius:0;margin:0;width:100%;padding:0;}
|
||||
.tablesub .inputs[readonly]{background-color:rgba(0,0,0,0.1);}
|
||||
.tablesub{width:-webkit-fill-available}
|
||||
.tablesub td{height:30px;text-align:center;border:var(--border)}
|
||||
.tablesub .inputs,.tablesub .textarea{border:none;background:none;border-radius:0;margin:0;width:95%;}
|
||||
.tablesub .inputs[readonly]{background-color:rgba(0,0,0,0.05);}
|
||||
|
||||
.course{padding:8px; background-color:rgba(<?=$maincolors?>,0.2);border:1px rgba(<?=$maincolors?>,0.3) solid;margin-right:10px;text-align:center;border-radius:5px}
|
||||
.coursejt{height:8px;overflow:hidden;width:30px;background-color:rgba(<?=$maincolors?>,0.2)}
|
||||
.coursejts{width:0px; height:0px; overflow:hidden;border-width:8px;border-style:solid;border-color:transparent transparent transparent rgba(<?=$maincolors?>,0.2);}
|
||||
.tishi{color:#888888;font-size:12px;padding:3px}
|
||||
.ke-icon-crop{background-image: url(mode/icons/crop.png);width: 16px;height: 16px;}
|
||||
.xuhao{text-align:center;}
|
||||
.xuhao[readonly]{background:none}
|
||||
.tablesub .xuhao{text-align:center;width:100%;padding:0;min-width:35px}
|
||||
.tablesub .xuhao[readonly]{background:none}
|
||||
.tablesub tr:first-child{background:var(--main-vgcolor)}
|
||||
.zbtitle{}
|
||||
.addys{}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -93,8 +97,8 @@ $maincolors= $colarr['colors'];
|
||||
$firstrs['isbt'] = 1;
|
||||
}
|
||||
$stsp.= ''.$firstrs['name'].':</td>';
|
||||
$stsp.= '<td width="100%"><input class="inputs" style="width:99%" id="sysnextchange" value="'.$firstrs['sysnextopt'].'" placeholder="'.$placeholder.'" readonly type="text" name="sysnextopt"><input name="sysnextoptid" value="'.$firstrs['sysnextoptid'].'" id="sysnextchange_id" type="hidden"><input name="sysnextcustidid" value="'.$firstrs['id'].'" type="hidden"></td>';
|
||||
$stsp.= '<td nowrap><a href="javascript:;" onclick="js.changeclear(\'sysnextchange\')" class="webbtn">×</a><a href="javascript:;" id="btnchange_recename" onclick="js.changeuser(\'sysnextchange\',\'changeusercheck\',\'选择'.$firstrs['name'].'\',{changerange:\''.$firstrs['checktypeid'].'\'})" class="webbtn">选择</a></td>';
|
||||
$stsp.= '<td width="100%"><div class="btn-group"><input class="inputs" style="width:99%" id="sysnextchange" value="'.$firstrs['sysnextopt'].'" placeholder="'.$placeholder.'" readonly type="text" name="sysnextopt"><input name="sysnextoptid" value="'.$firstrs['sysnextoptid'].'" id="sysnextchange_id" type="hidden"><input name="sysnextcustidid" value="'.$firstrs['id'].'" type="hidden">';
|
||||
$stsp.= '<button type="button" onclick="js.changeclear(\'sysnextchange\')" class="webbtn">×</button><button type="button" id="btnchange_recename" onclick="js.changeuser(\'sysnextchange\',\'changeusercheck\',\'选择'.$firstrs['name'].'\',{changerange:\''.$firstrs['checktypeid'].'\'})" class="webbtn">选择</button></div></td>';
|
||||
$stsp.= '</tr></table></div>';
|
||||
echo $stsp;
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="yes" />
|
||||
<title><?=$da['title']?></title>
|
||||
<link rel="shortcut icon" href="favicon.ico" />
|
||||
<link rel="stylesheet" type="text/css" href="<?=$da['p']?>/css/cssm.css">
|
||||
<link rel="stylesheet" type="text/css" href="<?=$da['p']?>/css/cssm.css?<?=$nowtime?>">
|
||||
<link rel="stylesheet" type="text/css" href="mode/plugin/css/jquery-rockdatepicker.css"/>
|
||||
<script type="text/javascript" src="js/jquery.js"></script>
|
||||
<script type="text/javascript" src="js/js.js?<?=$nowtime?>"></script>
|
||||
@@ -62,13 +62,13 @@ function initApp(){
|
||||
<?php
|
||||
$maincolora= c('image')->colorTorgb($maincolor);
|
||||
$maincolors= ''.$maincolora[0].','.$maincolora[1].','.$maincolora[2].'';
|
||||
echo 'body{--main-color:'.$maincolor.';}';
|
||||
echo 'body{--main-color:'.$maincolor.';--font-size:16px;}';
|
||||
?>
|
||||
.datesss{background:url(mode/icons/date.png) no-repeat right;cursor:pointer}
|
||||
input,textarea,select,*,td, button{font-size:16px}
|
||||
.lurim{text-align:right;padding-left:5px}
|
||||
.tablesub td{height:25px;text-align:left;border:0px #888888 solid;}
|
||||
.tablesub .inputs{width:100%}
|
||||
.tablesub .inputs{width:-webkit-fill-available}
|
||||
|
||||
.status{position: absolute;right:15px;top:2px;display:none;width:70px;height:70px;overflow:hidden; border:2px red solid;border-radius:50%;font-size:16px;text-align:center;line-height:70px;color:red;transform:rotate(-45deg);-o-transform:rotate(-45deg);-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg)}
|
||||
|
||||
@@ -78,15 +78,17 @@ input,textarea,select,*,td, button{font-size:16px}
|
||||
.btn:hover{opacity:1;color:#ffffff}
|
||||
.lumtr{background-color:white}
|
||||
.tablelum{}
|
||||
.inputs{border-bottom:0.5px #cccccc solid;border-top:0px;border-left:0px;border-right:0px}
|
||||
.inputs:focus{border:none;box-shadow:none;border-bottom:0.5px <?=$maincolor?> solid;}
|
||||
.inputs1{border-bottom:0.5px #cccccc solid;border-top:0px;border-left:0px;border-right:0px}
|
||||
.inputs1:focus{border:none;box-shadow:none;border-bottom:0.5px <?=$maincolor?> solid;}
|
||||
|
||||
|
||||
.divzb0{display:inline-block;width:100%;margin:5px 0px}
|
||||
.divzb1{float:left;width:25%;overflow:auto;text-align:right;line-height:20px;margin-top:8px}
|
||||
.divzb2{float:left;width:73%}
|
||||
.xuhao{border:none;font-size:12px;text-align:left;color:#888888}
|
||||
.xuhao{border:none;font-size:12px;text-align:left;color:#888888;padding:0;margin:0;margin-left:2px;padding-top:2px}
|
||||
.xuhao:focus{border:none;}
|
||||
.xuantitle{text-align:left;font-size:12px;padding-left:8px;line-height:30px;margin-top:10px;color:#888888;}
|
||||
.divinput .btn-group{width:98%}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@@ -116,7 +118,7 @@ if($showheader==1)echo '<div id="header_title" style="padding-top:'.$cenghei.'px
|
||||
if($da['isupfile']==1){
|
||||
?>
|
||||
<tr class="lumtr">
|
||||
<td class="lurim" nowrap>相关文件</td>
|
||||
<td class="lurim" nowrap><?=$da['isupfiles']?></td>
|
||||
<td><div class="divinput">
|
||||
<input name="fileid" id="fileidview-inputEl" type="hidden">
|
||||
<div id="view_fileidview" style="height:auto;min-height:60px" class="inputs"></div>
|
||||
@@ -156,8 +158,8 @@ if($showheader==1)echo '<div id="header_title" style="padding-top:'.$cenghei.'px
|
||||
$firstrs['isbt'] = 1;
|
||||
}
|
||||
$stsp.= ''.$firstrs['name'].':</td>';
|
||||
$stsp.= '<td><div class="divinput"><table width="98%" cellpadding="0" border="0"><tr><td width="100%"><input class="inputs" style="width:99%" id="sysnextchange" value="'.$firstrs['sysnextopt'].'" placeholder="'.$placeholder.'" readonly type="text" name="sysnextopt"><input name="sysnextoptid" value="'.$firstrs['sysnextoptid'].'" id="sysnextchange_id" type="hidden"><input name="sysnextcustidid" value="'.$firstrs['id'].'" type="hidden"></td>';
|
||||
$stsp.= '<td nowrap><a href="javascript:;" onclick="js.changeclear(\'sysnextchange\')" class="webbtn">×</a><a href="javascript:;" id="btnchange_recename" onclick="js.changeuser(\'sysnextchange\',\'changeusercheck\',\'\',{changerange:\''.$firstrs['checktypeid'].'\'})" class="webbtn">选择</a></td></tr></table></div></td>';
|
||||
$stsp.= '<td><div class="divinput"><table width="98%" cellpadding="0" border="0"><tr><td width="100%"><div class="btn-group"><input class="inputs" style="flex:1" id="sysnextchange" value="'.$firstrs['sysnextopt'].'" placeholder="'.$placeholder.'" readonly type="text" name="sysnextopt"><input name="sysnextoptid" value="'.$firstrs['sysnextoptid'].'" id="sysnextchange_id" type="hidden"><input name="sysnextcustidid" value="'.$firstrs['id'].'" type="hidden">';
|
||||
$stsp.= '<button type="button" onclick="js.changeclear(\'sysnextchange\')" class="webbtn">×</button><button type="button" id="btnchange_recename" onclick="js.changeuser(\'sysnextchange\',\'changeusercheck\',\'\',{changerange:\''.$firstrs['checktypeid'].'\'})" class="webbtn">选择</button></div></td></tr></table></div></td>';
|
||||
$stsp.= '</tr>';
|
||||
echo $stsp;
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
<table width="100%" bordercolor="#000000" border="0" class="ke-zeroborder"><tbody><tr><td height="34" width="15%" align="right" class="ys1">*申请日期</td><td class="ys2" width="35%">{applydt}{type}</td><td align="right" class="ys1" width="15%">*供应商</td><td class="ys2" width="35%">{custname}{custid}</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>[temp_aid0,0][aid0,0]</td><td>[count0,0]</td><td>[unit0,0]</td><td>[price0,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">优惠价格</td><td class="ys2">{discount}</td><td class="ys1" align="right">*采购金额</td><td class="ys2">{money}</td></tr><tr><td height="34" align="right" class="ys1">说明</td><td colspan="3" class="ys2">{explain}</td></tr><tr><td height="34" align="right" class="ys1">相关文件</td><td colspan="3" class="ys2">{file_content}</td></tr><tr><td height="34" align="right" class="ys1">申请人</td><td class="ys2">{base_name}</td><td class="ys1" align="right">申请人部门</td><td class="ys2">{base_deptname}</td></tr></tbody></table>
|
||||
<table width="100%" bordercolor="#000000" border="0" class="ke-zeroborder"><tbody><tr><td height="34" width="15%" align="right" class="ys1">*申请日期</td><td class="ys2" width="35%">{applydt}{type}</td><td align="right" class="ys1" width="15%">*供应商</td><td class="ys2" width="35%">{custname}{custid}</td></tr><tr><td class="ys2 zbtitle" 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>[temp_aid0,0][aid0,0]</td><td>[count0,0]</td><td>[unit0,0]</td><td>[price0,0]</td><td>{删,0}</td></tr></tbody></table><div class="addys">{新增,0}</div></td></tr><tr><td height="34" align="right" class="ys1">优惠价格</td><td class="ys2">{discount}</td><td class="ys1" align="right">*采购金额</td><td class="ys2">{money}</td></tr><tr><td height="34" align="right" class="ys1">说明</td><td colspan="3" class="ys2">{explain}</td></tr><tr><td height="34" align="right" class="ys1">相关文件</td><td colspan="3" class="ys2">{file_content}</td></tr><tr><td height="34" align="right" class="ys1">申请人</td><td class="ys2">{base_name}</td><td class="ys1" align="right">申请人部门</td><td class="ys2">{base_deptname}</td></tr></tbody></table>
|
||||
@@ -1 +1 @@
|
||||
<div><strong>此模块是用来开发人员提供帮助的模块,如联动菜单等各个帮助,页面交互js地址:webmain/flow/input/inputjs/mode_demo.js</strong> </div><table width="100%" bordercolor="#000000" border="0" class="ke-zeroborder"><tbody><tr><td height="34" width="15%" align="right" class="ys1">申请日期</td><td class="ys2" width="35%">{applydt}</td><td align="right" class="ys1" width="15%">*测试字段</td><td class="ys2" width="35%">{testfirs}</td></tr><tr><td height="34" align="right" class="ys1">封面图片</td><td class="ys2">{fengmian}</td><td class="ys1" align="right">*编号</td><td class="ys2">{num}</td></tr><tr><td height="34" align="right" class="ys1">选择人员</td><td class="ys2">{xuanren}</td><td class="ys1" align="right">多选字段2<br /></td><td class="ys2">{duoxuanla}</td></tr><tr><td height="34" align="right" class="ys1">省</td><td class="ys2">{sheng}</td><td class="ys1" align="right">市</td><td class="ys2">{shi}</td></tr><tr><td height="34" align="right" class="ys1">客户</td><td class="ys2">{custname}{custid}</td><td class="ys1" align="right">县(区)</td><td class="ys2">{xian}</td></tr><tr><td class="ys1" align="right">弹出下拉单选</td><td class="ys2">{tanxuan}{tanxuanid}</td><td height="34" align="right" class="ys1">弹框下拉多选</td><td class="ys2">{tanxuancheck}</td></tr><tr><td height="34" align="right" class="ys1">*^qianming^</td><td colspan="3" class="ys2">{qianming}</td></tr><tr><td height="34" align="right" class="ys1">说明</td><td colspan="3" class="ys2">{explain}</td></tr><tr><td height="34" align="right" class="ys1">文件上传1</td><td colspan="3" class="ys2">{upfile1}</td></tr><tr><td height="34" align="right" class="ys1">文件上传2</td><td colspan="3" class="ys2">{upfile2}</td></tr><tr><td height="34" align="right" class="ys1">html编辑器</td><td colspan="3" class="ys2">{htmlcont}</td></tr><tr><td height="34" align="right" class="ys1">相关文件</td><td colspan="3" class="ys2">{file_content}</td></tr><tr><td colspan="4" class="ys1"><strong>多行子表1</strong> </td></tr><tr><td colspan="4" class="ys0"><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 width="5%">操作</td></tr><tr><td>[xuhao0,0]</td><td>[sheng0,0]</td><td>[shi0,0]</td><td>[xian0,0]</td><td>{删,0}</td></tr></tbody></table><div style="background-color:#F1F1F1;">{新增,0}</div></td></tr><tr><td colspan="4" class="ys1"><strong>多行子表2</strong> </td></tr><tr><td colspan="4" class="ys0"><table class="tablesub ke-zeroborder" id="tablesub1" style="width:100%;" border="0" cellspacing="0" cellpadding="0"><tbody><tr><td width="10%">序号</td><td>简单名称</td><td>文件上传1</td><td>说明</td><td width="5%">操作</td></tr><tr><td>[xuhao1,0]</td><td>[tanxuan1,0]</td><td>[upfile11,0]</td><td>[explain1,0]</td><td>{删,1}</td></tr></tbody></table><div style="background-color:#F1F1F1;">{新增,1}</div></td></tr><tr><td height="34" align="right" class="ys1">申请人</td><td class="ys2">{base_name}</td><td class="ys1" align="right">申请人部门</td><td class="ys2">{base_deptname}</td></tr></tbody></table>
|
||||
<div><strong>此模块是用来开发人员提供帮助的模块,如联动菜单等各个帮助,页面交互js地址:webmain/flow/input/inputjs/mode_demo.js</strong> </div><table width="100%" bordercolor="#000000" border="0" class="ke-zeroborder"><tbody><tr><td height="34" width="15%" align="right" class="ys1">申请日期</td><td class="ys2" width="35%">{applydt}</td><td align="right" class="ys1" width="15%">*测试字段</td><td class="ys2" width="35%">{testfirs}</td></tr><tr><td height="34" align="right" class="ys1">封面图片</td><td class="ys2">{fengmian}</td><td class="ys1" align="right">*编号</td><td class="ys2">{num}</td></tr><tr><td height="34" align="right" class="ys1">选择人员</td><td class="ys2">{xuanren}</td><td class="ys1" align="right">多选字段2<br /></td><td class="ys2">{duoxuanla}</td></tr><tr><td height="34" align="right" class="ys1">省</td><td class="ys2">{sheng}</td><td class="ys1" align="right">市</td><td class="ys2">{shi}</td></tr><tr><td height="34" align="right" class="ys1">客户</td><td class="ys2">{custname}{custid}</td><td class="ys1" align="right">县(区)</td><td class="ys2">{xian}</td></tr><tr><td class="ys1" align="right">弹出下拉单选</td><td class="ys2">{tanxuan}{tanxuanid}</td><td height="34" align="right" class="ys1">弹框下拉多选</td><td class="ys2">{tanxuancheck}</td></tr><tr><td height="34" align="right" class="ys1">*^qianming^</td><td colspan="3" class="ys2">{qianming}</td></tr><tr><td height="34" align="right" class="ys1">说明</td><td colspan="3" class="ys2">{explain}</td></tr><tr><td height="34" align="right" class="ys1">文件上传1</td><td colspan="3" class="ys2">{upfile1}</td></tr><tr><td height="34" align="right" class="ys1">文件上传2</td><td colspan="3" class="ys2">{upfile2}</td></tr><tr><td height="34" align="right" class="ys1">html编辑器</td><td colspan="3" class="ys2">{htmlcont}</td></tr><tr><td height="34" align="right" class="ys1">^ztstate^</td><td colspan="3" class="ys2">{ztstate}</td></tr><tr><td height="34" align="right" class="ys1">相关文件</td><td colspan="3" class="ys2">{file_content}</td></tr><tr><td colspan="4" class="ys1"><strong>多行子表1</strong> </td></tr><tr><td colspan="4" class="ys0"><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>[sheng0,0]</td><td>[shi0,0]</td><td>[xian0,0]</td><td>[ztstate0,0]</td><td>{删,0}</td></tr></tbody></table><div style="background-color:#F1F1F1;">{新增,0}</div></td></tr><tr><td colspan="4" class="ys1"><strong>多行子表2</strong> </td></tr><tr><td colspan="4" class="ys0"><table class="tablesub ke-zeroborder" id="tablesub1" style="width:100%;" border="0" cellspacing="0" cellpadding="0"><tbody><tr><td width="10%">序号</td><td>简单名称</td><td>文件上传1</td><td>说明</td><td width="5%">操作</td></tr><tr><td>[xuhao1,0]</td><td>[tanxuan1,0]</td><td>[upfile11,0]</td><td>[explain1,0]</td><td>{删,1}</td></tr></tbody></table><div style="background-color:#F1F1F1;">{新增,1}</div></td></tr><tr><td height="34" align="right" class="ys1">申请人</td><td class="ys2">{base_name}</td><td class="ys1" align="right">申请人部门</td><td class="ys2">{base_deptname}</td></tr></tbody></table>
|
||||
@@ -1 +1 @@
|
||||
<br /><div><b>基本信息</b></div><table width="100%" border="0" class="ke-zeroborder"><tbody><tr class="autoyijianview"><td height="34" width="15%" align="right" class="ys1">*^type^</td><td width="35%" class="ys2">{type}</td><td height="34" width="15%" align="right" class="ys1">*^name^</td><td width="35%" class="ys2">{name}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">*^num^</td><td width="35%" class="ys2">{num}</td><td height="34" width="15%" align="right" class="ys1">*^table^</td><td width="35%" class="ys2">{table}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^where^</td><td width="35%" class="ys2">{where}</td><td height="34" width="15%" align="right" class="ys1">^tables^</td><td width="35%" class="ys2">{tables}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^sort^</td><td width="35%" class="ys2">{sort}</td><td height="34" width="15%" align="right" class="ys1">^names^</td><td width="35%" class="ys2">{names}</td></tr><tr><td height="34" align="right" class="ys1">*^recename^</td><td colspan="3" class="ys2">{recename}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^status^</td><td width="35%" class="ys2">{status}</td><td height="34" align="right" class="ys1">^isscl^</td><td class="ys2">{isscl}</td></tr></tbody></table><br /><div><b>流程</b></div><table width="100%" border="0" class="ke-zeroborder"><tbody><tr class="autoyijianview"><td height="34" width="15%" align="right" class="ys1">*^isflow^</td><td width="35%" class="ys2">{isflow}</td><td height="34" width="15%" align="right" class="ys1">^sericnum^</td><td width="35%" class="ys2">{sericnum}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">*^isflowlx^</td><td width="35%" class="ys2">{isflowlx}</td><td height="34" width="15%" align="right" class="ys1">^isys^</td><td width="35%" class="ys2">{isys}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^isbxs^</td><td width="35%" class="ys2">{isbxs}</td><td height="34" width="15%" align="right" class="ys1">*^iscs^</td><td width="35%" class="ys2">{iscs}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^zfeitime^</td><td width="35%" class="ys2">{zfeitime}</td><td height="34" align="right" class="ys1"></td><td class="ys2"></td></tr></tbody></table><br /><div><b>摘要设置</b></div><table width="100%" border="0" class="ke-zeroborder"><tbody><tr class="autoyijianview"><td height="34" align="right" class="ys1">^summary^</td><td colspan="3" class="ys2">{summary}</td></tr><tr><td height="34" align="right" class="ys1">^summarx^</td><td colspan="3" class="ys2">{summarx}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^sortdir^</td><td width="35%" class="ys2">{sortdir}</td><td height="34" align="right" class="ys1"></td><td class="ys2"></td></tr></tbody></table><br /><div><b>提醒设置</b></div><table width="100%" border="0" class="ke-zeroborder"><tbody><tr class="autoyijianview"><td height="34" width="15%" align="right" class="ys1">^pctx^</td><td width="35%" class="ys2">{pctx}</td><td height="34" width="15%" align="right" class="ys1">^emtx^</td><td width="35%" class="ys2">{emtx}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^mctx^</td><td width="35%" class="ys2">{mctx}</td><td height="34" width="15%" align="right" class="ys1">^wxtx^</td><td width="35%" class="ys2">{wxtx}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^ddtx^</td><td width="35%" class="ys2">{ddtx}</td><td height="34" width="15%" align="right" class="ys1">^istxset^</td><td width="35%" class="ys2">{istxset}</td></tr></tbody></table><br /><div><b>详情显示</b></div><table width="100%" border="0" class="ke-zeroborder"><tbody><tr class="autoyijianview"><td height="34" width="15%" align="right" class="ys1">^isgbjl^</td><td width="35%" class="ys2">{isgbjl}</td><td height="34" width="15%" align="right" class="ys1">^isgbcy^</td><td width="35%" class="ys2">{isgbcy}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^ispl^</td><td width="35%" class="ys2">{ispl}</td><td height="34" align="right" class="ys1"></td><td class="ys2"></td></tr></tbody></table><br /><div><b>其他</b></div><table width="100%" border="0" class="ke-zeroborder"><tbody><tr class="autoyijianview"><td height="34" width="15%" align="right" class="ys1">^islu^</td><td width="35%" class="ys2">{islu}</td><td height="34" width="15%" align="right" class="ys1">^isup^</td><td width="35%" class="ys2">{isup}</td></tr><tr><td height="34" align="right" class="ys1">^statusstr^</td><td colspan="3" class="ys2">{statusstr}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^ishz^</td><td width="35%" class="ys2">{ishz}</td><td height="34" width="15%" align="right" class="ys1">^lbztxs^</td><td width="35%" class="ys2">{lbztxs}</td></tr></tbody></table>
|
||||
<br /><div><b>基本信息</b></div><table width="100%" border="0" class="ke-zeroborder"><tbody><tr class="autoyijianview"><td height="34" width="15%" align="right" class="ys1">*^type^</td><td width="35%" class="ys2">{type}</td><td height="34" width="15%" align="right" class="ys1">*^name^</td><td width="35%" class="ys2">{name}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">*^num^</td><td width="35%" class="ys2">{num}</td><td height="34" width="15%" align="right" class="ys1">*^table^</td><td width="35%" class="ys2">{table}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^where^</td><td width="35%" class="ys2">{where}</td><td height="34" width="15%" align="right" class="ys1">^tables^</td><td width="35%" class="ys2">{tables}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^sort^</td><td width="35%" class="ys2">{sort}</td><td height="34" width="15%" align="right" class="ys1">^names^</td><td width="35%" class="ys2">{names}</td></tr><tr><td height="34" align="right" class="ys1">*^recename^</td><td colspan="3" class="ys2">{recename}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^status^</td><td width="35%" class="ys2">{status}</td><td height="34" width="15%" align="right" class="ys1">^isscl^</td><td width="35%" class="ys2">{isscl}</td></tr></tbody></table><br /><div><b>流程</b></div><table width="100%" border="0" class="ke-zeroborder"><tbody><tr class="autoyijianview"><td height="34" width="15%" align="right" class="ys1">*^isflow^</td><td width="35%" class="ys2">{isflow}</td><td height="34" width="15%" align="right" class="ys1">^sericnum^</td><td width="35%" class="ys2">{sericnum}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">*^isflowlx^</td><td width="35%" class="ys2">{isflowlx}</td><td height="34" width="15%" align="right" class="ys1">^isys^</td><td width="35%" class="ys2">{isys}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^isbxs^</td><td width="35%" class="ys2">{isbxs}</td><td height="34" width="15%" align="right" class="ys1">*^iscs^</td><td width="35%" class="ys2">{iscs}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^zfeitime^</td><td width="35%" class="ys2">{zfeitime}</td><td height="34" width="15%" align="right" class="ys1">^filelx^</td><td width="35%" class="ys2">{filelx}</td></tr></tbody></table><br /><div><b>摘要设置</b></div><table width="100%" border="0" class="ke-zeroborder"><tbody><tr class="autoyijianview"><td height="34" align="right" class="ys1">^summary^</td><td colspan="3" class="ys2">{summary}</td></tr><tr><td height="34" align="right" class="ys1">^summarx^</td><td colspan="3" class="ys2">{summarx}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^sortdir^</td><td width="35%" class="ys2">{sortdir}</td><td height="34" align="right" class="ys1"></td><td class="ys2"></td></tr></tbody></table><br /><div><b>提醒设置</b></div><table width="100%" border="0" class="ke-zeroborder"><tbody><tr class="autoyijianview"><td height="34" width="15%" align="right" class="ys1">^pctx^</td><td width="35%" class="ys2">{pctx}</td><td height="34" width="15%" align="right" class="ys1">^emtx^</td><td width="35%" class="ys2">{emtx}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^mctx^</td><td width="35%" class="ys2">{mctx}</td><td height="34" width="15%" align="right" class="ys1">^wxtx^</td><td width="35%" class="ys2">{wxtx}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^ddtx^</td><td width="35%" class="ys2">{ddtx}</td><td height="34" width="15%" align="right" class="ys1">^istxset^</td><td width="35%" class="ys2">{istxset}</td></tr></tbody></table><br /><div><b>详情显示</b></div><table width="100%" border="0" class="ke-zeroborder"><tbody><tr class="autoyijianview"><td height="34" width="15%" align="right" class="ys1">^isgbjl^</td><td width="35%" class="ys2">{isgbjl}</td><td height="34" width="15%" align="right" class="ys1">^isgbcy^</td><td width="35%" class="ys2">{isgbcy}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^ispl^</td><td width="35%" class="ys2">{ispl}</td><td height="34" align="right" class="ys1"></td><td class="ys2"></td></tr></tbody></table><br /><div><b>其他</b></div><table width="100%" border="0" class="ke-zeroborder"><tbody><tr class="autoyijianview"><td height="34" width="15%" align="right" class="ys1">^islu^</td><td width="35%" class="ys2">{islu}</td><td height="34" width="15%" align="right" class="ys1">^isup^</td><td width="35%" class="ys2">{isup}</td></tr><tr><td height="34" align="right" class="ys1">^statusstr^</td><td colspan="3" class="ys2">{statusstr}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">^ishz^</td><td width="35%" class="ys2">{ishz}</td><td height="34" width="15%" align="right" class="ys1">^lbztxs^</td><td width="35%" class="ys2">{lbztxs}</td></tr></tbody></table>
|
||||
@@ -1 +1 @@
|
||||
<table width="100%" bordercolor="#000000" border="0" class="ke-zeroborder"><tbody><tr><td height="34" align="right" class="ys1">*^title^</td><td class="ys2" colspan="3">{title}</td></tr><tr><td height="34" align="right" class="ys1">^fengmian^</td><td class="ys2" colspan="3">{fengmian}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">*^typename^</td><td width="35%" class="ys2">{typename}</td><td align="right" width="15%" class="ys1">^issms^</td><td width="35%" class="ys2">{issms} <label>{appxs}</label></td></tr><tr><td height="34" align="right" class="ys1">^recename^</td><td colspan="3" class="ys2">{recename}</td></tr><tr><td height="34" align="right" class="ys1">*^content^</td><td colspan="3" class="ys2">{content}</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">^url^</td><td colspan="3" class="ys2">{url}</td></tr><tr><td height="34" align="right" class="ys1">*^zuozhe^</td><td class="ys2">{zuozhe}</td><td align="right" class="ys1">*^indate^</td><td class="ys2">{indate}</td></tr><tr><td height="34" align="right" class="ys1">^zstart^</td><td class="ys2">{zstart}</td><td align="right" class="ys1">^zsend^</td><td class="ys2">{zsend}</td></tr><tr><td height="34" align="right" class="ys1">^mintou^</td><td class="ys2">{mintou}</td><td align="right" class="ys1">^maxtou^</td><td class="ys2">{maxtou}</td></tr><tr><td height="34" align="right" class="ys1">^startdt^</td><td class="ys2">{startdt}</td><td align="right" class="ys1">^enddt^</td><td class="ys2">{enddt}</td></tr><tr id="subtitletou"><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 width="5%">操作</td></tr><tr><td>[xuhao0,0]</td><td>[touitems0,0]</td><td>{删,0}</td></tr><tr><td>[xuhao0,1]</td><td>[touitems0,1]</td><td>{删,0}</td></tr></tbody></table><div style="background-color:#F1F1F1;">{新增,0}</div></td></tr></tbody></table>
|
||||
<table width="100%" bordercolor="#000000" border="0" class="ke-zeroborder"><tbody><tr><td height="34" align="right" class="ys1">*^title^</td><td class="ys2" colspan="3">{title}</td></tr><tr><td height="34" align="right" class="ys1">^fengmian^</td><td class="ys2" colspan="3">{fengmian}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">*^typename^</td><td width="35%" class="ys2">{typename}</td><td align="right" width="15%" class="ys1">^issms^</td><td width="35%" class="ys2">{issms}{appxs}</td></tr><tr><td height="34" align="right" class="ys1">^recename^</td><td colspan="3" class="ys2">{recename}</td></tr><tr><td height="34" align="right" class="ys1">*^content^</td><td colspan="3" class="ys2">{content}</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">^url^</td><td colspan="3" class="ys2">{url}</td></tr><tr><td height="34" align="right" class="ys1">*^zuozhe^</td><td class="ys2">{zuozhe}</td><td align="right" class="ys1">*^indate^</td><td class="ys2">{indate}</td></tr><tr><td height="34" align="right" class="ys1">^zstart^</td><td class="ys2">{zstart}</td><td align="right" class="ys1">^zsend^</td><td class="ys2">{zsend}</td></tr><tr><td height="34" align="right" class="ys1">^mintou^</td><td class="ys2">{mintou}</td><td align="right" class="ys1">^maxtou^</td><td class="ys2">{maxtou}</td></tr><tr><td height="34" align="right" class="ys1">^startdt^</td><td class="ys2">{startdt}</td><td align="right" class="ys1">^enddt^</td><td class="ys2">{enddt}</td></tr><tr id="subtitletou"><td class="ys2" 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 width="5%">操作</td></tr><tr><td>[xuhao0,0]</td><td>[touitems0,0]</td><td>{删,0}</td></tr><tr><td>[xuhao0,1]</td><td>[touitems0,1]</td><td>{删,0}</td></tr></tbody></table><div class="addys">{新增,0}</div></td></tr></tbody></table>
|
||||
@@ -7,27 +7,17 @@ for(var i=0;i<editarr.length;i++)c.setcolumns(editarr[i],{type:'checkbox'});
|
||||
bootparams.fanye = false;
|
||||
|
||||
c.initpage=function(){
|
||||
$('#tdleft_{rand}').after('<td ><select style="width:180px;" class="form-control" id="modeid_{rand}" ></select></td>');
|
||||
$('#modeid_{rand}').change(function(){
|
||||
c.changemodeid(this);
|
||||
$('#tdleft_{rand}').after('<td ><input class="input" click="xuanmode" placeholder="-选择模块-" style="width:180px;background:url(images/xiangyou1.png) no-repeat right" id="modes_{rand}" readonly></td>');
|
||||
}
|
||||
|
||||
c.xuanmode = function(o1){
|
||||
js.selectmode(o1, get('modes_{rand}'), function(sna,val,d){
|
||||
c.changemodes(val);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
c.onloadbefore=function(d){
|
||||
if(d.modearr){
|
||||
var s = '<option value="0">-选择模块-</option>',len=d.modearr.length,i,csd,types='';
|
||||
for(i=0;i<len;i++){
|
||||
csd = d.modearr[i];
|
||||
if(types!=csd.type){
|
||||
if(types!='')s+='</optgroup>';
|
||||
s+='<optgroup label="'+csd.type+'">';
|
||||
}
|
||||
s+='<option value="'+csd.id+'">'+csd.name+'</option>';
|
||||
types = csd.type;
|
||||
}
|
||||
s+='</optgroup>';
|
||||
$('#modeid_{rand}').html(s);
|
||||
}
|
||||
if(d.mkrs)mknum = d.mkrs.num;
|
||||
}
|
||||
c.changemodeid=function(o1){
|
||||
@@ -36,6 +26,10 @@ c.changemodeid=function(o1){
|
||||
mkid = val;
|
||||
a.setparams({mkid:mkid},true);
|
||||
}
|
||||
c.changemodes=function(val){
|
||||
mkid = val;
|
||||
a.setparams({mkid:mkid},true);
|
||||
}
|
||||
c.xuanmoxbo = function(){
|
||||
if(mkid=='0'){
|
||||
js.msgerror('请先选择模块');
|
||||
|
||||
@@ -71,24 +71,46 @@ c.allcreate=function(){
|
||||
},'get',false,'生成中...');
|
||||
}
|
||||
|
||||
c.opentixing=function(fid, val){
|
||||
js.ajax(js.getajaxurl('opentixing','flow','main'),{fields:fid,value:val},function(s){
|
||||
js.msg('success', s);
|
||||
a.reload();
|
||||
},'get',false,'处理中...');
|
||||
}
|
||||
|
||||
$('#btndownbtn_{rand}').rockmenu({
|
||||
width:170,top:35,donghua:false,
|
||||
width:190,top:35,donghua:false,
|
||||
data:[{
|
||||
name:'主表管理',lx:0
|
||||
},{
|
||||
name:'清空此模块数据',lx:2
|
||||
},{
|
||||
name:'同步到单位数据',lx:3
|
||||
},{
|
||||
name:'同步菜单到单位数据',lx:4
|
||||
},{
|
||||
name:'☑全部模块开启PC提醒',lx:5,'fields':'pctx','value':1
|
||||
},{
|
||||
name:'☐全部模块关闭PC提醒',lx:5,'fields':'pctx','value':0
|
||||
},{
|
||||
name:'☑全部模块开启APP提醒',lx:5,'fields':'mctx','value':1
|
||||
},{
|
||||
name:'☐全部模块关闭APP提醒',lx:5,'fields':'mctx','value':0
|
||||
},{
|
||||
name:'☑全部模块开启微信提醒',lx:5,'fields':'wxtx','value':1
|
||||
},{
|
||||
name:'☐全部模块关闭微信提醒',lx:5,'fields':'wxtx','value':0
|
||||
},{
|
||||
name:'☑全部模块开启钉钉提醒',lx:5,'fields':'ddtx','value':1
|
||||
},{
|
||||
name:'☐全部模块关闭钉钉提醒',lx:5,'fields':'ddtx','value':0
|
||||
}],
|
||||
itemsclick:function(d, i){
|
||||
var id = a.changedata.id;
|
||||
if(!id)return;
|
||||
if(d.lx==0)c.biaoge();
|
||||
if(d.lx==2)c.clearalldata(id);
|
||||
//if(d.lx==2)js.alert('已弃用,防止删除数据不可逆的操作');
|
||||
if(d.lx==3)c.tongbudanwu();
|
||||
if(d.lx==4)c.tongbumenu();
|
||||
if(d.lx==5)c.opentixing(d.fields,d.value);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
104
webmain/flow/page/rock_page_goods.php
Normal file
104
webmain/flow/page/rock_page_goods.php
Normal file
@@ -0,0 +1,104 @@
|
||||
<?php
|
||||
/**
|
||||
* 模块:goods.物品
|
||||
* 说明:自定义区域内可写你想要的代码
|
||||
* 来源:流程模块→表单元素管理→[模块.物品]→生成列表页
|
||||
*/
|
||||
defined('HOST') or die ('not access');
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
{params}
|
||||
var modenum = 'goods',modename='物品',isflow=0,modeid='9',atype = params.atype,pnum=params.pnum,modenames='',listname='Z29vZHM:';
|
||||
if(!atype)atype='';if(!pnum)pnum='';
|
||||
var fieldsarr = [],fieldsselarr= [],chufarr= {"stock":"\u603b\u5e93\u5b58","stock_1":"\u9ed8\u8ba4\u4ed3\u5e93","stock_3":"\u6cc9\u5dde\u4ed3\u5e93","stock_2":"\u4ed3\u5e932"};
|
||||
|
||||
<?php
|
||||
include_once('webmain/flow/page/rock_page.php');
|
||||
?>
|
||||
|
||||
//[自定义区域start]
|
||||
|
||||
if(pnum=='all'){
|
||||
bootparams.checked=true;
|
||||
bootparams.autoLoad=false;
|
||||
bootparams.celleditor=true;
|
||||
|
||||
var shtm = '<table width="100%"><tr valign="top"><td><div style="border:var(--border);width:220px"><div id="optionview_{rand}" style="height:400px;overflow:auto;"></div></div></td><td width="8" nowrap><div style="width:8px;overflow:hidden"></div></td><td width="95%"><div id="viewgoods_{rand}"></div></td></tr></table>';
|
||||
$('#viewgoods_{rand}').after(shtm).remove();
|
||||
c.stable = 'goods';
|
||||
c.optionview = 'optionview_{rand}';
|
||||
c.optionnum = 'goodstype';
|
||||
c.title = '物品分类';
|
||||
c.rand = '{rand}';
|
||||
|
||||
var c = new optionclass(c);
|
||||
|
||||
$('#'+c.optionview+'').css('height',''+(viewheight-130)+'px');
|
||||
$('#tdright_{rand}').prepend(c.getbtnstr('刷新库存','kuncus')+' ');
|
||||
$('#tdright_{rand}').prepend(c.getbtnstr('所有物品','allshow')+' ');
|
||||
$('#tdright_{rand}').prepend(c.getbtnstr('入库','rukuchu,0')+' ');
|
||||
$('#tdright_{rand}').prepend(c.getbtnstr('出库','rukuchu,1')+' ');
|
||||
$('#tdright_{rand}').prepend(c.getbtnstr('打印二维码','prinwem,1')+' ');
|
||||
$('#tdright_{rand}').prepend('<span id="megss{rand}"></span> ');
|
||||
setTimeout(function(){c.mobj=a},5);//延迟设置,不然不能双击分类搜索
|
||||
|
||||
c.rukuchu=function(o1, lx){
|
||||
var s='物品入库';
|
||||
if(lx==1)s='物品出库';
|
||||
addtabs({num:'rukuchugood'+lx+'',url:'main,goods,churuku,type='+lx+'',icons:'plus',name:s});
|
||||
}
|
||||
|
||||
c.prinwem=function(){
|
||||
var sid = a.getchecked();
|
||||
if(sid==''){
|
||||
js.msg('msg','没有选中记录');
|
||||
return;
|
||||
}
|
||||
var url = '?a=printewm&m=goods&d=main&sid='+sid+'';
|
||||
window.open(url);
|
||||
}
|
||||
}
|
||||
|
||||
c.kuncus=function(){
|
||||
js.ajax(publicmodeurl('goods','reloadstock'),{},function(){
|
||||
a.reload();
|
||||
},'get','','刷新中...,刷新完成');
|
||||
}
|
||||
|
||||
//[自定义区域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> <?=lang('新增')?></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"><?=lang('包含')?></option><option value="1"><?=lang('等于')?></option><option value="2"><?=lang('大于')?><?=lang('等于')?></option><option value="3"><?=lang('小于')?><?=lang('等于')?></option><option value="4"><?=lang('不包含')?></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="">-<?=lang('请选择')?>-</option></select><input class="form-control" style="width:130px;border-radius:0;border-left:0;padding:0 5px" id="keygj_{rand}" placeholder="<?=lang('关键字')?>"><input class="form-control" style="width:130px;border-radius:0;border-left:0;padding:0 5px;display:none;" id="key_{rand}" placeholder="<?=lang('关键字')?>">
|
||||
</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"><?=lang('搜索')?></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"><?=lang('导入')?></button> </span><button class="btn btn-default" style="display:none" id="daobtn_{rand}" disabled click="daochu" type="button"><?=lang('导出')?> <i class="icon-angle-down"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="blank10"></div>
|
||||
<div id="viewgoods_{rand}"></div>
|
||||
<!--HTMLend-->
|
||||
Reference in New Issue
Block a user