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
0490eb28
Commit
0490eb28
authored
Aug 05, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
68fd1a14
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
23 deletions
+52
-23
getCollectionShop.html
application/index/view/officeBuilding/getCollectionShop.html
+2
-2
financial_manager_daily_list.js
public/resource/js/financial_manager_daily_list.js
+2
-1
getCollectionShop.js
public/resource/js/getCollectionShop.js
+43
-18
receivables_template_tpl.html
public/resource/template/receivables_template_tpl.html
+5
-2
No files found.
application/index/view/officeBuilding/getCollectionShop.html
View file @
0490eb28
...
@@ -224,7 +224,7 @@
...
@@ -224,7 +224,7 @@
.hide
{
.hide
{
display
:
none
!important
;
display
:
none
!important
;
}
}
.result
{
.result
,
.result-du-open
{
width
:
130px
;
width
:
130px
;
height
:
auto
;
height
:
auto
;
float
:
left
;
float
:
left
;
...
@@ -1352,7 +1352,7 @@
...
@@ -1352,7 +1352,7 @@
<div>
图片至少1张,最多三张:
<span
class=
"text-danger"
>
(必填)
</span></div>
<div>
图片至少1张,最多三张:
<span
class=
"text-danger"
>
(必填)
</span></div>
<div
id=
"container_body"
>
<div
id=
"container_body"
>
<button
type=
"button btn2"
class=
"btn btn-default"
>
上传图片
</button>
<button
type=
"button btn2"
class=
"btn btn-default"
>
上传图片
</button>
<input
type=
"file"
id=
"file_input_pic_open"
/>
<input
type=
"file"
id=
"file_input_pic_open"
multiple=
"multiple"
/>
<div
id=
"container_body_img_open"
></div>
<div
id=
"container_body_img_open"
></div>
</div>
</div>
</div>
</div>
...
...
public/resource/js/financial_manager_daily_list.js
View file @
0490eb28
...
@@ -158,6 +158,8 @@ define(['doT','html2canvas','text!temp/financial_manager_daily_list_template_tpl
...
@@ -158,6 +158,8 @@ define(['doT','html2canvas','text!temp/financial_manager_daily_list_template_tpl
bargain
.
house_address_open
=
$
(
this
).
attr
(
"data-house_address"
);
bargain
.
house_address_open
=
$
(
this
).
attr
(
"data-house_address"
);
$
(
'.remark-financial-open'
).
val
(
''
);
//置空还有备注
$
(
'.remark-financial-open'
).
val
(
''
);
//置空还有备注
$
(
'.result-du-open'
).
remove
();
//置空开业图片
$
(
'.result-du-open'
).
remove
();
//置空开业图片
$
(
'.type-financial-open'
).
val
(
''
);
//置空开业类型
});
});
//收款详情页面
//收款详情页面
...
@@ -270,7 +272,6 @@ define(['doT','html2canvas','text!temp/financial_manager_daily_list_template_tpl
...
@@ -270,7 +272,6 @@ define(['doT','html2canvas','text!temp/financial_manager_daily_list_template_tpl
for
(
i
=
0
;
i
<
imgFiles
.
length
;
i
++
){
for
(
i
=
0
;
i
<
imgFiles
.
length
;
i
++
){
formData
.
append
(
'image['
+
i
+
']'
,
imgFiles
[
i
]);
formData
.
append
(
'image['
+
i
+
']'
,
imgFiles
[
i
]);
}
}
console
.
log
(
formData
);
$
.
ajax
({
$
.
ajax
({
type
:
'post'
,
type
:
'post'
,
url
:
ServerHostImageLiu
+
'/index/uploadImg'
,
url
:
ServerHostImageLiu
+
'/index/uploadImg'
,
...
...
public/resource/js/getCollectionShop.js
View file @
0490eb28
define
([
'doT'
,
'text!temp/receivables_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
"datetimepicker"
,
'pagination'
,
'bootstrapJs'
,
'blow-up'
],
function
(
doT
,
template
)
{
define
([
'doT'
,
'text!temp/receivables_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
"datetimepicker"
,
'pagination'
,
'bootstrapJs'
,
'blow-up'
],
function
(
doT
,
template
)
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
receiv
=
{
receiv
=
{
pageNo
:
1
,
pageNo
:
1
,
/*第几页*/
/*第几页*/
...
@@ -34,6 +35,12 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -34,6 +35,12 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
is_baocun_bargainID
:
0
,
is_baocun_bargainID
:
0
,
liu_order_id
:
''
,
liu_order_id
:
''
,
liu_report_id
:
''
,
liu_report_id
:
''
,
pay_log_id_open
:
''
,
//开业审核
report_id_open
:
''
,
bargain_id_open
:
''
,
order_id_open
:
''
,
house_id_open
:
''
,
house_address_open
:
''
,
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
$
(
document
.
body
).
append
(
template
);
$
(
document
.
body
).
append
(
template
);
...
@@ -154,11 +161,15 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -154,11 +161,15 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
});
});
});
});
//申请开业
//申请开业
$
(
'#file_input_pic_open'
).
on
(
'change'
,
function
(){
$
(
'#file_input_pic_open'
).
on
(
'change'
,
function
(
e
){
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
var
formData
=
new
FormData
();
var
formData
=
new
FormData
();
formData
.
append
(
'type'
,
'chat'
);
formData
.
append
(
'type'
,
'chat'
);
formData
.
append
(
'image'
,
_this
[
0
].
files
[
0
]);
// formData.append('image', _this[0].files[0]);
var
imgFiles
=
_this
[
0
].
files
;
for
(
i
=
0
;
i
<
imgFiles
.
length
;
i
++
){
formData
.
append
(
'image['
+
i
+
']'
,
imgFiles
[
i
]);
}
$
.
ajax
({
$
.
ajax
({
type
:
'post'
,
type
:
'post'
,
url
:
ServerHostImageLiu
+
'/index/uploadImg'
,
url
:
ServerHostImageLiu
+
'/index/uploadImg'
,
...
@@ -170,10 +181,23 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -170,10 +181,23 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
beforeSend
:
function
()
{},
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
success
:
function
(
_data
)
{
if
(
_data
.
code
==
200
)
{
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
,
var
str_
=
''
;
'1'
:
_data
.
data
.
internet_img_name
?
urlDeal
(
_data
.
data
.
internet_img_name
):
_data
.
data
.
internet_img_name
$
.
each
(
_data
.
data
,
function
(
i
,
item
)
{
}));
str_
+=
'<div class="result-du-open"><img data-imgname="{0}" src="{1}" alt=""/> <span class="span-del-open">删除</span></div>'
.
stringFormatObj
({
'0'
:
item
.
img_path
,
'1'
:
item
.
internet_img_name
?
urlDeal
(
item
.
internet_img_name
):
item
.
internet_img_name
});
});
$
(
'#container_body_img_open'
).
append
(
str_
);
//渲染图片
e
.
target
.
value
=
''
;
//置空input值 可以上传重复图片
//一次上传一张图片
// $('#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
{
}
else
{
alert
(
_data
.
msg
);
alert
(
_data
.
msg
);
};
};
...
@@ -199,14 +223,15 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -199,14 +223,15 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
_doc
.
on
(
'click'
,
'.apply-open'
,
function
(
e
)
{
_doc
.
on
(
'click'
,
'.apply-open'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
bargain
.
pay_log_id_open
=
$
(
this
).
attr
(
"data-pay_log_id"
);
receiv
.
pay_log_id_open
=
$
(
this
).
attr
(
"data-pay_log_id"
);
bargain
.
report_id_open
=
$
(
this
).
attr
(
"data-report_id"
);
receiv
.
report_id_open
=
$
(
this
).
attr
(
"data-report_id"
);
bargain
.
bargain_id_open
=
$
(
this
).
attr
(
"data-bargain_id"
);
receiv
.
bargain_id_open
=
$
(
this
).
attr
(
"data-bargain_id"
);
bargain
.
order_id_open
=
$
(
this
).
attr
(
"data-order_id"
);
receiv
.
order_id_open
=
$
(
this
).
attr
(
"data-order_id"
);
bargain
.
house_id_open
=
$
(
this
).
attr
(
"data-house_id"
);
receiv
.
house_id_open
=
$
(
this
).
attr
(
"data-house_id"
);
bargain
.
house_address_open
=
$
(
this
).
attr
(
"data-house_address"
);
receiv
.
house_address_open
=
$
(
this
).
attr
(
"data-house_address"
);
$
(
'.remark-financial-open'
).
val
(
''
);
//置空还有备注
$
(
'.remark-financial-open'
).
val
(
''
);
//置空还有备注
$
(
'.result-du-open'
).
remove
();
//置空开业图片
$
(
'.result-du-open'
).
remove
();
//置空开业图片
$
(
'.type-financial-open'
).
val
(
''
);
//置空开业类型
});
});
//提交申请开业
//提交申请开业
...
@@ -219,12 +244,12 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -219,12 +244,12 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
imgname
[
i
]
=
$
(
'.result-du-open>img'
).
eq
(
i
).
attr
(
'data-imgname'
);
imgname
[
i
]
=
$
(
'.result-du-open>img'
).
eq
(
i
).
attr
(
'data-imgname'
);
};
};
var
_data
=
{
var
_data
=
{
pay_log_id
:
bargain
.
pay_log_id_open
,
pay_log_id
:
receiv
.
pay_log_id_open
,
report_id
:
bargain
.
report_id_open
,
report_id
:
receiv
.
report_id_open
,
bargain_id
:
bargain
.
bargain_id_open
,
bargain_id
:
receiv
.
bargain_id_open
,
order_id
:
bargain
.
order_id_open
,
order_id
:
receiv
.
order_id_open
,
house_id
:
bargain
.
house_id_open
,
house_id
:
receiv
.
house_id_open
,
house_address
:
bargain
.
house_address_open
,
house_address
:
receiv
.
house_address_open
,
agent_id
:
user_info_obj
.
id
,
agent_id
:
user_info_obj
.
id
,
intro
:
$
(
".remark-financial-open"
).
val
(),
intro
:
$
(
".remark-financial-open"
).
val
(),
type
:
$
(
".type-financial-open"
).
val
()
type
:
$
(
".type-financial-open"
).
val
()
...
...
public/resource/template/receivables_template_tpl.html
View file @
0490eb28
...
@@ -32,12 +32,16 @@
...
@@ -32,12 +32,16 @@
<!--<
td
>
[
%=
it
[
item
][
'source_id'
]
%
]
<
/td>--
>
<!--<
td
>
[
%=
it
[
item
][
'source_id'
]
%
]
<
/td>--
>
<
td
>
<
td
>
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
时间轴
<
/a
>
[
%
if
(
it
[
item
][
"is_open"
]
==
0
&&
check_auth
(
'index/openPayLog'
)){
%
]
[
%
if
(
it
[
item
][
"is_open"
]
==
0
&&
check_auth
(
'index/openPayLog'
)){
%
]
[
%
if
(
it
[
item
][
"type_num"
]
==
92
||
it
[
item
][
"type_num"
]
==
91
)
{
%
]
[
%
if
(
it
[
item
][
"type_num"
]
==
92
||
it
[
item
][
"type_num"
]
==
91
)
{
%
]
[
%
if
(
it
[
item
][
"is_check"
]
==
0
)
{
%
]
[
%
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
-
address
=
"[%= it[item]['house_address'] %]"
data
-
toggle
=
"modal"
>
申请开业
<
/a>
<
a
class
=
"btn1 btn-
success
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
-
address
=
"[%= it[item]['house_address'] %]"
data
-
toggle
=
"modal"
>
申请开业
<
/a>
[
%
}
%
]
[
%
}
%
]
[
%
if
(
it
[
item
][
"is_check"
]
==
1
)
{
%
]
[
%
if
(
it
[
item
][
"is_check"
]
==
1
)
{
%
]
...
@@ -48,7 +52,6 @@
...
@@ -48,7 +52,6 @@
[
%
}
%
]
[
%
}
%
]
<
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