Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
O
OA
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
PHP
OA
Commits
7caaa332
提交
7caaa332
authored
5月 20, 2020
作者:
fengzy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
固定资产、合同、资金划拨
上级
a4f19416
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
82 行增加
和
30 行删除
+82
-30
mode_contract_list.js
webmain/flow/input/inputjs/mode_contract_list.js
+21
-6
mode_contract_listAction.php
webmain/flow/input/mode_contract_listAction.php
+19
-18
commonModel.php
webmain/model/commonModel.php
+41
-0
fund_depositModel.php
webmain/model/flow/fund_depositModel.php
+1
-1
fund_transferModel.php
webmain/model/flow/fund_transferModel.php
+0
-5
没有找到文件。
webmain/flow/input/inputjs/mode_contract_list.js
浏览文件 @
7caaa332
...
...
@@ -25,22 +25,21 @@ function initbodys(){
$
(
form
(
'bankcode'
)).
find
(
"option"
).
remove
()
})
c
.
onselectdata
[
'part_c'
]
=
function
(
d
){
form
(
'partc_name'
).
value
=
d
.
value
;
};
c
.
onselectdatabefore
=
function
(
fid
,
zb
){
var
receive
=
$
(
"select[name='receive'] 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
==
''
)
{
return
'请选择类型'
;
}
if
(
receive
!=
1
&&
receive
!=
2
)
{
if
(
receive
==
''
)
{
return
'请选择收款方,否则无法获取银行账号信息'
;
}
}
return
{
'receive'
:
receive
}
return
{
'receive'
:
receive
,
'financetype'
:
financetype
}
}
...
...
@@ -76,6 +75,22 @@ function initbodys(){
},
'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
()
}
...
...
webmain/flow/input/mode_contract_listAction.php
浏览文件 @
7caaa332
...
...
@@ -62,15 +62,17 @@ class mode_contract_listClassAction extends inputAction{
public
function
getbankcodebymidAjax
(){
$mid
=
$this
->
post
(
'mid'
);
$c
=
m
(
'c_contract'
)
->
getone
(
'id = '
.
$mid
,
'id,bankcode,parta_name,partb_name,receive'
);
$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'
];
}
else
{
}
else
if
(
$c
[
'reveice'
]
==
2
)
{
$num
=
$c
[
'partb_name'
];
}
else
{
$num
=
$c
[
'partc_name'
];
}
$s
=
m
(
'supplier'
)
->
getone
(
'number = "'
.
$num
.
'"'
,
'id'
);
if
(
$s
){
...
...
@@ -122,26 +124,26 @@ class mode_contract_listClassAction extends inputAction{
public
function
getparta
(){
$fid
=
$this
->
get
(
'receive'
);
$data
=
[];
if
(
$fid
==
1
){
//如果甲方收款
$data
=
m
(
'common'
)
->
getsupplier
();
}
else
if
(
$fid
==
2
)
{
//乙方收款
$data
=
m
(
'common'
)
->
getcustomer
();
}
$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
(){
$fid
=
$this
->
get
(
'receive'
);
$data
=
[];
if
(
$fid
==
1
){
//如果甲方收款
$data
=
m
(
'common'
)
->
getcustomer
();
}
else
if
(
$fid
==
2
)
{
//乙方收款 乙方就是供应商
$data
=
m
(
'common'
)
->
getsupplier
();
}
$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
webmain/model/commonModel.php
浏览文件 @
7caaa332
...
...
@@ -111,4 +111,45 @@ class CommonClassModel extends Model
{
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
;
}
}
webmain/model/flow/fund_depositModel.php
浏览文件 @
7caaa332
...
...
@@ -17,7 +17,7 @@ class flow_fund_depositClassModel extends flowModel
//提交时调用
protected
function
flow
submit
(
$na
,
$sm
){
protected
function
flow
checkfinsh
(
$na
,
$sm
){
$name
=
$this
->
rs
[
'toaccount'
];
$data
=
m
(
'c_fund_account'
)
->
getone
(
"`name`='
$name
'"
);
$zfarr
=
array
(
...
...
webmain/model/flow/fund_transferModel.php
浏览文件 @
7caaa332
...
...
@@ -35,13 +35,8 @@ class flow_fund_transferClassModel extends flowModel
return
$rs
;
}
//作废单据时调用,$sm作废说明
// protected function flowzuofeibill($sm){
// var_dump($sm);
// }
//提交时调用
protected
function
flowcheckfinsh
(
$zt
){
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论