Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d0465329
authored
Apr 11, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
银行凭证格式上传修改
parent
ca602d6d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
9 deletions
public/images/icons8-file-100.png:Zone.Identifier
resources/views/script/AddSupplierReceiptScript.blade.php
resources/views/script/supplier/SupplierReceiptScript.blade.php
resources/views/web/AddSupplierReceipt.blade.php
public/images/icons8-file-100.png:Zone.Identifier
0 → 100644
View file @
d0465329
[ZoneTransfer]
ZoneId=3
HostUrl=about:internet
resources/views/script/AddSupplierReceiptScript.blade.php
View file @
d0465329
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
form
.
on
(
'radio(receipt_type)'
,
function
(
data
)
{
form
.
on
(
'radio(receipt_type)'
,
function
(
data
)
{
if
(
data
.
value
==
1
)
{
if
(
data
.
value
==
1
)
{
$
(
'#swift_code_div'
)
.
hide
();
$
(
'#swift_code_div'
)
.
hide
();
}
else
{
}
else
{
$
(
'#swift_code_div'
)
.
show
();
$
(
'#swift_code_div'
)
.
show
();
}
}
});
});
...
@@ -44,6 +44,8 @@
...
@@ -44,6 +44,8 @@
k2
:
k2
,
k2
:
k2
,
source
:
1
source
:
1
}
}
,
accept
:
'file'
,
exts
:
'jpg|png|bmp|jpeg|zip|pdf'
,
before
:
function
(
obj
)
{
,
before
:
function
(
obj
)
{
layer
.
msg
(
'加载中'
,
{
layer
.
msg
(
'加载中'
,
{
icon
:
16
icon
:
16
...
@@ -52,7 +54,11 @@
...
@@ -52,7 +54,11 @@
let
item
=
this
.
item
;
let
item
=
this
.
item
;
//预读本地文件示例,不支持ie8
//预读本地文件示例,不支持ie8
obj
.
preview
(
function
(
index
,
file
,
result
)
{
obj
.
preview
(
function
(
index
,
file
,
result
)
{
$
(
'#'
+
item
.
attr
(
'preview'
))
.
attr
(
'src'
,
result
);
//图片链接(base64)
// if (file.type.indexOf('image') !== -1){
// $('#' + item.attr('preview')).attr('src', result); //图片链接(base64)
// }else{
// $('#' + item.attr('preview')).attr('src', '/images/file.png');
// }
});
});
}
}
,
done
:
function
(
res
)
{
,
done
:
function
(
res
)
{
...
@@ -60,6 +66,7 @@
...
@@ -60,6 +66,7 @@
layer
.
msg
(
'上传成功'
,
{
icon
:
6
});
layer
.
msg
(
'上传成功'
,
{
icon
:
6
});
let
item
=
this
.
item
;
let
item
=
this
.
item
;
$
(
'#'
+
item
.
attr
(
'data-obj'
))
.
val
(
res
.
data
[
0
]);
$
(
'#'
+
item
.
attr
(
'data-obj'
))
.
val
(
res
.
data
[
0
]);
$
(
'#certificate_url'
)
.
text
(
res
.
data
[
0
]);
return
false
;
return
false
;
}
else
{
}
else
{
layer
.
msg
(
'上传失败'
,
{
icon
:
5
});
layer
.
msg
(
'上传失败'
,
{
icon
:
5
});
...
...
resources/views/script/supplier/SupplierReceiptScript.blade.php
View file @
d0465329
...
@@ -33,11 +33,10 @@
...
@@ -33,11 +33,10 @@
{
field
:
'bank_adderss'
,
title
:
'开户行'
,
align
:
'center'
,
width
:
150
},
{
field
:
'bank_adderss'
,
title
:
'开户行'
,
align
:
'center'
,
width
:
150
},
{
field
:
'account_no'
,
title
:
'银行账号'
,
align
:
'center'
,
width
:
130
},
{
field
:
'account_no'
,
title
:
'银行账号'
,
align
:
'center'
,
width
:
130
},
{
field
:
'account_name'
,
title
:
'账户名称'
,
align
:
'center'
,
width
:
150
},
{
field
:
'account_name'
,
title
:
'账户名称'
,
align
:
'center'
,
width
:
150
},
{
field
:
'swift_code'
,
title
:
'电汇号码'
,
align
:
'center'
,
width
:
1
5
0
},
{
field
:
'swift_code'
,
title
:
'电汇号码'
,
align
:
'center'
,
width
:
1
3
0
},
{
{
field
:
'certificate'
,
title
:
'信息凭证'
,
width
:
150
,
align
:
'center'
,
templet
:
function
(
data
)
{
field
:
'certificate'
,
title
:
'信息凭证'
,
width
:
200
,
align
:
'center'
,
templet
:
function
(
data
)
{
return
"
<
a
href
=
'" + data.certificate + "'
target
=
'_blank'
>
" +
return
"
<
a
href
=
'" + data.certificate + "'
target
=
'_blank'
>
" + data.certificate + "
<
/a>"
;
"
<
img
class
=
'certificate_img'
style
=
'width: 70px;height: 60px'
src
=
'" + data.certificate + "'
><
/a>"
;
}
}
},
},
{
field
:
'remark'
,
title
:
'备注'
,
align
:
'center'
,
width
:
200
},
{
field
:
'remark'
,
title
:
'备注'
,
align
:
'center'
,
width
:
200
},
...
...
resources/views/web/AddSupplierReceipt.blade.php
View file @
d0465329
...
@@ -82,10 +82,11 @@
...
@@ -82,10 +82,11 @@
value=
"{{$receipt['certificate'] or ''}}"
>
value=
"{{$receipt['certificate'] or ''}}"
>
<button
type=
"button"
class=
"layui-btn upload-img"
preview=
"preview"
data-obj=
"certificate"
>
<button
type=
"button"
class=
"layui-btn upload-img"
preview=
"preview"
data-obj=
"certificate"
>
<i
class=
"layui-icon"
>

</i>
上传
图片
<i
class=
"layui-icon"
>

</i>
上传
文件
</button>
</button>
<img
@
if
(!
empty
($
receipt
['
certificate
']))
src=
"{{$receipt['certificate'] or ''}}"
<a
target=
"_blank"
id=
"certificate_url"
href=
"{{$receipt['certificate'] or ''}}"
>
{{$receipt['certificate'] or ''}}
</a>
@
endif
class=
"layui-upload-img"
width=
"50px"
height=
"50px"
id=
"preview"
>
{{--
<img
@
if
(!
empty
($
receipt
['
certificate
']))
src=
"{{$receipt['certificate'] or ''}}"
--
}}
{{
--
@
endif
class=
"layui-upload-img"
width=
"50px"
height=
"50px"
id=
"preview"
>
--}}
</div>
</div>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment