Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
a54b172d
Commit
a54b172d
authored
Jul 31, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开业审核
parent
579c4749
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
183 additions
and
4 deletions
+183
-4
getCollectionShop.html
application/index/view/officeBuilding/getCollectionShop.html
+53
-1
getCollectionShop.js
public/resource/js/getCollectionShop.js
+113
-3
receivables_template_tpl.html
public/resource/template/receivables_template_tpl.html
+17
-0
No files found.
application/index/view/officeBuilding/getCollectionShop.html
View file @
a54b172d
{layout name="global/frame_two_tpl" /}
{layout name="global/frame_two_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"getCollectionShop"
/>
<input
type=
"hidden"
class=
"page-load"
id=
"getCollectionShop"
/>
<style>
<style>
#file_input_pic_open
{
opacity
:
0
;
position
:
absolute
;
top
:
0
;
left
:
0
;
height
:
35px
;
width
:
80px
;
}
.reportAreaLiu
{
.reportAreaLiu
{
list-style
:
none
;
list-style
:
none
;
}
}
...
@@ -222,7 +231,7 @@
...
@@ -222,7 +231,7 @@
text-align
:
center
;
text-align
:
center
;
color
:
red
;
color
:
red
;
}
}
.result
>
img
,
.result2
>
img
{
.result
>
img
,
.result2
>
img
,
.result-du-open
>
img
{
width
:
120px
;
width
:
120px
;
height
:
120px
;
height
:
120px
;
margin-top
:
8px
;
margin-top
:
8px
;
...
@@ -1312,3 +1321,46 @@
...
@@ -1312,3 +1321,46 @@
</div>
</div>
<!-- /.modal -->
<!-- /.modal -->
</div>
</div>
<!--申请开业-->
<div
class=
"modal fade"
id=
"modal_open"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
申请开业
</h4>
</div>
<div
class=
"modal-body modal-body-height"
>
<ul
class=
"list-group"
>
<li
class=
"list-group-item"
>
<div
class=
"form-group full-width-100 full-pic-area"
>
<span
style=
"position: relative;top: -50px;"
>
开业说明
<span
class=
"text-danger"
>
(必填)
</span>
:
</span><textarea
name=
""
rows=
""
cols=
""
style=
"width: 380px;height: 100px;"
class=
"remark-financial-open"
></textarea>
</div>
<div
class=
"form-group full-width-100 full-pic-area"
>
<!--input上传图片-->
<div>
图片至少1张,最多三张:
<span
class=
"text-danger"
>
(必填)
</span></div>
<div
id=
"container_body"
>
<button
type=
"button btn2"
class=
"btn btn-default"
>
上传图片
</button>
<input
type=
"file"
id=
"file_input_pic_open"
/>
<div
id=
"container_body_img_open"
></div>
</div>
</div>
</li>
</ul>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button btn2"
class=
"btn btn-primary"
id=
"saveBtnOpen"
>
保存
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
public/resource/js/getCollectionShop.js
View file @
a54b172d
...
@@ -153,9 +153,119 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -153,9 +153,119 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
}
}
});
});
});
});
//申请开业
$
(
'#file_input_pic_open'
).
on
(
'change'
,
function
(){
var
_this
=
$
(
this
);
var
formData
=
new
FormData
();
formData
.
append
(
'type'
,
'chat'
);
formData
.
append
(
'image'
,
_this
[
0
].
files
[
0
]);
$
.
ajax
({
type
:
'post'
,
url
:
ServerHostImageLiu
+
'/index/uploadImg'
,
data
:
formData
,
dataType
:
'json'
,
contentType
:
false
,
cache
:
false
,
processData
:
false
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
_data
.
code
==
200
)
{
$
(
'#container_body_img_open'
).
append
(
'<div class="result-du-open"><img data-imgname="{0}" src="{1}" alt=""/> <span class="span-del-open">删除</span></div>'
.
stringFormatObj
({
'0'
:
_data
.
data
.
img_path
,
'1'
:
_data
.
data
.
internet_img_name
?
urlDeal
(
_data
.
data
.
internet_img_name
):
_data
.
data
.
internet_img_name
}));
}
else
{
alert
(
_data
.
msg
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
});
//删除申请开业图片
_doc
.
on
(
'click'
,
'.span-del-open'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
$
(
this
).
parent
().
remove
();
});
//点击开业申请 显示图片
_doc
.
on
(
'click'
,
'.apply-open'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
pay_log_id_open
=
$
(
this
).
attr
(
"data-pay_log_id"
);
bargain
.
report_id_open
=
$
(
this
).
attr
(
"data-report_id"
);
bargain
.
bargain_id_open
=
$
(
this
).
attr
(
"data-bargain_id"
);
bargain
.
order_id_open
=
$
(
this
).
attr
(
"data-order_id"
);
bargain
.
house_id_open
=
$
(
this
).
attr
(
"data-house_id"
);
bargain
.
house_address_open
=
$
(
this
).
attr
(
"data-house_address"
);
$
(
'.remark-financial-open'
).
val
(
''
);
//置空还有备注
$
(
'.result-du-open'
).
remove
();
//置空开业图片
});
//提交申请开业
_doc
.
on
(
'click'
,
'#saveBtnOpen'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
var
imgname
=
[];
for
(
var
i
=
0
;
i
<
$
(
'.result-du-open'
).
length
;
i
++
)
{
imgname
[
i
]
=
$
(
'.result-du-open>img'
).
eq
(
i
).
attr
(
'data-imgname'
);
};
var
_data
=
{
pay_log_id
:
bargain
.
pay_log_id_open
,
report_id
:
bargain
.
report_id_open
,
bargain_id
:
bargain
.
bargain_id_open
,
order_id
:
bargain
.
order_id_open
,
house_id
:
bargain
.
house_id_open
,
house_address
:
bargain
.
house_address_open
,
agent_id
:
user_info_obj
.
id
,
intro
:
$
(
".remark-financial-open"
).
val
()
};
//无新的图片上传 不调用接口
if
(
imgname
.
join
(
','
))
{
_data
[
'open_img'
]
=
JSON
.
stringify
(
imgname
);;
}
if
(
!
(
$
(
".remark-financial-open"
).
val
())){
alert
(
'请填写开业说明'
);
return
;
}
if
(
!
(
$
(
'.result-du-open'
).
length
>=
1
&&
$
(
'.result-du-open'
).
length
<=
3
)){
alert
(
'图片至少一张,最多三张'
);
return
;
}
$
.
ajax
({
type
:
'POST'
,
url
:
'/index/openPayLog'
,
data
:
_data
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
alert
(
'保存成功'
);
$
(
"#modal_open"
).
modal
(
'hide'
);
bargain
.
getList
();
}
else
{
alert
(
data
.
msg
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
});
//图片删除事件
//图片删除事件
_doc
.
on
(
'click'
,
'.span-del'
,
function
(
e
)
{
_doc
.
on
(
'click'
,
'.span-del'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
...
...
public/resource/template/receivables_template_tpl.html
View file @
a54b172d
...
@@ -31,6 +31,23 @@
...
@@ -31,6 +31,23 @@
<
/td
>
<
/td
>
<!--<
td
>
[
%=
it
[
item
][
'source_id'
]
%
]
<
/td>--
>
<!--<
td
>
[
%=
it
[
item
][
'source_id'
]
%
]
<
/td>--
>
<
td
>
<
td
>
[
%
if
(
it
[
item
][
"is_open"
]
==
0
&&
check_auth
(
'index/openPayLog'
)){
%
]
[
%
if
(
it
[
item
][
"type_num"
]
==
92
||
it
[
item
][
"type_num"
]
==
91
)
{
%
]
[
%
if
(
it
[
item
][
"is_check"
]
==
0
)
{
%
]
<
a
class
=
"btn1 btn-info apply-open is-show-open"
href
=
"#modal_open"
data
-
pay_log_id
=
"[%= it[item]['id'] %]"
data
-
report_id
=
"[%= it[item]['report_id'] %]"
data
-
bargain_id
=
"[%= it[item]['bargain_id'] %]"
data
-
order_id
=
"[%= it[item]['order_id'] %]"
data
-
house_id
=
"[%= it[item]['house_id'] %]"
data
-
house_address
=
"[%= it[item]['house_address'] %]"
data
-
toggle
=
"modal"
>
申请开业
<
/a>
[
%
}
%
]
[
%
if
(
it
[
item
][
"is_check"
]
==
1
)
{
%
]
<
a
class
=
"btn1 btn-default is-show-open"
data
-
pay_log_id
=
"[%= it[item]['id'] %]"
data
-
report_id
=
"[%= it[item]['report_id'] %]"
data
-
bargain_id
=
"[%= it[item]['bargain_id'] %]"
data
-
order_id
=
"[%= it[item]['order_id'] %]"
data
-
house_id
=
"[%= it[item]['house_id'] %]"
data
-
house_address
=
"[%= it[item]['house_address'] %]"
>
开业审核中
<
/a>
[
%
}
%
]
[
%
}
%
]
[
%
}
%
]
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
时间轴
<
/a
>
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
时间轴
<
/a
>
[
%
if
(
check_auth
(
'index/getCollectionDetail'
))
{
%
]
[
%
if
(
check_auth
(
'index/getCollectionDetail'
))
{
%
]
<
a
class
=
"btn1 btn-success add-pic"
href
=
"#modal-addPic"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
report
=
'[%= it[item]["report_id"] %]'
data
-
order
=
'[%= it[item]["order_id"] %]'
>
收款详情
<
/a>
<
a
class
=
"btn1 btn-success add-pic"
href
=
"#modal-addPic"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
report
=
'[%= it[item]["report_id"] %]'
data
-
order
=
'[%= it[item]["order_id"] %]'
>
收款详情
<
/a>
...
...
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