Commit 5cfdc271 authored by 华国豪's avatar 华国豪 🙄

批量设置

parent 95d18838
...@@ -55,18 +55,19 @@ ...@@ -55,18 +55,19 @@
<el-option :label="$t('pub.unlimitedSel')" :value="-1"></el-option> <el-option :label="$t('pub.unlimitedSel')" :value="-1"></el-option>
<el-option v-for="item in OrderStatusList" :label="item.Name" :value="item.Id" <el-option v-for="item in OrderStatusList" :label="item.Name" :value="item.Id"
:key="item.ID"></el-option> :key="item.ID"></el-option>
</el-select> </el-select>
</span> </span>
</li> </li>
<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> </li>
</ul> </ul>
</div> </div>
<div class="clearfix"></div> <div class="clearfix"></div>
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading"> <table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
<tr> <tr>
<th>选择</th>
<th>订单编号</th> <th>订单编号</th>
<th>客户名称</th> <th>客户名称</th>
<th>订单信息</th> <th>订单信息</th>
...@@ -81,6 +82,9 @@ ...@@ -81,6 +82,9 @@
</tr> </tr>
<tbody v-for="item in dataList"> <tbody v-for="item in dataList">
<tr> <tr>
<td>
<el-input v-model="item.checked" type="checkbox" @change="ChangeList"></el-input>
</td>
<td>{{item.CorderId}}</td> <td>{{item.CorderId}}</td>
<td>{{item.AccountName}}</td> <td>{{item.AccountName}}</td>
<td> <td>
...@@ -198,6 +202,15 @@ ...@@ -198,6 +202,15 @@
}, },
filters: {}, filters: {},
methods: { methods: {
ChangeList(){
let list = []
this.dataList.map(x=>{
if (x.checked) {
list.push(x.CorderId)
}
})
this.addMsg.OrderIdList = list
},
closeChangeMachie(done) { closeChangeMachie(done) {
done(); done();
}, },
...@@ -213,11 +226,15 @@ ...@@ -213,11 +226,15 @@
err => {} err => {}
) )
}, },
SetAccountStatus(id){ SetAccountStatus(id, type){
this.addMsg.OrderIdList = [] if (type === 1) {
this.addMsg.ReciveLeaderId = '' this.addMsg.OrderIdList = []
this.addMsg.OrderIdList.push(id) this.addMsg.ReciveLeaderId = ''
this.outerVisible = true; this.addMsg.OrderIdList.push(id)
this.outerVisible = true;
} else {
this.outerVisible = true;
}
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.msg.pageIndex = val; this.msg.pageIndex = val;
...@@ -276,8 +293,13 @@ ...@@ -276,8 +293,13 @@
this.apipost("ShopOrder_get_GetCommodityOrderPageListService", this.msg, res => { this.apipost("ShopOrder_get_GetCommodityOrderPageListService", this.msg, res => {
this.loading = false; this.loading = false;
if (res.data.resultCode === 1) { 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.msg.total = res.data.data.count;
this.ChangeList()
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment