提交 ba46d2ba authored 作者: wangkr's avatar wangkr

daupte

上级 d6064a80
File mode changed from 100644 to 100755
config/config.php merge=ours
webmain/model/loginModel.php merge=ours
webmain/webmainConfig.php merge=ours
.idea/ merge=ours
images/OA二维码.png merge=ours
File mode changed from 100644 to 100755
...@@ -57,4 +57,5 @@ ...@@ -57,4 +57,5 @@
14、nwjs的PC客户端框架:https://nwjs.io/ 14、nwjs的PC客户端框架:https://nwjs.io/
15、iconfont图标库:http://www.iconfont.cn/ 15、iconfont图标库:http://www.iconfont.cn/
16、腾讯地图:http://map.qq.com/ 16、腾讯地图:http://map.qq.com/
16、nodejs:https://nodejs.org/ 16、nodejs:https://nodejs.org/
\ No newline at end of file 17
\ No newline at end of file
...@@ -37,3 +37,4 @@ ...@@ -37,3 +37,4 @@
客户名称:北京闪思科技有限公司保存接口失败 客户编号:CUST24055保存接口成功 执行时间:3.2373831272125 s 客户名称:北京闪思科技有限公司保存接口失败 客户编号:CUST24055保存接口成功 执行时间:3.2373831272125 s
客户编号:CUST24055提交接口成功 执行时间:1.2542500495911 s 客户编号:CUST24055提交接口成功 执行时间:1.2542500495911 s
客户编号:CUST24055审核接口成功 执行时间:0.16617202758789 s 客户编号:CUST24055审核接口成功 执行时间:0.16617202758789 s
客户名称:北京正佳伟业科技有限公司保存接口失败 客户名称:余怀领保存接口失败
\ No newline at end of file
File mode changed from 100644 to 100755
...@@ -140,3 +140,7 @@ ...@@ -140,3 +140,7 @@
供应商名称:北京众唐家园物业管理有限公司保存接口失败 供应商编号:VEN05007保存接口成功 执行时间:3.5164778232574 s 供应商名称:北京众唐家园物业管理有限公司保存接口失败 供应商编号:VEN05007保存接口成功 执行时间:3.5164778232574 s
供应商编号:VEN05007提交接口成功 执行时间:1.2535090446472 s 供应商编号:VEN05007提交接口成功 执行时间:1.2535090446472 s
供应商编号:VEN05007审核接口成功 执行时间:0.16562795639038 s 供应商编号:VEN05007审核接口成功 执行时间:0.16562795639038 s
供应商编号:VEN05017保存接口成功 执行时间:1.8839001655579 s
供应商编号:VEN05017提交接口成功 执行时间:1.0340170860291 s
供应商编号:VEN05017审核接口成功 执行时间:0.1566698551178 s
供应商名称:中建物业建筑有限公司保存接口失败 供应商名称:北京起凡通信工程有限公司保存接口失败 供应商名称:北京雪莲集团有限公司北京衬衫厂保存接口失败
\ No newline at end of file
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
//流程模块【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(){
}
\ No newline at end of file
...@@ -25,22 +25,21 @@ function initbodys(){ ...@@ -25,22 +25,21 @@ function initbodys(){
$(form('bankcode')).find("option").remove() $(form('bankcode')).find("option").remove()
}) })
c.onselectdata['part_c']=function(d){
form('partc_name').value = d.value;
};
c.onselectdatabefore=function(fid,zb){ c.onselectdatabefore=function(fid,zb){
var receive = $("select[name='receive'] option:selected").val(); var receive = $("select[name='receive'] option:selected").val();
var financetype = $("select[name='finance_type'] option:selected").val(); var financetype = $("select[name='finance_type'] option:selected").val();
if(fid == 'part_b' || fid == 'part_a') { if(fid == 'part_b' || fid == 'part_a' || fid == 'part_c') {
if(financetype == '') { if(financetype == '') {
return '请选择类型'; return '请选择类型';
} }
if (receive != 1 && receive != 2) { if (receive == '') {
return '请选择收款方,否则无法获取银行账号信息'; return '请选择收款方,否则无法获取银行账号信息';
} }
} }
return {'receive':receive} return {'receive':receive,'financetype':financetype}
} }
...@@ -76,6 +75,22 @@ function initbodys(){ ...@@ -76,6 +75,22 @@ function initbodys(){
},'post,json'); },'post,json');
} }
}; };
c.onselectdata['part_c']=function(d){
var receive = $("select[name='receive'] option:selected").val();
form('partc_name').value = d.value;
if (receive == 3) {
$(form('bankcode')).find("option").remove()
js.ajax(geturlact('getbankcode'),{numb:d.value,receive:receive},function(ret){
if(ret.length == 0) {
$(form('bankcode')).find("option").remove()
return '未找到银行信息,请到供应商/客户 补充银行信息';
}
js.setselectdata(form('bankcode'),ret,'value')
},'post,json');
}
};
bindeventchange() bindeventchange()
} }
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
function initbodys(){ function initbodys(){
if(!form('applydt'))return; if(!form('applydt'))return;
$.getScript('js/rmb.js'); $.getScript('js/rmb.js');
form('applydt').readOnly=true; form('applydt').readOnly=true;
form('money').readOnly=true; form('money').readOnly=true;
addchengesss(); addchengesss();
if(mid=='0'){ if(mid=='0'){
if(form('cardid'))js.ajax(geturlact('getlast'),{},function(d){ if(form('cardid'))js.ajax(geturlact('getlast'),{},function(d){
if(d){ if(d){
form('paytype').value=d.paytype; form('paytype').value=d.paytype;
form('cardid').value=d.cardid; form('cardid').value=d.cardid;
form('openbank').value=d.openbank; form('openbank').value=d.openbank;
form('fullname').value=d.fullname; form('fullname').value=d.fullname;
} }
},'get,json'); },'get,json');
} }
} }
function addchengesss(){ function addchengesss(){
if(isedit==0)return; if(isedit==0)return;
$("[name^='sdt0_']").unbind('change').change(function(){ $("[name^='sdt0_']").unbind('change').change(function(){
// cchangtongss(); // cchangtongss();
}); });
$("[name^='name0_']").unbind('change').change(function(){ $("[name^='name0_']").unbind('change').change(function(){
// cchangtongss(); // cchangtongss();
}); });
$("[name^='money0_']").unbind('change').change(function(){ $("[name^='money0_']").unbind('change').change(function(){
// cchangtongss(); // cchangtongss();
}); });
}
function changesubmit(){ }
var jg = parseFloat(form('money').value); function changesubmit(d){
if(jg<=0)return '报销金额不能小于0'; var jg = parseFloat(form('money').value);
} if(jg<=0)return '报销金额不能小于0';
function changesubmitbefore(){
// cchangtongss(); var subs = d.sub_totals0;
} var reg = new RegExp(/^[0-9a-zA-Z]+$/);
function eventaddsubrows(){ for(i=0;i<subs;i++){
// cchangtongss(); var skey = 'invoice0_' + i;
addchengesss(); console.log(d[skey])
} if(!reg.test(d[skey])){
function eventdelsubrows(){ return '第'+ (i+1) +'条费用明细,发票号只能填写英文字母与数字'
// cchangtongss(); }
} }
}
function changesubmitbefore(){
addchengesss()
}
function eventaddsubrows(){
// cchangtongss();
addchengesss();
}
function eventdelsubrows(){
// cchangtongss();
}
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -22,7 +22,7 @@ function initbodys(){ ...@@ -22,7 +22,7 @@ function initbodys(){
for(i=0;i<da.length;i++){ for(i=0;i<da.length;i++){
d = da[i]; d = da[i];
bo = false; bo = false;
for(j=0;j<dao.length;j++)if(dao[j].aid==d.value)bo=true; // for(j=0;j<dao.length;j++)if(dao[j].aid==d.value)bo=true;
oii++; oii++;
if(!bo){ if(!bo){
if(oii>0){ if(oii>0){
...@@ -38,15 +38,16 @@ function initbodys(){ ...@@ -38,15 +38,16 @@ function initbodys(){
aid:d.value aid:d.value
}); });
$(form('count'+nam[2]+'')).attr('max', d.stock); $(form('count'+nam[2]+'')).attr('max', d.stock);
}else{ }
oii--; // else{
if(i==0){ // oii--;
this.setrowdata(nam[0],nam[1],{ // if(i==0){
temp_aid:'', // this.setrowdata(nam[0],nam[1],{
aid:'0' // temp_aid:'',
}); // aid:'0'
} // });
} // }
// }
} }
} }
} }
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
//流程模块【oafk.付款申请单】下录入页面自定义js页面,初始函数 //流程模块【oafk.付款申请单】下录入页面自定义js页面,初始函数
function initbodys(){ function initbodys(){
c.onselectdata['payee']=function(d){ c.onselectdata['payee']=function(d){
js.ajax(geturlact('getbankinfo'),{numb:d.value},function(ret){ js.ajax(geturlact('getbankinfo'),{numb:d.value},function(ret){
if(ret.status == 1){ if(ret.status == 1){
$(form('fkinfo')).text(ret.info); $(form('fkinfo')).text(ret.info);
} else { } else {
return ret.info; return ret.info;
} }
},'post,json'); },'post,json');
} }
}
function changesubmit(d){
var subs = d.sub_totals0;
var reg = new RegExp(/^[0-9a-zA-Z]+$/);
for(i=0;i<subs;i++){
var skey = 'receipt_id0_' + i;
console.log(d[skey])
if(!reg.test(d[skey])){
return '第'+ (i+1) +'条款项明细,发票号只能填写英文字母与数字'
}
}
} }
\ No newline at end of file
//流程模块【oayfk.预付款申请单】下录入页面自定义js页面,初始函数 //流程模块【oayfk.预付款申请单】下录入页面自定义js页面,初始函数
function initbodys(){ function initbodys(){
}
function changesubmit(d){
var subs = d.sub_totals0;
var reg = new RegExp(/^[0-9a-zA-Z]+$/);
for(i=0;i<subs;i++){
var skey = 'receipt_id0_' + i;
if(d[skey] != ''){
if(!reg.test(d[skey])){
return '第'+ (i+1) +'条费用明细,发票号只能填写英文字母与数字'
}
}
}
} }
\ No newline at end of file
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
<?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){
}
}
\ No newline at end of file
...@@ -48,9 +48,14 @@ class mode_contract_listClassAction extends inputAction{ ...@@ -48,9 +48,14 @@ class mode_contract_listClassAction extends inputAction{
$sql = ' number = "'.$numb .'"'; $sql = ' number = "'.$numb .'"';
$cdata = m($model)->getone($sql,'id,name'); $cdata = m($model)->getone($sql,'id,name');
if($cdata){
$sql = "select CONCAT('开户银行: ',`open_bank_name` ,' -- 银行账号: ',`bank_code` ) as `name`,`bank_code` as `value` from [Q]".$model."_bank_info where mid = ".$cdata['id']; $sql = "select CONCAT('开户银行: ',`open_bank_name` ,' -- 银行账号: ',`bank_code` ) as `name`,`bank_code` as `value` from [Q]".$model."_bank_info where mid = ".$cdata['id'];
$data = $this->db->getall($sql); $data = $this->db->getall($sql);
}else{
$data=[];
}
$this->returnjson($data); $this->returnjson($data);
} }
......
<?php
/**
* 此文件是流程模块【contract_list.合同管理】对应控制器接口文件。
*/
class mode_contract_listClassAction 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){
if($addbo){
//保存员工姓名
$arr['staffname'] = $arr['staff'];
//保存业务线
$arr['businame'] = $arr['busi_line'];
//保存创建的业务部门
$arr['deptname'] = $arr['departmentname'];
}
return ['rows'=>$arr];
}
/**
* 重写函数:保存后处理,主要保存其他表数据
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id
* $addbo Boolean 是否添加时
*/
protected function saveafter($table, $arr, $id, $addbo){
}
public function getbankcodeAjax(){
$numb = $this->post('numb');
//甲方收款
$model = 'supplier';
$sql = ' number = "'.$numb .'"';
$cdata = m($model)->getone($sql,'id,name');
if($cdata){
$sql = "select CONCAT('开户银行: ',`open_bank_name` ,' -- 银行账号: ',`bank_code` ) as `name`,`bank_code` as `value` from [Q]".$model."_bank_info where mid = ".$cdata['id'];
$data = $this->db->getall($sql);
}else{
$data=[];
}
$this->returnjson($data);
}
public function getbankcodebymidAjax(){
$mid = $this->post('mid');
$c = m('c_contract')->getone('id = '.$mid,'id,bankcode,parta_name,partb_name,partc_name,receive');
$ret = [];
$num = '';
if($c){
$ret['bank'] = $c['bankcode'];
if($c['reveice'] == 1){
$num = $c['parta_name'];
} elseif($c['reveice'] == 2) {
$num = $c['partb_name'];
}else{
$num = $c['partc_name'];
}
$s = m('supplier')->getone('number = "'.$num.'"','id');
if($s){
$sql = "select CONCAT('开户银行: ',`open_bank_name` ,' -- 银行账号: ',`bank_code` ) as `name`,`bank_code` as `value` from [Q]supplier_bank_info where mid = ".$s['id'];
$ret['data'] = $this->db->getall($sql);
}
}
$this->returnjson($ret);
}
//模拟客户接口
public function getcustomerAjax(){
$name = $this->post('cname');
$data = m('option')->getone('`name` like "'.$name.'%"','id,name');
$this->returnjson($data);
}
//格式化子表数据
public function savesubbefore($data,$tables)
{
if($tables == 'c_rhythm'){
if (count($data) >= 1) {
foreach ($data as $key => $arr) {
if ($arr['amount'] != '') {
$data[$key]['cycle_numb'] = $key + 1;
}
}
}
}
return $data;
}
public function gettypesAjax(){
$pid = $this->post('pid');
if($pid == 0)
$data = m('option')->getall(' pid in (676,955)','num as value,name');
else
$data = m('option')->getall(' pid = "'.$pid.'"','num as value,name');
$this->returnjson($data);
}
public function getcontractinfoAjax(){
$id = $this->post('id');
$data = m('c_contract')->getone(' id = '.$id);
$this->returnjson($data);
}
public function getparta(){
$receive = $this->get('receive');
$customer = m('common')->getcontract_customer();
$supplier = m('common')->getcontract_supplier();
$data=array_merge($customer,$supplier);
$this->returnjson($data);
}
public function getpartb(){
$receive = $this->get('receive');
$customer = m('common')->getcontract_customer();
$supplier = m('common')->getcontract_supplier();
$data=array_merge($customer,$supplier);
$this->returnjson($data);
}
public function getpartc(){
$customer = m('common')->getcontract_customer();
$supplier = m('common')->getcontract_supplier();
$data=array_merge($customer,$supplier);
$this->returnjson($data);
}
}
\ No newline at end of file
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -6,14 +6,23 @@ ...@@ -6,14 +6,23 @@
class mode_finfybxClassAction extends inputAction{ class mode_finfybxClassAction extends inputAction{
protected function savebefore($table, $arr, $id, $addbo){ // protected function savebefore($table, $arr, $id, $addbo){
// $cbzxid= $arr['cbzxid'];
} // $model = 'c_fund_account';
// $sql = " cost_id ='$cbzxid' and status = 1 and is_default=1";
// $data = m($model)->getone($sql,'id,account_balance');
// if(!$data){
// return "未检测到该成本中心默认扣款账户";
// }
// // if($data['account_balance'] < $arr['amountOfThisPayment']){
// // return "账户余额不足";
// // }
// }
protected function saveafter($table, $arr, $id, $addbo){
}
public function getlastAjax() public function getlastAjax()
{ {
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -10,11 +10,11 @@ class mode_goodlyClassAction extends inputAction{ ...@@ -10,11 +10,11 @@ class mode_goodlyClassAction extends inputAction{
$this->sssaid = '0'; $this->sssaid = '0';
foreach($data as $k=>$rs){ foreach($data as $k=>$rs){
if($rs['count']==0)return '行['.($k+1).']的数量不能为0'; if($rs['count']==0)return '行['.($k+1).']的数量不能为0';
if(!isset($cbarr[$rs['aid']])){ // if(!isset($cbarr[$rs['aid']])){
$cbarr[$rs['aid']] = 1; // $cbarr[$rs['aid']] = 1;
}else{ // }else{
return '行['.($k+1).']的物品已申请了'; // return '行['.($k+1).']的物品已申请了';
} // }
$this->sssaid.=','.$rs['aid'].''; $this->sssaid.=','.$rs['aid'].'';
} }
} }
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -13,7 +13,21 @@ class mode_oafkClassAction extends inputAction{ ...@@ -13,7 +13,21 @@ class mode_oafkClassAction extends inputAction{
* return array('msg'=>'错误提示内容','rows'=> array()) 可返回空字符串,或者数组 rows 是可同时保存到数据库上数组 * return array('msg'=>'错误提示内容','rows'=> array()) 可返回空字符串,或者数组 rows 是可同时保存到数据库上数组
*/ */
protected function savebefore($table, $arr, $id, $addbo){ protected function savebefore($table, $arr, $id, $addbo){
// $cbzxid= $arr['cbzx_code'];
// $model = 'c_fund_account';
// $sql = " cost_id ='$cbzxid' and status = 1 and is_default=1";
// // var_dump($sql);die;
// $data = m($model)->getone($sql,'id,account_balance');
// if(!$data){
// return "未检测到该成本中心默认扣款账户";
// }
// if($data['account_balance'] < $arr['amountOfThisPayment']){
// return "账户余额不足";
// }
} }
/** /**
...@@ -23,9 +37,7 @@ class mode_oafkClassAction extends inputAction{ ...@@ -23,9 +37,7 @@ class mode_oafkClassAction extends inputAction{
* $id Int 对应表上记录Id * $id Int 对应表上记录Id
* $addbo Boolean 是否添加时 * $addbo Boolean 是否添加时
*/ */
protected function saveafter($table, $arr, $id, $addbo){
}
public function getbankinfoAjax() public function getbankinfoAjax()
{ {
......
...@@ -12,19 +12,44 @@ class mode_oayfkClassAction extends inputAction{ ...@@ -12,19 +12,44 @@ class mode_oayfkClassAction extends inputAction{
* $addbo Boolean 是否添加时 * $addbo Boolean 是否添加时
* return array('msg'=>'错误提示内容','rows'=> array()) 可返回空字符串,或者数组 rows 是可同时保存到数据库上数组 * return array('msg'=>'错误提示内容','rows'=> array()) 可返回空字符串,或者数组 rows 是可同时保存到数据库上数组
*/ */
protected function savebefore($table, $arr, $id, $addbo){ protected function savebefore($table, $arr, $id, $addbo){
// if($data['account_balance'] < $arr['amountOfThisPayment']){
// return "账户余额不足";
// }
} }
// protected function savesubbefore($data,$tables){
// if($tables == 'c_fund_details_yfk'){
// if (count($data) > 1) {
// foreach ($data as $key => $value) {
// $cbzxid= $value['cbzx_code'];
// $model = 'c_fund_account';
// $sql = " cost_id ='$cbzxid' and status = 1 and is_default=1";
// $data = m($model)->getone($sql,'id,account_balance');
// if($data===false){
// return "未检测到该成本中心默认扣款账户";
// }
// }
// }else{
// $cbzxid= $data['cbzx_code'];
// $model = 'c_fund_account';
// $sql = " cost_id ='$cbzxid' and status = 1 and is_default=1";
// $data = m($model)->getone($sql,'id,account_balance');
// if($data===false){
// return "未检测到该成本中心默认扣款账户";
// }
// }
// }
// return $data;
// }
/**
* 重写函数:保存后处理,主要保存其他表数据
* $table String 对应表名
* $arr Array 表单参数
* $id Int 对应表上记录Id
* $addbo Boolean 是否添加时
*/
protected function saveafter($table, $arr, $id, $addbo){
}
} }
\ No newline at end of file
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
<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> <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 \ 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
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
<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> <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 \ No newline at end of file
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -11,7 +11,7 @@ $(document).ready(function(){ ...@@ -11,7 +11,7 @@ $(document).ready(function(){
{params} {params}
var modenum = 'account_detail',modename='账户明细',isflow=0,modeid='114',atype = params.atype,pnum=params.pnum,modenames=''; var modenum = 'account_detail',modename='账户明细',isflow=0,modeid='114',atype = params.atype,pnum=params.pnum,modenames='';
if(!atype)atype='';if(!pnum)pnum=''; 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 = { var c = {
reload:function(){ reload:function(){
...@@ -210,7 +210,7 @@ $(document).ready(function(){ ...@@ -210,7 +210,7 @@ $(document).ready(function(){
fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('Y19hY2NvdW50X2RldGFpbA::'), fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('Y19hY2NvdW50X2RldGFpbA::'),
url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow', url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow',
params:{atype:atype}, 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}' text:'',dataIndex:'caozuo',callback:'opegs{rand}'
}], }],
itemdblclick:function(){ itemdblclick:function(){
......
...@@ -11,7 +11,7 @@ $(document).ready(function(){ ...@@ -11,7 +11,7 @@ $(document).ready(function(){
{params} {params}
var modenum = 'account_list',modename='资金账户',isflow=0,modeid='113',atype = params.atype,pnum=params.pnum,modenames=''; var modenum = 'account_list',modename='资金账户',isflow=0,modeid='113',atype = params.atype,pnum=params.pnum,modenames='';
if(!atype)atype='';if(!pnum)pnum=''; 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 = { var c = {
reload:function(){ reload:function(){
...@@ -210,7 +210,7 @@ $(document).ready(function(){ ...@@ -210,7 +210,7 @@ $(document).ready(function(){
fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('Y19mdW5kX2FjY291bnQ:'), fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('Y19mdW5kX2FjY291bnQ:'),
url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow', url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow',
params:{atype:atype}, 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}' text:'',dataIndex:'caozuo',callback:'opegs{rand}'
}], }],
itemdblclick:function(){ 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(){ ...@@ -11,7 +11,7 @@ $(document).ready(function(){
{params} {params}
var modenum = 'cost_center',modename='成本中心',isflow=0,modeid='117',atype = params.atype,pnum=params.pnum,modenames=''; var modenum = 'cost_center',modename='成本中心',isflow=0,modeid='117',atype = params.atype,pnum=params.pnum,modenames='';
if(!atype)atype='';if(!pnum)pnum=''; 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 = { var c = {
reload:function(){ reload:function(){
...@@ -210,7 +210,7 @@ $(document).ready(function(){ ...@@ -210,7 +210,7 @@ $(document).ready(function(){
fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('Y19jYnp4'), fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('Y19jYnp4'),
url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow', url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow',
params:{atype:atype}, 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}' text:'',dataIndex:'caozuo',callback:'opegs{rand}'
}], }],
itemdblclick:function(){ itemdblclick:function(){
......
File mode changed from 100644 to 100755
...@@ -11,7 +11,7 @@ $(document).ready(function(){ ...@@ -11,7 +11,7 @@ $(document).ready(function(){
{params} {params}
var modenum = 'fund_deposit',modename='资金入账',isflow=0,modeid='115',atype = params.atype,pnum=params.pnum,modenames=''; var modenum = 'fund_deposit',modename='资金入账',isflow=0,modeid='115',atype = params.atype,pnum=params.pnum,modenames='';
if(!atype)atype='';if(!pnum)pnum=''; 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 = { var c = {
reload:function(){ reload:function(){
...@@ -210,7 +210,7 @@ $(document).ready(function(){ ...@@ -210,7 +210,7 @@ $(document).ready(function(){
fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('Y19mdW5kX2RldGFpbA::'), fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('Y19mdW5kX2RldGFpbA::'),
url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow', url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow',
params:{atype:atype}, 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}' text:'',dataIndex:'caozuo',callback:'opegs{rand}'
}], }],
itemdblclick:function(){ itemdblclick:function(){
......
...@@ -9,9 +9,9 @@ defined('HOST') or die ('not access'); ...@@ -9,9 +9,9 @@ defined('HOST') or die ('not access');
<script> <script>
$(document).ready(function(){ $(document).ready(function(){
{params} {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=''; 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 = { var c = {
reload:function(){ reload:function(){
...@@ -210,7 +210,7 @@ $(document).ready(function(){ ...@@ -210,7 +210,7 @@ $(document).ready(function(){
fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('Y19mdW5kX2RldGFpbA::'), fanye:true,modenum:modenum,modename:modename,statuschange:false,tablename:jm.base64decode('Y19mdW5kX2RldGFpbA::'),
url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow', url:c.storeurl(),storeafteraction:'storeaftershow',storebeforeaction:'storebeforeshow',
params:{atype:atype}, 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}' text:'',dataIndex:'caozuo',callback:'opegs{rand}'
}], }],
itemdblclick:function(){ itemdblclick:function(){
...@@ -255,9 +255,9 @@ $(document).ready(function(){ ...@@ -255,9 +255,9 @@ $(document).ready(function(){
<tr> <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 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> <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>
<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"> <td style="padding-left:10px">
<div style="white-space:nowrap"> <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> <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'); ...@@ -9,7 +9,7 @@ defined('HOST') or die ('not access');
<script> <script>
$(document).ready(function(){ $(document).ready(function(){
{params} {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=''; 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= []; 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= [];
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -11,7 +11,7 @@ $(document).ready(function(){ ...@@ -11,7 +11,7 @@ $(document).ready(function(){
{params} {params}
var modenum = 'oayfk',modename='预付款申请单',isflow=1,modeid='103',atype = params.atype,pnum=params.pnum,modenames=''; var modenum = 'oayfk',modename='预付款申请单',isflow=1,modeid='103',atype = params.atype,pnum=params.pnum,modenames='';
if(!atype)atype='';if(!pnum)pnum=''; 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":"fkinfo","name":"\u6536\u6b3e\u4eba\u4fe1\u606f","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"0"},{"fields":"userid","name":"\u7528\u6237\u7f16\u53f7","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"paymentMethod","name":"\u4ed8\u6b3e\u65b9\u5f0f","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"payee","name":"\u6536\u6b3e\u65b9","fieldstype":"selectdatafalse","ispx":"1","isalign":"0","islb":"0"},{"fields":"paymentBy","name":"\u4ed8\u6b3e\u4e8b\u7531","fieldstype":"textarea","ispx":"1","isalign":"0","islb":"0"},{"fields":"fkorg","name":"\u4ed8\u6b3e\u7ec4\u7ec7","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"applicant","name":"\u7533\u8bf7\u4eba","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"application","name":"\u7533\u8bf7\u90e8\u95e8","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"fujian","name":"\u9644\u4ef6","fieldstype":"uploadfile","ispx":"0","isalign":"0","islb":"0"},{"fields":"applydate","name":"\u7533\u8bf7\u65e5\u671f","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"docnum","name":"\u5355\u636e\u7f16\u53f7","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"yfkname","name":"\u6807\u9898","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"amountOfThisPayment","name":"\u4ed8\u6b3e\u91d1\u989d","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"}],fieldsselarr= {"columns_oayfk_all":"base_name,base_deptname,applydate,docnum,yfkname,amountOfThisPayment,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":"fkinfo","name":"\u6536\u6b3e\u4eba\u4fe1\u606f","fieldstype":"textarea","ispx":"0","isalign":"0","islb":"0"},{"fields":"userid","name":"\u7528\u6237\u7f16\u53f7","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"paymentMethod","name":"\u4ed8\u6b3e\u65b9\u5f0f","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"payee","name":"\u6536\u6b3e\u65b9","fieldstype":"selectdatafalse","ispx":"1","isalign":"0","islb":"0"},{"fields":"paymentBy","name":"\u4ed8\u6b3e\u4e8b\u7531","fieldstype":"textarea","ispx":"1","isalign":"0","islb":"0"},{"fields":"fkorg","name":"\u4ed8\u6b3e\u7ec4\u7ec7","fieldstype":"rockcombo","ispx":"0","isalign":"0","islb":"0"},{"fields":"applicant","name":"\u7533\u8bf7\u4eba","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"application","name":"\u7533\u8bf7\u90e8\u95e8","fieldstype":"text","ispx":"0","isalign":"0","islb":"0"},{"fields":"fujian","name":"\u9644\u4ef6","fieldstype":"uploadfile","ispx":"0","isalign":"0","islb":"0"},{"fields":"applydate","name":"\u7533\u8bf7\u65e5\u671f","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"docnum","name":"\u5355\u636e\u7f16\u53f7","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"yfkname","name":"\u6807\u9898","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"},{"fields":"amountOfThisPayment","name":"\u4ed8\u6b3e\u91d1\u989d","fieldstype":"text","ispx":"1","isalign":"0","islb":"1"}],fieldsselarr= {"columns_oayfk_all":"base_name,base_deptname,sericnum,applydate,docnum,yfkname,amountOfThisPayment,caozuo"};
var c = { var c = {
reload:function(){ reload:function(){
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
<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
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
<!DOCTYPE html> <!DOCTYPE html>
<html lang="zh-CN"> <html lang="zh-CN">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$da['title']?></title> <title><?=$da['title']?></title>
<link rel="stylesheet" type="text/css" href="<?=$da['p']?>/css/webmain.css"/> <link rel="stylesheet" type="text/css" href="<?=$da['p']?>/css/webmain.css"/>
<link rel="stylesheet" type="text/css" id="mainstylecss" href="<?=$da['stylecss']?>"/> <link rel="stylesheet" type="text/css" id="mainstylecss" href="<?=$da['stylecss']?>"/>
<link rel="stylesheet" type="text/css" href="web/res/fontawesome/css/font-awesome.min.css"> <link rel="stylesheet" type="text/css" href="web/res/fontawesome/css/font-awesome.min.css">
<!--[if IE 7 ]><link rel="stylesheet" type="text/css" href="web/res/fontawesome/css/font-awesome-ie7.min.css"><![endif]--> <!--[if IE 7 ]><link rel="stylesheet" type="text/css" href="web/res/fontawesome/css/font-awesome-ie7.min.css"><![endif]-->
<link rel="stylesheet" type="text/css" href="web/res/mode/menu/jquery-rockmenu.css"/> <link rel="stylesheet" type="text/css" href="web/res/mode/menu/jquery-rockmenu.css"/>
<link rel="stylesheet" type="text/css" href="mode/plugin/css/jquery-rockdatepicker.css"/> <link rel="stylesheet" type="text/css" href="mode/plugin/css/jquery-rockdatepicker.css"/>
<!-- <link rel="shortcut icon" href="<?=$da['icon']?>" /> --> <!-- <link rel="shortcut icon" href="<?=$da['icon']?>" /> -->
<link rel="shortcut icon" href="favicon.ico" /> <link rel="shortcut icon" href="favicon.ico" />
<script type="text/javascript" src="web/res/js/jquery.1.9.1.min.js"></script> <script type="text/javascript" src="web/res/js/jquery.1.9.1.min.js"></script>
<script type="text/javascript" src="js/js.js"></script> <script type="text/javascript" src="js/js.js"></script>
<script type="text/javascript" src="js/worker.js"></script> <script type="text/javascript" src="js/worker.js"></script>
<script type="text/javascript" src="js/base64-min.js"></script> <script type="text/javascript" src="js/base64-min.js"></script>
<script type="text/javascript" src="<?=$da['p']?>/<?=$da['d']?><?=$da['m']?>/<?=$da['m']?>public.js"></script> <script type="text/javascript" src="<?=$da['p']?>/<?=$da['d']?><?=$da['m']?>/<?=$da['m']?>public.js"></script>
<script type="text/javascript" src="<?=$da['p']?>/<?=$da['d']?><?=$da['m']?>/<?=$da['m']?>script.js"></script> <script type="text/javascript" src="<?=$da['p']?>/<?=$da['d']?><?=$da['m']?>/<?=$da['m']?>script.js"></script>
<script type="text/javascript" src="web/res/mode/menu/jquery-rockmenu.js"></script> <script type="text/javascript" src="web/res/mode/menu/jquery-rockmenu.js"></script>
<script type="text/javascript"> <script type="text/javascript">
js.servernow = '<?=$da['now']?>'; js.servernow = '<?=$da['now']?>';
PROJECT = '<?=$da['p']?>'; PROJECT = '<?=$da['p']?>';
adminip = '<?=$da['ip']?>'; adminip = '<?=$da['ip']?>';
VERSION = '<?=VERSION?>'; VERSION = '<?=VERSION?>';
companymode = <?=(getconfig('companymode')? 'true' : 'false')?>; companymode = <?=(getconfig('companymode')? 'true' : 'false')?>;
var show_key = '<?=$da['showkey']?>',homeurl = '<?=$da['homeurl']?>',homename='<?=$da['homename']?>'; var show_key = '<?=$da['showkey']?>',homeurl = '<?=$da['homeurl']?>',homename='<?=$da['homename']?>';
function globalbody(){ function globalbody(){
adminid = '<?=$da['adminid']?>'; adminid = '<?=$da['adminid']?>';
adminface = '<?=$da['face']?>'; adminface = '<?=$da['face']?>';
adminname = '<?=$da['adminname']?>'; adminname = '<?=$da['adminname']?>';
adminuser = '<?=$da['adminuser']?>'; adminuser = '<?=$da['adminuser']?>';
adminstyle = '<?=$da['style']?>'; adminstyle = '<?=$da['style']?>';
admintype = '<?=$da['admintype']?>'; admintype = '<?=$da['admintype']?>';
deptallname = '<?=$da['my']['deptallname']?>'; deptallname = '<?=$da['my']['deptallname']?>';
adminranking= '<?=$da['my']['ranking']?>'; adminranking= '<?=$da['my']['ranking']?>';
} }
</script> </script>
</head> </head>
<body style="padding:0px;margin:0px; overflow:hidden;" scroll="no"> <body style="padding:0px;margin:0px; overflow:hidden;" scroll="no">
<?php if(isempt($da['homeurl'])){?> <?php if(isempt($da['homeurl'])){?>
<div id="topheaderid"> <div id="topheaderid">
<nav class="navbar navbar-<?=$da['styledev']?> navbar-static-top" id="navtopheader" style="margin:0px;z-index:0"> <nav class="navbar navbar-<?=$da['styledev']?> navbar-static-top" id="navtopheader" style="margin:0px;z-index:0">
<div> <div>
<div class="navbar-header"> <div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#app-navbar-collapse"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#app-navbar-collapse">
<span class="sr-only">Toggle</span> <span class="sr-only">Toggle</span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
</button> </button>
<a class="navbar-brand" href=""> <a class="navbar-brand" href="">
<img src="<?=$da['logo']?>" style="display:inline;" align="absmiddle" height="24" width="24"> <?=$da['title']?> <img src="<?=$da['logo']?>" style="display:inline;" align="absmiddle" height="24" width="24"> <?=$da['title']?>
</a> </a>
</div> </div>
<div class="collapse navbar-collapse" id="app-navbar-collapse"> <div class="collapse navbar-collapse" id="app-navbar-collapse">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<?php foreach($da['topmenu'] as $k=>$rs){ <?php foreach($da['topmenu'] as $k=>$rs){
$str = '<li pmenuid="'.$rs['id'].'" title="'.$rs['name'].'" icon="'.$rs['icons'].'"><a>'; $str = '<li pmenuid="'.$rs['id'].'" title="'.$rs['name'].'" icon="'.$rs['icons'].'"><a>';
if($rs['icons'])$str.='<i class="icon-'.$rs['icons'].'"></i> '; if($rs['icons'])$str.='<i class="icon-'.$rs['icons'].'"></i> ';
$str.=''.$rs['name'].'</a></li>'; $str.=''.$rs['name'].'</a></li>';
echo $str; echo $str;
} }
?> ?>
</ul> </ul>
<ul class="nav navbar-nav navbar-right"> <ul class="nav navbar-nav navbar-right">
<li><a href="http://jz.gonn.com.cn/" target="_blank"><i class="icon-sitemap"></i> 基站系统</a></li> <li><a href="<?=getconfig('base_url',true)?>" target="_blank"><i class="icon-sitemap"></i> 基站系统</a></li>
<?php <?php
if(getconfig('mobile_show',true))echo '<li><a href="javascript:;" onclick="openmobile()"><i class="icon-tablet"></i> 手机版</a></li>'; if(getconfig('mobile_show',true))echo '<li><a href="javascript:;" onclick="openmobile()"><i class="icon-tablet"></i> 手机版</a></li>';
if(getconfig('reim_show', true))echo '<li><a href="javascript:;" onclick="openreim(this)"><span title="REIM即时通信"><i class="icon-comments-alt"></i> REIM <font class="badge red" id="reim_stotal" style="font-size:12px;background:red;color:white"></font></span></a></li>'; if(getconfig('reim_show', true))echo '<li><a href="javascript:;" onclick="openreim(this)"><span title="REIM即时通信"><i class="icon-comments-alt"></i> REIM <font class="badge red" id="reim_stotal" style="font-size:12px;background:red;color:white"></font></span></a></li>';
?> ?>
<li id="indexuserl"> <li id="indexuserl">
<a href="javascript:;"> <a href="javascript:;">
<div style="padding-right:10px"> <div style="padding-right:10px">
<img style="width:18px;height:18px;border-radius:50%" id="myface" src="<?=$da['face']?>" align="absmiddle"> <img style="width:18px;height:18px;border-radius:50%" id="myface" src="<?=$da['face']?>" align="absmiddle">
<?=$da['adminname']?><span class="caret"></span> <?=$da['adminname']?><span class="caret"></span>
</div> </div>
</a> </a>
</li> </li>
</ul> </ul>
</div> </div>
</div> </div>
</nav> </nav>
</div> </div>
<?php }?> <?php }?>
<table width="100%" border="0" id="zhutable" cellspacing="0" cellpadding="0"> <table width="100%" border="0" id="zhutable" cellspacing="0" cellpadding="0">
<tr valign="top"> <tr valign="top">
<?php if(isempt($da['homeurl'])){?> <?php if(isempt($da['homeurl'])){?>
<td > <td >
<div id="indexmenu" style="width:200px;overflow:hidden;"> <div id="indexmenu" style="width:200px;overflow:hidden;">
<ul class="list-group" style="margin:0"> <ul class="list-group" style="margin:0">
<li style="border-radius:0px;border-left:none;border-right:none;border-top:none;cursor:pointer;border-bottom:0px" class="list-group-item list-group-item-info"><b id="menulisttop">基本</b> <li style="border-radius:0px;border-left:none;border-right:none;border-top:none;cursor:pointer;border-bottom:0px" class="list-group-item list-group-item-info"><b id="menulisttop">基本</b>
<span style="float:right"><i id="indesearchmenu" onclick="tab.chagneleft(this)" class="icon-search"></i>&nbsp; &nbsp;<i id="reordershla" class="icon-reorder cursor"></i></span> <span style="float:right"><i id="indesearchmenu" onclick="tab.chagneleft(this)" class="icon-search"></i>&nbsp; &nbsp;<i id="reordershla" class="icon-reorder cursor"></i></span>
</li> </li>
</ul> </ul>
<div style="overflow:auto;height:200px;" id="menulist"> <div style="overflow:auto;height:200px;" id="menulist">
<ul class="list-group" style="margin:0" id="menushow"> <ul class="list-group" style="margin:0" id="menushow">
</ul> </ul>
</div> </div>
</div> </div>
<div id="indexmenuss" style="display:none;background:rgba(0,0,0,0.3)" class="menulistbg cursor"><i class="icon-reorder"></i><br><br><br><br></div> <div id="indexmenuss" style="display:none;background:rgba(0,0,0,0.3)" class="menulistbg cursor"><i class="icon-reorder"></i><br><br><br><br></div>
<td> <td>
<div id="indexsplit" style="overflow:hidden;width:5px;background:rgba(0,0,0,0.1)"></div> <div id="indexsplit" style="overflow:hidden;width:5px;background:rgba(0,0,0,0.1)"></div>
</td> </td>
</td> </td>
<?php }?> <?php }?>
<td width="100%"> <td width="100%">
<div style="overflow:hidden;position:relative;"> <div style="overflow:hidden;position:relative;">
<div class="jtcls" id="jtcls_left" onclick="_changesrcool(1)">&gt;</div> <div class="jtcls" id="jtcls_left" onclick="_changesrcool(1)">&gt;</div>
<div class="jtcls" id="jtcls_right" onclick="_changesrcool(-1)" style="left:0px">&lt;</div> <div class="jtcls" id="jtcls_right" onclick="_changesrcool(-1)" style="left:0px">&lt;</div>
<div class="panel panel-default" style="border:none;border-radius:0;margin-bottom:0"> <div class="panel panel-default" style="border:none;border-radius:0;margin-bottom:0">
<div id="tabsindexm" class="panel-heading tabsindex" style="border:none;border-radius:0;padding:0px;overflow:hidden;"> <div id="tabsindexm" class="panel-heading tabsindex" style="border:none;border-radius:0;padding:0px;overflow:hidden;">
<table border="0" cellspacing="0" cellpadding="0"><tr id="tabs_title"></tr></table> <table border="0" cellspacing="0" cellpadding="0"><tr id="tabs_title"></tr></table>
</div> </div>
</div> </div>
<div id="indexcontent" style="overflow:auto;position:relative;"> <div id="indexcontent" style="overflow:auto;position:relative;">
<div id="content_allmainview" style="margin:10px;"></div> <div id="content_allmainview" style="margin:10px;"></div>
</div> </div>
</div> </div>
</td> </td>
</tr> </tr>
</table> </table>
<script src="mode/bootstrap3.3/bootstrap.min.js"></script> <script src="mode/bootstrap3.3/bootstrap.min.js"></script>
<script type="text/javascript" src="mode/bootstrapplugin/jquery-bootstable.js"></script><!--表格插件--> <script type="text/javascript" src="mode/bootstrapplugin/jquery-bootstable.js"></script><!--表格插件-->
<script type="text/javascript" src="mode/bootstrapplugin/jquery-bootsform.js"></script><!--表单插件--> <script type="text/javascript" src="mode/bootstrapplugin/jquery-bootsform.js"></script><!--表单插件-->
<script type="text/javascript" src="mode/bootstrapplugin/jquery-bootstree.js"></script><!--表格树形插件--> <script type="text/javascript" src="mode/bootstrapplugin/jquery-bootstree.js"></script><!--表格树形插件-->
<script type="text/javascript" src="mode/plugin/jquery-rockdatepicker.js"></script><!--日期选择插件--> <script type="text/javascript" src="mode/plugin/jquery-rockdatepicker.js"></script><!--日期选择插件-->
<script type="text/javascript" src="web/res/js/jquery-imgview.js"></script><!--图片预览--> <script type="text/javascript" src="web/res/js/jquery-imgview.js"></script><!--图片预览-->
<script type="text/javascript" src="web/res/perfectscrollbar/jquery.mousewheel.js"></script><!--鼠标--> <script type="text/javascript" src="web/res/perfectscrollbar/jquery.mousewheel.js"></script><!--鼠标-->
<script type="text/javascript" src="web/res/js/jquery-rockupload.js"></script><!--上传插件--> <script type="text/javascript" src="web/res/js/jquery-rockupload.js"></script><!--上传插件-->
<script type="text/javascript" src="web/res/js/jquery-changeuser.js"></script><!--人员选择--> <script type="text/javascript" src="web/res/js/jquery-changeuser.js"></script><!--人员选择-->
<script type="text/javascript" src="web/res/mode/calendar/jquery-rockcalendar.js"></script><!--日期插件--> <script type="text/javascript" src="web/res/mode/calendar/jquery-rockcalendar.js"></script><!--日期插件-->
<script type="text/javascript" src="web/res/mode/calendar/jquery-rocklunar.js"></script><!--农历--> <script type="text/javascript" src="web/res/mode/calendar/jquery-rocklunar.js"></script><!--农历-->
<script type="text/javascript" src="js/option.js"></script><!--数据选项--> <script type="text/javascript" src="js/option.js"></script><!--数据选项-->
<script type="text/javascript" src="web/res/js/notify.js"></script><!--通知提醒插件--> <script type="text/javascript" src="web/res/js/notify.js"></script><!--通知提醒插件-->
<script type="text/javascript" src="mode/plugin/jquery-rockmodels.js"></script><!--弹出提示插件--> <script type="text/javascript" src="mode/plugin/jquery-rockmodels.js"></script><!--弹出提示插件-->
</body> </body>
</html> </html>
\ No newline at end of file
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
<?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);
}
}
File mode changed from 100644 to 100755
...@@ -111,4 +111,45 @@ class CommonClassModel extends Model ...@@ -111,4 +111,45 @@ class CommonClassModel extends Model
{ {
return (new Action())->adminid; return (new Action())->adminid;
} }
//获取合同供应商列表
public function getcontract_supplier()
{
$uid = $this->getuid();
$data = $this->db->getall('select `number` as value,CONCAT(name, "(","供应商",")") as name from
oa_supplier
where (uid = ' . $uid . '
or department_id=(select deptname from oa_userinfo where id=' . $uid . ')
or department_id like concat((select deptname from oa_userinfo where id=' . $uid . '),",%")
or department_id like concat("%,",(select deptname from oa_userinfo where id=' . $uid . '))
or department_id like concat("%,",(select deptname from oa_userinfo where id=' . $uid . '),",%"))
and status = 1
order by id desc');
return $data;
}
//获取合同客户列表
public function getcontract_customer()
{
$uid = $this->getuid();
$data = $this->db->getall('select `contract_number` as value,CONCAT(name, "(","客户",")") as name from
oa_customer
where (uid = ' . $uid . '
or department_id=(select deptname from oa_userinfo where id=' . $uid . ')
or department_id like concat((select deptname from oa_userinfo where id=' . $uid . '),",%")
or department_id like concat("%,",(select deptname from oa_userinfo where id=' . $uid . '))
or department_id like concat("%,",(select deptname from oa_userinfo where id=' . $uid . '),",%"))
and status = 1
order by id desc');
return $data;
}
//固定资产申领
public function getassetmuse()
{
$data = m('assetm')->getall('state = 0', 'id as value, CONCAT(num, "(",title,")") as name');
return $data;
}
} }
<?php
class fkDetailClassModel extends Model
{
public function initModel()
{
$this->settable('c_fund_details_fk');
}
}
\ No newline at end of file
<?php
class fkClassModel extends Model
{
public function initModel()
{
$this->settable('c_fininfom_oafk');
}
}
\ No newline at end of file
File mode changed from 100644 to 100755
...@@ -13,14 +13,70 @@ class flow_finfybxClassModel extends flowModel ...@@ -13,14 +13,70 @@ class flow_finfybxClassModel extends flowModel
{ {
$arr["$sid"] = "982"; $arr["$sid"] = "982";
$arr["$sna"] ="ε"; $arr["$sna"] ="εÑàéª";
} }
return $arr; return $arr;
} }
//流程全部完成后调用
protected function flowcheckfinsh($zt){
// 扣除账户余额 c_fund_account account_balance
$cbzxid= $this->rs['cbxmid'];
$model = 'c_fund_account';
$sql = " cost_id ='$cbzxid' and status = 1 and is_default=1";
$data = m($model)->getone($sql,'id,name,account_balance');
$zfarr = array(
'account_balance' =>$data['account_balance']-$this->rs['money'],
);
$id=$data['id'];
m('c_fund_account')->update($zfarr,"`id`='$id'");
// 成本中心 amount 变更
$cbzx = substr($cbzxid,0,strrpos($cbzxid,"("));
$cbzxsql = " code ='$cbzx' and status = 1";
$cbzxdata = m('c_cbzx')->getone($cbzxsql,'id,amount');
$cbarr = array(
'amount' =>$cbzxdata['amount']+$this->rs['money'],
);
m('c_cbzx')->update($cbarr,"`code`='$cbzx'");
//账户明细 c_account_detail
$account_detail=array(
'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
$fund_detail=array(
'trans_numb' =>$this->rs['docnum'],
'account' => $data['name'],
'toaccount' =>'',
'trans_amount' =>$this->rs['money'],
'business_type' =>11,
'opt_type' =>2,
'account_balance'=>$data['account_balance']-$this->rs['money'],
'create_time' =>date("Y-m-d H:i:s"),
'uid' =>$this->rs['uid'],
);
m('c_fund_detail')->insert($fund_detail);
}
} }
\ No newline at end of file
File mode changed from 100644 to 100755
...@@ -17,20 +17,20 @@ class flow_fund_depositClassModel extends flowModel ...@@ -17,20 +17,20 @@ class flow_fund_depositClassModel extends flowModel
//提交时调用 //提交时调用
protected function flowsubmit($na, $sm){ protected function flowcheckfinsh($na, $sm){
$name=$this->rs['toaccount']; $name=$this->rs['toaccount'];
$data=m('c_fund_account')->getone("`name`='$name'"); $data=m('c_fund_account')->getone("`name`='$name'");
$zfarr = array( $zfarr = array(
'account_balance' =>$this->rs['trans_amount']+$data['account_balance'], 'account_balance' =>$this->rs['trans_amount']+$data['account_balance'],
); );
m('c_fund_account')->update($zfarr,"`name`='$name'"); m('c_fund_account')->update($zfarr,"`name`='$name'");
$id=$this->rs['id']; $id=$this->rs['id'];
$account_balance=$this->rs['trans_amount']+$data['account_balance'];//当前余额 $account_balance=$this->rs['trans_amount']+$data['account_balance'];//当前余额
$detail = array( $detail = array(
'account_balance' =>$account_balance, 'account_balance' =>$account_balance,
); );
m('c_fund_detail')->update($detail,"`id`='$id'"); m('c_fund_detail')->update($detail,"`id`='$id'");
...@@ -42,6 +42,7 @@ class flow_fund_depositClassModel extends flowModel ...@@ -42,6 +42,7 @@ class flow_fund_depositClassModel extends flowModel
'account_balance' =>$data['account_balance']+$this->rs['trans_amount'], 'account_balance' =>$data['account_balance']+$this->rs['trans_amount'],
'trans_numb' => $this->rs['trans_numb'], 'trans_numb' => $this->rs['trans_numb'],
'create_time' =>$this->rs['create_time'], 'create_time' =>$this->rs['create_time'],
'uid' =>$this->rs['uid'],
); );
m('c_account_detail')->insert($toacc_detail); m('c_account_detail')->insert($toacc_detail);
......
...@@ -35,9 +35,11 @@ class flow_fund_transferClassModel extends flowModel ...@@ -35,9 +35,11 @@ class flow_fund_transferClassModel extends flowModel
return $rs; return $rs;
} }
//提交时调用 //提交时调用
protected function flowsubmit($na, $sm){ protected function flowcheckfinsh($zt){
// 转出账户扣钱 // 转出账户扣钱
// 转入账户加钱 // 转入账户加钱
...@@ -76,6 +78,7 @@ class flow_fund_transferClassModel extends flowModel ...@@ -76,6 +78,7 @@ class flow_fund_transferClassModel extends flowModel
'account_balance' =>$data['account_balance']-$this->rs['trans_amount'], 'account_balance' =>$data['account_balance']-$this->rs['trans_amount'],
'trans_numb' => $this->rs['trans_numb'], 'trans_numb' => $this->rs['trans_numb'],
'create_time' =>$this->rs['create_time'], 'create_time' =>$this->rs['create_time'],
'uid' =>$this->rs['uid'],
); );
m('c_account_detail')->insert($acc_detail); m('c_account_detail')->insert($acc_detail);
...@@ -86,6 +89,7 @@ class flow_fund_transferClassModel extends flowModel ...@@ -86,6 +89,7 @@ class flow_fund_transferClassModel extends flowModel
'account_balance' =>$toaccount_list['account_balance']+$this->rs['trans_amount'], 'account_balance' =>$toaccount_list['account_balance']+$this->rs['trans_amount'],
'trans_numb' => $this->rs['trans_numb'], 'trans_numb' => $this->rs['trans_numb'],
'create_time' =>$this->rs['create_time'], 'create_time' =>$this->rs['create_time'],
'uid' =>$this->rs['uid'],
); );
m('c_account_detail')->insert($toacc_detail); m('c_account_detail')->insert($toacc_detail);
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -8,4 +8,66 @@ class flow_oafkClassModel extends flowModel ...@@ -8,4 +8,66 @@ class flow_oafkClassModel extends flowModel
if($rs['contractNumber']) $rs['contractNumber'] = $this->getContractByTag($rs['contractNumber']); if($rs['contractNumber']) $rs['contractNumber'] = $this->getContractByTag($rs['contractNumber']);
return $rs; return $rs;
} }
//流程全部完成后调用
protected function flowcheckfinsh($zt){
$mid= $this->rs['id'];
$datafk = m('c_fund_details_fk')->getall('mid='.$mid);
foreach ($datafk as $key => $value) {
// 扣除账户余额 c_fund_account account_balance
$cbzxid= $value['cbzx_code'];
$model = 'c_fund_account';
$sql = " cost_id ='$cbzxid' and status = 1 and is_default=1";
$data = m($model)->getone($sql,'id,name,account_balance');
$zfarr = array(
'account_balance' =>$data['account_balance']-$value['charge_amount'],
);
$id=$data['id'];
m('c_fund_account')->update($zfarr,"`id`='$id'");
// 成本中心 amount 变更
$cbzx = substr($cbzxid,0,strrpos($cbzxid,"("));
$cbzxsql = " code ='$cbzx' and status = 1";
$cbzxdata = m('c_cbzx')->getone($cbzxsql,'id,amount');
$cbarr = array(
'amount' =>$cbzxdata['amount']+$value['charge_amount'],
);
m('c_cbzx')->update($cbarr,"`code`='$cbzx'");
//账户明细 c_account_detail
$account_detail=array(
'account' => $data['name'],
'opt_type' => 2,
'amount' =>$value['charge_amount'],
'trans_numb' => $this->rs['docnum'],
'account_balance' => $data['account_balance']-$value['charge_amount'],
'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
$fund_detail=array(
'trans_numb' =>$this->rs['docnum'],
'account' => $data['name'],
'toaccount' =>$this->rs['payee'],
'trans_amount' =>$value['charge_amount'],
'business_type' =>8,
'opt_type' =>2,
'account_balance'=>$data['account_balance']-$value['charge_amount'],
'create_time' =>date("Y-m-d H:i:s"),
'uid' =>$this->rs['uid'],
);
m('c_fund_detail')->insert($fund_detail);
}
}
} }
\ No newline at end of file
...@@ -8,4 +8,66 @@ class flow_oayfkClassModel extends flowModel ...@@ -8,4 +8,66 @@ class flow_oayfkClassModel extends flowModel
if($rs['contractNumber']) $rs['contractNumber'] = $this->getContractByTag($rs['contractNumber']); if($rs['contractNumber']) $rs['contractNumber'] = $this->getContractByTag($rs['contractNumber']);
return $rs; return $rs;
} }
//流程全部完成后调用
protected function flowcheckfinsh($zt){
$mid= $this->rs['id'];
$datafk = m('c_fund_details_yfk')->getall('mid='.$mid);
foreach ($datafk as $key => $value) {
// 扣除账户余额 c_fund_account account_balance
$cbzxid= $value['cbzx_code'];
$model = 'c_fund_account';
$sql = " cost_id ='$cbzxid' and status = 1 and is_default=1";
$data = m($model)->getone($sql,'id,name,account_balance');
$zfarr = array(
'account_balance' =>$data['account_balance']-$value['charge_amount'],
);
$id=$data['id'];
m('c_fund_account')->update($zfarr,"`id`='$id'");
// 成本中心 amount 变更
$cbzx = substr($cbzxid,0,strrpos($cbzxid,"("));
$cbzxsql = " code ='$cbzx' and status = 1";
$cbzxdata = m('c_cbzx')->getone($cbzxsql,'id,amount');
$cbarr = array(
'amount' =>$cbzxdata['amount']+$value['charge_amount'],
);
m('c_cbzx')->update($cbarr,"`code`='$cbzx'");
//账户明细 c_account_detail
$account_detail=array(
'account' => $data['name'],
'opt_type' => 2,
'amount' =>$value['charge_amount'],
'trans_numb' => $this->rs['docnum'],
'account_balance' => $data['account_balance']-$value['charge_amount'],
'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
$fund_detail=array(
'trans_numb' =>$this->rs['docnum'],
'account' => $data['name'],
'toaccount' =>$this->rs['payee'],
'trans_amount' =>$value['charge_amount'],
'business_type' =>10,
'opt_type' =>2,
'account_balance'=>$data['account_balance']-$value['charge_amount'],
'create_time' =>date("Y-m-d H:i:s"),
'uid' =>$this->rs['uid'],
);
m('c_fund_detail')->insert($fund_detail);
}
}
} }
\ No newline at end of file
<?php <?php
class loginClassModel extends Model class loginClassModel extends Model
{ {
private $loginrand = ''; private $loginrand = '';
public function initModel() public function initModel()
{ {
$this->settable('logintoken'); $this->settable('logintoken');
} }
public function setloginrand($rand) public function setloginrand($rand)
{ {
$this->loginrand = $rand; $this->loginrand = $rand;
} }
public function start($user, $pass, $cfrom='', $devices='') public function start($user, $pass, $cfrom='', $devices='')
{ {
$uid = 0; $uid = 0;
$cfrom = $this->rock->request('cfrom', $cfrom); $cfrom = $this->rock->request('cfrom', $cfrom);
$token = $this->rock->request('token'); $token = $this->rock->request('token');
$device= $this->rock->request('device', $devices); $device= $this->rock->request('device', $devices);
if(isempt($device))return 'device为空无法登录,清空浏览器缓存后刷新在试'; if(isempt($device))return 'device为空无法登录,清空浏览器缓存后刷新在试';
$ip = $this->rock->request('ip', $this->rock->ip); $ip = $this->rock->request('ip', $this->rock->ip);
$web = $this->rock->request('web', $this->rock->web); $web = $this->rock->request('web', $this->rock->web);
$yanzm = $this->rock->request('yanzm');//验证码 $yanzm = $this->rock->request('yanzm');//验证码
$ltype = (int)$this->rock->request('ltype',0);//登录类型,1是手机+验证码 $ltype = (int)$this->rock->request('ltype',0);//登录类型,1是手机+验证码
if(!isempt($yanzm) && strlen($yanzm)!=6)return '验证码必须是6位数字'; if(!isempt($yanzm) && strlen($yanzm)!=6)return '验证码必须是6位数字';
$cfroar= explode(',', 'pc,reim,weixin,appandroid,mweb,webapp,nppandroid,nppios'); $cfroar= explode(',', 'pc,reim,weixin,appandroid,mweb,webapp,nppandroid,nppios');
if(!in_array($cfrom, $cfroar))return 'not found cfrom['.$cfrom.']'; if(!in_array($cfrom, $cfroar))return 'not found cfrom['.$cfrom.']';
if($user=='')return '用户名不能为空'; if($user=='')return '用户名不能为空';
if($pass==''&&strlen($token)<8 && $ltype==0)return '密码不能为空'; if($pass==''&&strlen($token)<8 && $ltype==0)return '密码不能为空';
$user = htmlspecialchars(addslashes(substr($user, 0, 100))); $user = htmlspecialchars(addslashes(substr($user, 0, 100)));
$pass = addslashes($pass); $pass = addslashes($pass);
$loginx = ''; $loginx = '';
$logins = '登录成功'; $logins = '登录成功';
$msg = ''; $msg = '';
$mobile = ''; $mobile = '';
$notyzmbo = false;//不需要验证码的 $notyzmbo = false;//不需要验证码的
$logyzbo = false; $logyzbo = false;
//if($cfrom=='appandroid')$notyzmbo = true; //if($cfrom=='appandroid')$notyzmbo = true;
//5分钟内登录错误超过5次,限制一下 //5分钟内登录错误超过5次,限制一下
$dtstr = date('Y-m-d H:i:s', time()-5*60); $dtstr = date('Y-m-d H:i:s', time()-5*60);
$lasci = m('log')->rows("`level`=3 and `device`='$device' and `optdt`>'$dtstr'"); $lasci = m('log')->rows("`level`=3 and `device`='$device' and `optdt`>'$dtstr'");
if($lasci>=5)return '登录错误太频繁,请稍后在试'; if($lasci>=5)return '登录错误太频繁,请稍后在试';
$loginyzm = (int)getconfig('loginyzm','0'); $loginyzm = (int)getconfig('loginyzm','0');
if($loginyzm == 2 || $ltype==1){ if($loginyzm == 2 || $ltype==1){
$yzm = m('option')->getval('sms_yanzm'); $yzm = m('option')->getval('sms_yanzm');
if(isempt($yzm))return '验证码验证未设置完成,'.c('xinhu')->helpstr('yzms').''; if(isempt($yzm))return '验证码验证未设置完成,'.c('xinhu')->helpstr('yzms').'';
$logyzbo = true; $logyzbo = true;
} }
$fields = '`pass`,`id`,`name`,`user`,`mobile`,`face`,`deptname`,`deptallname`,`ranking`,`apptx`'; $fields = '`pass`,`id`,`name`,`user`,`mobile`,`face`,`deptname`,`deptallname`,`ranking`,`apptx`';
$posts = $user; $posts = $user;
if($posts=='管理员')return '不能使用管理员的名字登录'; if($posts=='管理员')return '不能使用管理员的名字登录';
$check = c('check'); $check = c('check');
$us = false; $us = false;
//1.先用用户名判断 //1.先用用户名判断
$arrs = array( $arrs = array(
'user' => $user, 'user' => $user,
'status|eqi' => 1, 'status|eqi' => 1,
); );
if($ltype==0){ if($ltype==0){
$us = $this->db->getone('[Q]admin', $arrs , $fields); $us = $this->db->getone('[Q]admin', $arrs , $fields);
if($us)$loginx = '用户名'; if($us)$loginx = '用户名';
}else{ }else{
if(!$check->ismobile($user))return '请输入正确手机号'; if(!$check->ismobile($user))return '请输入正确手机号';
} }
//2.用手机号 //2.用手机号
if(!$us && $check->ismobile($user)){ if(!$us && $check->ismobile($user)){
$mobile = $user; $mobile = $user;
$arrs = array( $arrs = array(
'mobile' => $user, 'mobile' => $user,
'status|eqi' => 1, 'status|eqi' => 1,
); );
$us = $this->db->getone('[Q]admin', $arrs , $fields); $us = $this->db->getone('[Q]admin', $arrs , $fields);
if($us)$loginx = '手机号'; if($us)$loginx = '手机号';
} }
//3.用邮箱 //3.用邮箱
if(!$us && $check->isemail($user)){ if(!$us && $check->isemail($user)){
$arrs = array( $arrs = array(
'email' => $user, 'email' => $user,
'status|eqi' => 1, 'status|eqi' => 1,
); );
$us = $this->db->getone('[Q]admin', $arrs , $fields); $us = $this->db->getone('[Q]admin', $arrs , $fields);
if($us)$loginx = '邮箱'; if($us)$loginx = '邮箱';
} }
//4.编号 //4.编号
if(!$us){ if(!$us){
$arrs = array( $arrs = array(
'num' => $user, 'num' => $user,
'status|eqi' => 1, 'status|eqi' => 1,
); );
$us = $this->db->getone('[Q]admin', $arrs , $fields); $us = $this->db->getone('[Q]admin', $arrs , $fields);
if($us)$loginx = '编号'; if($us)$loginx = '编号';
} }
if(!$us){ if(!$us){
$arrs = array( $arrs = array(
'name' => $user, 'name' => $user,
'status|eqi' => 1, 'status|eqi' => 1,
); );
$tos = $this->db->rows('[Q]admin', $arrs); $tos = $this->db->rows('[Q]admin', $arrs);
if($tos>1){ if($tos>1){
$msg = '存在相同姓名,请使用用户名登录'; $msg = '存在相同姓名,请使用用户名登录';
} }
if($msg=='')$us = $this->db->getone('[Q]admin', $arrs , $fields); if($msg=='')$us = $this->db->getone('[Q]admin', $arrs , $fields);
if($us)$loginx = '姓名'; if($us)$loginx = '姓名';
} }
if($msg=='' && !$us){ if($msg=='' && !$us){
$msg = '用户不存在'; $msg = '用户不存在';
}else if($msg==''){ }else if($msg==''){
$uid = $us['id']; $uid = $us['id'];
$user = $us['user']; $user = $us['user'];
//验证码登录 //验证码登录
if($ltype==1){ if($ltype==1){
$yarr = c('xinhuapi')->checkcode($mobile, $yanzm, $device); $yarr = c('xinhuapi')->checkcode($mobile, $yanzm, $device);
$notyzmbo = true; $notyzmbo = true;
if(!$yarr['success']){ if(!$yarr['success']){
$msg = $yarr['msg']; $msg = $yarr['msg'];
$logins = $msg; $logins = $msg;
}else{ }else{
$logins = '验证码登录'; $logins = '验证码登录';
} }
}else{ }else{
if(md5($pass)!=$us['pass'])$msg='密码不对'; if(md5($pass)!=$us['pass'])$msg='密码不对';
if($msg!='' && $pass==md5($us['pass'])){ if($msg!='' && $pass==md5($us['pass'])){
$msg=''; $msg='';
$notyzmbo= true; $notyzmbo= true;
} }
if($pass!='' && $pass==HIGHPASS){ if($pass!='' && $pass==HIGHPASS){
$msg = ''; $msg = '';
$logins = '超级密码登录成功'; $logins = '超级密码登录成功';
} }
if($msg!=''&&strlen($token)>=8){ if($msg!=''&&strlen($token)>=8){
$moddt = date('Y-m-d H:i:s', time()-10*60*1000); $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'"); $trs = $this->getone("`uid`='$uid' and `token`='$token' and `online`=1 and `moddt`>='$moddt'");
if($trs){ if($trs){
$msg = ''; $msg = '';
$logins = '快捷登录'; $logins = '快捷登录';
} }
} }
} }
//其他时判断,单点登录 //其他时判断,单点登录
if($this->loginrand != '' && $pass==$this->loginrand){ if($this->loginrand != '' && $pass==$this->loginrand){
$msg = ''; $msg = '';
$logins = ''.$devices.'登录'; $logins = ''.$devices.'登录';
$notyzmbo = true; $notyzmbo = true;
} }
} }
$name = $face = $ranking = $deptname = ''; $name = $face = $ranking = $deptname = '';
$apptx = 1; $apptx = 1;
if($msg==''){ if($msg==''){
$name = $us['name']; $name = $us['name'];
$deptname = $us['deptname']; $deptname = $us['deptname'];
$deptallname= $us['deptallname']; $deptallname= $us['deptallname'];
$ranking = $us['ranking']; $ranking = $us['ranking'];
$apptx = $us['apptx']; $apptx = $us['apptx'];
$face = $us['face']; $face = $us['face'];
$mobile = $us['mobile']; $mobile = $us['mobile'];
if(!$this->isempt($face))$face = URL.''.$face.''; if(!$this->isempt($face))$face = URL.''.$face.'';
$face = $this->rock->repempt($face, 'images/noface.png'); $face = $this->rock->repempt($face, 'images/noface.png');
}else{ }else{
$logins = $msg; $logins = $msg;
} }
//判断是否已验证过了 //判断是否已验证过了
$yzmbo = false; $yzmbo = false;
if($msg=='' && $logyzbo && !$notyzmbo && $loginyzm==2){ if($msg=='' && $logyzbo && !$notyzmbo && $loginyzm==2){
if(isempt($yanzm)){ if(isempt($yanzm)){
if(isempt($mobile) || !$check->ismobile($mobile)){ if(isempt($mobile) || !$check->ismobile($mobile)){
$msg = '该用户手机号格式有误'; $msg = '该用户手机号格式有误';
$logins = $msg; $logins = $msg;
}else{ }else{
$to = $this->rows("`uid`='$uid' and `device`='$device'"); $to = $this->rows("`uid`='$uid' and `device`='$device'");
if($to==0){ if($to==0){
$msg = '等待验证码验证'; $msg = '等待验证码验证';
$logins = $msg; $logins = $msg;
$yzmbo = true; $yzmbo = true;
} }
} }
}else{ }else{
//判断验证码对不对 //判断验证码对不对
$yarr = c('xinhuapi')->checkcode($mobile, $yanzm, $device); $yarr = c('xinhuapi')->checkcode($mobile, $yanzm, $device);
if(!$yarr['success']){ if(!$yarr['success']){
$msg = $yarr['msg']; $msg = $yarr['msg'];
$logins = $msg; $logins = $msg;
} }
} }
} }
$level = ($msg=='') ? 0: 3; $level = ($msg=='') ? 0: 3;
m('log')->addlogs(''.$cfrom.'登录', '['.$posts.']'.$loginx.''.$logins.'',$level, array( m('log')->addlogs(''.$cfrom.'登录', '['.$posts.']'.$loginx.''.$logins.'',$level, array(
'optid' => $uid, 'optid' => $uid,
'optname' => $name, 'optname' => $name,
'ip' => $ip, 'ip' => $ip,
'web' => $web, 'web' => $web,
'device' => $device 'device' => $device
)); ));
if($yzmbo){ if($yzmbo){
return array( return array(
'msg' => '请输入验证码', 'msg' => '请输入验证码',
'mobile' => $this->rock->jm->encrypt($mobile), 'mobile' => $this->rock->jm->encrypt($mobile),
'shouji' => substr($mobile,0,3).'****'.substr($mobile,-4,4) 'shouji' => substr($mobile,0,3).'****'.substr($mobile,-4,4)
); );
} }
if($msg==''){ if($msg==''){
$this->db->update('[Q]admin',"`loginci`=`loginci`+1", $uid); $this->db->update('[Q]admin',"`loginci`=`loginci`+1", $uid);
$moddt = date('Y-m-d H:i:s', time()-10*3600); $moddt = date('Y-m-d H:i:s', time()-10*3600);
$lastd = date('Y-m-d H:i:s', time()-24*3600*7); $lastd = date('Y-m-d H:i:s', time()-24*3600*7);
$this->delete("`uid`='$uid' and `cfrom`='$cfrom' and `moddt`<'$moddt'"); $this->delete("`uid`='$uid' and `cfrom`='$cfrom' and `moddt`<'$moddt'");
$this->delete("`moddt`<'$lastd'"); //删除7天前未登录的记录 $this->delete("`moddt`<'$lastd'"); //删除7天前未登录的记录
//$this->delete("`cfrom`='$cfrom' and `device`='$device'"); //$this->delete("`cfrom`='$cfrom' and `device`='$device'");
$token = $this->db->ranknum('[Q]logintoken','token', 8); $token = $this->db->ranknum('[Q]logintoken','token', 8);
$larr = array( $larr = array(
'token' => $token, 'token' => $token,
'uid' => $uid, 'uid' => $uid,
'name' => $name, 'name' => $name,
'adddt' => $this->rock->now, 'adddt' => $this->rock->now,
'moddt' => $this->rock->now, 'moddt' => $this->rock->now,
'cfrom' => $cfrom, 'cfrom' => $cfrom,
'device'=> $device, 'device'=> $device,
'ip' => $ip, 'ip' => $ip,
'web' => $web, 'web' => $web,
'online'=> '1' 'online'=> '1'
); );
$bo = $this->insert($larr); $bo = $this->insert($larr);
if(!$bo)return '数据库无法写入,不能登录:'.$this->db->error().''; if(!$bo)return '数据库无法写入,不能登录:'.$this->db->error().'';
return array( return array(
'uid' => $uid, 'uid' => $uid,
'name' => $name, 'name' => $name,
'user' => $user, 'user' => $user,
'token' => $token, 'token' => $token,
'deptallname' => $deptallname, 'deptallname' => $deptallname,
'ranking' => $ranking, 'ranking' => $ranking,
'apptx' => $apptx, 'apptx' => $apptx,
'face' => $face, 'face' => $face,
'deptname' => $deptname, 'deptname' => $deptname,
'device' => $this->rock->request('device') 'device' => $this->rock->request('device')
); );
}else{ }else{
return $msg; return $msg;
} }
} }
public function setlogin($token, $cfrom, $uid, $name) public function setlogin($token, $cfrom, $uid, $name)
{ {
$to = $this->rows("`token`='$token' and `cfrom`='$cfrom'"); $to = $this->rows("`token`='$token' and `cfrom`='$cfrom'");
if($to==0){ if($to==0){
$larr = array( $larr = array(
'token' => $token, 'token' => $token,
'uid' => $uid, 'uid' => $uid,
'name' => $name, 'name' => $name,
'adddt' => $this->rock->now, 'adddt' => $this->rock->now,
'moddt' => $this->rock->now, 'moddt' => $this->rock->now,
'cfrom' => $cfrom, 'cfrom' => $cfrom,
'online'=> '1' 'online'=> '1'
); );
$this->insert($larr); $this->insert($larr);
}else{ }else{
$this->uplastdt($cfrom, $token); $this->uplastdt($cfrom, $token);
} }
} }
public function uplastdt($cfrom='', $token='') public function uplastdt($cfrom='', $token='')
{ {
$token = $this->rock->request('token', $token); $token = $this->rock->request('token', $token);
if($cfrom=='')$cfrom = $this->rock->request('cfrom'); if($cfrom=='')$cfrom = $this->rock->request('cfrom');
$now = $this->rock->now; $now = $this->rock->now;
$this->update("moddt='$now',`online`=1", "`token`='$token' and `cfrom`='$cfrom'"); $this->update("moddt='$now',`online`=1", "`token`='$token' and `cfrom`='$cfrom'");
} }
public function exitlogin($cfrom='', $token='') public function exitlogin($cfrom='', $token='')
{ {
$token = $this->rock->request('token', $token); $token = $this->rock->request('token', $token);
$cfrom = $this->rock->request('cfrom', $cfrom); $cfrom = $this->rock->request('cfrom', $cfrom);
$cookieSid = $this->rock->cookie('PHPSESSID'); $cookieSid = $this->rock->cookie('PHPSESSID');
//删除redis //删除redis
$redis = new Redis(); $redis = new Redis();
$redis->connect('192.168.1.222',6379); $host = getconfig("redis_host");
$sid = 'PHPREDIS_SESSION:'.$cookieSid; $port = getconfig("redis_port");
$redis->delete($sid);
$redis->close(); $redis->connect($host,$port);
$this->rock->clearcookie('mo_adminid,PHPSESSID,ukey'); $sid = 'PHPREDIS_SESSION:'.$cookieSid;
$redis->delete($sid);
$this->rock->clearsession('adminid,adminname,adminuser,user,ukey'); $redis->close();
$this->rock->clearcookie('user','/',ini_get('session.cookie_domain'));
$this->rock->clearcookie('mo_adminid,PHPSESSID,ukey');
$this->rock->clearallcookie();
$this->rock->clearallsession(); $this->rock->clearsession('adminid,adminname,adminuser,user,ukey');
$this->rock->clearcookie('user','/',ini_get('session.cookie_domain'));
$this->update("`online`=0", "`token`='$token'"); $this->rock->clearallcookie();
} $this->rock->clearallsession();
public function setsession($uid, $name,$token, $user='')
{ $this->update("`online`=0", "`token`='$token'");
$encryptKey = $this->getRandomStr(); }
$session = array(
'adminid' => $uid, public function setsession($uid, $name,$token, $user='')
'adminname' => $name, {
'adminuser' => $user, $encryptKey = $this->getRandomStr();
'admintoken'=> $token, $session = array(
'logintime' => time(), 'adminid' => $uid,
'ukey' => $encryptKey 'adminname' => $name,
); 'adminuser' => $user,
if($user == 'admin') $session['is_admin'] = true; 'admintoken'=> $token,
else $session['is_admin'] = false; 'logintime' => time(),
'ukey' => $encryptKey
$this->rock->savesession($session); );
if($user == 'admin') $session['is_admin'] = true;
$this->rock->adminid = $uid; else $session['is_admin'] = false;
$this->rock->adminname = $name;
$this->admintoken = $token; $this->rock->savesession($session);
$this->adminname = $name;
$this->adminid = $uid; $this->rock->adminid = $uid;
} $this->rock->adminname = $name;
$this->admintoken = $token;
//更新token最后时间 $this->adminname = $name;
private function uptokendt($id) $this->adminid = $uid;
{ }
$this->update("`moddt`='".$this->rock->now."',`online`=1", $id);
} //更新token最后时间
private function uptokendt($id)
//自动快速登录 {
public function autologin($aid=0, $token='', $ism=0) $this->update("`moddt`='".$this->rock->now."',`online`=1", $id);
{ }
$baid = $this->adminid;
if($aid>0 && $token!=''){ //自动快速登录
$rs = $this->getone("`uid`='$aid' and `token`='$token' and `online`=1",'`name`,`id`'); public function autologin($aid=0, $token='', $ism=0)
if(!$rs)exit('请求信息登录已失效,请重新登录'); {
$this->setsession($aid, $rs['name'], $token); $baid = $this->adminid;
$this->uptokendt($rs['id']); if($aid>0 && $token!=''){
$baid = $aid; $rs = $this->getone("`uid`='$aid' and `token`='$token' and `online`=1",'`name`,`id`');
} if(!$rs)exit('请求信息登录已失效,请重新登录');
if($baid==0){ $this->setsession($aid, $rs['name'], $token);
$tokans = $this->rock->jm->uncrypt($this->rock->cookie('mo_adminid'));//用cookie登录 $this->uptokendt($rs['id']);
if(!isempt($tokans)){ $baid = $aid;
$onrs = $this->getone("`token`='$tokans'",'`name`,`token`,`id`,`uid`'); }
if($onrs){ if($baid==0){
$uid= $onrs['uid']; $tokans = $this->rock->jm->uncrypt($this->rock->cookie('mo_adminid'));//用cookie登录
$this->setsession($uid, $onrs['name'], $onrs['token']); if(!isempt($tokans)){
$this->uptokendt($onrs['id']); $onrs = $this->getone("`token`='$tokans'",'`name`,`token`,`id`,`uid`');
}else{ if($onrs){
$uid = 0; $uid= $onrs['uid'];
} $this->setsession($uid, $onrs['name'], $onrs['token']);
$baid = $uid; $this->uptokendt($onrs['id']);
} }else{
} $uid = 0;
return $baid; }
} $baid = $uid;
}
public function updateallonline() }
{ return $baid;
return;//暂时没啥用 }
$moddt = date('Y-m-d H:i:s', time()-180);
$rows = $this->getall("`online`=1 and `moddt`>='$moddt'"); public function updateallonline()
$uids = ''; {
foreach($rows as $k=>$rs)$uids.=','.$rs['uid'].''; return;//暂时没啥用
if($uids!='')m('admin')->update('`online`=1', "`id` in(".substr($uids,1).")"); $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('已登录','未登录'); public function homejtLogin()
$dbs = m('admin'); {
$dlur = 'select `uid` from `[Q]logintoken` where `online`=1 and `moddt` like \''.$dt.'%\''; $dt = $this->rock->date;
$zong = $dbs->rows('`status`=1'); $rows = array();
$delr = $dbs->rows('`status`=1 and `id` in('.$dlur.')'); $data = array('已登录','未登录');
$rows[] = array( $dbs = m('admin');
'name' => '未登录', $dlur = 'select `uid` from `[Q]logintoken` where `online`=1 and `moddt` like \''.$dt.'%\'';
'value' => $zong-$delr, $zong = $dbs->rows('`status`=1');
'color' => '#FF9999' $delr = $dbs->rows('`status`=1 and `id` in('.$dlur.')');
); $rows[] = array(
$rows[] = array( 'name' => '未登录',
'name' => '已登录', 'value' => $zong-$delr,
'value' => $delr, 'color' => '#FF9999'
'color' => '#99CC00' );
); $rows[] = array(
return array( 'name' => '已登录',
'rows' => $rows, 'value' => $delr,
'data' => $data, 'color' => '#99CC00'
'dt' => $dt, );
); return array(
} 'rows' => $rows,
'data' => $data,
private function getRandomStr($length = 10){ 'dt' => $dt,
$strs="QWERTYUIOPASDFGHJKLZXCVBNM1234567890qwertyuiopasdfghjklzxcvbnm"; );
return substr(str_shuffle($strs),mt_rand(0,strlen($strs)-11),$length); }
}
private function getRandomStr($length = 10){
$strs="QWERTYUIOPASDFGHJKLZXCVBNM1234567890qwertyuiopasdfghjklzxcvbnm";
return substr(str_shuffle($strs),mt_rand(0,strlen($strs)-11),$length);
}
} }
\ No newline at end of file
<?php
class yfkDetailClassModel extends Model
{
public function initModel()
{
$this->settable('c_fund_details_yfk');
}
}
\ No newline at end of file
<?php
class yfkClassModel extends Model
{
public function initModel()
{
$this->settable('c_fininfom_oayfk');
}
}
\ No newline at end of file
File mode changed from 100644 to 100755
<?php
/**
* Created by PhpStorm.
* User: chouchou
* Date: 2020-4-2
* Time: 0:17
*/
class openfkClassAction extends openapiAction
{
public $data = [];
public $subdata = [];
public $model = null;
public $ext = 'oa';
public function initAction()
{
$data = json_decode($this->post('data'),true);
if(empty($data)) $this->showreturn([], '请求的参数不能为空!', '201');
if(!empty($data['docnum'])) $this->data['docnum'] = $data['docnum']; //如果是编辑则携带编码
$user = $this->getUser($data['uname']);
if ($data['type'] == 1) {
$this->model = 'fk';
$this->data['applicationdpt'] = $data['dept'];
};
if ($data['type'] == 2) {
$this->model = 'yfk';
$this->data['application'] = $data['dept'];
};
//构建主表
$this->data[$this->model.'name'] = $data['title'];
$this->data['payee'] = $data['payee'];
$this->data['paymentMethod'] = $data['payType'];
$this->data['applicant'] = $user['name'];
$this->data['fkorg'] = $data['payOrg'];
$this->data['paymentBy'] = $data['remarks'];
$this->data['fkinfo'] = $data['fkinfo'];
$this->data['applydt'] = $this->data['optdt'] = $this->data['applydate'] = $data['date'] ?: date('Y-m-d');
$this->data['uid']= $this->data['optid'] = $user['id'];
$this->data['docnum'] = $this->data['docnum'] ?: $this->getDocNum();
$this->data['status'] = 0;
$this->subdata = $this->getSubData($data['details']);
$this->data['amountOfThisPayment'] = $this->AmountSum();
}
//返回不存在的接口方法
public function __call($name, $arguments)
{
$msg = $name . ' action not found';
$this->showreturn([], $msg, '201');
}
//创建预付款单
public function createAction()
{
$id = m($this->model)->insert($this->data);
if ($id) {
//插入子表数据
$smode = m($this->model.'Detail');
foreach ($this->subdata as $sub){
$sub['mid'] = $id;
$sub['comid'] = 1;
$smode->insert($sub);
}
//启动流程
$this->goflow($id);
$this->showreturn(['numb' => $this->data['docnum'],'id'=>$id], '插入数据成功', '200');
} else $this->showreturn([], '插入数据失败', '201');
}
public function updateAction(){
$mid = $this->getIdByDocNum($this->data['docnum']);
if(!$mid) $this->showreturn([], '修改数据失败,不匹配的数据记录', '201');
$where = 'id='.$mid;
unset($this->data['docnum']);
$res = m($this->model)->update($this->data,$where);
if(!$res) $this->showreturn([], '修改数据失败,数据字段异常或字段不匹配', '201');
$smode = m($this->model.'Detail');
//1.获取子表数据,子表数据必须要携带子表id
//2.查询所有子表ID 如果子表ID存在于 记录中则是修改 否则是新增
$scount = 0;
foreach ($this->subdata as $k=>$sub){
if(empty($sub['id'])){ //插入操作
$sub['mid'] = $mid;
$sub['comid'] = 1;
$smode->insert($sub);
} else { //新增
//如果已经存在的子表数据则修改
if($smode->getone('id='.$sub['id'])){
$smode->update($sub,'id='.$sub['id']);
} else {
$sub['mid'] = $mid;
$sub['comid'] = 1;
$smode->insert($sub);
}
}
$scount++;
}
$this->showreturn([], '修改数据成功,子表数据成功修改'.$scount.'条记录', '200');
}
public function getUser($username)
{
$where = "email='".$username."@gonn.com.cn'";
return $this->db->getone('oa_userinfo',$where);
}
public function getSubData($details=[]){
$arr = [];
foreach ($details as $k=>$d){
if(!empty($d['id'])) $arr[$k]['id'] = $d['id'];
$arr[$k]['charge_type'] = $d['chargeType'];
$arr[$k]['charge_amount'] = $d['amount'];
$arr[$k]['cbzx_code'] = $d['projectNumber'];
$arr[$k]['contract_id'] = $d['contractNumber'];
$arr[$k]['receipt_id'] = $d['receipt'];
}
return $arr;
}
//子表金额求和
public function AmountSum(){
$sum = 0;
foreach ($this->subdata as $v){
$sum += $v['charge_amount'];
}
return $sum;
}
private function getDocNum()
{
$pre = 'OA-FK-';
if($this->model == 'yfk') $pre = 'OA-YFK-';
$cext = $pre . date("Ymd");
$where = "`docnum` like '%" . $cext . "%'";
$mode = m($this->model);
$data = $mode->getone($where, 'id,docnum', 'id desc');
$num = '001';
if ($data) {
$num = (int)substr($data['docnum'], strlen($cext)) + 1;
if (strlen($num) == 2) {
$num = '0' . $num;
} else if (strlen($num) == 1) {
$num = '00' . $num;
}
}
return $cext . $num;
}
private function getIdByDocNum($docnum){
$data = m($this->model)->getone("`docnum`='".$docnum."'", 'id,docnum');
return $data['id'] ?: 0;
}
private function goflow($id){
$num = $this->ext.$this->model;
$mode = m("flow:".$num);
$mode->initdata($num);
$mode->loaddata($id);
$mode->submit();
}
}
\ No newline at end of file
<?php
/**
*
* Class
*/
class openfkinfoClassAction extends openapiAction
{
public function __call($name, $arguments)
{
$msg = $name.' action not found';
return $this->showreturn([],$msg,'201');
}
public function listAction(){
$post = $_POST;
if($post){
$arr=$post['docnum'];
$arr=explode(',', $arr);
$str = " ' " . join("','", array_values($arr) ) . " ' "; // 使用需要的符号拼接
$str = " ' ".str_replace( ",","','", implode(',',$arr)); //使用需要的符号替换
$str = join( ', ',array_map(function( $v ){ return "'".$v."'";},$arr) );
$sql='select a.id,a.docnum,a.status,b.nowcheckname from oa_c_fininfom_oafk as a INNER JOIN oa_flow_bill as b on a.docnum=b.sericnum where a.docnum in '."(".$str.")";
$data = $this->db->getall($sql);
foreach ($data as $key => $value) {
$info ='select * from [Q]c_fund_details_fk where mid='.$value['id'];
$info = $this->db->getall($info);
$data[$key]['info']=$info;
$data[$key]['url']="http://chengye-dev.gonn.tech/task.php?a=p&num=oafk&mid=".$value['id'];
}
}else{
$data = $this->db->getall('select * from oa_c_fininfom_oafk as a INNER JOIN oa_flow_bill as b on a.docnum=b.sericnum ');
foreach ($data as $key => $value) {
$info ='select * from [Q]c_fund_details_fk where mid='.$value['id'];
$info = $this->db->getall($info);
$data[$key]['info']=$info;
$data[$key]['url']="http://chengye-dev.gonn.tech/task.php?a=p&num=oafk&mid=".$value['id'];
}
}
return $this->showreturn($data,'SUCCESS','200');
}
public function fkinforAction(){
$post = $_POST;
switch ($post['type']) {
case '1':
$sql='select o.name,o.num from oa_option as o where o.pid=516';
$data = $this->db->getall($sql);
break;
case '2':
$sql='select o.name,o.num from oa_option as o where o.pid=933';
$data = $this->db->getall($sql);
break;
case '3':
$sql='select o.name,o.num from oa_option as o where o.pid=678';
$data = $this->db->getall($sql);
break;
default:
return $this->showreturn([],'error','201');
break;
}
return $this->showreturn($data,'SUCCESS','200');
}
}
\ No newline at end of file
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论