提交 b630ae54 authored 作者: chengye's avatar chengye

电表照片上传支持多种格式jpg,png,gif,doc,docx,xls,xlsx,zip,rar,pdf

上级 764388cb
......@@ -554,22 +554,26 @@
//渲染date类型字段
laydate.render({
elem: '#init_date', // 第一次抄表
trigger: 'click'
trigger: 'click',
format:'yyyy-MM-dd HH:mm:ss'
});
laydate.render({
elem: '#contract_confirm_date',//合同确认时间
trigger: 'click'
trigger: 'click',
format:'yyyy-MM-dd HH:mm:ss'
});
laydate.render({
elem: '#cycle_start_time',//合同确认时间
trigger: 'click'
trigger: 'click',
format:'yyyy-MM-dd HH:mm:ss'
});
laydate.render({
elem: '#cycle_finish_time',//合同确认时间
trigger: 'click'
trigger: 'click',
format:'yyyy-MM-dd HH:mm:ss'
});
......@@ -654,8 +658,9 @@
//上传电表照片
var uploadEa = upload.render({
elem: '#electric_annex_button' ,
url: '/upAnnex',
field: 'annex_file',
url: '/upFile',
field: 'up_file',
accept: 'file',
done: function (res) {
if(res.status == 1){
//将电表照片的ID填写
......
......@@ -65,8 +65,8 @@
<th lay-data="{field:'region_name',sort: true} ">区域</th>
<th lay-data="{field:'operator_name',sort: true}">运营商</th>
<th lay-data="{field:'proj_number'}">项目编号</th>
<th lay-data="{templet: '#account_id'}">账户ID</th>
<th lay-data="{templet: '#amount'}">账户余额</th>
<!--<th lay-data="{templet: '#account_id'}">账户ID</th>-->
<!--<th lay-data="{templet: '#amount'}">账户余额</th>-->
<th lay-data="{field:'create_time',sort: true}">创建时间</th>
<th lay-data="{fixed: 'right', width:'180', align:'center', toolbar: '#barDemo'}">操作</th>
</tr>
......@@ -106,12 +106,4 @@
</a>
</div>
</script>
<script>
layui.use(['laydate','form','table'], function(){
var laydate = layui.laydate,
form = layui.form,
table = layui.table
});
</script>
{/block}
......@@ -665,8 +665,9 @@
//上传电表照片
var uploadEa = upload.render({
elem: '#electric_annex_button' ,
url: '/upAnnex',
field: 'annex_file',
url: '/upFile',
field: 'up_file',
accept: 'file',
done: function (res) {
if(res.status == 1){
layMsg(res.message)
......
......@@ -183,9 +183,7 @@
function () {
$ = layui.jquery;
var form = layui.form,
layer = layui.layer,
laydate = layui.laydate,
upload = layui.upload;
layer = layui.layer;
//消息提示
......
......@@ -203,11 +203,7 @@
function () {
$ = layui.jquery;
var form = layui.form,
layer = layui.layer,
laydate = layui.laydate,
upload = layui.upload;
layer = layui.layer;
//消息提示
function layMsg(msg,type=6,time=1000){
layer.msg(msg,{
......
......@@ -239,7 +239,6 @@
laydate.render({
elem:'#current_date',
value:new Date(),
trigger:'click',
})
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论