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

批量设置

parent 95d18838
......@@ -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);
}
......
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