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
89584035
Commit
89584035
authored
Dec 19, 2018
by
duxinyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c94b80f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
14 deletions
+50
-14
getCollection.js
public/resource/js/getCollection.js
+50
-14
No files found.
public/resource/js/getCollection.js
View file @
89584035
...
...
@@ -324,7 +324,9 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
}
else
{}
}
else
{
alert
(
data
.
msg
)
}
}
});
},
...
...
@@ -353,7 +355,9 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
}));
};
}
else
{}
}
else
{
alert
(
data
.
msg
)
}
}
});
},
...
...
@@ -484,6 +488,8 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
});
$
(
'#commit_home'
).
append
(
str
);
fn
&&
fn
();
}
else
{
alert
(
data
.
msg
);
}
}
});
...
...
@@ -502,6 +508,8 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
fn
&&
fn
(
data
.
data
);
}
else
{
alert
(
data
.
msg
);
}
}
});
...
...
@@ -521,7 +529,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
getReportDataByDetail
:
function
(
val
){
$
.
post
(
''
,{
'val'
:
val
},
function
(
data
){
return
data
;
if
(
data
.
code
==
200
)
{
return
data
;
}
else
{
alert
(
data
.
msg
);
}
})
},
...
...
@@ -650,14 +662,21 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
//上传数据
$
.
post
(
'/index/collectingBill'
,
params
,
function
(
data
){
console
.
log
(
data
);
$
(
'#modal-linetime'
).
modal
(
'hide'
);
if
(
data
.
code
==
200
)
{
$
(
'#modal-linetime'
).
modal
(
'hide'
);
}
else
{
alert
(
data
.
msg
);
}
},
'json'
);
},
getAllPrice
:
function
(
id
){
$
.
get
(
'/index/getAdjustment'
,{
'pay_id'
:
id
},
function
(
data
){
$
(
'#could_price'
).
text
(
data
.
data
.
residue_money
);
if
(
data
.
code
==
200
)
{
$
(
'#could_price'
).
text
(
data
.
data
.
residue_money
);
}
else
{
alert
(
data
.
msg
);
}
})
},
...
...
@@ -666,7 +685,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var
params
=
that
.
recervablesParams
();
console
.
log
(
params
);
$
.
post
(
'/index/getCollectionEdit'
,
params
,
function
(
data
){
that
.
getList
(
that
.
pageNo
);
if
(
data
.
code
==
200
)
{
that
.
getList
(
that
.
pageNo
);
}
else
{
alert
(
data
.
msg
);
}
},
'json'
)
},
...
...
@@ -738,7 +761,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var
that
=
receiv
;
var
params
=
that
.
buildSearchParams
(
true
);
$
.
post
(
''
,
params
,
function
(
data
){
console
.
log
(
data
);
if
(
data
.
code
==
200
)
{
}
else
{
alert
(
data
.
msg
);
}
})
window
.
open
(
'/index/getCollection'
+
params
);
},
...
...
@@ -888,9 +915,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
'pay_id'
:
id
};
$
.
post
(
'/index/getCollectionDetail'
,
params
,
function
(
data
){
console
.
log
(
"12321321321321313213213"
)
console
.
log
(
data
);
that
.
getValueFunction
(
data
.
data
);
if
(
data
.
code
==
200
)
{
that
.
getValueFunction
(
data
.
data
);
}
else
{
alert
(
data
.
msg
);
}
},
'json'
)
},
...
...
@@ -978,7 +1007,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var
that
=
receiv
;
$
.
get
(
'/index/getBeForNum'
,{
'order_id'
:
id
},
function
(
data
){
// $('#shop_id_change').text(data.data.house_number);
that
.
yetai
=
data
.
data
.
industry_type
;
if
(
data
.
code
==
200
)
{
that
.
yetai
=
data
.
data
.
industry_type
;
}
else
{
alert
(
data
.
msg
);
}
},
'json'
)
},
/**
...
...
@@ -992,8 +1025,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
'pay_id'
:
id
};
$
.
post
(
'/index/delPayLog'
,
params
,
function
(
data
){
console
.
log
(
data
);
that
.
getList
(
1
);
if
(
data
.
code
==
200
)
{
that
.
getList
(
1
);
}
else
{
alert
(
data
.
msg
);
}
},
'json'
)
}
};
...
...
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