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
00288d08
Commit
00288d08
authored
Oct 22, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成交信息保存限制
parent
4d850566
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
35 deletions
+42
-35
reportList.js
public/resource/js/reportList.js
+42
-35
No files found.
public/resource/js/reportList.js
View file @
00288d08
...
...
@@ -13,6 +13,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
agent_id_phone
:
''
,
//分佣方 姓名搜索
detail_user_id
:
''
,
//用户id
detail_shop_id
:
''
,
//商铺id
isBargaininfoSaveIngFlag
:
false
,
//成交信息保存是否正在保存
shouyong_date_active_sapn
:
null
,
init
:
function
()
{
//初始化dot
...
...
@@ -713,42 +714,48 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
});
},
bargaininfoSave
:
function
()
{
//修改报告详情
var
_data
=
{
'id'
:
bargain
.
bargain_id
,
'commission'
:
$
.
trim
(
$
(
'#bargaininfo_total_commission'
).
val
()),
'content'
:
$
.
trim
(
$
(
'#bargaininfo_beizhu'
).
val
()),
'is_open'
:
$
(
'#bargaininfo_is_open'
).
val
(),
'trade_type'
:
$
(
'#bargaininfo_type'
).
val
(),
'industry_type'
:
$
.
trim
(
$
(
'#bargaininfo_yetai'
).
val
()),
'price'
:
$
(
'#bargaininfo_chengjiao_price'
).
val
(),
'estimated_receipt_date'
:
$
(
'#bargaininfo_expect_payback_time'
).
val
(),
'step'
:
bargain
.
mainTabIndex
,
'house_number'
:
$
.
trim
(
$
(
'#bargaininfo_shop_num'
).
val
())
};
$
.
each
(
$
(
'.detail-modal-bargaininfo-commission-sec'
),
function
(
i
,
v
)
{
_data
[
'practical_fee['
+
i
+
']'
]
=
{
'fee_id'
:
v
.
getAttribute
(
'data-id'
)?
v
.
getAttribute
(
'data-id'
):
0
,
'fee'
:
$
.
trim
(
$
(
v
).
find
(
'input'
).
eq
(
0
).
val
()),
'operation_date'
:
$
.
trim
(
$
(
v
).
find
(
'input'
).
eq
(
1
).
val
())
if
(
!
bargain
.
isBargaininfoSaveIngFlag
){
bargain
.
isBargaininfoSaveIngFlag
=
true
;
var
_data
=
{
'id'
:
bargain
.
bargain_id
,
'commission'
:
$
.
trim
(
$
(
'#bargaininfo_total_commission'
).
val
()),
'content'
:
$
.
trim
(
$
(
'#bargaininfo_beizhu'
).
val
()),
'is_open'
:
$
(
'#bargaininfo_is_open'
).
val
(),
'trade_type'
:
$
(
'#bargaininfo_type'
).
val
(),
'industry_type'
:
$
.
trim
(
$
(
'#bargaininfo_yetai'
).
val
()),
'price'
:
$
(
'#bargaininfo_chengjiao_price'
).
val
(),
'estimated_receipt_date'
:
$
(
'#bargaininfo_expect_payback_time'
).
val
(),
'step'
:
bargain
.
mainTabIndex
,
'house_number'
:
$
.
trim
(
$
(
'#bargaininfo_shop_num'
).
val
())
};
});
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/editBargainInfo'
,
data
:
_data
,
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
alert
(
'修改成功'
);
bargain
.
bargaininfoShow
();
//bargain.getList(0);
}
else
{
alert
(
data
.
msg
);
}
}
});
$
.
each
(
$
(
'.detail-modal-bargaininfo-commission-sec'
),
function
(
i
,
v
)
{
_data
[
'practical_fee['
+
i
+
']'
]
=
{
'fee_id'
:
v
.
getAttribute
(
'data-id'
)?
v
.
getAttribute
(
'data-id'
):
0
,
'fee'
:
$
.
trim
(
$
(
v
).
find
(
'input'
).
eq
(
0
).
val
()),
'operation_date'
:
$
.
trim
(
$
(
v
).
find
(
'input'
).
eq
(
1
).
val
())
};
});
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/editBargainInfo'
,
data
:
_data
,
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
alert
(
'修改成功'
);
bargain
.
bargaininfoShow
();
//bargain.getList(0);
}
else
{
alert
(
data
.
msg
);
}
},
complete
:
function
(
xhr
,
textStatus
){
bargain
.
isBargaininfoSaveIngFlag
=
false
;
}
});
}
},
maidShow
:
function
()
{
$
(
'#maid_new_btn'
).
hide
();
//默认隐藏新增按钮
...
...
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