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
5cfdc271
Commit
5cfdc271
authored
Nov 15, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量设置
parent
95d18838
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
8 deletions
+30
-8
CommondityOrderList.vue
src/components/Buying/CommondityOrderList.vue
+30
-8
No files found.
src/components/Buying/CommondityOrderList.vue
View file @
5cfdc271
...
...
@@ -55,18 +55,19 @@
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"-1"
></el-option>
<el-option
v-for=
"item in OrderStatusList"
:label=
"item.Name"
:value=
"item.Id"
:key=
"item.ID"
></el-option>
</el-select>
</span>
</li>
<li>
<input
type=
"button"
@
click=
"getList()"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
>
<input
type=
"button"
@
click=
"getList()"
class=
"hollowFixedBtn"
value=
"批量设置领队"
>
<input
type=
"button"
@
click=
"SetAccountStatus(1,2)"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
>
</li>
</ul>
</div>
<div
class=
"clearfix"
></div>
<table
class=
"singeRowTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
<tr>
<th>
选择
</th>
<th>
订单编号
</th>
<th>
客户名称
</th>
<th>
订单信息
</th>
...
...
@@ -81,6 +82,9 @@
</tr>
<tbody
v-for=
"item in dataList"
>
<tr>
<td>
<el-input
v-model=
"item.checked"
type=
"checkbox"
@
change=
"ChangeList"
></el-input>
</td>
<td>
{{
item
.
CorderId
}}
</td>
<td>
{{
item
.
AccountName
}}
</td>
<td>
...
...
@@ -198,6 +202,15 @@
},
filters
:
{},
methods
:
{
ChangeList
(){
let
list
=
[]
this
.
dataList
.
map
(
x
=>
{
if
(
x
.
checked
)
{
list
.
push
(
x
.
CorderId
)
}
})
this
.
addMsg
.
OrderIdList
=
list
},
closeChangeMachie
(
done
)
{
done
();
},
...
...
@@ -213,11 +226,15 @@
err
=>
{}
)
},
SetAccountStatus
(
id
){
this
.
addMsg
.
OrderIdList
=
[]
this
.
addMsg
.
ReciveLeaderId
=
''
this
.
addMsg
.
OrderIdList
.
push
(
id
)
this
.
outerVisible
=
true
;
SetAccountStatus
(
id
,
type
){
if
(
type
===
1
)
{
this
.
addMsg
.
OrderIdList
=
[]
this
.
addMsg
.
ReciveLeaderId
=
''
this
.
addMsg
.
OrderIdList
.
push
(
id
)
this
.
outerVisible
=
true
;
}
else
{
this
.
outerVisible
=
true
;
}
},
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
...
...
@@ -276,8 +293,13 @@
this
.
apipost
(
"ShopOrder_get_GetCommodityOrderPageListService"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
dataList
=
res
.
data
.
data
.
pageData
;
let
dataList
=
res
.
data
.
data
.
pageData
;
dataList
.
map
(
x
=>
{
x
.
checked
=
false
})
this
.
dataList
=
dataList
this
.
msg
.
total
=
res
.
data
.
data
.
count
;
this
.
ChangeList
()
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
...
...
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