Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
Jz-Php
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
PHP
Jz-Php
Commits
19aee635
提交
19aee635
authored
2月 27, 2020
作者:
chengye
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
抄表单详情添加电表倍率,以及计算用电量
上级
b5993cc3
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
94 行增加
和
18 行删除
+94
-18
default.html
application/em/view/useage/default.html
+1
-1
detail.html
application/em/view/useage/detail.html
+35
-0
detail_special.html
application/em/view/useage/detail_special.html
+34
-1
special.html
application/em/view/useage/special.html
+24
-16
没有找到文件。
application/em/view/useage/default.html
浏览文件 @
19aee635
...
...
@@ -118,7 +118,7 @@
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"current_numb"
name=
"current_numb"
lay-verify=
"required"
autocomplete=
"off"
class=
"layui-input"
oninput=
"sliceDom(this,15)"
lay-verType=
"tips"
lay-verify=
"required"
autocomplete=
"off"
class=
"layui-input"
disabled=
"disabled"
lay-verType=
"tips"
value=
""
>
</div>
<div
class=
"layui-form-mid layui-word-aux"
>
...
...
application/em/view/useage/detail.html
浏览文件 @
19aee635
...
...
@@ -58,6 +58,17 @@
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
倍率
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"rate"
name=
"rate"
autocomplete=
"off"
class=
"layui-input"
value=
"{$em.rate}"
disabled=
"disabled"
>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
@@ -126,6 +137,17 @@
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
用电量
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"repo_numb"
name=
"repo_numb"
autocomplete=
"off"
class=
"layui-input"
value=
""
disabled=
"disabled"
>
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
...
...
@@ -214,6 +236,18 @@
});
return
false
;
});
var
rn
=
$
(
'#repo_numb'
);
var
lNv
=
Number
(
$
(
'#last_numb'
).
val
());
var
cNv
=
Number
(
$
(
'#current_numb'
).
val
());
if
(
cNv
>
lNv
){
var
reN
=
(
cNv
-
lNv
)
*
Number
(
$
(
'#rate'
).
val
());
rn
.
val
(
reN
)
}
else
{
rn
.
val
(
''
)
}
});
</script>
{/block}
\ No newline at end of file
application/em/view/useage/detail_special.html
浏览文件 @
19aee635
...
...
@@ -58,6 +58,17 @@
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
倍率
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"rate"
name=
"rate"
autocomplete=
"off"
class=
"layui-input"
value=
"{$em.rate}"
disabled=
"disabled"
>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
@@ -106,7 +117,7 @@
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"current_numb"
name=
"current_numb"
lay-verify=
"required"
autocomplete=
"off"
class=
"layui-input"
lay-verType=
"tips"
lay-verify=
"required"
autocomplete=
"off"
class=
"layui-input"
lay-verType=
"tips"
value=
"{$useage.current_sum_numb}"
disabled=
"disabled"
>
</div>
<div
class=
"layui-form-mid layui-word-aux"
>
...
...
@@ -126,6 +137,17 @@
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
用电量
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"repo_numb"
name=
"repo_numb"
autocomplete=
"off"
class=
"layui-input"
value=
""
disabled=
"disabled"
>
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
...
...
@@ -233,6 +255,16 @@
});
return
false
;
});
var
rn
=
$
(
'#repo_numb'
);
var
lNv
=
Number
(
$
(
'#last_numb'
).
val
());
var
cNv
=
Number
(
$
(
'#current_numb'
).
val
());
if
(
cNv
>
lNv
){
var
reN
=
(
cNv
-
lNv
)
*
Number
(
$
(
'#rate'
).
val
());
rn
.
val
(
reN
)
}
else
{
rn
.
val
(
''
)
}
});
</script>
{/block}
\ No newline at end of file
application/em/view/useage/special.html
浏览文件 @
19aee635
...
...
@@ -64,8 +64,8 @@
倍率
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"project_number"
autocomplete=
"off"
class=
"layui-input"
value=
"{$em.rate
|default=1
}"
disabled=
"disabled"
>
<input
type=
"text"
id=
"rate"
name=
"project_number"
autocomplete=
"off"
class=
"layui-input"
value=
"{$em.rate}"
disabled=
"disabled"
>
</div>
</div>
</div>
...
...
@@ -119,7 +119,7 @@
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"last_numb"
name=
"last_numb"
autocomplete=
"off"
class=
"layui-input"
disabled=
"disabled"
value=
"{$em.last_sum_numb}"
>
autocomplete=
"off"
class=
"layui-input"
disabled=
"disabled"
value=
"{$em.last_sum_numb}"
>
</div>
</div>
</div>
...
...
@@ -136,17 +136,6 @@
</div>
</div>
<!-- <div class="layui-col-md5">
<div class="layui-form-item">
<label class="layui-form-label">
<span class="x-red">*</span>缴费金额
</label>
<div class="layui-input-inline">
<input type="text" id="amount" name="amount"
autocomplete="off" class="layui-input" value="">
</div>
</div>
</div> -->
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
...
...
@@ -313,8 +302,26 @@
$sum
.
val
(
$sum_numb
);
})
}
);
var
ln
=
$
(
'#last_numb'
);
var
cn
=
$
(
'#current_numb'
);
ln
.
change
(
function
(){
calRn
()
})
cn
.
change
(
function
(){
calRn
()
})
function
calRn
(){
var
rn
=
$
(
'#repo_numb'
);
var
lNv
=
Number
(
$
(
'#last_numb'
).
val
());
var
cNv
=
Number
(
$
(
'#current_numb'
).
val
());
if
(
cNv
>
lNv
){
var
reN
=
(
cNv
-
lNv
)
*
Number
(
$
(
'#rate'
).
val
());
rn
.
val
(
reN
)
}
else
{
rn
.
val
(
''
)
}
}
});
</script>
{/block}
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论