提交 9049fe3c authored 作者: wangkr's avatar wangkr

Merge branch 'master' into test

Conflicts: webmain/model/flow/finfybxModel.php webmain/model/loginModel.php webmain/task/openapi/openfkinfoAction.php 修改: custmoer.txt 修改: supplier.txt 新文件: webmain/flow/input/inputjs/mode_assetmbuy.js 新文件: webmain/flow/input/inputjs/mode_assetmoperate.js 新文件: webmain/flow/input/inputjs/mode_assetmselfequipped.js 新文件: webmain/flow/input/inputjs/mode_assetmuse.js 修改: webmain/flow/input/inputjs/mode_contract_list.js 新文件: webmain/flow/input/mode_assetmbuyAction.php 新文件: webmain/flow/input/mode_assetmoperateAction.php 新文件: webmain/flow/input/mode_assetmselfequippedAction.php 新文件: webmain/flow/input/mode_assetmuseAction.php 修改: webmain/flow/input/mode_contract_listAction.php 修改: webmain/flow/page/input_assetm.html 新文件: webmain/flow/page/input_assetmbuy.html 新文件: webmain/flow/page/input_assetmoperate.html 新文件: webmain/flow/page/input_assetmselfequipped.html 新文件: webmain/flow/page/input_assetmuse.html 修改: webmain/flow/page/input_contract_list.html 修改: webmain/flow/page/input_goodly.html 修改: webmain/flow/page/rock_page_account_detail.php 修改: webmain/flow/page/rock_page_account_list.php 新文件: webmain/flow/page/rock_page_assetm.php 新文件: webmain/flow/page/rock_page_assetmbuy.php 新文件: webmain/flow/page/rock_page_assetmoperate.php 新文件: webmain/flow/page/rock_page_assetmselfequipped.php 新文件: webmain/flow/page/rock_page_assetmuse.php 修改: webmain/flow/page/rock_page_cost_center.php 修改: webmain/flow/page/rock_page_fund_deposit.php 修改: webmain/flow/page/rock_page_fund_transfer.php 修改: webmain/flow/page/rock_page_goodly.php 新文件: webmain/flow/page/view_assetm_0.html 新文件: webmain/flow/page/view_assetmbuy_0.html 新文件: webmain/flow/page/view_assetmoperate_0.html 新文件: webmain/flow/page/view_assetmselfequipped_0.html 新文件: webmain/flow/page/view_assetmuse_0.html 新文件: webmain/model/1 修改: webmain/model/flow/finfybxModel.php 修改: webmain/model/flow/fund_depositModel.php 修改: webmain/model/flow/fund_transferModel.php 修改: webmain/model/loginModel.php
config/config.php merge=ours
webmain/model/loginModel.php merge=ours
webmain/webmainConfig.php merge=ours
.idea/ merge=ours
images/OA二维码.png merge=ours
......@@ -37,3 +37,4 @@
客户名称:北京闪思科技有限公司保存接口失败 客户编号:CUST24055保存接口成功 执行时间:3.2373831272125 s
客户编号:CUST24055提交接口成功 执行时间:1.2542500495911 s
客户编号:CUST24055审核接口成功 执行时间:0.16617202758789 s
客户名称:北京正佳伟业科技有限公司保存接口失败 客户名称:余怀领保存接口失败
\ No newline at end of file
......@@ -140,3 +140,7 @@
供应商名称:北京众唐家园物业管理有限公司保存接口失败 供应商编号:VEN05007保存接口成功 执行时间:3.5164778232574 s
供应商编号:VEN05007提交接口成功 执行时间:1.2535090446472 s
供应商编号:VEN05007审核接口成功 执行时间:0.16562795639038 s
供应商编号:VEN05017保存接口成功 执行时间:1.8839001655579 s
供应商编号:VEN05017提交接口成功 执行时间:1.0340170860291 s
供应商编号:VEN05017审核接口成功 执行时间:0.1566698551178 s
供应商名称:中建物业建筑有限公司保存接口失败 供应商名称:北京起凡通信工程有限公司保存接口失败 供应商名称:北京雪莲集团有限公司北京衬衫厂保存接口失败
\ No newline at end of file
//流程模块【assetmbuy.固定资产购买】下录入页面自定义js页面,初始函数
function initbodys(){
}
\ No newline at end of file
//流程模块【assetmoperate.固定资产维修/报废/出售】下录入页面自定义js页面,初始函数
function initbodys(){
}
\ No newline at end of file
//流程模块【assetmselfequipped.自行配备电脑】下录入页面自定义js页面,初始函数
function initbodys(){
}
\ No newline at end of file
//流程模块【assetmuse.固定资产申领】下录入页面自定义js页面,初始函数
function initbodys(){
c.onselectdata['assetmnumb']=function(d){
js.ajax(geturlact('getassetmnumb'),{numb:d.value},function(ret){
if(ret.length == 0) {
return '未找到信息';
}
$('input[name="assetmname"]').val(ret.title);
$('input[name="assetmbuydate"]').val(ret.buydt);
$('input[name="assetmprice"]').val(ret.price);
$('textarea[name="assetmdetail"]').text(ret.info);
},'post,json');
};
}
\ No newline at end of file
File mode changed from 100755 to 100644
<?php
/**
* 此文件是流程模块【assetmbuy.固定资产购买】对应控制器接口文件。
*/
class mode_assetmbuyClassAction extends inputAction{
/**
* 重写函数:保存前处理,主要用于判断是否可以保存
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id 0添加时,大于0修改时
* $addbo Boolean 是否添加时
* return array('msg'=>'错误提示内容','rows'=> array()) 可返回空字符串,或者数组 rows 是可同时保存到数据库上数组
*/
protected function savebefore($table, $arr, $id, $addbo){
}
/**
* 重写函数:保存后处理,主要保存其他表数据
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id
* $addbo Boolean 是否添加时
*/
protected function saveafter($table, $arr, $id, $addbo){
}
}
\ No newline at end of file
<?php
/**
* 此文件是流程模块【assetmoperate.固定资产维修/报废/出售】对应控制器接口文件。
*/
class mode_assetmoperateClassAction extends inputAction{
/**
* 重写函数:保存前处理,主要用于判断是否可以保存
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id 0添加时,大于0修改时
* $addbo Boolean 是否添加时
* return array('msg'=>'错误提示内容','rows'=> array()) 可返回空字符串,或者数组 rows 是可同时保存到数据库上数组
*/
protected function savebefore($table, $arr, $id, $addbo){
}
/**
* 重写函数:保存后处理,主要保存其他表数据
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id
* $addbo Boolean 是否添加时
*/
protected function saveafter($table, $arr, $id, $addbo){
}
}
\ No newline at end of file
<?php
/**
* 此文件是流程模块【assetmselfequipped.自行配备电脑】对应控制器接口文件。
*/
class mode_assetmselfequippedClassAction extends inputAction{
/**
* 重写函数:保存前处理,主要用于判断是否可以保存
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id 0添加时,大于0修改时
* $addbo Boolean 是否添加时
* return array('msg'=>'错误提示内容','rows'=> array()) 可返回空字符串,或者数组 rows 是可同时保存到数据库上数组
*/
protected function savebefore($table, $arr, $id, $addbo){
}
/**
* 重写函数:保存后处理,主要保存其他表数据
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id
* $addbo Boolean 是否添加时
*/
protected function saveafter($table, $arr, $id, $addbo){
}
}
\ No newline at end of file
<?php
/**
* 此文件是流程模块【assetmuse.固定资产申领】对应控制器接口文件。
*/
class mode_assetmuseClassAction extends inputAction{
/**
* 重写函数:保存前处理,主要用于判断是否可以保存
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id 0添加时,大于0修改时
* $addbo Boolean 是否添加时
* return array('msg'=>'错误提示内容','rows'=> array()) 可返回空字符串,或者数组 rows 是可同时保存到数据库上数组
*/
protected function savebefore($table, $arr, $id, $addbo){
}
/**
* 重写函数:保存后处理,主要保存其他表数据
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id
* $addbo Boolean 是否添加时
*/
protected function saveafter($table, $arr, $id, $addbo){
}
public function getassetmnumbAjax(){
$numb = $this->post('numb');
$data = m('assetm')->getone('id = '.$numb,"title,price,buydt,CONCAT('型号:',`model-xh`,' 机器编号:',`model-bh`,' 处理器(CPU):',`model-cpu`,' 内存:',`model-ram`,' 硬盘:',`model-hdd`,' 显卡:',`model-vc`,' 操作系统:',`model-os`) as info");
$this->returnjson($data);
}
}
\ No newline at end of file
File mode changed from 100755 to 100644
<table width="100%" class="ke-zeroborder" bordercolor="#000000" border="0"><tbody><tr><td height="34" align="right" class="ys1">编号</td><td class="ys2">{num}</td><td align="right" class="ys1" rowspan="3">封面图片</td><td class="ys2" rowspan="3">{fengmian}<br /></td></tr><tr><td height="34" align="right" class="ys1">*资产分类</td><td class="ys2">{typeid}</td></tr><tr><td height="34" align="right" class="ys1">*名称</td><td class="ys2">{title}</td></tr><tr><td height="34" align="right" class="ys1">*存放仓库</td><td class="ys2">{ckid}</td><td align="right" class="ys1">品牌</td><td class="ys2">{brand}</td></tr><tr><td height="34" width="15%" align="right" class="ys1">规格型号</td><td width="35%" class="ys2">{model}</td><td width="15%" align="right" class="ys1">使用人</td><td width="35%" class="ys2">{usename}</td></tr><tr><td height="34" align="right" class="ys1">*资产来源</td><td class="ys2">{laiyuan}</td><td align="right" class="ys1">*状态</td><td class="ys2">{state}</td></tr><tr><td height="34" align="right" class="ys1">购进日期</td><td class="ys2">{buydt}</td><td align="right" class="ys1">价格</td><td class="ys2">{price}</td></tr><tr><td height="34" align="right" class="ys1">说明</td><td class="ys2" colspan="3">{explain}</td></tr><tr><td height="34" align="right" class="ys1">相关文件</td><td class="ys2" colspan="3">{file_content}</td></tr></tbody></table>
\ No newline at end of file
<p><span style="font-size:small;"><br /></span> <table width="100%" class="ke-zeroborder" bordercolor="#000000" border="0"><tbody><tr><td height="34" align="right" class="ys1">*资产编号</td><td class="ys2">{num}</td><td align="right" class="ys1"><span style="font-size:small;text-indent:28px;white-space:normal;">*状态</span><br /></td><td class="ys2"><span style="font-size:small;text-indent:28px;white-space:normal;">{state}</span><br /></td></tr><tr><td height="34" align="right" class="ys1">*资产分类</td><td class="ys2">{typeid}</td><td class="ys2" style="text-align:right;">资产来源</td><td class="ys2"><span style="text-indent:28px;white-space:normal;">{laiyuan}</span><br /></td></tr><tr><td height="34" align="right" class="ys1"><span style="text-align:-webkit-right;white-space:normal;">*使用人</span><br /></td><td class="ys2"><span style="white-space:normal;">{usename}</span> </td><td align="right" class="ys1"><span style="text-align:-webkit-right;white-space:normal;">*使用人部门</span><br /></td><td class="ys2"><span style="white-space:normal;">{shuname}</span> </td></tr><tr><td height="34" width="15%" align="right" class="ys1">*资产名称<br /></td><td width="35%" class="ys2">{title}</td><td width="15%" align="right" class="ys1"><span style="text-align:-webkit-right;white-space:normal;">价格</span> </td><td width="35%" class="ys2"><span style="white-space:normal;">{price}</span><br /></td></tr><tr><td height="34" align="right" class="ys1">*所属公司名称<br /></td><td class="ys2">{company}</td><td align="right" class="ys1">oa号<br /></td><td class="ys2">{oanumb}</td></tr><tr><td height="34" align="right" class="ys1">使用人更迭记录</td><td class="ys2">{userchangerecord}</td><td align="right" class="ys1">最近使用人更迭日期</td><td class="ys2">{recentuserchangedate}</td></tr><tr><td class="ys1" style="text-align:right;">购进日期<br /></td><td class="ys2" colspan="3"><span style="text-indent:28px;white-space:normal;">{buydt}</span><br /></td></tr><tr><td class="ys2" style="background-color:#CCCCCC;" colspan="4"><p><strong>详细信息</strong> </p></td></tr><tr><td height="34" align="right" class="ys1"><span style="text-align:-webkit-right;white-space:normal;">*型号</span> </td><td class="ys2" colspan="3"><span style="white-space:normal;">{model-xh}</span> </td></tr><tr><td class="ys1" style="text-align:right;">*机器编号<br /></td><td class="ys1">{model-bh}<br /></td><td class="ys1" style="text-align:right;"><span style="text-indent:2em;">处理器(CPU)</span><span style="text-indent:2em;"></span> </td><td class="ys1">{model-cpu}<br /></td></tr><tr><td class="ys1" style="text-align:right;">内存<br /></td><td class="ys1">{model-ram}<br /></td><td class="ys1" style="text-align:right;">硬盘<br /></td><td class="ys1">{model-hdd}<br /></td></tr><tr><td class="ys1" style="text-align:right;">显卡<br /></td><td class="ys1">{model-vc}<br /></td><td class="ys1" style="text-align:right;">操作系统<br /></td><td class="ys1">{model-os}<br /></td></tr></tbody></table></p>
\ No newline at end of file
<p><br /><table class="" border="1" bordercolor="#000000" style="width:100%;"><tbody><tr><td class="ys1" height="34" align="right" width="15%" style="text-align:center;width:15%;height:34px;background-color:#CCCCCC;">*申请人</td><td class="ys2" width="35%">{applicant}</td><td class="ys1" align="right" width="15%" style="text-align:center;width:15%;background-color:#CCCCCC;">*申请人部门</td><td class="ys2" width="35%">{applicantdept}</td></tr><tr><td class="ys1" height="34" align="right" style="text-align:center;height:34px;background-color:#CCCCCC;">*申请日期</td><td class="ys2" colspan="3">{applicationdate}</td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">*资产类别<br /></td><td class="ys2" colspan="3">{assetmtype}<br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">*资产名称<br /></td><td class="ys2">{assetmname}<br /></td><td class="ys1" style="text-align:center;background-color:#CCCCCC;">*申购数量<br /></td><td class="ys2">{assetmamount}<br /></td></tr><tr><td class="ys1" height="34" align="right" style="text-align:center;height:34px;background-color:#CCCCCC;">*资产详细信息</td><td class="ys2" colspan="3">{assetmdetail}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;">*申购原因</td><td class="ys2" colspan="3"><span style="text-indent:28.2353px;white-space:normal;">{applicationreason}</span><br /></td></tr></tbody></table></p><br />
\ No newline at end of file
<p><br /><table class="" border="1" bordercolor="#000000" style="width:100%;"><tbody><tr><td class="ys1" height="34" align="right" width="15%" style="text-align:center;width:15%;height:34px;background-color:#CCCCCC;">*申请人</td><td class="ys2" width="35%">{applicant}</td><td class="ys1" align="right" width="15%" style="text-align:center;width:15%;background-color:#CCCCCC;">*申请人部门</td><td class="ys2" width="35%">{applicantdept}</td></tr><tr><td class="ys1" height="34" align="right" style="text-align:center;height:34px;background-color:#CCCCCC;">*申请日期</td><td class="ys2" colspan="3">{applicationdate}</td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">*操作动作</td><td class="ys2" colspan="3">{assetmoperatetype}<br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">*资产名称<br /></td><td class="ys2">{assetmname}<br /></td><td class="ys1" style="text-align:center;background-color:#CCCCCC;">*资产编号<br /></td><td class="ys2">{assetmnumb}<br /></td></tr><tr><td class="ys1" height="34" align="right" style="text-align:center;height:34px;background-color:#CCCCCC;">*资产详细信息</td><td class="ys2" colspan="3">{assetmdetail}</td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">资产价值<br /></td><td class="ys2">{assetmvalue}<br /></td><td class="ys1" style="text-align:center;background-color:#CCCCCC;">出售/维修价格<br /></td><td class="ys2">{price}<br /></td></tr><tr><td style="text-align:center;background-color:#CCCCCC;">*原因</td><td class="ys2" colspan="3"><span style="text-indent:28.2353px;white-space:normal;">{applicationreason}</span><br /></td></tr></tbody></table></p><br />
\ No newline at end of file
<p><br /><table class="" border="1" bordercolor="#000000" style="width:100%;"><tbody><tr><td class="ys1" height="34" align="right" width="15%" style="text-align:center;width:15%;height:34px;background-color:#CCCCCC;">申请人</td><td class="ys2" width="35%">{applicant}</td><td class="ys1" align="right" width="15%" style="text-align:center;width:15%;background-color:#CCCCCC;">申请部门</td><td class="ys2" width="35%">{applicantdept}</td></tr><tr><td class="ys1" height="34" align="right" style="text-align:center;height:34px;background-color:#CCCCCC;">*申请日期</td><td class="ys2" colspan="3">{applicationdate}</td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">*电脑名称<br /></td><td class="ys2" colspan="3">{assetmname}<br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">购买价格<br /></td><td class="ys2">{assetmprice}<br /></td><td class="ys1" style="text-align:center;background-color:#CCCCCC;">购买日期<br /></td><td class="ys2">{assetmbuydate}<br /></td></tr><tr><td class="ys1" height="34" align="right" style="text-align:center;height:34px;background-color:#CCCCCC;">*资产详细信息</td><td class="ys2" colspan="3">{assetmdetail}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;">补贴方式</td><td class="ys2" colspan="3"><span style="text-indent:28.2353px;white-space:normal;">{subsidyway}</span><br /></td></tr></tbody></table></p><br />
\ No newline at end of file
<p><br /><table class="" border="1" bordercolor="#000000" style="width:100%;"><tbody><tr><td class="ys1" height="34" align="right" width="15%" style="text-align:center;width:15%;height:34px;background-color:#CCCCCC;">*申领人</td><td class="ys2" width="35%">{applicant}</td><td class="ys1" align="right" width="15%" style="text-align:center;width:15%;background-color:#CCCCCC;">*申领人部门</td><td class="ys2" width="35%">{applicantdept}</td></tr><tr><td class="ys1" height="34" align="right" style="text-align:center;height:34px;background-color:#CCCCCC;">*申领日期</td><td class="ys2" colspan="3">{applicationdate}</td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">*资产编号<br /></td><td class="ys2">{assetmnumb}<br /></td><td class="ys1" style="text-align:center;background-color:#CCCCCC;">*资产名称<br /></td><td class="ys2">{assetmname}<br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">*资产价格<br /></td><td class="ys2">{assetmprice}<br /></td><td class="ys1" style="text-align:center;background-color:#CCCCCC;">*资产购买日期<br /></td><td class="ys2">{assetmbuydate}<br /></td></tr><tr><td class="ys1" height="34" align="right" style="text-align:center;height:34px;background-color:#CCCCCC;">*资产详细信息</td><td class="ys2" colspan="3">{assetmdetail}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;">*申领原因</td><td class="ys2" colspan="3"><span style="text-indent:28.2353px;white-space:normal;">{applicationreason}</span><br /></td></tr></tbody></table></p><br />
\ No newline at end of file
<p><table class="" style="width:100%;" bordercolor="#000000" border="1"><tbody><tr><td style="width:15%;background-color:#CCCCCC;" class="ys1" width="15%" align="center">*合同名称</td><td class="ys2" width="35%">{title}</td><td style="width:15%;background-color:#CCCCCC;" class="ys1" width="15%" align="center">*合同编号</td><td class="ys2" width="35%">{numb}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*所属部门</td><td class="ys2">{departmentname}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*业务线</td><td class="ys2">{busi_line}{businame}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*合同类型</td><td class="ys2">{finance_type}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*收款方</td><td class="ys2" style="text-align:left;vertical-align:bottom;">{receive}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*甲方</td><td class="ys2" style="text-align:left;vertical-align:bottom;">{part_a}{parta_name}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*乙方</td><td class="ys2">{part_b}{partb_name}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">第三方</td><td class="ys2" style="text-align:left;vertical-align:bottom;">{part_c}{partc_name}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">主合同编号</td><td class="ys2">{pid}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">收款银行账号</td><td class="ys2" style="text-align:left;vertical-align:bottom;">{bankcode}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*合同金额(元)</td><td class="ys2">{amount}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*签订员工</td><td class="ys2">{staff}{staffname}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*签订日期</td><td class="ys2">{sign_date}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*生效日期</td><td class="ys2">{create_date}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*结束日期</td><td class="ys2">{end_date}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*合同周期(天)</td><td class="ys1">{cycle}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*合同电子版上传</td><td class="ys2">{file_id}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">概要</td><td class="ys2" cospan="3">{info}</td></tr><tr><td colspan="4" style="background-color:#CCCCCC;"><b>款项</b> <span style="color:blue">合同金额在填写款项之后自动计算</span></td></tr><tr><td colspan="4"><table class="tablesub ke-zeroborder" id="tablesub0" style="width:100%;" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="background-color:#CCCCCC;" width="5%">序号</td><td style="background-color:#CCCCCC;" width="15%">*款项</td><td style="background-color:#CCCCCC;" width="15%">*金额(元)</td><td style="background-color:#CCCCCC;" width="10%">*发票类型</td><td style="background-color:#CCCCCC;" width="10%">*税点</td><td style="background-color:#CCCCCC;" width="10%">*成本/收入模式<br /></td><td style="background-color:#CCCCCC;" width="25%">明细</td><td style="background-color:#CCCCCC;" width="10%">操作</td></tr><tr><td>[xuhao0,0]</td><td>[title0,0]</td><td>[amount0,0]</td><td>[invoicetype0,0]</td><td>[rate0,0]</td><td>[costmodel0,0]</td><td>[remark0,0]</td><td>{删,0}</td></tr></tbody></table><div style="background-color:#F1F1F1;">{新增,0}</div></td></tr><tr><td colspan="4"><strong>收付款计划</strong> </td></tr><tr><td colspan="4"><table class="tablesub ke-zeroborder" id="tablesub1" style="width:100%;" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="background-color:#CCCCCC;" width="5%">批次</td><td style="background-color:#CCCCCC;" width="20%">*时间</td><td style="background-color:#CCCCCC;" width="20%">*金额(元)</td><td style="background-color:#CCCCCC;"><span style="text-indent:28px;white-space:normal;background-color:#CCCCCC;"><span style="text-indent:28px;white-space:normal;background-color:#CCCCCC;">说明</span></span> </td><td style="background-color:#CCCCCC;" width="10%">操作</td></tr><tr><td>[xuhao1,0][cycle_numb1,0]</td><td>[end_time1,0]</td><td>[amount1,0]</td><td>[remark1,0]</td><td>{删,1}</td></tr></tbody></table><div style="background-color:#F1F1F1;">{新增,1}</div></td></tr></tbody></table></p>
\ No newline at end of file
<p><table class="" style="width:100%;" bordercolor="#000000" border="1"><tbody><tr><td style="width:15%;background-color:#CCCCCC;" class="ys1" width="15%" align="center">*合同名称</td><td class="ys2" width="35%">{title}</td><td style="width:15%;background-color:#CCCCCC;" class="ys1" width="15%" align="center">*合同编号</td><td class="ys2" width="35%">{numb}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*所属部门</td><td class="ys2">{departmentname}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*业务线</td><td class="ys2">{busi_line}{businame}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*合同类型</td><td class="ys2">{finance_type}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*收款方</td><td class="ys2" style="text-align:left;vertical-align:bottom;">{receive}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*甲方</td><td class="ys2" style="text-align:left;vertical-align:bottom;">{part_a}{parta_name}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*乙方</td><td class="ys2">{part_b}{partb_name}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">第三方</td><td class="ys2" style="text-align:left;vertical-align:bottom;">{part_c}{partc_name}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">主合同编号</td><td class="ys2">{pid}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1"><span style="text-align:center;text-indent:28px;white-space:normal;background-color:#CCCCCC;">*</span>收款银行账号</td><td class="ys2" style="text-align:left;vertical-align:bottom;">{bankcode}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*合同金额(元)</td><td class="ys2">{amount}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*签订员工</td><td class="ys2">{staff}{staffname}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*签订日期</td><td class="ys2">{sign_date}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*生效日期</td><td class="ys2">{create_date}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*结束日期</td><td class="ys2">{end_date}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*合同周期(天)</td><td class="ys1">{cycle}</td><td style="text-align:center;background-color:#CCCCCC;" class="ys1">*合同电子版上传</td><td class="ys2">{file_id}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;" class="ys1">概要</td><td class="ys2" cospan="3">{info}</td></tr><tr><td colspan="4" style="background-color:#CCCCCC;"><b>款项</b> <span style="color:blue;">合同金额在填写款项之后自动计算</span></td></tr><tr><td colspan="4"><table class="tablesub ke-zeroborder" id="tablesub0" style="width:100%;" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="background-color:#CCCCCC;" width="5%">序号</td><td style="background-color:#CCCCCC;" width="15%">*款项</td><td style="background-color:#CCCCCC;" width="15%">*金额(元)</td><td style="background-color:#CCCCCC;" width="10%">*发票类型</td><td style="background-color:#CCCCCC;" width="10%">*税点</td><td style="background-color:#CCCCCC;" width="10%">*成本/收入模式<br /></td><td style="background-color:#CCCCCC;" width="25%">明细</td><td style="background-color:#CCCCCC;" width="10%">操作</td></tr><tr><td>[xuhao0,0]</td><td>[title0,0]</td><td>[amount0,0]</td><td>[invoicetype0,0]</td><td>[rate0,0]</td><td>[costmodel0,0]</td><td>[remark0,0]</td><td>{删,0}</td></tr></tbody></table><div style="background-color:#F1F1F1;">{新增,0}</div></td></tr><tr><td colspan="4"><strong>收付款计划</strong> </td></tr><tr><td colspan="4"><table class="tablesub ke-zeroborder" id="tablesub1" style="width:100%;" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="background-color:#CCCCCC;" width="5%">批次</td><td style="background-color:#CCCCCC;" width="20%">*时间</td><td style="background-color:#CCCCCC;" width="20%">*金额(元)</td><td style="background-color:#CCCCCC;"><span style="text-indent:28px;white-space:normal;background-color:#CCCCCC;"><span style="text-indent:28px;white-space:normal;background-color:#CCCCCC;">说明</span></span> </td><td style="background-color:#CCCCCC;" width="10%">操作</td></tr><tr><td>[xuhao1,0][cycle_numb1,0]</td><td>[end_time1,0]</td><td>[amount1,0]</td><td>[remark1,0]</td><td>{删,1}</td></tr></tbody></table><div style="background-color:#F1F1F1;">{新增,1}</div></td></tr></tbody></table></p><audio controls="controls" style="display:none;"></audio>
\ No newline at end of file
<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%"></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 width="5%">操作</td></tr><tr><td>[xuhao0,0]</td><td>[temp_aid0,0][aid0,0]</td><td>[count0,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 colspan="3" class="ys2">{explain}</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>
\ No newline at end of file
<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%"></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>*领用人<br /></td><td width="5%">操作</td></tr><tr><td>[xuhao0,0]</td><td>[temp_aid0,0][aid0,0]</td><td>[count0,0]</td><td>[user0,0]<br /></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 colspan="3" class="ys2">{explain}</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><audio controls="controls" style="display:none;"></audio>
\ No newline at end of file
......@@ -11,7 +11,7 @@ $(document).ready(function(){
{params}
var modenum = 'account_detail',modename='账户明细',isflow=0,modeid='114',atype = params.atype,pnum=params.pnum,modenames='';
if(!atype)atype='';if(!pnum)pnum='';
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"trans_numb","name":"\u64cd\u4f5c\u6d41\u6c34\u53f7","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"account","name":"\u8d26\u6237\u540d\u79f0","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"opt_type","name":"\u4f59\u989d\u53d8\u66f4\u7c7b\u578b","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"amount","name":"\u91d1\u989d","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"account_balance","name":"\u8d26\u6237\u4f59\u989d","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"create_time","name":"\u65f6\u95f4","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"}],fieldsselarr= [];
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"trans_numb","name":"\u64cd\u4f5c\u6d41\u6c34\u53f7","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"account","name":"\u8d26\u6237\u540d\u79f0","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"opt_type","name":"\u4f59\u989d\u53d8\u66f4\u7c7b\u578b","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"amount","name":"\u91d1\u989d","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"account_balance","name":"\u8d26\u6237\u4f59\u989d","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"create_time","name":"\u65f6\u95f4","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"}],fieldsselarr= {"columns_account_detail_all":"trans_numb,account,opt_type,amount,account_balance,create_time,caozuo"};
var c = {
reload:function(){
......@@ -210,7 +210,7 @@ $(document).ready(function(){
fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('Y19hY2NvdW50X2RldGFpbA::'),
url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow',
params:{atype:atype},
columns:[{text:"操作流水号",dataIndex:"trans_numb"},{text:"账户名称",dataIndex:"account"},{text:"余额变更类型",dataIndex:"opt_type"},{text:"金额",dataIndex:"amount"},{text:"账户余额",dataIndex:"account_balance"},{text:"时间",dataIndex:"create_time"},{
columns:[{text:"操作流水号",dataIndex:"trans_numb",sortable:true},{text:"账户名称",dataIndex:"account",sortable:true},{text:"余额变更类型",dataIndex:"opt_type",sortable:true},{text:"金额",dataIndex:"amount",sortable:true},{text:"账户余额",dataIndex:"account_balance",sortable:true},{text:"时间",dataIndex:"create_time",sortable:true},{
text:'',dataIndex:'caozuo',callback:'opegs{rand}'
}],
itemdblclick:function(){
......
......@@ -11,7 +11,7 @@ $(document).ready(function(){
{params}
var modenum = 'account_list',modename='资金账户',isflow=0,modeid='113',atype = params.atype,pnum=params.pnum,modenames='';
if(!atype)atype='';if(!pnum)pnum='';
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"uid","name":"\u6388\u6743\u7528\u6237\u5217\u8868","fieldstype":"changeusercheck","ispx":"0","isalign":"0","islb":"1"},{"fields":"number","name":"\u8d26\u6237\u7f16\u7801","fieldstype":"num","ispx":"1","isalign":"0","islb":"1"},{"fields":"name","name":"\u8d26\u6237\u540d\u79f0","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"cost_id","name":"\u6210\u672c\u4e2d\u5fc3","fieldstype":"selectdatafalse","ispx":"1","isalign":"0","islb":"1"},{"fields":"type","name":"\u8d26\u6237\u7c7b\u578b","fieldstype":"rockcombo","ispx":"1","isalign":"0","islb":"1"},{"fields":"level","name":"\u8d26\u6237\u7ea7\u522b","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"1"},{"fields":"status","name":"\u8d26\u6237\u72b6\u6001","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"account_balance","name":"\u8d26\u6237\u4f59\u989d","fieldstype":"number","ispx":"0","isalign":"0","islb":"1"},{"fields":"create_time","name":"\u521b\u5efa\u65f6\u95f4","fieldstype":"datetime","ispx":"1","isalign":"0","islb":"1"},{"fields":"update_time","name":"\u66f4\u65b0\u65f6\u95f4","fieldstype":"datetime","ispx":"0","isalign":"0","islb":"1"},{"fields":"currency_type","name":"\u8d27\u5e01\u7c7b\u578b","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"}],fieldsselarr= {"columns_account_list_all":"number,name,cost_id,type,level,status,account_balance,create_time,update_time,caozuo"};
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"uid","name":"\u6388\u6743\u7528\u6237\u5217\u8868","fieldstype":"changeusercheck","ispx":"0","isalign":"0","islb":"1"},{"fields":"number","name":"\u8d26\u6237\u7f16\u7801","fieldstype":"num","ispx":"1","isalign":"0","islb":"1"},{"fields":"name","name":"\u8d26\u6237\u540d\u79f0","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"cost_id","name":"\u6210\u672c\u4e2d\u5fc3","fieldstype":"selectdatafalse","ispx":"1","isalign":"0","islb":"1"},{"fields":"type","name":"\u8d26\u6237\u7c7b\u578b","fieldstype":"rockcombo","ispx":"1","isalign":"0","islb":"1"},{"fields":"level","name":"\u8d26\u6237\u7ea7\u522b","fieldstype":"rockcombo","ispx":"1","isalign":"0","islb":"1"},{"fields":"status","name":"\u8d26\u6237\u72b6\u6001","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"account_balance","name":"\u8d26\u6237\u4f59\u989d","fieldstype":"number","ispx":"1","isalign":"0","islb":"1"},{"fields":"create_time","name":"\u521b\u5efa\u65f6\u95f4","fieldstype":"datetime","ispx":"1","isalign":"0","islb":"1"},{"fields":"update_time","name":"\u66f4\u65b0\u65f6\u95f4","fieldstype":"datetime","ispx":"0","isalign":"0","islb":"1"},{"fields":"currency_type","name":"\u8d27\u5e01\u7c7b\u578b","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"}],fieldsselarr= {"columns_account_list_all":"number,name,cost_id,type,level,status,account_balance,create_time,caozuo"};
var c = {
reload:function(){
......@@ -210,7 +210,7 @@ $(document).ready(function(){
fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('Y19mdW5kX2FjY291bnQ:'),
url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow',
params:{atype:atype},
columns:[{text:"授权用户列表",dataIndex:"uid"},{text:"账户编码",dataIndex:"number",sortable:true},{text:"账户名称",dataIndex:"name",sortable:true},{text:"成本中心",dataIndex:"cost_id",sortable:true},{text:"账户类型",dataIndex:"type",sortable:true},{text:"账户级别",dataIndex:"level"},{text:"账户状态",dataIndex:"status",sortable:true},{text:"账户余额",dataIndex:"account_balance"},{text:"创建时间",dataIndex:"create_time",sortable:true},{text:"更新时间",dataIndex:"update_time"},{
columns:[{text:"授权用户列表",dataIndex:"uid"},{text:"账户编码",dataIndex:"number",sortable:true},{text:"账户名称",dataIndex:"name",sortable:true},{text:"成本中心",dataIndex:"cost_id",sortable:true},{text:"账户类型",dataIndex:"type",sortable:true},{text:"账户级别",dataIndex:"level",sortable:true},{text:"账户状态",dataIndex:"status",sortable:true},{text:"账户余额",dataIndex:"account_balance",sortable:true},{text:"创建时间",dataIndex:"create_time",sortable:true},{text:"更新时间",dataIndex:"update_time"},{
text:'',dataIndex:'caozuo',callback:'opegs{rand}'
}],
itemdblclick:function(){
......
<?php
/**
* 模块:assetm.固定资产
* 说明:自定义区域内可写你想要的代码
* 来源:流程模块→表单元素管理→[模块.固定资产]→生成列表页
*/
defined('HOST') or die ('not access');
?>
<script>
$(document).ready(function(){
{params}
var modenum = 'assetm',modename='固定资产',isflow=0,modeid='41',atype = params.atype,pnum=params.pnum,modenames='';
if(!atype)atype='';if(!pnum)pnum='';
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"title","name":"\u540d\u79f0","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"num","name":"\u8d44\u4ea7\u7f16\u53f7","fieldstype":"num","ispx":"0","isalign":"0","islb":"1"},{"fields":"usename","name":"\u4f7f\u7528\u4eba","fieldstype":"changedeptusercheck","ispx":"0","isalign":"0","islb":"1"},{"fields":"shuname","name":"\u4f7f\u7528\u4eba\u90e8\u95e8","fieldstype":"changedept","ispx":"0","isalign":"0","islb":"1"},{"fields":"state","name":"\u72b6\u6001","fieldstype":"select","ispx":"0","isalign":"0","islb":"1"},{"fields":"price","name":"\u4ef7\u683c","fieldstype":"number","ispx":"0","isalign":"0","islb":"1"},{"fields":"model-os","name":"\u64cd\u4f5c\u7cfb\u7edf","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"typeid","name":"\u8d44\u4ea7\u5206\u7c7b","fieldstype":"select","ispx":"0","isalign":"0","islb":"1"},{"fields":"model-vc","name":"\u663e\u5361","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"model-hdd","name":"\u786c\u76d8","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"model-ram","name":"\u5185\u5b58","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"model-cpu","name":"\u5904\u7406\u5668(CPU)","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"model-bh","name":"\u673a\u5668\u7f16\u53f7","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"model-xh","name":"\u578b\u53f7","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"recentuserchangedate","name":"\u6700\u8fd1\u4f7f\u7528\u4eba\u66f4\u8fed\u65e5\u671f","fieldstype":"date","ispx":"0","isalign":"0","islb":"1"},{"fields":"userchangerecord","name":"\u4f7f\u7528\u4eba\u66f4\u8fed\u8bb0\u5f55","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"oanumb","name":"\u8d2d\u4e70\u672c\u8d44\u4ea7\u7684oa\u53f7","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"fengmian","name":"\u5c01\u9762\u56fe\u7247","fieldstype":"uploadimg","ispx":"0","isalign":"0","islb":"0"},{"fields":"explain","name":"\u8bf4\u660e","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"0"},{"fields":"buydt","name":"\u8d2d\u8fdb\u65e5\u671f","fieldstype":"date","ispx":"0","isalign":"0","islb":"1"},{"fields":"laiyuan","name":"\u8d44\u4ea7\u6765\u6e90","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"1"},{"fields":"model","name":"\u89c4\u683c\u578b\u53f7","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"0"},{"fields":"ckid","name":"\u5b58\u653e\u4ed3\u5e93","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"company","name":"\u6240\u5c5e\u516c\u53f8\u540d\u79f0","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"1"}],fieldsselarr= [];
var c = {
reload:function(){
a.reload();
},
clickwin:function(o1,lx){
var id=0;
if(lx==1)id=a.changeid;
openinput(modename,modenum,id,'opegs{rand}');
},
view:function(){
var d=a.changedata;
openxiangs(modename,modenum,d.id,'opegs{rand}');
},
searchbtn:function(){
this.search({});
},
search:function(cans){
var s=get('key_{rand}').value,zt='';
if(get('selstatus_{rand}'))zt=get('selstatus_{rand}').value;
var canss = js.apply({key:s,keystatus:zt,search_value:''}, cans);
a.setparams(canss,true);
},
searchhigh:function(){
new highsearchclass({
modenum:modenum,
oncallback:function(d){
c.searchhighb(d);
}
});
},
searchhighb:function(d){
d.key='';
d.search_value='';
get('key_{rand}').value='';
a.setparams(d,true);
},
searchuname:function(d){
js.getuser({
type:'deptusercheck',
title:'搜索'+d.name,
changevalue:this.search_value,
callback:function(sna,sid){
c.searchunames(d,sna,sid);
}
});
},
search_value:'',
searchunames:function(d,sna,sid){
get('key_{rand}').value=sna;
this.search_value = sid;
var cs = {key:'','search_fields':d.fields,'search_value':sid};
a.setparams(cs,true);
},
daochu:function(o1,lx,lx1,e){
publicdaochuobj({
'objtable':a,
'modename':modename,
'fieldsarr':fieldsarr,
'modenum':modenum,
'modenames':modenames,
'isflow':isflow,
'btnobj':o1
});
},
getacturl:function(act){
return js.getajaxurl(act,'mode_assetm|input','flow',{'modeid':modeid});
},
changatype:function(o1,lx){
$("button[id^='changatype{rand}']").removeClass('active');
$('#changatype{rand}_'+lx+'').addClass('active');
a.setparams({atype:lx},true);
var tit = $(o1).html();if(tit.indexOf(modename)<0)tit=modename+'('+tit+')';
nowtabssettext(tit);
},
init:function(){
$('#key_{rand}').keyup(function(e){
if(e.keyCode==13)c.searchbtn();
});
this.initpage();
},
initpage:function(){
},
loaddata:function(d){
this.setdownsodata(d.souarr);
if(!d.atypearr)return;
get('addbtn_{rand}').disabled=(d.isadd!=true);
get('daobtn_{rand}').disabled=(d.isdaochu!=true);
if(d.isdaochu)$('#daobtn_{rand}').show();
if(d.isdaoru)$('#daoruspan_{rand}').show();
var d1 = d.atypearr,len=d1.length,i,str='';
for(i=0;i<len;i++){
str+='<button class="btn btn-default" click="changatype,'+d1[i].num+'" id="changatype{rand}_'+d1[i].num+'" type="button">'+d1[i].name+'</button>';
}
$('#changatype{rand}').html(str);
$('#changatype{rand}_'+atype+'').addClass('active');
js.initbtn(c);
},
setdownsodata:function(darr){
var ddata = [{name:'高级搜索',lx:0}],dsd,i;
if(darr)for(i=0;i<darr.length;i++){
dsd = darr[i];
dsd.lx=3;
ddata.push(dsd);
}
if(admintype==1)ddata.push({name:'自定义列显示',lx:2});
ddata.push({name:'打印',lx:1});
this.soudownobj.setData(ddata);
},
setcolumns:function(fid, cnas){
var d = false,i,ad=bootparams.columns,len=ad.length,oi=-1;
for(i=0;i<len;i++){
if(ad[i].dataIndex==fid){
d = ad[i];
oi= i;
break;
}
}
if(d){
d = js.apply(d, cnas);
bootparams.columns[oi]=d;
}
},
daoru:function(){
window.managelistassetm = a;
addtabs({num:'daoruassetm',url:'flow,input,daoru,modenum=assetm',icons:'plus',name:'导入固定资产'});
},
initcolumns:function(bots){
var num = 'columns_'+modenum+'_'+pnum+'',d=[],d1,d2={},i,len=fieldsarr.length,bok;
var nstr= fieldsselarr[num];if(!nstr)nstr='';
if(nstr)nstr=','+nstr+',';
if(nstr=='' && isflow>0){
d.push({text:'申请人',dataIndex:'base_name',sortable:true});
d.push({text:'申请人部门',dataIndex:'base_deptname',sortable:true});
}
for(i=0;i<len;i++){
d1 = fieldsarr[i];
bok= false;
if(nstr==''){
if(d1['islb']=='1')bok=true;
}else{
if(nstr.indexOf(','+d1.fields+',')>=0)bok=true;
}
if(bok){
d2={text:d1.name,dataIndex:d1.fields};
if(d1.ispx=='1')d2.sortable=true;
if(d1.isalign=='1')d2.align='left';
if(d1.isalign=='2')d2.align='right';
d.push(d2);
}
}
if(isflow>0)d.push({text:'状态',dataIndex:'statustext'});
if(nstr=='' || nstr.indexOf(',caozuo,')>=0)d.push({text:'',dataIndex:'caozuo',callback:'opegs{rand}'});
if(!bots){
bootparams.columns=d;
}else{
a.setColumns(d);
}
},
setparams:function(cs){
var ds = js.apply({},cs);
a.setparams(ds);
},
storeurl:function(){
var url = this.getacturl('publicstore')+'&pnum='+pnum+'';
return url;
},
printlist:function(){
js.msg('success','可使用导出,然后打开在打印');
},
getbtnstr:function(txt, click, ys, ots){
if(!ys)ys='default';
if(!ots)ots='';
return '<button class="btn btn-'+ys+'" id="btn'+click+'_{rand}" click="'+click+'" '+ots+' type="button">'+txt+'</button>';
},
setfieldslist:function(){
new highsearchclass({
modenum:modenum,
modeid:modeid,
type:1,
isflow:isflow,
pnum:pnum,atype:atype,
fieldsarr:fieldsarr,
fieldsselarr:fieldsselarr,
oncallback:function(str){
fieldsselarr[this.columnsnum]=str;
c.initcolumns(true);
c.reload();
}
});
}
};
var bootparams = {
fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('YXNzZXRt'),
url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow',
params:{atype:atype},
columns:[{text:"名称",dataIndex:"title"},{text:"资产编号",dataIndex:"num"},{text:"使用人",dataIndex:"usename"},{text:"使用人部门",dataIndex:"shuname"},{text:"状态",dataIndex:"state"},{text:"价格",dataIndex:"price"},{text:"操作系统",dataIndex:"model-os"},{text:"资产分类",dataIndex:"typeid"},{text:"显卡",dataIndex:"model-vc"},{text:"硬盘",dataIndex:"model-hdd"},{text:"内存",dataIndex:"model-ram"},{text:"处理器(CPU)",dataIndex:"model-cpu"},{text:"机器编号",dataIndex:"model-bh"},{text:"型号",dataIndex:"model-xh"},{text:"最近使用人更迭日期",dataIndex:"recentuserchangedate"},{text:"使用人更迭记录",dataIndex:"userchangerecord"},{text:"购买本资产的oa号",dataIndex:"oanumb"},{text:"购进日期",dataIndex:"buydt"},{text:"资产来源",dataIndex:"laiyuan"},{text:"所属公司名称",dataIndex:"company"},{
text:'',dataIndex:'caozuo',callback:'opegs{rand}'
}],
itemdblclick:function(){
c.view();
},
load:function(d){
c.loaddata(d);
}
};
c.initcolumns(false);
opegs{rand}=function(){
c.reload();
}
//[自定义区域start]
//[自定义区域end]
js.initbtn(c);
var a = $('#viewassetm_{rand}').bootstable(bootparams);
c.init();
c.soudownobj = $('#downbtn_{rand}').rockmenu({
width:120,top:35,donghua:false,
data:[{name:'高级搜索',lx:0}],
itemsclick:function(d, i){
if(d.lx==0)c.searchhigh();
if(d.lx==1)c.printlist();
if(d.lx==2)c.setfieldslist();
if(d.lx==3)c.searchuname(d);
}
});
});
</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>
<input class="form-control" style="width:160px" id="key_{rand}" placeholder="关键字">
</td>
<td style="padding-left:10px">
<div style="white-space:nowrap">
<button style="border-right:0;border-top-right-radius:0;border-bottom-right-radius: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="viewassetm_{rand}"></div>
<!--HTMLend-->
\ No newline at end of file
<?php
/**
* 模块:assetmbuy.固定资产购买
* 说明:自定义区域内可写你想要的代码
* 来源:流程模块→表单元素管理→[模块.固定资产购买]→生成列表页
*/
defined('HOST') or die ('not access');
?>
<script>
$(document).ready(function(){
{params}
var modenum = 'assetmbuy',modename='固定资产购买',isflow=1,modeid='121',atype = params.atype,pnum=params.pnum,modenames='';
if(!atype)atype='';if(!pnum)pnum='';
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"applicant","name":"\u7533\u8bf7\u4eba","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"applicantdept","name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"applicationdate","name":"\u7533\u8bf7\u65e5\u671f","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"assetmname","name":"\u8d44\u4ea7\u540d\u79f0","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"applicationreason","name":"\u7533\u8bf7\u539f\u56e0","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"1"},{"fields":"assetmtype","name":"\u8d44\u4ea7\u7c7b\u522b","fieldstype":"select","ispx":"0","isalign":"0","islb":"0"},{"fields":"assetmamount","name":"\u7533\u8d2d\u6570\u91cf","fieldstype":"number","ispx":"0","isalign":"0","islb":"0"},{"fields":"assetmdetail","name":"\u8d44\u4ea7\u8be6\u7ec6\u4fe1\u606f","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"0"}],fieldsselarr= [];
var c = {
reload:function(){
a.reload();
},
clickwin:function(o1,lx){
var id=0;
if(lx==1)id=a.changeid;
openinput(modename,modenum,id,'opegs{rand}');
},
view:function(){
var d=a.changedata;
openxiangs(modename,modenum,d.id,'opegs{rand}');
},
searchbtn:function(){
this.search({});
},
search:function(cans){
var s=get('key_{rand}').value,zt='';
if(get('selstatus_{rand}'))zt=get('selstatus_{rand}').value;
var canss = js.apply({key:s,keystatus:zt,search_value:''}, cans);
a.setparams(canss,true);
},
searchhigh:function(){
new highsearchclass({
modenum:modenum,
oncallback:function(d){
c.searchhighb(d);
}
});
},
searchhighb:function(d){
d.key='';
d.search_value='';
get('key_{rand}').value='';
a.setparams(d,true);
},
searchuname:function(d){
js.getuser({
type:'deptusercheck',
title:'搜索'+d.name,
changevalue:this.search_value,
callback:function(sna,sid){
c.searchunames(d,sna,sid);
}
});
},
search_value:'',
searchunames:function(d,sna,sid){
get('key_{rand}').value=sna;
this.search_value = sid;
var cs = {key:'','search_fields':d.fields,'search_value':sid};
a.setparams(cs,true);
},
daochu:function(o1,lx,lx1,e){
publicdaochuobj({
'objtable':a,
'modename':modename,
'fieldsarr':fieldsarr,
'modenum':modenum,
'modenames':modenames,
'isflow':isflow,
'btnobj':o1
});
},
getacturl:function(act){
return js.getajaxurl(act,'mode_assetmbuy|input','flow',{'modeid':modeid});
},
changatype:function(o1,lx){
$("button[id^='changatype{rand}']").removeClass('active');
$('#changatype{rand}_'+lx+'').addClass('active');
a.setparams({atype:lx},true);
var tit = $(o1).html();if(tit.indexOf(modename)<0)tit=modename+'('+tit+')';
nowtabssettext(tit);
},
init:function(){
$('#key_{rand}').keyup(function(e){
if(e.keyCode==13)c.searchbtn();
});
this.initpage();
},
initpage:function(){
},
loaddata:function(d){
this.setdownsodata(d.souarr);
if(!d.atypearr)return;
get('addbtn_{rand}').disabled=(d.isadd!=true);
get('daobtn_{rand}').disabled=(d.isdaochu!=true);
if(d.isdaochu)$('#daobtn_{rand}').show();
if(d.isdaoru)$('#daoruspan_{rand}').show();
var d1 = d.atypearr,len=d1.length,i,str='';
for(i=0;i<len;i++){
str+='<button class="btn btn-default" click="changatype,'+d1[i].num+'" id="changatype{rand}_'+d1[i].num+'" type="button">'+d1[i].name+'</button>';
}
$('#changatype{rand}').html(str);
$('#changatype{rand}_'+atype+'').addClass('active');
js.initbtn(c);
},
setdownsodata:function(darr){
var ddata = [{name:'高级搜索',lx:0}],dsd,i;
if(darr)for(i=0;i<darr.length;i++){
dsd = darr[i];
dsd.lx=3;
ddata.push(dsd);
}
if(admintype==1)ddata.push({name:'自定义列显示',lx:2});
ddata.push({name:'打印',lx:1});
this.soudownobj.setData(ddata);
},
setcolumns:function(fid, cnas){
var d = false,i,ad=bootparams.columns,len=ad.length,oi=-1;
for(i=0;i<len;i++){
if(ad[i].dataIndex==fid){
d = ad[i];
oi= i;
break;
}
}
if(d){
d = js.apply(d, cnas);
bootparams.columns[oi]=d;
}
},
daoru:function(){
window.managelistassetmbuy = a;
addtabs({num:'daoruassetmbuy',url:'flow,input,daoru,modenum=assetmbuy',icons:'plus',name:'导入固定资产购买'});
},
initcolumns:function(bots){
var num = 'columns_'+modenum+'_'+pnum+'',d=[],d1,d2={},i,len=fieldsarr.length,bok;
var nstr= fieldsselarr[num];if(!nstr)nstr='';
if(nstr)nstr=','+nstr+',';
if(nstr=='' && isflow>0){
d.push({text:'申请人',dataIndex:'base_name',sortable:true});
d.push({text:'申请人部门',dataIndex:'base_deptname',sortable:true});
}
for(i=0;i<len;i++){
d1 = fieldsarr[i];
bok= false;
if(nstr==''){
if(d1['islb']=='1')bok=true;
}else{
if(nstr.indexOf(','+d1.fields+',')>=0)bok=true;
}
if(bok){
d2={text:d1.name,dataIndex:d1.fields};
if(d1.ispx=='1')d2.sortable=true;
if(d1.isalign=='1')d2.align='left';
if(d1.isalign=='2')d2.align='right';
d.push(d2);
}
}
if(isflow>0)d.push({text:'状态',dataIndex:'statustext'});
if(nstr=='' || nstr.indexOf(',caozuo,')>=0)d.push({text:'',dataIndex:'caozuo',callback:'opegs{rand}'});
if(!bots){
bootparams.columns=d;
}else{
a.setColumns(d);
}
},
setparams:function(cs){
var ds = js.apply({},cs);
a.setparams(ds);
},
storeurl:function(){
var url = this.getacturl('publicstore')+'&pnum='+pnum+'';
return url;
},
printlist:function(){
js.msg('success','可使用导出,然后打开在打印');
},
getbtnstr:function(txt, click, ys, ots){
if(!ys)ys='default';
if(!ots)ots='';
return '<button class="btn btn-'+ys+'" id="btn'+click+'_{rand}" click="'+click+'" '+ots+' type="button">'+txt+'</button>';
},
setfieldslist:function(){
new highsearchclass({
modenum:modenum,
modeid:modeid,
type:1,
isflow:isflow,
pnum:pnum,atype:atype,
fieldsarr:fieldsarr,
fieldsselarr:fieldsselarr,
oncallback:function(str){
fieldsselarr[this.columnsnum]=str;
c.initcolumns(true);
c.reload();
}
});
}
};
var bootparams = {
fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('Y19hc3NldG1fYnV5'),
url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow',
params:{atype:atype},
columns:[{text:"申请人",dataIndex:"base_name",sortable:true},{text:"申请人部门",dataIndex:"base_deptname",sortable:true},{text:"单号",dataIndex:"sericnum"},{text:"申请人",dataIndex:"applicant"},{text:"申请人部门",dataIndex:"applicantdept"},{text:"申请日期",dataIndex:"applicationdate"},{text:"资产名称",dataIndex:"assetmname"},{text:"申请原因",dataIndex:"applicationreason"},{text:"状态",dataIndex:"statustext"},{
text:'',dataIndex:'caozuo',callback:'opegs{rand}'
}],
itemdblclick:function(){
c.view();
},
load:function(d){
c.loaddata(d);
}
};
c.initcolumns(false);
opegs{rand}=function(){
c.reload();
}
//[自定义区域start]
//[自定义区域end]
js.initbtn(c);
var a = $('#viewassetmbuy_{rand}').bootstable(bootparams);
c.init();
c.soudownobj = $('#downbtn_{rand}').rockmenu({
width:120,top:35,donghua:false,
data:[{name:'高级搜索',lx:0}],
itemsclick:function(d, i){
if(d.lx==0)c.searchhigh();
if(d.lx==1)c.printlist();
if(d.lx==2)c.setfieldslist();
if(d.lx==3)c.searchuname(d);
}
});
});
</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>
<input class="form-control" style="width:160px" id="key_{rand}" placeholder="关键字/申请人/单号">
</td>
<td style="padding-left:10px"><select class="form-control" style="width:120px" id="selstatus_{rand}"><option value="">-全部状态-</option><option style="color:blue" value="0">待处理</option><option style="color:green" value="1">已审核</option><option style="color:red" value="2">不同意</option><option style="color:#888888" value="5">已作废</option><option style="color:#17B2B7" value="23">退回</option></select></td>
<td style="padding-left:10px">
<div style="white-space:nowrap">
<button style="border-right:0;border-top-right-radius:0;border-bottom-right-radius: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>
<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="viewassetmbuy_{rand}"></div>
<!--HTMLend-->
\ No newline at end of file
<?php
/**
* 模块:assetmoperate.固定资产维修/报废/出售
* 说明:自定义区域内可写你想要的代码
* 来源:流程模块→表单元素管理→[模块.固定资产维修/报废/出售]→生成列表页
*/
defined('HOST') or die ('not access');
?>
<script>
$(document).ready(function(){
{params}
var modenum = 'assetmoperate',modename='固定资产维修/报废/出售',isflow=1,modeid='122',atype = params.atype,pnum=params.pnum,modenames='';
if(!atype)atype='';if(!pnum)pnum='';
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"applicant","name":"\u7533\u8bf7\u4eba","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"applicantdept","name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"applicationdate","name":"\u7533\u8bf7\u65e5\u671f","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"assetmoperatetype","name":"\u52a8\u4f5c","fieldstype":"select","ispx":"0","isalign":"0","islb":"1"},{"fields":"assetmname","name":"\u8d44\u4ea7\u540d\u79f0","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"assetmnumb","name":"\u8d44\u4ea7\u7f16\u53f7","fieldstype":"selectdatafalse","ispx":"0","isalign":"0","islb":"0"},{"fields":"assetmvalue","name":"\u8d44\u4ea7\u4ef7\u503c","fieldstype":"number","ispx":"0","isalign":"0","islb":"0"},{"fields":"assetmdetail","name":"\u8d44\u4ea7\u8be6\u7ec6\u4fe1\u606f","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"0"},{"fields":"price","name":"\u51fa\u552e\/\u7ef4\u4fee\u4ef7\u683c","fieldstype":"number","ispx":"0","isalign":"0","islb":"0"},{"fields":"applicationreason","name":"\u539f\u56e0","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"0"}],fieldsselarr= [];
var c = {
reload:function(){
a.reload();
},
clickwin:function(o1,lx){
var id=0;
if(lx==1)id=a.changeid;
openinput(modename,modenum,id,'opegs{rand}');
},
view:function(){
var d=a.changedata;
openxiangs(modename,modenum,d.id,'opegs{rand}');
},
searchbtn:function(){
this.search({});
},
search:function(cans){
var s=get('key_{rand}').value,zt='';
if(get('selstatus_{rand}'))zt=get('selstatus_{rand}').value;
var canss = js.apply({key:s,keystatus:zt,search_value:''}, cans);
a.setparams(canss,true);
},
searchhigh:function(){
new highsearchclass({
modenum:modenum,
oncallback:function(d){
c.searchhighb(d);
}
});
},
searchhighb:function(d){
d.key='';
d.search_value='';
get('key_{rand}').value='';
a.setparams(d,true);
},
searchuname:function(d){
js.getuser({
type:'deptusercheck',
title:'搜索'+d.name,
changevalue:this.search_value,
callback:function(sna,sid){
c.searchunames(d,sna,sid);
}
});
},
search_value:'',
searchunames:function(d,sna,sid){
get('key_{rand}').value=sna;
this.search_value = sid;
var cs = {key:'','search_fields':d.fields,'search_value':sid};
a.setparams(cs,true);
},
daochu:function(o1,lx,lx1,e){
publicdaochuobj({
'objtable':a,
'modename':modename,
'fieldsarr':fieldsarr,
'modenum':modenum,
'modenames':modenames,
'isflow':isflow,
'btnobj':o1
});
},
getacturl:function(act){
return js.getajaxurl(act,'mode_assetmoperate|input','flow',{'modeid':modeid});
},
changatype:function(o1,lx){
$("button[id^='changatype{rand}']").removeClass('active');
$('#changatype{rand}_'+lx+'').addClass('active');
a.setparams({atype:lx},true);
var tit = $(o1).html();if(tit.indexOf(modename)<0)tit=modename+'('+tit+')';
nowtabssettext(tit);
},
init:function(){
$('#key_{rand}').keyup(function(e){
if(e.keyCode==13)c.searchbtn();
});
this.initpage();
},
initpage:function(){
},
loaddata:function(d){
this.setdownsodata(d.souarr);
if(!d.atypearr)return;
get('addbtn_{rand}').disabled=(d.isadd!=true);
get('daobtn_{rand}').disabled=(d.isdaochu!=true);
if(d.isdaochu)$('#daobtn_{rand}').show();
if(d.isdaoru)$('#daoruspan_{rand}').show();
var d1 = d.atypearr,len=d1.length,i,str='';
for(i=0;i<len;i++){
str+='<button class="btn btn-default" click="changatype,'+d1[i].num+'" id="changatype{rand}_'+d1[i].num+'" type="button">'+d1[i].name+'</button>';
}
$('#changatype{rand}').html(str);
$('#changatype{rand}_'+atype+'').addClass('active');
js.initbtn(c);
},
setdownsodata:function(darr){
var ddata = [{name:'高级搜索',lx:0}],dsd,i;
if(darr)for(i=0;i<darr.length;i++){
dsd = darr[i];
dsd.lx=3;
ddata.push(dsd);
}
if(admintype==1)ddata.push({name:'自定义列显示',lx:2});
ddata.push({name:'打印',lx:1});
this.soudownobj.setData(ddata);
},
setcolumns:function(fid, cnas){
var d = false,i,ad=bootparams.columns,len=ad.length,oi=-1;
for(i=0;i<len;i++){
if(ad[i].dataIndex==fid){
d = ad[i];
oi= i;
break;
}
}
if(d){
d = js.apply(d, cnas);
bootparams.columns[oi]=d;
}
},
daoru:function(){
window.managelistassetmoperate = a;
addtabs({num:'daoruassetmoperate',url:'flow,input,daoru,modenum=assetmoperate',icons:'plus',name:'导入固定资产维修/报废/出售'});
},
initcolumns:function(bots){
var num = 'columns_'+modenum+'_'+pnum+'',d=[],d1,d2={},i,len=fieldsarr.length,bok;
var nstr= fieldsselarr[num];if(!nstr)nstr='';
if(nstr)nstr=','+nstr+',';
if(nstr=='' && isflow>0){
d.push({text:'申请人',dataIndex:'base_name',sortable:true});
d.push({text:'申请人部门',dataIndex:'base_deptname',sortable:true});
}
for(i=0;i<len;i++){
d1 = fieldsarr[i];
bok= false;
if(nstr==''){
if(d1['islb']=='1')bok=true;
}else{
if(nstr.indexOf(','+d1.fields+',')>=0)bok=true;
}
if(bok){
d2={text:d1.name,dataIndex:d1.fields};
if(d1.ispx=='1')d2.sortable=true;
if(d1.isalign=='1')d2.align='left';
if(d1.isalign=='2')d2.align='right';
d.push(d2);
}
}
if(isflow>0)d.push({text:'状态',dataIndex:'statustext'});
if(nstr=='' || nstr.indexOf(',caozuo,')>=0)d.push({text:'',dataIndex:'caozuo',callback:'opegs{rand}'});
if(!bots){
bootparams.columns=d;
}else{
a.setColumns(d);
}
},
setparams:function(cs){
var ds = js.apply({},cs);
a.setparams(ds);
},
storeurl:function(){
var url = this.getacturl('publicstore')+'&pnum='+pnum+'';
return url;
},
printlist:function(){
js.msg('success','可使用导出,然后打开在打印');
},
getbtnstr:function(txt, click, ys, ots){
if(!ys)ys='default';
if(!ots)ots='';
return '<button class="btn btn-'+ys+'" id="btn'+click+'_{rand}" click="'+click+'" '+ots+' type="button">'+txt+'</button>';
},
setfieldslist:function(){
new highsearchclass({
modenum:modenum,
modeid:modeid,
type:1,
isflow:isflow,
pnum:pnum,atype:atype,
fieldsarr:fieldsarr,
fieldsselarr:fieldsselarr,
oncallback:function(str){
fieldsselarr[this.columnsnum]=str;
c.initcolumns(true);
c.reload();
}
});
}
};
var bootparams = {
fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('Y19hc3NldG1fb3BlcmF0ZQ::'),
url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow',
params:{atype:atype},
columns:[{text:"申请人",dataIndex:"base_name",sortable:true},{text:"申请人部门",dataIndex:"base_deptname",sortable:true},{text:"单号",dataIndex:"sericnum"},{text:"申请人",dataIndex:"applicant"},{text:"申请人部门",dataIndex:"applicantdept"},{text:"申请日期",dataIndex:"applicationdate"},{text:"动作",dataIndex:"assetmoperatetype"},{text:"资产名称",dataIndex:"assetmname"},{text:"状态",dataIndex:"statustext"},{
text:'',dataIndex:'caozuo',callback:'opegs{rand}'
}],
itemdblclick:function(){
c.view();
},
load:function(d){
c.loaddata(d);
}
};
c.initcolumns(false);
opegs{rand}=function(){
c.reload();
}
//[自定义区域start]
//[自定义区域end]
js.initbtn(c);
var a = $('#viewassetmoperate_{rand}').bootstable(bootparams);
c.init();
c.soudownobj = $('#downbtn_{rand}').rockmenu({
width:120,top:35,donghua:false,
data:[{name:'高级搜索',lx:0}],
itemsclick:function(d, i){
if(d.lx==0)c.searchhigh();
if(d.lx==1)c.printlist();
if(d.lx==2)c.setfieldslist();
if(d.lx==3)c.searchuname(d);
}
});
});
</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>
<input class="form-control" style="width:160px" id="key_{rand}" placeholder="关键字/申请人/单号">
</td>
<td style="padding-left:10px"><select class="form-control" style="width:120px" id="selstatus_{rand}"><option value="">-全部状态-</option><option style="color:blue" value="0">待处理</option><option style="color:green" value="1">已审核</option><option style="color:red" value="2">不同意</option><option style="color:#888888" value="5">已作废</option><option style="color:#17B2B7" value="23">退回</option></select></td>
<td style="padding-left:10px">
<div style="white-space:nowrap">
<button style="border-right:0;border-top-right-radius:0;border-bottom-right-radius: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>
<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="viewassetmoperate_{rand}"></div>
<!--HTMLend-->
\ No newline at end of file
<?php
/**
* 模块:assetmselfequipped.自行配备电脑
* 说明:自定义区域内可写你想要的代码
* 来源:流程模块→表单元素管理→[模块.自行配备电脑]→生成列表页
*/
defined('HOST') or die ('not access');
?>
<script>
$(document).ready(function(){
{params}
var modenum = 'assetmselfequipped',modename='自行配备电脑',isflow=1,modeid='123',atype = params.atype,pnum=params.pnum,modenames='';
if(!atype)atype='';if(!pnum)pnum='';
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"applicant","name":"\u7533\u8bf7\u4eba","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"applicantdept","name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"applicationdate","name":"\u7533\u8bf7\u65e5\u671f","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"assetmname","name":"\u8d44\u4ea7\u540d\u79f0","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"assetmprice","name":"\u8d2d\u4e70\u4ef7\u683c","fieldstype":"number","ispx":"0","isalign":"0","islb":"1"},{"fields":"subsidyway","name":"\u8865\u8d34\u65b9\u5f0f","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"1"},{"fields":"assetmbuydate","name":"\u8d2d\u4e70\u65e5\u671f","fieldstype":"date","ispx":"0","isalign":"0","islb":"0"},{"fields":"assetmdetail","name":"\u8d44\u4ea7\u8be6\u7ec6\u4fe1\u606f","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"0"}],fieldsselarr= [];
var c = {
reload:function(){
a.reload();
},
clickwin:function(o1,lx){
var id=0;
if(lx==1)id=a.changeid;
openinput(modename,modenum,id,'opegs{rand}');
},
view:function(){
var d=a.changedata;
openxiangs(modename,modenum,d.id,'opegs{rand}');
},
searchbtn:function(){
this.search({});
},
search:function(cans){
var s=get('key_{rand}').value,zt='';
if(get('selstatus_{rand}'))zt=get('selstatus_{rand}').value;
var canss = js.apply({key:s,keystatus:zt,search_value:''}, cans);
a.setparams(canss,true);
},
searchhigh:function(){
new highsearchclass({
modenum:modenum,
oncallback:function(d){
c.searchhighb(d);
}
});
},
searchhighb:function(d){
d.key='';
d.search_value='';
get('key_{rand}').value='';
a.setparams(d,true);
},
searchuname:function(d){
js.getuser({
type:'deptusercheck',
title:'搜索'+d.name,
changevalue:this.search_value,
callback:function(sna,sid){
c.searchunames(d,sna,sid);
}
});
},
search_value:'',
searchunames:function(d,sna,sid){
get('key_{rand}').value=sna;
this.search_value = sid;
var cs = {key:'','search_fields':d.fields,'search_value':sid};
a.setparams(cs,true);
},
daochu:function(o1,lx,lx1,e){
publicdaochuobj({
'objtable':a,
'modename':modename,
'fieldsarr':fieldsarr,
'modenum':modenum,
'modenames':modenames,
'isflow':isflow,
'btnobj':o1
});
},
getacturl:function(act){
return js.getajaxurl(act,'mode_assetmselfequipped|input','flow',{'modeid':modeid});
},
changatype:function(o1,lx){
$("button[id^='changatype{rand}']").removeClass('active');
$('#changatype{rand}_'+lx+'').addClass('active');
a.setparams({atype:lx},true);
var tit = $(o1).html();if(tit.indexOf(modename)<0)tit=modename+'('+tit+')';
nowtabssettext(tit);
},
init:function(){
$('#key_{rand}').keyup(function(e){
if(e.keyCode==13)c.searchbtn();
});
this.initpage();
},
initpage:function(){
},
loaddata:function(d){
this.setdownsodata(d.souarr);
if(!d.atypearr)return;
get('addbtn_{rand}').disabled=(d.isadd!=true);
get('daobtn_{rand}').disabled=(d.isdaochu!=true);
if(d.isdaochu)$('#daobtn_{rand}').show();
if(d.isdaoru)$('#daoruspan_{rand}').show();
var d1 = d.atypearr,len=d1.length,i,str='';
for(i=0;i<len;i++){
str+='<button class="btn btn-default" click="changatype,'+d1[i].num+'" id="changatype{rand}_'+d1[i].num+'" type="button">'+d1[i].name+'</button>';
}
$('#changatype{rand}').html(str);
$('#changatype{rand}_'+atype+'').addClass('active');
js.initbtn(c);
},
setdownsodata:function(darr){
var ddata = [{name:'高级搜索',lx:0}],dsd,i;
if(darr)for(i=0;i<darr.length;i++){
dsd = darr[i];
dsd.lx=3;
ddata.push(dsd);
}
if(admintype==1)ddata.push({name:'自定义列显示',lx:2});
ddata.push({name:'打印',lx:1});
this.soudownobj.setData(ddata);
},
setcolumns:function(fid, cnas){
var d = false,i,ad=bootparams.columns,len=ad.length,oi=-1;
for(i=0;i<len;i++){
if(ad[i].dataIndex==fid){
d = ad[i];
oi= i;
break;
}
}
if(d){
d = js.apply(d, cnas);
bootparams.columns[oi]=d;
}
},
daoru:function(){
window.managelistassetmselfequipped = a;
addtabs({num:'daoruassetmselfequipped',url:'flow,input,daoru,modenum=assetmselfequipped',icons:'plus',name:'导入自行配备电脑'});
},
initcolumns:function(bots){
var num = 'columns_'+modenum+'_'+pnum+'',d=[],d1,d2={},i,len=fieldsarr.length,bok;
var nstr= fieldsselarr[num];if(!nstr)nstr='';
if(nstr)nstr=','+nstr+',';
if(nstr=='' && isflow>0){
d.push({text:'申请人',dataIndex:'base_name',sortable:true});
d.push({text:'申请人部门',dataIndex:'base_deptname',sortable:true});
}
for(i=0;i<len;i++){
d1 = fieldsarr[i];
bok= false;
if(nstr==''){
if(d1['islb']=='1')bok=true;
}else{
if(nstr.indexOf(','+d1.fields+',')>=0)bok=true;
}
if(bok){
d2={text:d1.name,dataIndex:d1.fields};
if(d1.ispx=='1')d2.sortable=true;
if(d1.isalign=='1')d2.align='left';
if(d1.isalign=='2')d2.align='right';
d.push(d2);
}
}
if(isflow>0)d.push({text:'状态',dataIndex:'statustext'});
if(nstr=='' || nstr.indexOf(',caozuo,')>=0)d.push({text:'',dataIndex:'caozuo',callback:'opegs{rand}'});
if(!bots){
bootparams.columns=d;
}else{
a.setColumns(d);
}
},
setparams:function(cs){
var ds = js.apply({},cs);
a.setparams(ds);
},
storeurl:function(){
var url = this.getacturl('publicstore')+'&pnum='+pnum+'';
return url;
},
printlist:function(){
js.msg('success','可使用导出,然后打开在打印');
},
getbtnstr:function(txt, click, ys, ots){
if(!ys)ys='default';
if(!ots)ots='';
return '<button class="btn btn-'+ys+'" id="btn'+click+'_{rand}" click="'+click+'" '+ots+' type="button">'+txt+'</button>';
},
setfieldslist:function(){
new highsearchclass({
modenum:modenum,
modeid:modeid,
type:1,
isflow:isflow,
pnum:pnum,atype:atype,
fieldsarr:fieldsarr,
fieldsselarr:fieldsselarr,
oncallback:function(str){
fieldsselarr[this.columnsnum]=str;
c.initcolumns(true);
c.reload();
}
});
}
};
var bootparams = {
fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('Y19hc3NldG1fc2VsZl9lcXVpcHBlZA::'),
url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow',
params:{atype:atype},
columns:[{text:"申请人",dataIndex:"base_name",sortable:true},{text:"申请人部门",dataIndex:"base_deptname",sortable:true},{text:"单号",dataIndex:"sericnum"},{text:"申请人",dataIndex:"applicant"},{text:"申请人部门",dataIndex:"applicantdept"},{text:"申请日期",dataIndex:"applicationdate"},{text:"资产名称",dataIndex:"assetmname"},{text:"购买价格",dataIndex:"assetmprice"},{text:"补贴方式",dataIndex:"subsidyway"},{text:"状态",dataIndex:"statustext"},{
text:'',dataIndex:'caozuo',callback:'opegs{rand}'
}],
itemdblclick:function(){
c.view();
},
load:function(d){
c.loaddata(d);
}
};
c.initcolumns(false);
opegs{rand}=function(){
c.reload();
}
//[自定义区域start]
//[自定义区域end]
js.initbtn(c);
var a = $('#viewassetmselfequipped_{rand}').bootstable(bootparams);
c.init();
c.soudownobj = $('#downbtn_{rand}').rockmenu({
width:120,top:35,donghua:false,
data:[{name:'高级搜索',lx:0}],
itemsclick:function(d, i){
if(d.lx==0)c.searchhigh();
if(d.lx==1)c.printlist();
if(d.lx==2)c.setfieldslist();
if(d.lx==3)c.searchuname(d);
}
});
});
</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>
<input class="form-control" style="width:160px" id="key_{rand}" placeholder="关键字/申请人/单号">
</td>
<td style="padding-left:10px"><select class="form-control" style="width:120px" id="selstatus_{rand}"><option value="">-全部状态-</option><option style="color:blue" value="0">待处理</option><option style="color:green" value="1">已审核</option><option style="color:red" value="2">不同意</option><option style="color:#888888" value="5">已作废</option><option style="color:#17B2B7" value="23">退回</option></select></td>
<td style="padding-left:10px">
<div style="white-space:nowrap">
<button style="border-right:0;border-top-right-radius:0;border-bottom-right-radius: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>
<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="viewassetmselfequipped_{rand}"></div>
<!--HTMLend-->
\ No newline at end of file
<?php
/**
* 模块:assetmuse.固定资产申领
* 说明:自定义区域内可写你想要的代码
* 来源:流程模块→表单元素管理→[模块.固定资产申领]→生成列表页
*/
defined('HOST') or die ('not access');
?>
<script>
$(document).ready(function(){
{params}
var modenum = 'assetmuse',modename='固定资产申领',isflow=1,modeid='120',atype = params.atype,pnum=params.pnum,modenames='';
if(!atype)atype='';if(!pnum)pnum='';
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"applicant","name":"\u7533\u8bf7\u4eba","fieldstype":"changeuser","ispx":"0","isalign":"0","islb":"1"},{"fields":"applicantdept","name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fieldstype":"changedept","ispx":"0","isalign":"0","islb":"1"},{"fields":"applicationdate","name":"\u7533\u8bf7\u65e5\u671f","fieldstype":"date","ispx":"0","isalign":"0","islb":"1"},{"fields":"assetmname","name":"\u8d44\u4ea7\u540d\u79f0","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"assetmnumb","name":"\u8d44\u4ea7\u7f16\u53f7","fieldstype":"selectdatafalse","ispx":"0","isalign":"0","islb":"0"},{"fields":"applicationreason","name":"\u7533\u8bf7\u539f\u56e0","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"1"},{"fields":"assetmdetail","name":"\u8d44\u4ea7\u8be6\u7ec6\u4fe1\u606f","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"0"},{"fields":"assetmprice","name":"\u8d44\u4ea7\u4ef7\u683c","fieldstype":"number","ispx":"0","isalign":"0","islb":"0"},{"fields":"assetmbuydate","name":"\u8d44\u4ea7\u8d2d\u4e70\u65e5\u671f","fieldstype":"date","ispx":"0","isalign":"0","islb":"0"}],fieldsselarr= [];
var c = {
reload:function(){
a.reload();
},
clickwin:function(o1,lx){
var id=0;
if(lx==1)id=a.changeid;
openinput(modename,modenum,id,'opegs{rand}');
},
view:function(){
var d=a.changedata;
openxiangs(modename,modenum,d.id,'opegs{rand}');
},
searchbtn:function(){
this.search({});
},
search:function(cans){
var s=get('key_{rand}').value,zt='';
if(get('selstatus_{rand}'))zt=get('selstatus_{rand}').value;
var canss = js.apply({key:s,keystatus:zt,search_value:''}, cans);
a.setparams(canss,true);
},
searchhigh:function(){
new highsearchclass({
modenum:modenum,
oncallback:function(d){
c.searchhighb(d);
}
});
},
searchhighb:function(d){
d.key='';
d.search_value='';
get('key_{rand}').value='';
a.setparams(d,true);
},
searchuname:function(d){
js.getuser({
type:'deptusercheck',
title:'搜索'+d.name,
changevalue:this.search_value,
callback:function(sna,sid){
c.searchunames(d,sna,sid);
}
});
},
search_value:'',
searchunames:function(d,sna,sid){
get('key_{rand}').value=sna;
this.search_value = sid;
var cs = {key:'','search_fields':d.fields,'search_value':sid};
a.setparams(cs,true);
},
daochu:function(o1,lx,lx1,e){
publicdaochuobj({
'objtable':a,
'modename':modename,
'fieldsarr':fieldsarr,
'modenum':modenum,
'modenames':modenames,
'isflow':isflow,
'btnobj':o1
});
},
getacturl:function(act){
return js.getajaxurl(act,'mode_assetmuse|input','flow',{'modeid':modeid});
},
changatype:function(o1,lx){
$("button[id^='changatype{rand}']").removeClass('active');
$('#changatype{rand}_'+lx+'').addClass('active');
a.setparams({atype:lx},true);
var tit = $(o1).html();if(tit.indexOf(modename)<0)tit=modename+'('+tit+')';
nowtabssettext(tit);
},
init:function(){
$('#key_{rand}').keyup(function(e){
if(e.keyCode==13)c.searchbtn();
});
this.initpage();
},
initpage:function(){
},
loaddata:function(d){
this.setdownsodata(d.souarr);
if(!d.atypearr)return;
get('addbtn_{rand}').disabled=(d.isadd!=true);
get('daobtn_{rand}').disabled=(d.isdaochu!=true);
if(d.isdaochu)$('#daobtn_{rand}').show();
if(d.isdaoru)$('#daoruspan_{rand}').show();
var d1 = d.atypearr,len=d1.length,i,str='';
for(i=0;i<len;i++){
str+='<button class="btn btn-default" click="changatype,'+d1[i].num+'" id="changatype{rand}_'+d1[i].num+'" type="button">'+d1[i].name+'</button>';
}
$('#changatype{rand}').html(str);
$('#changatype{rand}_'+atype+'').addClass('active');
js.initbtn(c);
},
setdownsodata:function(darr){
var ddata = [{name:'高级搜索',lx:0}],dsd,i;
if(darr)for(i=0;i<darr.length;i++){
dsd = darr[i];
dsd.lx=3;
ddata.push(dsd);
}
if(admintype==1)ddata.push({name:'自定义列显示',lx:2});
ddata.push({name:'打印',lx:1});
this.soudownobj.setData(ddata);
},
setcolumns:function(fid, cnas){
var d = false,i,ad=bootparams.columns,len=ad.length,oi=-1;
for(i=0;i<len;i++){
if(ad[i].dataIndex==fid){
d = ad[i];
oi= i;
break;
}
}
if(d){
d = js.apply(d, cnas);
bootparams.columns[oi]=d;
}
},
daoru:function(){
window.managelistassetmuse = a;
addtabs({num:'daoruassetmuse',url:'flow,input,daoru,modenum=assetmuse',icons:'plus',name:'导入固定资产申领'});
},
initcolumns:function(bots){
var num = 'columns_'+modenum+'_'+pnum+'',d=[],d1,d2={},i,len=fieldsarr.length,bok;
var nstr= fieldsselarr[num];if(!nstr)nstr='';
if(nstr)nstr=','+nstr+',';
if(nstr=='' && isflow>0){
d.push({text:'申请人',dataIndex:'base_name',sortable:true});
d.push({text:'申请人部门',dataIndex:'base_deptname',sortable:true});
}
for(i=0;i<len;i++){
d1 = fieldsarr[i];
bok= false;
if(nstr==''){
if(d1['islb']=='1')bok=true;
}else{
if(nstr.indexOf(','+d1.fields+',')>=0)bok=true;
}
if(bok){
d2={text:d1.name,dataIndex:d1.fields};
if(d1.ispx=='1')d2.sortable=true;
if(d1.isalign=='1')d2.align='left';
if(d1.isalign=='2')d2.align='right';
d.push(d2);
}
}
if(isflow>0)d.push({text:'状态',dataIndex:'statustext'});
if(nstr=='' || nstr.indexOf(',caozuo,')>=0)d.push({text:'',dataIndex:'caozuo',callback:'opegs{rand}'});
if(!bots){
bootparams.columns=d;
}else{
a.setColumns(d);
}
},
setparams:function(cs){
var ds = js.apply({},cs);
a.setparams(ds);
},
storeurl:function(){
var url = this.getacturl('publicstore')+'&pnum='+pnum+'';
return url;
},
printlist:function(){
js.msg('success','可使用导出,然后打开在打印');
},
getbtnstr:function(txt, click, ys, ots){
if(!ys)ys='default';
if(!ots)ots='';
return '<button class="btn btn-'+ys+'" id="btn'+click+'_{rand}" click="'+click+'" '+ots+' type="button">'+txt+'</button>';
},
setfieldslist:function(){
new highsearchclass({
modenum:modenum,
modeid:modeid,
type:1,
isflow:isflow,
pnum:pnum,atype:atype,
fieldsarr:fieldsarr,
fieldsselarr:fieldsselarr,
oncallback:function(str){
fieldsselarr[this.columnsnum]=str;
c.initcolumns(true);
c.reload();
}
});
}
};
var bootparams = {
fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('Y19hc3NldG1fdXNl'),
url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow',
params:{atype:atype},
columns:[{text:"申请人",dataIndex:"base_name",sortable:true},{text:"申请人部门",dataIndex:"base_deptname",sortable:true},{text:"单号",dataIndex:"sericnum"},{text:"申请人",dataIndex:"applicant"},{text:"申请人部门",dataIndex:"applicantdept"},{text:"申请日期",dataIndex:"applicationdate"},{text:"资产名称",dataIndex:"assetmname"},{text:"申请原因",dataIndex:"applicationreason"},{text:"状态",dataIndex:"statustext"},{
text:'',dataIndex:'caozuo',callback:'opegs{rand}'
}],
itemdblclick:function(){
c.view();
},
load:function(d){
c.loaddata(d);
}
};
c.initcolumns(false);
opegs{rand}=function(){
c.reload();
}
//[自定义区域start]
//[自定义区域end]
js.initbtn(c);
var a = $('#viewassetmuse_{rand}').bootstable(bootparams);
c.init();
c.soudownobj = $('#downbtn_{rand}').rockmenu({
width:120,top:35,donghua:false,
data:[{name:'高级搜索',lx:0}],
itemsclick:function(d, i){
if(d.lx==0)c.searchhigh();
if(d.lx==1)c.printlist();
if(d.lx==2)c.setfieldslist();
if(d.lx==3)c.searchuname(d);
}
});
});
</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>
<input class="form-control" style="width:160px" id="key_{rand}" placeholder="关键字/申请人/单号">
</td>
<td style="padding-left:10px"><select class="form-control" style="width:120px" id="selstatus_{rand}"><option value="">-全部状态-</option><option style="color:blue" value="0">待处理</option><option style="color:green" value="1">已审核</option><option style="color:red" value="2">不同意</option><option style="color:#888888" value="5">已作废</option><option style="color:#17B2B7" value="23">退回</option></select></td>
<td style="padding-left:10px">
<div style="white-space:nowrap">
<button style="border-right:0;border-top-right-radius:0;border-bottom-right-radius: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>
<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="viewassetmuse_{rand}"></div>
<!--HTMLend-->
\ No newline at end of file
......@@ -11,7 +11,7 @@ $(document).ready(function(){
{params}
var modenum = 'cost_center',modename='成本中心',isflow=0,modeid='117',atype = params.atype,pnum=params.pnum,modenames='';
if(!atype)atype='';if(!pnum)pnum='';
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"code","name":"\u6210\u672c\u4e2d\u5fc3\u7f16\u7801","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"name","name":"\u540d\u79f0","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"principalid","name":"\u8d1f\u8d23\u4eba","fieldstype":"changeuser","ispx":"0","isalign":"0","islb":"1"},{"fields":"type","name":"\u7c7b\u578b","fieldstype":"select","ispx":"0","isalign":"0","islb":"1"},{"fields":"status","name":"\u72b6\u6001","fieldstype":"select","ispx":"1","isalign":"0","islb":"1"},{"fields":"pid","name":"\u4e0a\u7ea7\u6210\u672c\u4e2d\u5fc3","fieldstype":"selectdatafalse","ispx":"0","isalign":"0","islb":"1"},{"fields":"create_time","name":"\u751f\u6548\u65f6\u95f4","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"}],fieldsselarr= {"columns_cost_center_all":"code,name,principalid,type,status,create_time,caozuo"};
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"code","name":"\u6210\u672c\u4e2d\u5fc3\u7f16\u7801","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"name","name":"\u540d\u79f0","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"principalid","name":"\u8d1f\u8d23\u4eba","fieldstype":"changeuser","ispx":"1","isalign":"0","islb":"1"},{"fields":"type","name":"\u7c7b\u578b","fieldstype":"select","ispx":"1","isalign":"0","islb":"1"},{"fields":"status","name":"\u72b6\u6001","fieldstype":"select","ispx":"1","isalign":"0","islb":"1"},{"fields":"pid","name":"\u4e0a\u7ea7\u6210\u672c\u4e2d\u5fc3","fieldstype":"selectdatafalse","ispx":"1","isalign":"0","islb":"1"},{"fields":"create_time","name":"\u751f\u6548\u65f6\u95f4","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"}],fieldsselarr= {"columns_cost_center_all":"code,name,principalid,type,status,create_time,caozuo"};
var c = {
reload:function(){
......@@ -210,7 +210,7 @@ $(document).ready(function(){
fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('Y19jYnp4'),
url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow',
params:{atype:atype},
columns:[{text:"成本中心编码",dataIndex:"code"},{text:"名称",dataIndex:"name"},{text:"负责人",dataIndex:"principalid"},{text:"类型",dataIndex:"type"},{text:"状态",dataIndex:"status",sortable:true},{text:"上级成本中心",dataIndex:"pid"},{text:"生效时间",dataIndex:"create_time"},{
columns:[{text:"成本中心编码",dataIndex:"code",sortable:true},{text:"名称",dataIndex:"name",sortable:true},{text:"负责人",dataIndex:"principalid",sortable:true},{text:"类型",dataIndex:"type",sortable:true},{text:"状态",dataIndex:"status",sortable:true},{text:"上级成本中心",dataIndex:"pid",sortable:true},{text:"生效时间",dataIndex:"create_time",sortable:true},{
text:'',dataIndex:'caozuo',callback:'opegs{rand}'
}],
itemdblclick:function(){
......
......@@ -11,7 +11,7 @@ $(document).ready(function(){
{params}
var modenum = 'fund_deposit',modename='资金入账',isflow=0,modeid='115',atype = params.atype,pnum=params.pnum,modenames='';
if(!atype)atype='';if(!pnum)pnum='';
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"trans_numb","name":"\u4ea4\u6613\u6d41\u6c34","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"toaccount","name":"\u8f6c\u5165\u8d26\u6237","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"1"},{"fields":"account","name":"\u8d44\u91d1\u6765\u6e90","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"trans_amount","name":"\u8f6c\u5165\u91d1\u989d","fieldstype":"number","ispx":"0","isalign":"0","islb":"1"},{"fields":"business_type","name":"\u4e1a\u52a1\u7c7b\u578b","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"1"},{"fields":"create_time","name":"\u521b\u5efa\u65f6\u95f4","fieldstype":"hidden","ispx":"0","isalign":"0","islb":"1"},{"fields":"remark","name":"\u5907\u6ce8","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"1"}],fieldsselarr= [];
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"trans_numb","name":"\u4ea4\u6613\u6d41\u6c34","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"toaccount","name":"\u8f6c\u5165\u8d26\u6237","fieldstype":"rockcombo","ispx":"1","isalign":"0","islb":"1"},{"fields":"account","name":"\u8d44\u91d1\u6765\u6e90","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"trans_amount","name":"\u8f6c\u5165\u91d1\u989d","fieldstype":"number","ispx":"1","isalign":"0","islb":"1"},{"fields":"business_type","name":"\u4e1a\u52a1\u7c7b\u578b","fieldstype":"rockcombo","ispx":"1","isalign":"0","islb":"1"},{"fields":"create_time","name":"\u521b\u5efa\u65f6\u95f4","fieldstype":"hidden","ispx":"1","isalign":"0","islb":"1"},{"fields":"remark","name":"\u5907\u6ce8","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"1"}],fieldsselarr= [];
var c = {
reload:function(){
......@@ -210,7 +210,7 @@ $(document).ready(function(){
fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('Y19mdW5kX2RldGFpbA::'),
url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow',
params:{atype:atype},
columns:[{text:"交易流水",dataIndex:"trans_numb"},{text:"转入账户",dataIndex:"toaccount"},{text:"资金来源",dataIndex:"account"},{text:"转入金额",dataIndex:"trans_amount"},{text:"业务类型",dataIndex:"business_type"},{text:"创建时间",dataIndex:"create_time"},{text:"备注",dataIndex:"remark"},{
columns:[{text:"交易流水",dataIndex:"trans_numb",sortable:true},{text:"转入账户",dataIndex:"toaccount",sortable:true},{text:"资金来源",dataIndex:"account",sortable:true},{text:"转入金额",dataIndex:"trans_amount",sortable:true},{text:"业务类型",dataIndex:"business_type",sortable:true},{text:"创建时间",dataIndex:"create_time",sortable:true},{text:"备注",dataIndex:"remark"},{
text:'',dataIndex:'caozuo',callback:'opegs{rand}'
}],
itemdblclick:function(){
......
......@@ -9,9 +9,9 @@ defined('HOST') or die ('not access');
<script>
$(document).ready(function(){
{params}
var modenum = 'fund_transfer',modename='资金划拨',isflow=0,modeid='116',atype = params.atype,pnum=params.pnum,modenames='';
var modenum = 'fund_transfer',modename='资金划拨',isflow=1,modeid='116',atype = params.atype,pnum=params.pnum,modenames='';
if(!atype)atype='';if(!pnum)pnum='';
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"trans_numb","name":"\t\u4ea4\u6613\u6d41\u6c34","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"account","name":"\u8f6c\u51fa\u8d26\u6237","fieldstype":"selectdatafalse","ispx":"0","isalign":"0","islb":"1"},{"fields":"toaccount","name":"\u8f6c\u5165\u8d26\u6237","fieldstype":"selectdatafalse","ispx":"0","isalign":"0","islb":"1"},{"fields":"business_type","name":"\u5212\u62e8\u7c7b\u578b\t","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"1"},{"fields":"trans_amount","name":"\u8f6c\u51fa\u91d1\u989d","fieldstype":"number","ispx":"0","isalign":"0","islb":"1"},{"fields":"service_fee","name":"\u8d44\u91d1\u5229\u7387","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"account_balance","name":"\u8d26\u6237\u4f59\u989d","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"create_time","name":"\u521b\u5efa\u65f6\u95f4","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"fund_rule","name":"\u8d44\u91d1\u89c4\u5219","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"remark","name":"\u5907\u6ce8","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"1"},{"fields":"tmp_account","name":"\u83b7\u53d6\u8f6c\u51fa\u8d26\u6237id","fieldstype":"hidden","ispx":"0","isalign":"0","islb":"0"}],fieldsselarr= [];
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"trans_numb","name":"\t\u4ea4\u6613\u6d41\u6c34","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"account","name":"\u8f6c\u51fa\u8d26\u6237","fieldstype":"selectdatafalse","ispx":"1","isalign":"0","islb":"1"},{"fields":"toaccount","name":"\u8f6c\u5165\u8d26\u6237","fieldstype":"selectdatafalse","ispx":"1","isalign":"0","islb":"1"},{"fields":"business_type","name":"\u5212\u62e8\u7c7b\u578b\t","fieldstype":"rockcombo","ispx":"1","isalign":"0","islb":"1"},{"fields":"trans_amount","name":"\u8f6c\u51fa\u91d1\u989d","fieldstype":"number","ispx":"1","isalign":"0","islb":"1"},{"fields":"service_fee","name":"\u8d44\u91d1\u5229\u7387","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"account_balance","name":"\u8d26\u6237\u4f59\u989d","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"create_time","name":"\u521b\u5efa\u65f6\u95f4","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"fund_rule","name":"\u8d44\u91d1\u89c4\u5219","fieldstype":"rockcombo","ispx":"1","isalign":"0","islb":"0"},{"fields":"remark","name":"\u5907\u6ce8","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"1"},{"fields":"tmp_account","name":"\u83b7\u53d6\u8f6c\u51fa\u8d26\u6237id","fieldstype":"hidden","ispx":"0","isalign":"0","islb":"0"}],fieldsselarr= {"columns_fund_transfer_all":"base_name,base_deptname,sericnum,trans_numb,account,toaccount,business_type,trans_amount,service_fee,account_balance,create_time,remark,caozuo"};
var c = {
reload:function(){
......@@ -210,7 +210,7 @@ $(document).ready(function(){
fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('Y19mdW5kX2RldGFpbA::'),
url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow',
params:{atype:atype},
columns:[{text:" 交易流水",dataIndex:"trans_numb"},{text:"转出账户",dataIndex:"account"},{text:"转入账户",dataIndex:"toaccount"},{text:"划拨类型 ",dataIndex:"business_type"},{text:"转出金额",dataIndex:"trans_amount"},{text:"资金利率",dataIndex:"service_fee"},{text:"账户余额",dataIndex:"account_balance"},{text:"创建时间",dataIndex:"create_time"},{text:"备注",dataIndex:"remark"},{
columns:[{text:"申请人",dataIndex:"base_name",sortable:true},{text:"申请人部门",dataIndex:"base_deptname",sortable:true},{text:"单号",dataIndex:"sericnum"},{text:" 交易流水",dataIndex:"trans_numb",sortable:true},{text:"转出账户",dataIndex:"account",sortable:true},{text:"转入账户",dataIndex:"toaccount",sortable:true},{text:"划拨类型 ",dataIndex:"business_type",sortable:true},{text:"转出金额",dataIndex:"trans_amount",sortable:true},{text:"资金利率",dataIndex:"service_fee",sortable:true},{text:"账户余额",dataIndex:"account_balance",sortable:true},{text:"创建时间",dataIndex:"create_time",sortable:true},{text:"备注",dataIndex:"remark"},{text:"状态",dataIndex:"statustext"},{
text:'',dataIndex:'caozuo',callback:'opegs{rand}'
}],
itemdblclick:function(){
......@@ -255,9 +255,9 @@ $(document).ready(function(){
<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>
<input class="form-control" style="width:160px" id="key_{rand}" placeholder="关键字">
<input class="form-control" style="width:160px" id="key_{rand}" placeholder="关键字/申请人/单号">
</td>
<td style="padding-left:10px"><select class="form-control" style="width:120px" id="selstatus_{rand}"><option value="">-全部状态-</option><option style="color:blue" value="0">待处理</option><option style="color:green" value="1">已审核</option><option style="color:red" value="2">不同意</option><option style="color:#888888" value="5">已作废</option><option style="color:#17B2B7" value="23">退回</option></select></td>
<td style="padding-left:10px">
<div style="white-space:nowrap">
<button style="border-right:0;border-top-right-radius:0;border-bottom-right-radius: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>
......
......@@ -9,7 +9,7 @@ defined('HOST') or die ('not access');
<script>
$(document).ready(function(){
{params}
var modenum = 'goodly',modename='物品领用',isflow=1,modeid='24',atype = params.atype,pnum=params.pnum,modenames='领用物品';
var modenum = 'goodly',modename='物品领用',isflow=2,modeid='24',atype = params.atype,pnum=params.pnum,modenames='领用物品';
if(!atype)atype='';if(!pnum)pnum='';
var fieldsarr = [{"name":"\u7533\u8bf7\u4eba","fields":"base_name"},{"name":"\u7533\u8bf7\u4eba\u90e8\u95e8","fields":"base_deptname"},{"name":"\u5355\u53f7","fields":"sericnum"},{"fields":"applydt","name":"\u7533\u8bf7\u65e5\u671f","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"},{"fields":"type","name":"\u7c7b\u578b","fieldstype":"fixed","ispx":"0","isalign":"0","islb":"0"},{"fields":"explain","name":"\u8bf4\u660e","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"1"},{"fields":"state","name":"\u51fa\u5e93\u72b6\u6001","fieldstype":"select","ispx":"1","isalign":"0","islb":"1"},{"fields":"wupinlist","name":"\u9886\u7528\u7684\u7269\u54c1","fieldstype":"text","ispx":"0","isalign":"0","islb":"1"}],fieldsselarr= [];
......
<p><span style="font-size:small;"><br /></span> <table width="100%" class="ke-zeroborder" bordercolor="#000000" border="0"><tbody><tr><td height="34" align="right" class="ys1">资产编号</td><td class="ys2">{num}</td><td align="right" class="ys1"><span style="font-size:small;text-indent:28px;white-space:normal;">状态</span><br /></td><td class="ys2"><span style="font-size:small;text-indent:28px;white-space:normal;">{state}</span><br /></td></tr><tr><td height="34" align="right" class="ys1">资产分类</td><td class="ys2">{typeid}</td><td class="ys2" style="text-align:right;">资产来源</td><td class="ys2"><span style="text-indent:28px;white-space:normal;">{laiyuan}</span><br /></td></tr><tr><td height="34" align="right" class="ys1"><span style="text-align:-webkit-right;white-space:normal;">使用人</span><br /></td><td class="ys2"><span style="white-space:normal;">{usename}</span> </td><td align="right" class="ys1"><span style="text-align:-webkit-right;white-space:normal;">使用人部门</span><br /></td><td class="ys2"><span style="white-space:normal;">{shuname}</span> </td></tr><tr><td height="34" width="15%" align="right" class="ys1">资产名称<br /></td><td width="35%" class="ys2">{title}</td><td width="15%" align="right" class="ys1"><span style="text-align:-webkit-right;white-space:normal;">价格</span> </td><td width="35%" class="ys2"><span style="white-space:normal;">{price}</span><br /></td></tr><tr><td height="34" align="right" class="ys1">所属公司名称<br /></td><td class="ys2">{company}</td><td align="right" class="ys1">oa号<br /></td><td class="ys2">{oanumb}</td></tr><tr><td height="34" align="right" class="ys1">使用人更迭记录</td><td class="ys2">{userchangerecord}</td><td align="right" class="ys1">最近使用人更迭日期</td><td class="ys2">{recentuserchangedate}</td></tr><tr><td class="ys1" style="text-align:right;">购进日期<br /></td><td class="ys2" colspan="3"><span style="text-indent:28px;white-space:normal;">{buydt}</span><br /></td></tr><tr><td class="ys2" style="background-color:#CCCCCC;" colspan="4"><p><strong>详细信息</strong> </p></td></tr><tr><td height="34" align="right" class="ys1"><span style="text-align:-webkit-right;white-space:normal;">型号</span> </td><td class="ys2" colspan="3"><span style="white-space:normal;">{model-xh}</span> </td></tr><tr><td class="ys1" style="text-align:right;">机器编号<br /></td><td class="ys1">{model-bh}<br /></td><td class="ys1" style="text-align:right;"><span style="text-indent:2em;">处理器(CPU)</span><span style="text-indent:2em;"></span> </td><td class="ys1">{model-cpu}<br /></td></tr><tr><td class="ys1" style="text-align:right;">内存<br /></td><td class="ys1">{model-ram}<br /></td><td class="ys1" style="text-align:right;">硬盘<br /></td><td class="ys1">{model-hdd}<br /></td></tr><tr><td class="ys1" style="text-align:right;">显卡<br /></td><td class="ys1">{model-vc}<br /></td><td class="ys1" style="text-align:right;">操作系统<br /></td><td class="ys1">{model-os}<br /></td></tr></tbody></table></p><audio controls="controls" style="display:none;"></audio>
\ No newline at end of file
<p><br /><table class="" border="1" bordercolor="#000000" style="width:100%;"><tbody><tr><td class="ys1" height="34" align="right" width="15%" style="text-align:center;width:15%;height:34px;background-color:#CCCCCC;">申请人</td><td class="ys2" width="35%">{applicant}</td><td class="ys1" align="right" width="15%" style="text-align:center;width:15%;background-color:#CCCCCC;">申请人部门</td><td class="ys2" width="35%">{applicantdept}</td></tr><tr><td class="ys1" height="34" align="right" style="text-align:center;height:34px;background-color:#CCCCCC;">申请日期</td><td class="ys2" colspan="3">{applicationdate}</td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">资产类别<br /></td><td class="ys2" colspan="3">{assetmtype}<br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">资产名称<br /></td><td class="ys2">{assetmname}<br /></td><td class="ys1" style="text-align:center;background-color:#CCCCCC;">申购数量<br /></td><td class="ys2">{assetmamount}<br /></td></tr><tr><td class="ys1" height="34" align="right" style="text-align:center;height:34px;background-color:#CCCCCC;">资产详细信息</td><td class="ys2" colspan="3">{assetmdetail}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;">申购原因</td><td class="ys2" colspan="3"><span style="text-indent:28.2353px;white-space:normal;">{applicationreason}</span><br /></td></tr></tbody></table></p><br />
\ No newline at end of file
<p><br /><table class="" border="1" bordercolor="#000000" style="width:100%;"><tbody><tr><td class="ys1" height="34" align="right" width="15%" style="text-align:center;width:15%;height:34px;background-color:#CCCCCC;">申请人</td><td class="ys2" width="35%">{applicant}</td><td class="ys1" align="right" width="15%" style="text-align:center;width:15%;background-color:#CCCCCC;">申请人部门</td><td class="ys2" width="35%">{applicantdept}</td></tr><tr><td class="ys1" height="34" align="right" style="text-align:center;height:34px;background-color:#CCCCCC;">申请日期</td><td class="ys2" colspan="3">{applicationdate}</td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">操作动作</td><td class="ys2" colspan="3">{assetmoperatetype}<br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">资产名称<br /></td><td class="ys2">{assetmname}<br /></td><td class="ys1" style="text-align:center;background-color:#CCCCCC;">资产编号<br /></td><td class="ys2">{assetmnumb}<br /></td></tr><tr><td class="ys1" height="34" align="right" style="text-align:center;height:34px;background-color:#CCCCCC;">资产详细信息</td><td class="ys2" colspan="3">{assetmdetail}</td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">资产价值<br /></td><td class="ys2">{assetmvalue}<br /></td><td class="ys1" style="text-align:center;background-color:#CCCCCC;">出售/维修价格<br /></td><td class="ys2">{price}<br /></td></tr><tr><td style="text-align:center;background-color:#CCCCCC;">原因</td><td class="ys2" colspan="3"><span style="text-indent:28.2353px;white-space:normal;">{applicationreason}</span><br /></td></tr></tbody></table></p><br />
\ No newline at end of file
<p><br /><table class="" border="1" bordercolor="#000000" style="width:100%;"><tbody><tr><td class="ys1" height="34" align="right" width="15%" style="text-align:center;width:15%;height:34px;background-color:#CCCCCC;">申请人</td><td class="ys2" width="35%">{applicant}</td><td class="ys1" align="right" width="15%" style="text-align:center;width:15%;background-color:#CCCCCC;">申请部门</td><td class="ys2" width="35%">{applicantdept}</td></tr><tr><td class="ys1" height="34" align="right" style="text-align:center;height:34px;background-color:#CCCCCC;">申请日期</td><td class="ys2" colspan="3">{applicationdate}</td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">电脑名称<br /></td><td class="ys2" colspan="3">{assetmname}<br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">购买价格<br /></td><td class="ys2">{assetmprice}<br /></td><td class="ys1" style="text-align:center;background-color:#CCCCCC;">购买日期<br /></td><td class="ys2">{assetmbuydate}<br /></td></tr><tr><td class="ys1" height="34" align="right" style="text-align:center;height:34px;background-color:#CCCCCC;">资产详细信息</td><td class="ys2" colspan="3">{assetmdetail}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;">补贴方式</td><td class="ys2" colspan="3"><span style="text-indent:28.2353px;white-space:normal;">{subsidyway}</span><br /></td></tr></tbody></table></p><br />
\ No newline at end of file
<p><br /><table class="" border="1" bordercolor="#000000" style="width:100%;"><tbody><tr><td class="ys1" height="34" align="right" width="15%" style="text-align:center;width:15%;height:34px;background-color:#CCCCCC;">申领人</td><td class="ys2" width="35%">{applicant}</td><td class="ys1" align="right" width="15%" style="text-align:center;width:15%;background-color:#CCCCCC;">申领人部门</td><td class="ys2" width="35%">{applicantdept}</td></tr><tr><td class="ys1" height="34" align="right" style="text-align:center;height:34px;background-color:#CCCCCC;">申领日期</td><td class="ys2" colspan="3">{applicationdate}</td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">资产编号<br /></td><td class="ys2">{assetmnumb}<br /></td><td class="ys1" style="text-align:center;background-color:#CCCCCC;">资产名称<br /></td><td class="ys2">{assetmname}<br /></td></tr><tr><td class="ys1" style="text-align:center;background-color:#CCCCCC;">资产价格<br /></td><td class="ys2">{assetmprice}<br /></td><td class="ys1" style="text-align:center;background-color:#CCCCCC;">资产购买日期<br /></td><td class="ys2">{assetmbuydate}<br /></td></tr><tr><td class="ys1" height="34" align="right" style="text-align:center;height:34px;background-color:#CCCCCC;">资产详细信息</td><td class="ys2" colspan="3">{assetmdetail}</td></tr><tr><td style="text-align:center;background-color:#CCCCCC;">申领原因</td><td class="ys2" colspan="3"><span style="text-indent:28.2353px;white-space:normal;">{applicationreason}</span><br /></td></tr></tbody></table></p><br />
\ No newline at end of file
<?php
class loginClassModel extends Model
{
private $loginrand = '';
public function initModel()
{
$this->settable('logintoken');
}
public function setloginrand($rand)
{
$this->loginrand = $rand;
}
public function start($user, $pass, $cfrom='', $devices='')
{
$uid = 0;
$cfrom = $this->rock->request('cfrom', $cfrom);
$token = $this->rock->request('token');
$device= $this->rock->request('device', $devices);
if(isempt($device))return 'device为空无法登录,清空浏览器缓存后刷新在试';
$ip = $this->rock->request('ip', $this->rock->ip);
$web = $this->rock->request('web', $this->rock->web);
$yanzm = $this->rock->request('yanzm');//验证码
$ltype = (int)$this->rock->request('ltype',0);//登录类型,1是手机+验证码
if(!isempt($yanzm) && strlen($yanzm)!=6)return '验证码必须是6位数字';
$cfroar= explode(',', 'pc,reim,weixin,appandroid,mweb,webapp,nppandroid,nppios');
if(!in_array($cfrom, $cfroar))return 'not found cfrom['.$cfrom.']';
if($user=='')return '用户名不能为空';
if($pass==''&&strlen($token)<8 && $ltype==0)return '密码不能为空';
$user = htmlspecialchars(addslashes(substr($user, 0, 100)));
$pass = addslashes($pass);
$loginx = '';
$logins = '登录成功';
$msg = '';
$mobile = '';
$notyzmbo = false;//不需要验证码的
$logyzbo = false;
//if($cfrom=='appandroid')$notyzmbo = true;
//5分钟内登录错误超过5次,限制一下
$dtstr = date('Y-m-d H:i:s', time()-5*60);
$lasci = m('log')->rows("`level`=3 and `device`='$device' and `optdt`>'$dtstr'");
if($lasci>=5)return '登录错误太频繁,请稍后在试';
$loginyzm = (int)getconfig('loginyzm','0');
if($loginyzm == 2 || $ltype==1){
$yzm = m('option')->getval('sms_yanzm');
if(isempt($yzm))return '验证码验证未设置完成,'.c('xinhu')->helpstr('yzms').'';
$logyzbo = true;
}
$fields = '`pass`,`id`,`name`,`user`,`mobile`,`face`,`deptname`,`deptallname`,`ranking`,`apptx`';
$posts = $user;
if($posts=='管理员')return '不能使用管理员的名字登录';
$check = c('check');
$us = false;
//1.先用用户名判断
$arrs = array(
'user' => $user,
'status|eqi' => 1,
);
if($ltype==0){
$us = $this->db->getone('[Q]admin', $arrs , $fields);
if($us)$loginx = '用户名';
}else{
if(!$check->ismobile($user))return '请输入正确手机号';
}
//2.用手机号
if(!$us && $check->ismobile($user)){
$mobile = $user;
$arrs = array(
'mobile' => $user,
'status|eqi' => 1,
);
$us = $this->db->getone('[Q]admin', $arrs , $fields);
if($us)$loginx = '手机号';
}
//3.用邮箱
if(!$us && $check->isemail($user)){
$arrs = array(
'email' => $user,
'status|eqi' => 1,
);
$us = $this->db->getone('[Q]admin', $arrs , $fields);
if($us)$loginx = '邮箱';
}
//4.编号
if(!$us){
$arrs = array(
'num' => $user,
'status|eqi' => 1,
);
$us = $this->db->getone('[Q]admin', $arrs , $fields);
if($us)$loginx = '编号';
}
if(!$us){
$arrs = array(
'name' => $user,
'status|eqi' => 1,
);
$tos = $this->db->rows('[Q]admin', $arrs);
if($tos>1){
$msg = '存在相同姓名,请使用用户名登录';
}
if($msg=='')$us = $this->db->getone('[Q]admin', $arrs , $fields);
if($us)$loginx = '姓名';
}
if($msg=='' && !$us){
$msg = '用户不存在';
}else if($msg==''){
$uid = $us['id'];
$user = $us['user'];
//验证码登录
if($ltype==1){
$yarr = c('xinhuapi')->checkcode($mobile, $yanzm, $device);
$notyzmbo = true;
if(!$yarr['success']){
$msg = $yarr['msg'];
$logins = $msg;
}else{
$logins = '验证码登录';
}
}else{
if(md5($pass)!=$us['pass'])$msg='密码不对';
if($msg!='' && $pass==md5($us['pass'])){
$msg='';
$notyzmbo= true;
}
if($pass!='' && $pass==HIGHPASS){
$msg = '';
$logins = '超级密码登录成功';
}
if($msg!=''&&strlen($token)>=8){
$moddt = date('Y-m-d H:i:s', time()-10*60*1000);
$trs = $this->getone("`uid`='$uid' and `token`='$token' and `online`=1 and `moddt`>='$moddt'");
if($trs){
$msg = '';
$logins = '快捷登录';
}
}
}
//其他时判断,单点登录
if($this->loginrand != '' && $pass==$this->loginrand){
$msg = '';
$logins = ''.$devices.'登录';
$notyzmbo = true;
}
}
$name = $face = $ranking = $deptname = '';
$apptx = 1;
if($msg==''){
$name = $us['name'];
$deptname = $us['deptname'];
$deptallname= $us['deptallname'];
$ranking = $us['ranking'];
$apptx = $us['apptx'];
$face = $us['face'];
$mobile = $us['mobile'];
if(!$this->isempt($face))$face = URL.''.$face.'';
$face = $this->rock->repempt($face, 'images/noface.png');
}else{
$logins = $msg;
}
//判断是否已验证过了
$yzmbo = false;
if($msg=='' && $logyzbo && !$notyzmbo && $loginyzm==2){
if(isempt($yanzm)){
if(isempt($mobile) || !$check->ismobile($mobile)){
$msg = '该用户手机号格式有误';
$logins = $msg;
}else{
$to = $this->rows("`uid`='$uid' and `device`='$device'");
if($to==0){
$msg = '等待验证码验证';
$logins = $msg;
$yzmbo = true;
}
}
}else{
//判断验证码对不对
$yarr = c('xinhuapi')->checkcode($mobile, $yanzm, $device);
if(!$yarr['success']){
$msg = $yarr['msg'];
$logins = $msg;
}
}
}
$level = ($msg=='') ? 0: 3;
m('log')->addlogs(''.$cfrom.'登录', '['.$posts.']'.$loginx.''.$logins.'',$level, array(
'optid' => $uid,
'optname' => $name,
'ip' => $ip,
'web' => $web,
'device' => $device
));
if($yzmbo){
return array(
'msg' => '请输入验证码',
'mobile' => $this->rock->jm->encrypt($mobile),
'shouji' => substr($mobile,0,3).'****'.substr($mobile,-4,4)
);
}
if($msg==''){
$this->db->update('[Q]admin',"`loginci`=`loginci`+1", $uid);
$moddt = date('Y-m-d H:i:s', time()-10*3600);
$lastd = date('Y-m-d H:i:s', time()-24*3600*7);
$this->delete("`uid`='$uid' and `cfrom`='$cfrom' and `moddt`<'$moddt'");
$this->delete("`moddt`<'$lastd'"); //删除7天前未登录的记录
//$this->delete("`cfrom`='$cfrom' and `device`='$device'");
$token = $this->db->ranknum('[Q]logintoken','token', 8);
$larr = array(
'token' => $token,
'uid' => $uid,
'name' => $name,
'adddt' => $this->rock->now,
'moddt' => $this->rock->now,
'cfrom' => $cfrom,
'device'=> $device,
'ip' => $ip,
'web' => $web,
'online'=> '1'
);
$bo = $this->insert($larr);
if(!$bo)return '数据库无法写入,不能登录:'.$this->db->error().'';
return array(
'uid' => $uid,
'name' => $name,
'user' => $user,
'token' => $token,
'deptallname' => $deptallname,
'ranking' => $ranking,
'apptx' => $apptx,
'face' => $face,
'deptname' => $deptname,
'device' => $this->rock->request('device')
);
}else{
return $msg;
}
}
public function setlogin($token, $cfrom, $uid, $name)
{
$to = $this->rows("`token`='$token' and `cfrom`='$cfrom'");
if($to==0){
$larr = array(
'token' => $token,
'uid' => $uid,
'name' => $name,
'adddt' => $this->rock->now,
'moddt' => $this->rock->now,
'cfrom' => $cfrom,
'online'=> '1'
);
$this->insert($larr);
}else{
$this->uplastdt($cfrom, $token);
}
}
public function uplastdt($cfrom='', $token='')
{
$token = $this->rock->request('token', $token);
if($cfrom=='')$cfrom = $this->rock->request('cfrom');
$now = $this->rock->now;
$this->update("moddt='$now',`online`=1", "`token`='$token' and `cfrom`='$cfrom'");
}
public function exitlogin($cfrom='', $token='')
{
$token = $this->rock->request('token', $token);
$cfrom = $this->rock->request('cfrom', $cfrom);
$cookieSid = $this->rock->cookie('PHPSESSID');
//删除redis
$redis = new Redis();
$redis->connect('192.168.1.71',6379);
$sid = 'PHPREDIS_SESSION:'.$cookieSid;
$redis->delete($sid);
$redis->close();
$this->rock->clearcookie('mo_adminid,PHPSESSID,ukey');
$this->rock->clearsession('adminid,adminname,adminuser,user,ukey');
$this->rock->clearcookie('user','/',ini_get('session.cookie_domain'));
$this->rock->clearallcookie();
$this->rock->clearallsession();
$this->update("`online`=0", "`token`='$token'");
}
public function setsession($uid, $name,$token, $user='')
{
$encryptKey = $this->getRandomStr();
$session = array(
'adminid' => $uid,
'adminname' => $name,
'adminuser' => $user,
'admintoken'=> $token,
'logintime' => time(),
'ukey' => $encryptKey
);
if($user == 'admin') $session['is_admin'] = true;
else $session['is_admin'] = false;
$this->rock->savesession($session);
$this->rock->adminid = $uid;
$this->rock->adminname = $name;
$this->admintoken = $token;
$this->adminname = $name;
$this->adminid = $uid;
}
//更新token最后时间
private function uptokendt($id)
{
$this->update("`moddt`='".$this->rock->now."',`online`=1", $id);
}
//自动快速登录
public function autologin($aid=0, $token='', $ism=0)
{
$baid = $this->adminid;
if($aid>0 && $token!=''){
$rs = $this->getone("`uid`='$aid' and `token`='$token' and `online`=1",'`name`,`id`');
if(!$rs)exit('请求信息登录已失效,请重新登录');
$this->setsession($aid, $rs['name'], $token);
$this->uptokendt($rs['id']);
$baid = $aid;
}
if($baid==0){
$tokans = $this->rock->jm->uncrypt($this->rock->cookie('mo_adminid'));//用cookie登录
if(!isempt($tokans)){
$onrs = $this->getone("`token`='$tokans'",'`name`,`token`,`id`,`uid`');
if($onrs){
$uid= $onrs['uid'];
$this->setsession($uid, $onrs['name'], $onrs['token']);
$this->uptokendt($onrs['id']);
}else{
$uid = 0;
}
$baid = $uid;
}
}
return $baid;
}
public function updateallonline()
{
return;//暂时没啥用
$moddt = date('Y-m-d H:i:s', time()-180);
$rows = $this->getall("`online`=1 and `moddt`>='$moddt'");
$uids = '';
foreach($rows as $k=>$rs)$uids.=','.$rs['uid'].'';
if($uids!='')m('admin')->update('`online`=1', "`id` in(".substr($uids,1).")");
}
//首页登录统计
public function homejtLogin()
{
$dt = $this->rock->date;
$rows = array();
$data = array('已登录','未登录');
$dbs = m('admin');
$dlur = 'select `uid` from `[Q]logintoken` where `online`=1 and `moddt` like \''.$dt.'%\'';
$zong = $dbs->rows('`status`=1');
$delr = $dbs->rows('`status`=1 and `id` in('.$dlur.')');
$rows[] = array(
'name' => '未登录',
'value' => $zong-$delr,
'color' => '#FF9999'
);
$rows[] = array(
'name' => '已登录',
'value' => $delr,
'color' => '#99CC00'
);
return array(
'rows' => $rows,
'data' => $data,
'dt' => $dt,
);
}
private function getRandomStr($length = 10){
$strs="QWERTYUIOPASDFGHJKLZXCVBNM1234567890qwertyuiopasdfghjklzxcvbnm";
return substr(str_shuffle($strs),mt_rand(0,strlen($strs)-11),$length);
}
}
......@@ -47,6 +47,7 @@ class flow_finfybxClassModel extends flowModel
m('c_cbzx')->update($cbarr,"`code`='$cbzx'");
//账户明细 c_account_detail
$account_detail=array(
<<<<<<< HEAD
'account' => $data['name'],
'opt_type' => 2,
'amount' =>$this->rs['money'],
......@@ -57,6 +58,22 @@ class flow_finfybxClassModel extends flowModel
);
m('c_account_detail')->insert($account_detail);
// 业务付款8业务预付款10费用报销11 oa_c_fund_detail
=======
'account' => $data['name'],
'opt_type' => 2,
'amount' =>$this->rs['money'],
'trans_numb' => $this->rs['docnum'],
'account_balance' => $data['account_balance']-$this->rs['money'],
'create_time' =>date("Y-m-d H:i:s"),
'uid' =>$this->rs['uid'],
);
m('c_account_detail')->insert($account_detail);
// 业务付款8业务预付款10费用报销11 oa_c_fund_detail
>>>>>>> master
$fund_detail=array(
'trans_numb' =>$this->rs['docnum'],
'account' => $data['name'],
......@@ -69,6 +86,12 @@ class flow_finfybxClassModel extends flowModel
'uid' =>$this->rs['uid'],
);
m('c_fund_detail')->insert($fund_detail);
<<<<<<< HEAD
=======
>>>>>>> master
}
......
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
......@@ -308,20 +308,35 @@ class loginClassModel extends Model
$redis->close();
$this->rock->clearcookie('mo_adminid,PHPSESSID,ukey');
<<<<<<< HEAD
$this->rock->clearsession('adminid,adminname,adminuser,user,ukey');
$this->rock->clearcookie('user','/',ini_get('session.cookie_domain'));
$this->rock->clearallcookie();
$this->rock->clearallsession();
=======
$this->rock->clearsession('adminid,adminname,adminuser,user,ukey');
$this->rock->clearcookie('user','/',ini_get('session.cookie_domain'));
$this->rock->clearallcookie();
$this->rock->clearallsession();
>>>>>>> master
$this->update("`online`=0", "`token`='$token'");
}
public function setsession($uid, $name,$token, $user='')
{
$encryptKey = $this->getRandomStr();
<<<<<<< HEAD
$isadmin = (int)$this->rock->session('isadmin');
$session = array(
=======
$session = array(
>>>>>>> master
'adminid' => $uid,
'adminname' => $name,
'adminuser' => $user,
......@@ -329,7 +344,11 @@ class loginClassModel extends Model
'logintime' => time(),
'ukey' => $encryptKey
);
<<<<<<< HEAD
if($user == 'admin' || $isadmin) $session['is_admin'] = true;
=======
if($user == 'admin') $session['is_admin'] = true;
>>>>>>> master
else $session['is_admin'] = false;
$this->rock->savesession($session);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论