Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
O
OA
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
PHP
OA
Commits
6e7792f1
提交
6e7792f1
authored
6月 10, 2020
作者:
fengzy
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'test' of
ssh://39.155.253.71:33222/PHP/OA
into test
上级
f93cb309
2cef7b97
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
259 行增加
和
29 行删除
+259
-29
mode_assetmuse.js
webmain/flow/input/inputjs/mode_assetmuse.js
+10
-17
mode_assetmuseAction.php
webmain/flow/input/mode_assetmuseAction.php
+15
-8
input_assetm.html
webmain/flow/page/input_assetm.html
+158
-2
input_assetmuse.html
webmain/flow/page/input_assetmuse.html
+75
-2
openfkAction.php
webmain/task/openapi/openfkAction.php
+1
-0
没有找到文件。
webmain/flow/input/inputjs/mode_assetmuse.js
浏览文件 @
6e7792f1
//流程模块【assetmuse.固定资产申领】下录入页面自定义js页面,初始函数
function
initbodys
(){
c
.
onselectdata
[
'assetmnumb'
]
=
function
(
d
){
js
.
ajax
(
geturlact
(
'getassetmnumb'
),{
numb
:
d
.
value
},
function
(
ret
){
if
(
ret
.
length
==
0
)
{
return
'未找到信息'
;
}
$
(
'input[name="assetmname"]'
).
val
(
ret
.
title
);
$
(
'input[name="assetmbuydate"]'
).
val
(
ret
.
buydt
);
$
(
'input[name="assetmprice"]'
).
val
(
ret
.
price
);
$
(
'textarea[name="assetmdetail"]'
).
text
(
ret
.
info
);
c
.
onselectdata
[
'num'
]
=
function
(
d
){
js
.
ajax
(
geturlact
(
'getassetmnumb'
),{
num
:
d
.
value
},
function
(
ret
){
if
(
ret
.
length
==
0
)
{
return
'未找到信息'
;
}
$
(
'input[name="asset"]'
).
val
(
ret
.
title
);
$
(
'input[name="buydate"]'
).
val
(
ret
.
buydt
);
$
(
'input[name="price"]'
).
val
(
ret
.
price
);
$
(
'textarea[name="info"]'
).
text
(
ret
.
info
);
$
(
'input[name="assetm_id"]'
).
val
(
ret
.
assetm_id
);
},
'post,json'
);
};
}
\ No newline at end of file
webmain/flow/input/mode_assetmuseAction.php
浏览文件 @
6e7792f1
...
...
@@ -13,7 +13,14 @@ class mode_assetmuseClassAction extends inputAction{
* return array('msg'=>'错误提示内容','rows'=> array()) 可返回空字符串,或者数组 rows 是可同时保存到数据库上数组
*/
protected
function
savebefore
(
$table
,
$arr
,
$id
,
$addbo
){
$mArr
=
[];
$mArr
[
'usename'
]
=
$arr
[
'user'
];
$mArr
[
'deptname'
]
=
$arr
[
'dept'
];
$mArr
[
'state'
]
=
1
;
$where
=
' id = '
.
$arr
[
'assetm_id'
];
$arr
[
'assetm_id'
]
=
''
;
m
(
'assetm'
)
->
update
(
$mArr
,
$where
);
return
[
'rows'
=>
$arr
];
}
/**
...
...
@@ -24,16 +31,15 @@ class mode_assetmuseClassAction extends inputAction{
* $addbo Boolean 是否添加时
*/
protected
function
saveafter
(
$table
,
$arr
,
$id
,
$addbo
){
}
}
public
function
getassetmnumbAjax
(){
$numb
=
$this
->
post
(
'numb
'
);
$data
=
m
(
'assetm'
)
->
getone
(
'id = '
.
$numb
,
"title,price,buydt,CONCAT('型号:',`model-xh`,' 机器编号:',`model-bh`,' 处理器(CPU):',`model-cpu`,' 内存:',`model-ram`,' 硬盘:',`model-hdd`,' 显卡:',`model-vc`,' 操作系统:',`model-os`) as info"
)
;
$id
=
$this
->
post
(
'num
'
);
$sql
=
'id = '
.
$id
;
$data
=
m
(
'assetm'
)
->
getone
(
$sql
,
"title,price,buydt,CONCAT('型号:',`model_type`,' 机器编号:',`model_id`,' 处理器(CPU):',`model_cpu`,' 内存:',`model_ram`,' 硬盘:',`model_hdd`,' 显卡:',`model_vc`,' 操作系统:',`model_os`) as info"
);
$data
[
'assetm_id'
]
=
$id
;
$this
->
returnjson
(
$data
);
}
}
}
\ No newline at end of file
webmain/flow/page/input_assetm.html
浏览文件 @
6e7792f1
<p><span
style=
"font-size:small;"
><br
/></span>
<table
width=
"100%"
class=
"ke-zeroborder"
bordercolor=
"#000000"
border=
"0"
><tbody><tr><td
height=
"34"
align=
"right"
class=
"ys1"
>
*资产编号
</td><td
class=
"ys2"
>
{num}
</td><td
align=
"right"
class=
"ys1"
><span
style=
"font-size:small;text-indent:28px;white-space:normal;"
>
*状态
</span><br
/></td><td
class=
"ys2"
><span
style=
"font-size:small;text-indent:28px;white-space:normal;"
>
{state}
</span><br
/></td></tr><tr><td
height=
"34"
align=
"right"
class=
"ys1"
>
*资产分类
</td><td
class=
"ys2"
>
{typeid}
</td><td
class=
"ys2"
style=
"text-align:right;"
>
资产来源
</td><td
class=
"ys2"
><span
style=
"text-indent:28px;white-space:normal;"
>
{laiyuan}
</span><br
/></td></tr><tr><td
height=
"34"
align=
"right"
class=
"ys1"
><span
style=
"text-align:-webkit-right;white-space:normal;"
>
*使用人
</span><br
/></td><td
class=
"ys2"
><span
style=
"white-space:normal;"
>
{usename}
</span>
</td><td
align=
"right"
class=
"ys1"
><span
style=
"text-align:-webkit-right;white-space:normal;"
>
*使用人部门
</span><br
/></td><td
class=
"ys2"
><span
style=
"white-space:normal;"
>
{shuname}
</span>
</td></tr><tr><td
height=
"34"
width=
"15%"
align=
"right"
class=
"ys1"
>
*资产名称
<br
/></td><td
width=
"35%"
class=
"ys2"
>
{title}
</td><td
width=
"15%"
align=
"right"
class=
"ys1"
><span
style=
"text-align:-webkit-right;white-space:normal;"
>
价格
</span>
</td><td
width=
"35%"
class=
"ys2"
><span
style=
"white-space:normal;"
>
{price}
</span><br
/></td></tr><tr><td
height=
"34"
align=
"right"
class=
"ys1"
>
*所属公司名称
<br
/></td><td
class=
"ys2"
>
{company}
</td><td
align=
"right"
class=
"ys1"
>
oa号
<br
/></td><td
class=
"ys2"
>
{oanumb}
</td></tr><tr><td
height=
"34"
align=
"right"
class=
"ys1"
>
使用人更迭记录
</td><td
class=
"ys2"
>
{userchangerecord}
</td><td
align=
"right"
class=
"ys1"
>
最近使用人更迭日期
</td><td
class=
"ys2"
>
{recentuserchangedate}
</td></tr><tr><td
class=
"ys1"
style=
"text-align:right;"
>
购进日期
<br
/></td><td
class=
"ys2"
colspan=
"3"
><span
style=
"text-indent:28px;white-space:normal;"
>
{buydt}
</span><br
/></td></tr><tr><td
class=
"ys2"
style=
"background-color:#CCCCCC;"
colspan=
"4"
><p><strong>
详细信息
</strong>
</p></td></tr><tr><td
height=
"34"
align=
"right"
class=
"ys1"
><span
style=
"text-align:-webkit-right;white-space:normal;"
>
*型号
</span>
</td><td
class=
"ys2"
colspan=
"3"
><span
style=
"white-space:normal;"
>
{model-xh}
</span>
</td></tr><tr><td
class=
"ys1"
style=
"text-align:right;"
>
*机器编号
<br
/></td><td
class=
"ys1"
>
{model-bh}
<br
/></td><td
class=
"ys1"
style=
"text-align:right;"
><span
style=
"text-indent:2em;"
>
处理器(CPU)
</span><span
style=
"text-indent:2em;"
></span>
</td><td
class=
"ys1"
>
{model-cpu}
<br
/></td></tr><tr><td
class=
"ys1"
style=
"text-align:right;"
>
内存
<br
/></td><td
class=
"ys1"
>
{model-ram}
<br
/></td><td
class=
"ys1"
style=
"text-align:right;"
>
硬盘
<br
/></td><td
class=
"ys1"
>
{model-hdd}
<br
/></td></tr><tr><td
class=
"ys1"
style=
"text-align:right;"
>
显卡
<br
/></td><td
class=
"ys1"
>
{model-vc}
<br
/></td><td
class=
"ys1"
style=
"text-align:right;"
>
操作系统
<br
/></td><td
class=
"ys1"
>
{model-os}
<br
/></td></tr></tbody></table></p>
\ No newline at end of file
<p>
<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;"
>
{source}
</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;"
>
{deptname}
</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"
>
{oanum}
</td>
</tr>
<tr>
<td
height=
"34"
align=
"right"
class=
"ys1"
>
使用人更迭记录
</td>
<td
class=
"ys2"
>
{log}
</td>
<td
align=
"right"
class=
"ys1"
>
最近使用人更迭日期
</td>
<td
class=
"ys2"
>
{changedt}
</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_type}
</span>
</td>
</tr>
<tr>
<td
class=
"ys1"
style=
"text-align:right;"
>
*机器编号
<br
/>
</td>
<td
class=
"ys1"
>
{model_id}
<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
webmain/flow/page/input_assetmuse.html
浏览文件 @
6e7792f1
<p><br
/><table
class=
""
border=
"1"
bordercolor=
"#000000"
style=
"width:100%;"
><tbody><tr><td
class=
"ys1"
height=
"34"
align=
"right"
width=
"15%"
style=
"text-align:center;width:15%;height:34px;background-color:#CCCCCC;"
>
*申领人
</td><td
class=
"ys2"
width=
"35%"
>
{applicant}
</td><td
class=
"ys1"
align=
"right"
width=
"15%"
style=
"text-align:center;width:15%;background-color:#CCCCCC;"
>
*申领人部门
</td><td
class=
"ys2"
width=
"35%"
>
{applicantdept}
</td></tr><tr><td
class=
"ys1"
height=
"34"
align=
"right"
style=
"text-align:center;height:34px;background-color:#CCCCCC;"
>
*申领日期
</td><td
class=
"ys2"
colspan=
"3"
>
{applicationdate}
</td></tr><tr><td
class=
"ys1"
style=
"text-align:center;background-color:#CCCCCC;"
>
*资产编号
<br
/></td><td
class=
"ys2"
>
{assetmnumb}
<br
/></td><td
class=
"ys1"
style=
"text-align:center;background-color:#CCCCCC;"
>
*资产名称
<br
/></td><td
class=
"ys2"
>
{assetmname}
<br
/></td></tr><tr><td
class=
"ys1"
style=
"text-align:center;background-color:#CCCCCC;"
>
*资产价格
<br
/></td><td
class=
"ys2"
>
{assetmprice}
<br
/></td><td
class=
"ys1"
style=
"text-align:center;background-color:#CCCCCC;"
>
*资产购买日期
<br
/></td><td
class=
"ys2"
>
{assetmbuydate}
<br
/></td></tr><tr><td
class=
"ys1"
height=
"34"
align=
"right"
style=
"text-align:center;height:34px;background-color:#CCCCCC;"
>
*资产详细信息
</td><td
class=
"ys2"
colspan=
"3"
>
{assetmdetail}
</td></tr><tr><td
style=
"text-align:center;background-color:#CCCCCC;"
>
*申领原因
</td><td
class=
"ys2"
colspan=
"3"
><span
style=
"text-indent:28.2353px;white-space:normal;"
>
{applicationreason}
</span><br
/></td></tr></tbody></table></p><br
/>
\ No newline at end of file
<p>
<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%"
>
{user}{assetm_id}
</td>
<td
class=
"ys1"
align=
"right"
width=
"15%"
style=
"text-align:center;width:15%;background-color:#CCCCCC;"
>
*申领人部门
</td>
<td
class=
"ys2"
width=
"35%"
>
{dept}
</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"
>
{date}
</td>
</tr>
<tr>
<td
class=
"ys1"
style=
"text-align:center;background-color:#CCCCCC;"
>
*资产编号
<br
/>
</td>
<td
class=
"ys2"
>
{num}
</td>
<td
class=
"ys1"
style=
"text-align:center;background-color:#CCCCCC;"
>
*资产名称
<br
/>
</td>
<td
class=
"ys2"
>
{asset}
</td>
</tr>
<tr>
<td
class=
"ys1"
style=
"text-align:center;background-color:#CCCCCC;"
>
*资产价格
<br
/>
</td>
<td
class=
"ys2"
>
{price}
</td>
<td
class=
"ys1"
style=
"text-align:center;background-color:#CCCCCC;"
>
*资产购买日期
<br
/>
</td>
<td
class=
"ys2"
>
{buydate}
</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"
>
{info}
</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;"
>
{cause}
</span>
</td>
</tr>
</tbody>
</table>
</p>
<br
/>
\ No newline at end of file
webmain/task/openapi/openfkAction.php
浏览文件 @
6e7792f1
...
...
@@ -16,6 +16,7 @@ class openfkClassAction extends openapiAction
public
function
initAction
()
{
$data
=
json_decode
(
$_POST
[
'data'
],
true
);
if
(
empty
(
$data
))
$this
->
showreturn
([],
$_POST
[
'data'
],
'201'
);
if
(
!
empty
(
$data
[
'docnum'
]))
$this
->
data
[
'docnum'
]
=
$data
[
'docnum'
];
//如果是编辑则携带编码
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论