Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
f055f410
Commit
f055f410
authored
Feb 19, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
e2a737e4
9cbfa0ee
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
275 additions
and
22 deletions
+275
-22
groupTourOrder.vue
src/components/SalesModule/groupTourOrder.vue
+79
-2
groupTourOrderByTuan.vue
src/components/SalesModule/groupTourOrderByTuan.vue
+84
-10
productQuery.vue
src/components/SalesModule/productQuery.vue
+49
-1
RegistrationList.vue
src/components/TravelManager/TravelList/RegistrationList.vue
+57
-4
LessPriceManagement.vue
src/components/systemManagement/LessPriceManagement.vue
+6
-5
No files found.
src/components/SalesModule/groupTourOrder.vue
View file @
f055f410
...
@@ -806,9 +806,17 @@
...
@@ -806,9 +806,17 @@
</el-col>
</el-col>
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
<el-form-item
label=
"成交单价"
prop=
"Unit_Price"
>
<el-form-item
label=
"成交单价"
prop=
"Unit_Price"
>
<el-input
v-model=
'addMsg.Unit_Price'
:disabled=
"true"
<el-select
v-model=
'addMsg.Unit_Price'
@
keyup
.
native=
"checkPrice(addMsg,'Unit_Price');getTotalPrice()"
></el-input>
filterable
:placeholder=
"$t('pub.pleaseSel')"
@
change=
"getTotalPrice()"
>
<el-option
v-for=
"item in Unit_PriceList"
:label=
'item.LessMoney'
:value=
'item.ID'
:key=
'item.ID'
>
</el-option>
</el-select>
<!--
<el-input
v-model=
'addMsg.Unit_Price'
:disabled=
"true"
@
keyup
.
native=
"checkPrice(addMsg,'Unit_Price');getTotalPrice()"
></el-input>
-->
</el-form-item>
</el-form-item>
<el-form-item>
<p
v-if=
"LessMoney==0"
style=
"line-height: 18px; color: #E95252;"
>
注:如果超出本团的最低让价,差价将由你来承担
</p>
<p
v-else=
"LessMoney>0"
style=
"line-height: 18px; color: #E95252;"
>
注:最多少价
{{
LessMoney
}}
元,如需少价更多请联系上级主管
</p>
</el-form-item>
<!--
<el-form-item>
<!--
<el-form-item>
<p
style=
"line-height: 18px; color: #E95252;"
>
注:如果超出本团的最低让价,差价将由你来承担
</p>
<p
style=
"line-height: 18px; color: #E95252;"
>
注:如果超出本团的最低让价,差价将由你来承担
</p>
</el-form-item>
-->
</el-form-item>
-->
...
@@ -1751,6 +1759,8 @@
...
@@ -1751,6 +1759,8 @@
},
},
IsUnion
:
2
,
IsUnion
:
2
,
IsChargeLossOrders
:
0
,
IsChargeLossOrders
:
0
,
Unit_PriceList
:[],
//成交单价下拉数据
LessMoney
:
0
,
addMsg
:
{
addMsg
:
{
OrderId
:
'0'
,
OrderId
:
'0'
,
TCID
:
'0'
,
TCID
:
'0'
,
...
@@ -2414,7 +2424,50 @@
...
@@ -2414,7 +2424,50 @@
err
=>
{
err
=>
{
}
}
)
)
this
.
Unit_PriceList
=
[];
this
.
apipost
(
'sellorder_post_GetLessPrice'
,
{},
res
=>
{
this
.
LessMoney
=
res
.
data
.
data
.
lessMoney
;
if
(
parseFloat
(
this
.
LessMoney
)
>
0
){
for
(
var
i
=
0
;
i
<=
parseInt
(
this
.
LessMoney
)
/
10
;
i
++
)
{
var
obj
=
{
ID
:
''
,
LessMoney
:
''
}
obj
.
ID
=
this
.
addMsg
.
TC_Price
-
i
*
10
;
obj
.
LessMoney
=
this
.
addMsg
.
TC_Price
-
i
*
10
;
this
.
Unit_PriceList
.
push
(
obj
);
}
// this.Unit_PriceList.forEach(person => {
if
(
this
.
Unit_PriceList
.
findIndex
(
markers
=>
markers
.
ID
==
this
.
addMsg
.
Unit_Price
)
<
0
)
{
var
obj
=
{
ID
:
''
,
LessMoney
:
''
}
obj
.
ID
=
this
.
addMsg
.
Unit_Price
;
obj
.
LessMoney
=
this
.
addMsg
.
Unit_Price
;
this
.
Unit_PriceList
.
push
(
obj
);
}
// });
//判断下拉价格里面是否包含了成交单价,未包含就添加进来
// const option = {ID:this.addMsg.TC_Price,LessMoney:this.addMsg.TC_Price}
// // 如果数组里面本身不存在这个对象则把这个加进去
// if(JSON.stringify(this.Unit_PriceList).indexOf(JSON.stringify(option))==-1){
// this.Unit_PriceList.push(option); // 进行动态的操作
// }
}
else
{
var
obj
=
{
ID
:
''
,
LessMoney
:
''
}
obj
.
ID
=
this
.
addMsg
.
Unit_Price
;
obj
.
LessMoney
=
this
.
addMsg
.
Unit_Price
;
this
.
Unit_PriceList
.
push
(
obj
);
}
},
err
=>
{})
this
.
getKhmdList
(
this
.
addMsg
.
CustomerType
,
obj
.
lineId
)
this
.
getKhmdList
(
this
.
addMsg
.
CustomerType
,
obj
.
lineId
)
this
.
getDdlyList
(
this
.
addMsg
.
CustomerType
)
this
.
getDdlyList
(
this
.
addMsg
.
CustomerType
)
}
else
{
}
else
{
...
@@ -2520,6 +2573,30 @@
...
@@ -2520,6 +2573,30 @@
this
.
addMsg
.
CustomerId
=
'0'
this
.
addMsg
.
CustomerId
=
'0'
this
.
addMsg
.
CommissionShareMoney
=
'0'
this
.
addMsg
.
CommissionShareMoney
=
'0'
}
}
this
.
Unit_PriceList
=
[];
this
.
apipost
(
'sellorder_post_GetLessPrice'
,
{},
res
=>
{
this
.
LessMoney
=
res
.
data
.
data
.
lessMoney
;
if
(
parseFloat
(
this
.
LessMoney
)
>
0
){
for
(
var
i
=
0
;
i
<=
parseInt
(
this
.
LessMoney
)
/
10
;
i
++
)
{
var
obj
=
{
ID
:
''
,
LessMoney
:
''
}
obj
.
ID
=
this
.
addMsg
.
TC_Price
-
i
*
10
;
obj
.
LessMoney
=
this
.
addMsg
.
TC_Price
-
i
*
10
;
this
.
Unit_PriceList
.
push
(
obj
);
}
}
else
{
var
obj
=
{
ID
:
''
,
LessMoney
:
''
}
obj
.
ID
=
this
.
addMsg
.
Unit_Price
;
obj
.
LessMoney
=
this
.
addMsg
.
Unit_Price
;
this
.
Unit_PriceList
.
push
(
obj
);
}
},
err
=>
{})
},
},
getTicheng
()
{
getTicheng
()
{
//提成
//提成
...
...
src/components/SalesModule/groupTourOrderByTuan.vue
View file @
f055f410
...
@@ -727,9 +727,14 @@
...
@@ -727,9 +727,14 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
<el-form-item
label=
"成交单价"
prop=
"Unit_Price"
>
<el-form-item
label=
"成交单价"
prop=
"Unit_Price"
>
<el-input
v-model=
'addMsg.Unit_Price'
:disabled=
"true"
@
keyup
.
native=
"checkPrice(addMsg,'Unit_Price');getTotalPrice()"
></el-input>
<!--
<el-select
v-model=
'addMsg.Unit_Price'
</el-form-item>
filterable
:placeholder=
"$t('pub.pleaseSel')"
@
change=
"getTotalPrice()"
>
<el-option
v-for=
"item in Unit_PriceList"
:label=
'item.LessMoney'
:value=
'item.ID'
:key=
'item.ID'
>
</el-option>
</el-select>
-->
<el-input
v-model=
'addMsg.Unit_Price'
:disabled=
"true"
@
keyup
.
native=
"checkPrice(addMsg,'Unit_Price');getTotalPrice()"
></el-input>
</el-form-item>
<!--
<el-form-item>
<!--
<el-form-item>
<p
style=
"line-height: 18px; color: #E95252;"
>
注:如果超出本团的最低让价,差价将由你来承担
</p>
<p
style=
"line-height: 18px; color: #E95252;"
>
注:如果超出本团的最低让价,差价将由你来承担
</p>
</el-form-item>
-->
</el-form-item>
-->
...
@@ -1041,12 +1046,21 @@
...
@@ -1041,12 +1046,21 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
<el-form-item
label=
"成交单价"
prop=
"Unit_Price"
>
<
!--
<
el-form-item
label=
"成交单价"
prop=
"Unit_Price"
>
<el-input
v-model=
'addMsg.Unit_Price'
@
keyup
.
native=
"checkPrice(addMsg,'Unit_Price');getTotalPrice()"
></el-input>
<el-input
v-model=
'addMsg.Unit_Price'
@
keyup
.
native=
"checkPrice(addMsg,'Unit_Price');getTotalPrice()"
></el-input>
</el-form-item>
</el-form-item>
-->
<el-form-item>
<el-form-item
label=
"成交单价"
prop=
"Unit_Price"
>
<p
style=
"line-height: 18px; color: #E95252;"
>
注:如果超出本团的最低让价,差价将由你来承担
</p>
<el-select
v-model=
'addMsg.Unit_Price'
</el-form-item>
filterable
:placeholder=
"$t('pub.pleaseSel')"
@
change=
"getTotalPrice()"
>
<el-option
v-for=
"item in Unit_PriceList"
:label=
'item.LessMoney'
:value=
'item.ID'
:key=
'item.ID'
>
</el-option>
</el-select>
<!--
<el-input
v-model=
'addMsg.Unit_Price'
:disabled=
"true"
@
keyup
.
native=
"checkPrice(addMsg,'Unit_Price');getTotalPrice()"
></el-input>
-->
</el-form-item>
<el-form-item>
<p
v-if=
"LessMoney==0"
style=
"line-height: 18px; color: #E95252;"
>
注:如果超出本团的最低让价,差价将由你来承担
</p>
<p
v-else=
"LessMoney>0"
style=
"line-height: 18px; color: #E95252;"
>
注:最多少价
{{
LessMoney
}}
元,如需少价更多请联系上级主管
</p>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<div
style=
"width: 100%; border-top:1px dashed #ccc;margin-bottom:25px;"
></div>
<div
style=
"width: 100%; border-top:1px dashed #ccc;margin-bottom:25px;"
></div>
...
@@ -2044,6 +2058,8 @@ export default {
...
@@ -2044,6 +2058,8 @@ export default {
isOrder
:
1
isOrder
:
1
},
},
IsChargeLossOrders
:
0
,
IsChargeLossOrders
:
0
,
Unit_PriceList
:[],
//成交单价下拉数据
LessMoney
:
0
,
addMsg
:
{
addMsg
:
{
OrderId
:
"0"
,
OrderId
:
"0"
,
TCID
:
"0"
,
TCID
:
"0"
,
...
@@ -2691,7 +2707,7 @@ export default {
...
@@ -2691,7 +2707,7 @@ export default {
this
.
addMsg
.
GroupType
=
x
.
GroupType
.
toString
();
this
.
addMsg
.
GroupType
=
x
.
GroupType
.
toString
();
this
.
addMsg
.
TradeWay
=
x
.
TradeWay
.
toString
();
this
.
addMsg
.
TradeWay
=
x
.
TradeWay
.
toString
();
this
.
addMsg
.
PredictRoomNum
=
x
.
PredictRoomNum
;
this
.
addMsg
.
PredictRoomNum
=
x
.
PredictRoomNum
;
this
.
addMsg
.
IsIntermodal
=
x
.
IsIntermodal
.
toString
()
;
this
.
addMsg
.
IsIntermodal
=
x
.
IsIntermodal
?
x
.
IsIntermodal
.
toString
():
2
;
this
.
addMsg
.
IsReturnIntermodal
=
x
.
IsReturnIntermodal
.
toString
();
this
.
addMsg
.
IsReturnIntermodal
=
x
.
IsReturnIntermodal
.
toString
();
this
.
addMsg
.
ChirdNum
=
x
.
ChirdNum
.
toString
();
this
.
addMsg
.
ChirdNum
=
x
.
ChirdNum
.
toString
();
this
.
addMsg
.
ChirdNeedBedNum
=
x
.
ChirdNeedBedNum
.
toString
();
this
.
addMsg
.
ChirdNeedBedNum
=
x
.
ChirdNeedBedNum
.
toString
();
...
@@ -2724,6 +2740,40 @@ export default {
...
@@ -2724,6 +2740,40 @@ export default {
this
.
isShowLayer2
=
true
;
this
.
isShowLayer2
=
true
;
}
}
this
.
Unit_PriceList
=
[];
this
.
apipost
(
'sellorder_post_GetLessPrice'
,
{},
res
=>
{
this
.
LessMoney
=
res
.
data
.
data
.
lessMoney
;
if
(
parseFloat
(
this
.
LessMoney
)
>
0
){
for
(
var
i
=
0
;
i
<=
parseInt
(
this
.
LessMoney
)
/
10
;
i
++
)
{
var
obj
=
{
ID
:
''
,
LessMoney
:
''
}
obj
.
ID
=
this
.
addMsg
.
TC_Price
-
i
*
10
;
obj
.
LessMoney
=
this
.
addMsg
.
TC_Price
-
i
*
10
;
this
.
Unit_PriceList
.
push
(
obj
);
}
if
(
this
.
Unit_PriceList
.
findIndex
(
markers
=>
markers
.
ID
==
this
.
addMsg
.
Unit_Price
)
<
0
)
{
var
obj
=
{
ID
:
''
,
LessMoney
:
''
}
obj
.
ID
=
this
.
addMsg
.
Unit_Price
;
obj
.
LessMoney
=
this
.
addMsg
.
Unit_Price
;
this
.
Unit_PriceList
.
push
(
obj
);
}
}
else
{
var
obj
=
{
ID
:
''
,
LessMoney
:
''
}
obj
.
ID
=
this
.
addMsg
.
Unit_Price
;
obj
.
LessMoney
=
this
.
addMsg
.
Unit_Price
;
this
.
Unit_PriceList
.
push
(
obj
);
}
},
err
=>
{})
this
.
isShowLayerRemarks
=
false
;
this
.
isShowLayerRemarks
=
false
;
this
.
apipost
(
this
.
apipost
(
"app_today_visit_GetCustomerBrandByCustomerId"
,
"app_today_visit_GetCustomerBrandByCustomerId"
,
...
@@ -2856,6 +2906,30 @@ export default {
...
@@ -2856,6 +2906,30 @@ export default {
this
.
addMsg
.
TC_Price
=
this
.
addObj
.
B2CPrice
;
this
.
addMsg
.
TC_Price
=
this
.
addObj
.
B2CPrice
;
//this.addMsg.CustomerId=0
//this.addMsg.CustomerId=0
}
}
this
.
Unit_PriceList
=
[];
this
.
apipost
(
'sellorder_post_GetLessPrice'
,
{},
res
=>
{
this
.
LessMoney
=
res
.
data
.
data
.
lessMoney
;
if
(
parseFloat
(
this
.
LessMoney
)
>
0
){
for
(
var
i
=
0
;
i
<=
parseInt
(
this
.
LessMoney
)
/
10
;
i
++
)
{
var
obj
=
{
ID
:
''
,
LessMoney
:
''
}
obj
.
ID
=
this
.
addMsg
.
TC_Price
-
i
*
10
;
obj
.
LessMoney
=
this
.
addMsg
.
TC_Price
-
i
*
10
;
this
.
Unit_PriceList
.
push
(
obj
);
}
}
else
{
var
obj
=
{
ID
:
''
,
LessMoney
:
''
}
obj
.
ID
=
this
.
addMsg
.
Unit_Price
;
obj
.
LessMoney
=
this
.
addMsg
.
Unit_Price
;
this
.
Unit_PriceList
.
push
(
obj
);
}
},
err
=>
{})
},
},
getTicheng
()
{
getTicheng
()
{
if
(
this
.
addMsg
.
GroupType
!=
5
)
{
if
(
this
.
addMsg
.
GroupType
!=
5
)
{
...
@@ -2932,7 +3006,7 @@ export default {
...
@@ -2932,7 +3006,7 @@ export default {
getTotalPrice
()
{
getTotalPrice
()
{
if
(
this
.
addMsg
.
GroupType
!=
5
)
{
if
(
this
.
addMsg
.
GroupType
!=
5
)
{
this
.
addMsg
.
ChirdNum
=
this
.
addMsg
.
ChirdNoNeedBedNum
*
1
+
this
.
addMsg
.
ChirdNeedBedNum
*
1
this
.
addMsg
.
ChirdNum
=
this
.
addMsg
.
ChirdNoNeedBedNum
*
1
+
this
.
addMsg
.
ChirdNeedBedNum
*
1
if
(
this
.
addObj
.
IsBirdDiscount
==
1
)
{
if
(
this
.
addObj
.
IsBirdDiscount
&&
this
.
addObj
.
IsBirdDiscount
==
1
)
{
//早鸟优惠
//早鸟优惠
//this.addMsg.Unit_Price //成交单价
//this.addMsg.Unit_Price //成交单价
//BabyPrice 婴儿价
//BabyPrice 婴儿价
...
...
src/components/SalesModule/productQuery.vue
View file @
f055f410
...
@@ -234,9 +234,22 @@
...
@@ -234,9 +234,22 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
<el-form-item
label=
"成交单价"
prop=
"Unit_Price"
>
<
!--
<
el-form-item
label=
"成交单价"
prop=
"Unit_Price"
>
<el-input
v-model=
'addMsg.Unit_Price'
:disabled=
"true"
@
keyup
.
native=
"checkPrice(addMsg,'Unit_Price');getTotalPrice()"
></el-input>
<el-input
v-model=
'addMsg.Unit_Price'
:disabled=
"true"
@
keyup
.
native=
"checkPrice(addMsg,'Unit_Price');getTotalPrice()"
></el-input>
</el-form-item>
-->
<el-form-item
label=
"成交单价"
prop=
"Unit_Price"
>
<el-select
v-model=
'addMsg.Unit_Price'
filterable
:placeholder=
"$t('pub.pleaseSel')"
@
change=
"getTotalPrice()"
>
<el-option
v-for=
"item in Unit_PriceList"
:label=
'item.LessMoney'
:value=
'item.ID'
:key=
'item.ID'
>
</el-option>
</el-select>
<!--
<el-input
v-model=
'addMsg.Unit_Price'
:disabled=
"true"
@
keyup
.
native=
"checkPrice(addMsg,'Unit_Price');getTotalPrice()"
></el-input>
-->
</el-form-item>
</el-form-item>
<el-form-item>
<p
v-if=
"LessMoney==0"
style=
"line-height: 18px; color: #E95252;"
>
注:如果超出本团的最低让价,差价将由你来承担
</p>
<p
v-else=
"LessMoney>0"
style=
"line-height: 18px; color: #E95252;"
>
注:最多少价
{{
LessMoney
}}
元,如需少价更多请联系上级主管
</p>
</el-form-item>
<!--
<el-form-item>
<!--
<el-form-item>
<p
style=
"line-height: 18px; color: #E95252;"
>
注:如果超出本团的最低让价,差价将由你来承担
</p>
<p
style=
"line-height: 18px; color: #E95252;"
>
注:如果超出本团的最低让价,差价将由你来承担
</p>
</el-form-item>
-->
</el-form-item>
-->
...
@@ -869,6 +882,8 @@
...
@@ -869,6 +882,8 @@
currentPage
:
1
,
currentPage
:
1
,
total
:
0
,
total
:
0
,
addObj
:
{},
addObj
:
{},
Unit_PriceList
:[],
//成交单价下拉数据
LessMoney
:
0
,
addMsg
:
{
addMsg
:
{
OrderId
:
'0'
,
OrderId
:
'0'
,
TCID
:
'0'
,
TCID
:
'0'
,
...
@@ -1465,6 +1480,39 @@
...
@@ -1465,6 +1480,39 @@
this
.
addMsg
.
CustomerId
=
'0'
this
.
addMsg
.
CustomerId
=
'0'
this
.
addMsg
.
CommissionShareMoney
=
'0'
this
.
addMsg
.
CommissionShareMoney
=
'0'
}
}
this
.
Unit_PriceList
=
[];
this
.
apipost
(
'sellorder_post_GetLessPrice'
,
{},
res
=>
{
this
.
LessMoney
=
res
.
data
.
data
.
lessMoney
;
if
(
parseFloat
(
this
.
LessMoney
)
>
0
){
for
(
var
i
=
0
;
i
<=
parseInt
(
this
.
LessMoney
)
/
10
;
i
++
)
{
var
obj
=
{
ID
:
''
,
LessMoney
:
''
}
obj
.
ID
=
this
.
addMsg
.
Unit_Price
-
i
*
10
;
obj
.
LessMoney
=
this
.
addMsg
.
Unit_Price
-
i
*
10
;
this
.
Unit_PriceList
.
push
(
obj
);
}
if
(
this
.
Unit_PriceList
.
findIndex
(
markers
=>
markers
.
ID
==
this
.
addMsg
.
Unit_Price
)
<
0
)
{
var
obj
=
{
ID
:
''
,
LessMoney
:
''
}
obj
.
ID
=
this
.
addMsg
.
Unit_Price
;
obj
.
LessMoney
=
this
.
addMsg
.
Unit_Price
;
this
.
Unit_PriceList
.
push
(
obj
);
}
}
else
{
var
obj
=
{
ID
:
''
,
LessMoney
:
''
}
obj
.
ID
=
this
.
addMsg
.
Unit_Price
;
obj
.
LessMoney
=
this
.
addMsg
.
Unit_Price
;
this
.
Unit_PriceList
.
push
(
obj
);
}
},
err
=>
{})
},
},
getTicheng
()
{
//提成
getTicheng
()
{
//提成
let
num
=
Number
(
this
.
addMsg
.
ManNum
)
+
Number
(
this
.
addMsg
.
ChirdNum
)
+
Number
(
this
.
addMsg
.
OldPeopleNum
)
let
num
=
Number
(
this
.
addMsg
.
ManNum
)
+
Number
(
this
.
addMsg
.
ChirdNum
)
+
Number
(
this
.
addMsg
.
OldPeopleNum
)
...
...
src/components/TravelManager/TravelList/RegistrationList.vue
View file @
f055f410
...
@@ -862,9 +862,17 @@
...
@@ -862,9 +862,17 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
<el-form-item
label=
"成交单价"
prop=
"Unit_Price"
>
<el-form-item
label=
"成交单价"
prop=
"Unit_Price"
>
<el-input
v-model=
'addMsg.Unit_Price'
@
keyup
.
native=
"checkPrice(addMsg,'Unit_Price');getTotalPrice()"
></el-input>
<!--
<el-select
v-model=
'addMsg.Unit_Price'
filterable
:placeholder=
"$t('pub.pleaseSel')"
@
change=
"getTotalPrice()"
>
<el-option
v-for=
"item in Unit_PriceList"
:label=
'item.LessMoney'
:value=
'item.ID'
:key=
'item.ID'
>
</el-option>
</el-select>
-->
<el-input
v-model=
'addMsg.Unit_Price'
:disabled=
"true"
@
keyup
.
native=
"checkPrice(addMsg,'Unit_Price');getTotalPrice()"
></el-input>
</el-form-item>
</el-form-item>
<!--
<el-form-item
label=
"成交单价"
prop=
"Unit_Price"
>
<el-input
v-model=
'addMsg.Unit_Price'
@
keyup
.
native=
"checkPrice(addMsg,'Unit_Price');getTotalPrice()"
></el-input>
</el-form-item>
-->
</el-col>
</el-col>
</el-row>
</el-row>
<div
style=
"width: 100%; border-top:1px dashed #ccc;margin-bottom:25px;"
></div>
<div
style=
"width: 100%; border-top:1px dashed #ccc;margin-bottom:25px;"
></div>
...
@@ -1083,10 +1091,17 @@
...
@@ -1083,10 +1091,17 @@
</el-col>
</el-col>
<el-col
:span=
"5"
>
<el-col
:span=
"5"
>
<el-form-item
label=
"成交单价"
prop=
"Unit_Price"
>
<el-form-item
label=
"成交单价"
prop=
"Unit_Price"
>
<el-input
v-model=
'addMsg.Unit_Price'
:disabled=
"isChecked"
@
keyup
.
native=
"checkPrice(addMsg,'Unit_Price');getTotalPrice()"
></el-input>
<el-select
v-model=
'addMsg.Unit_Price'
filterable
:placeholder=
"$t('pub.pleaseSel')"
@
change=
"getTotalPrice()"
>
<el-option
v-for=
"item in Unit_PriceList"
:label=
'item.LessMoney'
:value=
'item.ID'
:key=
'item.ID'
>
</el-option>
</el-select>
<!--
<el-input
v-model=
'addMsg.Unit_Price'
:disabled=
"true"
@
keyup
.
native=
"checkPrice(addMsg,'Unit_Price');getTotalPrice()"
></el-input>
-->
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<p
style=
"line-height: 18px; color: #E95252;"
>
注:如果超出本团的最低让价,差价将由你来承担
</p>
<p
v-if=
"LessMoney==0"
style=
"line-height: 18px; color: #E95252;"
>
注:如果超出本团的最低让价,差价将由你来承担
</p>
<p
v-else=
"LessMoney>0"
style=
"line-height: 18px; color: #E95252;"
>
注:最多少价
{{
LessMoney
}}
元,如需少价更多请联系上级主管
</p>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -2177,6 +2192,8 @@ import updateSalesMan from "../../commonPage/updateSalesMan.vue";
...
@@ -2177,6 +2192,8 @@ import updateSalesMan from "../../commonPage/updateSalesMan.vue";
},
},
IsUnion
:
2
,
IsUnion
:
2
,
IsChargeLossOrders
:
0
,
IsChargeLossOrders
:
0
,
Unit_PriceList
:[],
//成交单价下拉数据
LessMoney
:
0
,
addMsg
:
{
addMsg
:
{
OrderId
:
"0"
,
OrderId
:
"0"
,
TCID
:
"0"
,
TCID
:
"0"
,
...
@@ -2817,6 +2834,42 @@ import updateSalesMan from "../../commonPage/updateSalesMan.vue";
...
@@ -2817,6 +2834,42 @@ import updateSalesMan from "../../commonPage/updateSalesMan.vue";
this
.
isShowLayer
=
false
;
this
.
isShowLayer
=
false
;
this
.
isShowLayer2
=
true
;
this
.
isShowLayer2
=
true
;
}
}
this
.
Unit_PriceList
=
[];
this
.
apipost
(
'sellorder_post_GetLessPrice'
,
{},
res
=>
{
this
.
LessMoney
=
res
.
data
.
data
.
lessMoney
;
if
(
parseFloat
(
this
.
LessMoney
)
>
0
){
for
(
var
i
=
0
;
i
<=
parseInt
(
this
.
LessMoney
)
/
10
;
i
++
)
{
var
obj
=
{
ID
:
''
,
LessMoney
:
''
}
obj
.
ID
=
this
.
addMsg
.
TC_Price
-
i
*
10
;
obj
.
LessMoney
=
this
.
addMsg
.
TC_Price
-
i
*
10
;
this
.
Unit_PriceList
.
push
(
obj
);
}
if
(
this
.
Unit_PriceList
.
findIndex
(
markers
=>
markers
.
ID
==
this
.
addMsg
.
Unit_Price
)
<
0
)
{
var
obj
=
{
ID
:
''
,
LessMoney
:
''
}
obj
.
ID
=
this
.
addMsg
.
Unit_Price
;
obj
.
LessMoney
=
this
.
addMsg
.
Unit_Price
;
this
.
Unit_PriceList
.
push
(
obj
);
}
}
else
{
var
obj
=
{
ID
:
''
,
LessMoney
:
''
}
obj
.
ID
=
this
.
addMsg
.
Unit_Price
;
obj
.
LessMoney
=
this
.
addMsg
.
Unit_Price
;
this
.
Unit_PriceList
.
push
(
obj
);
}
},
err
=>
{})
this
.
isShowLayerRemarks
=
false
;
this
.
isShowLayerRemarks
=
false
;
this
.
showSetLeader
=
false
;
this
.
showSetLeader
=
false
;
this
.
apipost
(
this
.
apipost
(
...
...
src/components/systemManagement/LessPriceManagement.vue
View file @
f055f410
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
<table
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
class=
"LP_table"
v-loading=
"this.loading"
>
<table
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
class=
"LP_table"
v-loading=
"this.loading"
>
<tr>
<tr>
<th
class=
"first"
>
<th
class=
"first"
>
<span
class=
"Lp_role"
>
角色
</span>
<span
class=
"Lp_role"
>
岗位
</span>
<span
class=
"Lp_company"
>
公司
</span>
<span
class=
"Lp_company"
>
公司
</span>
</th>
</th>
<template
v-for=
"item in BranchList"
>
<template
v-for=
"item in BranchList"
>
...
@@ -97,13 +97,13 @@
...
@@ -97,13 +97,13 @@
<td>
<td>
<el-select
:placeholder=
"$t('pub.pleaseSel')"
class=
"w150"
v-model=
"item.RoleId"
>
<el-select
:placeholder=
"$t('pub.pleaseSel')"
class=
"w150"
v-model=
"item.RoleId"
>
<el-option
label=
"不限"
:value=
"0"
></el-option>
<el-option
label=
"不限"
:value=
"0"
></el-option>
<el-option
v-for=
"item in RoleList"
:label=
"item.
Name"
:value=
"item.Id"
:key=
"item.
Id"
></el-option>
<el-option
v-for=
"item in RoleList"
:label=
"item.
PostName"
:value=
"item.PostId"
:key=
"item.Post
Id"
></el-option>
</el-select>
</el-select>
</td>
</td>
<
template
v-for=
"subItem in item.DetailExtList"
>
<
template
v-for=
"subItem in item.DetailExtList"
>
<td>
<td>
<el-input
class=
"w80"
placeholder=
"金額"
v-model=
"subItem.LessMoney"
></el-input>
<el-input
class=
"w80"
placeholder=
"
少价
金額"
v-model=
"subItem.LessMoney"
></el-input>
<el-input
class=
"w80"
placeholder=
"百分比"
v-model=
"subItem.LessPercent"
></el-input>
<el-input
class=
"w80"
placeholder=
"
减少提成
百分比"
v-model=
"subItem.LessPercent"
></el-input>
</td>
</td>
</
template
>
</
template
>
<td>
<td>
...
@@ -184,8 +184,9 @@
...
@@ -184,8 +184,9 @@
},
},
//获取列表
//获取列表
GetRoleList
()
{
GetRoleList
()
{
let
userInfo
=
this
.
getLocalStorage
();
this
.
apipost
(
this
.
apipost
(
"admin_get_
RoleGetList"
,
{
},
"admin_get_
PostGetList"
,
{
"RB_Group_Id"
:
userInfo
.
RB_Group_id
},
res
=>
{
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
RoleList
=
res
.
data
.
data
;
this
.
RoleList
=
res
.
data
.
data
;
...
...
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