Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
Jz-Php
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
PHP
Jz-Php
Commits
20f92a91
提交
20f92a91
authored
3月 04, 2020
作者:
chengye
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test
上级
244a73b7
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
5 行增加
和
370 行删除
+5
-370
EmPayment.php
application/em/model/EmPayment.php
+5
-5
create2.html
application/em/view/payment/create2.html
+0
-183
create3.html
application/em/view/payment/create3.html
+0
-182
没有找到文件。
application/em/model/EmPayment.php
浏览文件 @
20f92a91
...
@@ -28,11 +28,11 @@ class EmPayment extends Base
...
@@ -28,11 +28,11 @@ class EmPayment extends Base
->
field
(
'epi.invoice_id'
)
->
field
(
'epi.invoice_id'
)
->
field
(
'em.em_numb'
)
->
field
(
'em.em_numb'
)
->
field
(
'r.region_name,station.station_name'
)
->
field
(
'r.region_name,station.station_name'
)
->
j
oin
([
'em_account'
=>
'ea'
],
'ea.account_id=pay.account_id'
)
->
rightJ
oin
([
'em_account'
=>
'ea'
],
'ea.account_id=pay.account_id'
)
->
j
oin
([
'em_payment_invoice'
=>
'epi'
],
'epi.payment_id = pay.payment_id'
)
->
rightJ
oin
([
'em_payment_invoice'
=>
'epi'
],
'epi.payment_id = pay.payment_id'
)
->
j
oin
([
'em'
],
'em.id=ea.em_id'
)
->
rightJ
oin
([
'em'
],
'em.id=ea.em_id'
)
->
j
oin
([
'station_info'
=>
'station'
],
'station.station_id=em.station_id'
)
->
rightJ
oin
([
'station_info'
=>
'station'
],
'station.station_id=em.station_id'
)
->
j
oin
([
'region'
=>
'r'
],
'station.area_id = r.id'
)
->
rightJ
oin
([
'region'
=>
'r'
],
'station.area_id = r.id'
)
->
where
(
$map
)
->
where
(
$map
)
->
order
(
'pay.id desc'
)
->
order
(
'pay.id desc'
)
->
page
(
$Nowpage
,
$limits
)
->
page
(
$Nowpage
,
$limits
)
...
...
application/em/view/payment/create2.html
deleted
100644 → 0
浏览文件 @
244a73b7
{extend name="public:base" /}
{block name="body"}
<div
class=
"layui-row"
>
<div
class=
"layui-col-md12"
>
<div
class=
"layui-card"
>
<div
class=
"layui-card-body"
>
<form
class=
"layui-form"
>
<!--缴费-->
<div
class=
"layui-form-box"
>
<div
class=
"layui-form-head"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
填写缴费信息
</label>
</div>
</div>
<div
class=
"layui-form-body"
>
<div
class=
"layui-row"
>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label layui-text-left"
>
缴费金额:
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"amount"
id=
"paid_totle"
class=
"layui-input no-border"
disabled=
"disabled"
>
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label layui-text-left"
>
缴费员:
</label>
<div
class=
"layui-input-inline"
>
<select
name=
"staff_id"
>
{foreach $staffs as $u}
<option
value=
"{$u['id']}"
}
>
{$u['name']}
</option>
{/foreach}
</select>
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label layui-text-left"
>
缴费凭证:
</label>
<div
class=
"layui-input-inline"
>
<a
class=
"layui-btn layui-btn-normal layui-right"
lay-submit
lay-filter=
"showCert"
ο
nclick=
"return false;"
>
查看
</a>
<button
class=
"layui-btn layui-btn-normal layui-right"
lay-submit
lay-filter=
"addCert"
ο
nclick=
"return false;"
><i
class=
"layui-icon layui-icon-add-circle-fine"
></i></button>
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label layui-text-left"
>
发票凭证:
</label>
<div
class=
"layui-input-inline"
>
<a
class=
"layui-btn layui-btn-normal layui-right"
lay-submit
lay-filter=
"showReceipt"
ο
nclick=
"return false;"
>
查看
</a>
<button
class=
"layui-btn layui-btn-normal layui-right"
lay-submit
lay-filter=
"addReceipt"
ο
nclick=
"return false;"
><i
class=
"layui-icon layui-icon-add-circle-fine"
></i></button>
</div>
</div>
</div>
</div>
<div
class=
"layui-form-item layui-col-md-offset4"
>
<button
class=
"layui-btn"
lay-filter=
"save"
lay-submit=
""
>
保存
</button>
</div>
</div>
</div>
<!--缴费结束-->
</form>
</div>
</div>
</div>
</div>
{/block}
{block name="js"}
<script>
//限制输入长度
function
sliceDom
(
dom
,
len
){
if
(
dom
.
value
.
length
>
len
)
return
dom
.
value
=
dom
.
value
.
slice
(
0
,
len
)
}
//初始化Layui控件
layui
.
use
([
'form'
,
'layer'
,
'laydate'
,
'upload'
],
function
()
{
$
=
layui
.
jquery
;
var
form
=
layui
.
form
,
layer
=
layui
.
layer
,
laydate
=
layui
.
laydate
,
upload
=
layui
.
upload
;
//消息提示
function
layMsg
(
msg
,
type
=
6
,
time
=
1000
){
layer
.
msg
(
msg
,{
icon
:
type
,
time
:
time
,
});
}
form
.
on
(
'submit(submit)'
,
function
(
data
)
{
$
.
ajax
({
url
:
'/payment/update'
,
method
:
"POST"
,
data
:
data
.
field
,
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
status
==
1
)
{
layer
.
msg
(
data
.
message
,{
icon
:
6
,
time
:
1000
})
}
else
{
layer
.
msg
(
data
.
message
,{
icon
:
5
,
time
:
1000
})
}
}
});
return
false
;
});
//保存信息
form
.
on
(
'submit(save)'
,
function
(
data
)
{
$
.
ajax
({
url
:
'/payment/save'
,
method
:
"POST"
,
data
:
data
.
field
,
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
status
==
1
)
{
layer
.
msg
(
data
.
message
,{
icon
:
6
,
time
:
1000
})
}
else
{
layer
.
msg
(
data
.
message
,{
icon
:
5
,
time
:
1000
})
}
}
});
return
false
;
});
//上传电表照片
var
upPhoto
=
upload
.
render
({
elem
:
'#up_photo'
,
url
:
'/up_photo'
,
field
:
'cp_photo'
,
done
:
function
(
res
)
{
if
(
res
.
status
==
1
){
layMsg
(
res
.
message
)
//将电表照片的ID填写
var
$photoId
=
$
(
"input[name='photo_id']"
)
$photoId
.
val
(
res
.
data
.
id
)
var
$a
=
$photoId
.
next
(
'a'
);
$a
.
removeClass
(
'layui-hide'
)
$a
.
attr
(
'href'
,
res
.
data
.
src
);
}
else
{
layMsg
(
res
.
message
,
5
)
return
;
}
}
});
});
</script>
{/block}
\ No newline at end of file
application/em/view/payment/create3.html
deleted
100644 → 0
浏览文件 @
244a73b7
{extend name="public:base" /}
{block name="body"}
<div
class=
"layui-row"
>
<div
class=
"layui-col-md12"
>
<div
class=
"layui-card"
>
<div
class=
"layui-card-body"
>
<form
class=
"layui-form"
>
<!--缴费-->
<div
class=
"layui-form-box"
>
<div
class=
"layui-form-head"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
缴费详情
</label>
</div>
</div>
<div
class=
"layui-form-body"
>
<div
class=
"layui-row"
>
<input
type=
"hidden"
name=
"em_id"
value=
"{$em.id}"
>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label layui-text-left"
>
电表号:
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"em_numb"
autocomplete=
"off"
class=
"layui-input no-border"
value=
"{$em.em_numb}"
disabled=
"disabled"
>
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label layui-text-left"
>
缴费单号:
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"payment_id"
autocomplete=
"off"
class=
"layui-input no-border"
value=
"{$payment.payment_id}"
disabled=
"disabled"
>
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label layui-text-left"
>
缴费金额:
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"amount"
id=
"amount"
class=
"layui-input"
>
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label layui-text-left"
>
缴费日期:
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"pay_date"
id=
"pay_date"
class=
"layui-input"
>
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label layui-text-left"
>
缴费员:
</label>
<div
class=
"layui-input-inline"
>
<select
name=
"staff_id"
>
{foreach $staffs as $u}
<option
value=
"{$u['id']}"
}
>
{$u['name']}
</option>
{/foreach}
</select>
</div>
</div>
</div>
</div>
<div
class=
"layui-form-item layui-col-md-offset4"
>
<button
class=
"layui-btn"
lay-filter=
"save"
lay-submit=
""
>
保存
</button>
</div>
</div>
</div>
<!--缴费结束-->
</form>
</div>
</div>
</div>
</div>
{/block}
{block name="js"}
<script>
//限制输入长度
function
sliceDom
(
dom
,
len
){
if
(
dom
.
value
.
length
>
len
)
return
dom
.
value
=
dom
.
value
.
slice
(
0
,
len
)
}
//初始化Layui控件
layui
.
use
([
'form'
,
'layer'
,
'laydate'
,
'upload'
],
function
()
{
$
=
layui
.
jquery
;
var
form
=
layui
.
form
,
layer
=
layui
.
layer
,
laydate
=
layui
.
laydate
,
upload
=
layui
.
upload
;
//消息提示
function
layMsg
(
msg
,
type
=
6
,
time
=
1000
){
layer
.
msg
(
msg
,{
icon
:
type
,
time
:
time
,
});
}
laydate
.
render
({
elem
:
'#pay_date'
,
trigger
:
'click'
,
})
//审核通过
form
.
on
(
'submit(save)'
,
function
(
data
)
{
$
.
ajax
({
url
:
'/payment/save'
,
method
:
"POST"
,
data
:
data
.
field
,
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
status
==
1
)
{
layer
.
msg
(
data
.
message
,{
icon
:
6
,
time
:
1000
})
}
else
{
layer
.
msg
(
data
.
message
,{
icon
:
5
,
time
:
1000
})
}
}
});
return
false
;
});
//上传电表照片
var
upPhoto
=
upload
.
render
({
elem
:
'#up_photo'
,
url
:
'/up_photo'
,
field
:
'cp_photo'
,
done
:
function
(
res
)
{
if
(
res
.
status
==
1
){
layMsg
(
res
.
message
)
//将电表照片的ID填写
var
$photoId
=
$
(
"input[name='photo_id']"
)
$photoId
.
val
(
res
.
data
.
id
)
var
$a
=
$photoId
.
next
(
'a'
);
$a
.
removeClass
(
'layui-hide'
)
$a
.
attr
(
'href'
,
res
.
data
.
src
);
}
else
{
layMsg
(
res
.
message
,
5
)
return
;
}
}
});
});
</script>
{/block}
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论