Commit dbe1f51f authored by 华国豪's avatar 华国豪 🙄

1

parent 3ec488a4
...@@ -43,7 +43,8 @@ ...@@ -43,7 +43,8 @@
<el-select class="" v-model="msg.ReciveLeaderId" filterable :placeholder="$t('pub.pleaseSel')"> <el-select class="" v-model="msg.ReciveLeaderId" filterable :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" :value="SelectDefaultValue"> <el-option :label="$t('pub.unlimitedSel')" :value="SelectDefaultValue">
</el-option> </el-option>
<el-option v-for="item in LeaderList" :label="item.Name" :value="item.ID" :key="item.ID"></el-option> <el-option v-for="item in LeaderList" :label="item.Name" :value="item.ID"
:key="item.ID"></el-option>
</el-select> </el-select>
</span> </span>
</li> </li>
...@@ -52,7 +53,9 @@ ...@@ -52,7 +53,9 @@
<em>订单状态</em> <em>订单状态</em>
<el-select filterable v-model="msg.COrderState" class=""> <el-select filterable v-model="msg.COrderState" class="">
<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" :key="item.ID"></el-option> <el-option v-for="item in OrderStatusList" :label="item.Name" :value="item.Id"
:key="item.ID"></el-option>
</el-select> </el-select>
</span> </span>
</li> </li>
...@@ -65,7 +68,7 @@ ...@@ -65,7 +68,7 @@
<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> <th>物流信息</th>
<th>同行名称/同行返佣</th> <th>同行名称/同行返佣</th>
...@@ -76,13 +79,13 @@ ...@@ -76,13 +79,13 @@
<th>接单领队</th> <th>接单领队</th>
<th>{{$t('system.table_operation')}}</th> <th>{{$t('system.table_operation')}}</th>
</tr> </tr>
<tbody v-for="item in dataList" :key="item.CorderId"> <tbody v-for="item in dataList">
<tr> <tr>
<td>{{item.CorderId}}</td> <td>{{item.CorderId}}</td>
<td>{{item.AccountName}}</td> <td>{{item.AccountName}}</td>
<td> <td>
<template v-if="item.OrderDetailsList && item.OrderDetailsList.length>0" <template v-if="item.OrderDetailsList && item.OrderDetailsList.length>0"
v-for="subItem in item.OrderDetailsList" > v-for="subItem in item.OrderDetailsList">
<p> 商品名称: {{subItem.CommodityName}}</p> <p> 商品名称: {{subItem.CommodityName}}</p>
<p> 价格信息: {{subItem.CommodityNum}}(数量) * {{subItem.CommodityPrice}}(单价) </p> <p> 价格信息: {{subItem.CommodityNum}}(数量) * {{subItem.CommodityPrice}}(单价) </p>
</template> </template>
...@@ -104,34 +107,9 @@ ...@@ -104,34 +107,9 @@
<td>{{item.ReciveLeaderName}}</td> <td>{{item.ReciveLeaderName}}</td>
<td> <td>
<el-button-group> <el-button-group>
<el-tooltip class="item" effect="dark" content="分配领队" placement="top-start"> <el-tooltip class="item" effect="dark" content="分派领队" placement="top">
<el-popover placement="bottom" width="300" trigger="click"> <el-button type="primary" size="mini" icon="iconfont icon-jinyong" @click="SetAccountStatus(item.CorderId,1)">
<table> </el-button>
<tr>
<td style="text-align:right;width:80px;">领队/导游:</td>
<td>
<el-select class="w150" filterable v-model="SetLeader.ReciveLeaderId" filterable
:placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" :value="SelectDefaultValue">
</el-option>
<el-option v-for="item in LeaderList" :label="item.Name" :value="item.ID" :key="item.ID">
</el-option>
</el-select>
</td>
</tr>
<tr>
<td style="text-align:right;height:10px" colspan="2"></td>
</tr>
<tr>
<td colspan="2" style="text-align:center;">
<input type="button" @click="setShopOrderLeader(item.CorderId)" class="hollowFixedBtn"
value="保存">
</td>
</tr>
</table>
<el-button type="primary" @click="clickShopOrderLeader(item)" icon="iconfont icon-beizhu"
slot="reference" style="background:#AD9AF6; border-color:#AD9AF6; border-radius: 0;"></el-button>
</el-popover>
</el-tooltip> </el-tooltip>
</el-button-group> </el-button-group>
</td> </td>
...@@ -147,6 +125,29 @@ ...@@ -147,6 +125,29 @@
</tr> </tr>
</tfoot> </tfoot>
</table> </table>
<el-dialog
custom-class="w400"
title="分配领队"
:visible.sync="outerVisible"
center
:before-close="closeChangeMachie"
>
<el-form :model="addMsg" label-width="130px">
<el-form-item label="领队" prop="state">
<el-select filterable v-model="addMsg.ReciveLeaderId" prop="ParentId" >
<el-option v-for="item in LeaderList" :label="item.Name" :value="item.ID" :key="item.ID"></el-option>
</el-select>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<button
class="hollowFixedBtn"
@click="outerVisible = false"
>{{$t('pub.cancelBtn')}}</button> &nbsp;
<button class="normalBtn" @click="submitForm('addMsg')">{{$t('pub.saveBtn')}}</button>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -159,11 +160,16 @@ ...@@ -159,11 +160,16 @@
CustomerId: 0, //同行编号 CustomerId: 0, //同行编号
SaleId: 0, //销售编号 SaleId: 0, //销售编号
COrderState: -1, //订单状态 COrderState: -1, //订单状态
ReciveLeaderId: 0, //接单领队 ReciveLeaderId:0,//接单领队
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
total: 0, total: 0,
}, },
addMsg: {
ReciveLeaderId: '',
OrderIdList: [],
},
outerVisible: false,
loading: false, loading: false,
dataList: [], dataList: [],
//账户修改 //账户修改
...@@ -180,12 +186,7 @@ ...@@ -180,12 +186,7 @@
//领队列表 //领队列表
LeaderList: [], LeaderList: [],
//订单状态列表 //订单状态列表
OrderStatusList: [], OrderStatusList:[],
//分配领队
SetLeader: {
ReciveLeaderId: 0,
OrderIdList: [], //订单信息
}
}; };
}, },
mounted() { mounted() {
...@@ -197,6 +198,27 @@ ...@@ -197,6 +198,27 @@
}, },
filters: {}, filters: {},
methods: { methods: {
closeChangeMachie(done) {
done();
},
submitForm(){
this.apipost(
'ShopOrder_get_SetShopOrderAllotLeader', this.addMsg,
res => {
if (res.data.resultCode == 1) {
this.outerVisible = false;
this.getList();
}
},
err => {}
)
},
SetAccountStatus(id){
this.addMsg.OrderIdList = []
this.addMsg.ReciveLeaderId = ''
this.addMsg.OrderIdList.push(id)
this.outerVisible = true;
},
handleCurrentChange(val) { handleCurrentChange(val) {
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getList(); this.getList();
...@@ -261,7 +283,7 @@ ...@@ -261,7 +283,7 @@
} }
}, null); }, null);
}, },
//获取领队列表 //获取领队列表
getOrderStatusList() { getOrderStatusList() {
this.apipost( this.apipost(
'ShopOrder_get_GetShopOrderStateService', {}, 'ShopOrder_get_GetShopOrderStateService', {},
...@@ -273,24 +295,6 @@ ...@@ -273,24 +295,6 @@
err => {} err => {}
) )
}, },
//点击获取订单信息
clickShopOrderLeader(item) {
this.SetLeader.OrderIdList.push(item.CorderId);
},
//分配接单领队
setShopOrderLeader() {
this.apipost(
'ShopOrder_get_SetShopOrderAllotLeader', this.SetLeader,
res => {
if (res.data.resultCode == 1) {
this.getList();
this.SetLeader.OrderIdList = [];
this.SetLeader.ReciveLeaderId = 0;
}
},
err => {}
)
}
} }
}; };
......
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