Commit 13b683f2 authored by youjie's avatar youjie

no message

parent d4e25bdf
...@@ -259,8 +259,8 @@ ...@@ -259,8 +259,8 @@
</el-form> </el-form>
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" class="add-box-btn" @click="submitForm('form')">确 定</el-button> <el-button type="primary" class="add-box-btn" @click="submitForm('getform')">确 定</el-button>
<el-button class="add-box-btn add-box-cancel" @click="dialogTableVisible = false, resetForm('form')">取 消 <el-button class="add-box-btn add-box-cancel" @click="dialogTableVisible = false, resetForm('getform')">取 消
</el-button> </el-button>
</div> </div>
</el-dialog> </el-dialog>
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</div> </div>
<div class="query-box status-box"></div> <div class="query-box status-box"></div>
<orderList :dataList="dataList" :pagesTitle="title" :loading="loading" @emptyMore="emptyMore"></orderList> <orderList :dataList="dataList" :pagesTitle="title" :loading="loading" @emptyMore="emptyMore" @success="getList()"></orderList>
<div> <div>
<el-pagination class="Mypagination" background @current-change="handleCurrentChange" <el-pagination class="Mypagination" background @current-change="handleCurrentChange"
:page-sizes="[15, 30, 60, 90, 100]" :page-size="msg.pageSize" layout="total, sizes, prev, pager, next" :page-sizes="[15, 30, 60, 90, 100]" :page-size="msg.pageSize" layout="total, sizes, prev, pager, next"
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
width="200" width="200"
prop="CreateTimeStr" prop="CreateTimeStr"
label="订单Id" label="订单Id"
show-overflow-tooltip> show-overflow-tooltip fixed="left">
<template slot-scope="scope"> <template slot-scope="scope">
<div @click="goDetails(scope.row)"> <div @click="goDetails(scope.row)">
<p style="font-size: 18px;display: flex;align-items: center;"> <p style="font-size: 18px;display: flex;align-items: center;">
...@@ -145,14 +145,14 @@ ...@@ -145,14 +145,14 @@
<span>{{scope.row.StateName}}</span> <span>{{scope.row.StateName}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
<!-- <el-table-column
label="操作" label="操作"
show-overflow-tooltip> show-overflow-tooltip fixed="right" v-if="isPermission">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="primary" @click="goDetails(scope.row)">查看</el-button> <!-- <el-button size="mini" type="primary" @click="goDetails(scope.row)">查看</el-button> -->
<el-button size="mini" type="primary" @click="goTurn(scope.row)">转交</el-button>
</template> </template>
</el-table-column> --> </el-table-column>
</el-table> </el-table>
<el-drawer :with-header="false" size='70%' :visible.sync="drawer" direction="rtl" :before-close="handleClose"> <el-drawer :with-header="false" size='70%' :visible.sync="drawer" direction="rtl" :before-close="handleClose">
<customerInfoBox :CustomerId="CustomerId" :activeNameNum="activeNameNum" :receiptType="receiptType"/> <customerInfoBox :CustomerId="CustomerId" :activeNameNum="activeNameNum" :receiptType="receiptType"/>
...@@ -163,6 +163,43 @@ ...@@ -163,6 +163,43 @@
</el-drawer> </el-drawer>
<!-- 提成详情 --> <!-- 提成详情 -->
<commissionPopUp v-if="commissionPopUpVisible" :parameters="parameters"></commissionPopUp> <commissionPopUp v-if="commissionPopUpVisible" :parameters="parameters"></commissionPopUp>
<!-- 转交引流人 -->
<el-dialog :visible.sync="dialogTableVisible"
:close-on-click-modal="false"
width="400px">
<div class="add-tit" slot="title">
<p><span></span>引流人转交</p>
<span icon="el-icon-close"></span>
</div>
<el-form>
<el-row :model="form" ref="form" class="MyEditForm" :rules="rules">
<el-col>
<div class="MyEditForm-item">
<el-form-item label="" prop="LureEmpId">
<el-select
size="mini"
filterable
v-model="form.LureEmpId"
clearable
placeholder="请选择引流人">
<el-option
v-for="item in EmployeeList"
:label='item.EmName'
:value='item.EmployeeId'
:key='item.EmployeeId'>
</el-option>
</el-select>
</el-form-item>
</div>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" class="add-box-btn" @click="submitForm('form')" :loading="clickShow">确 定</el-button>
<el-button class="add-box-btn add-box-cancel" @click="resetForm('form')">取 消</el-button>
</div>
</el-dialog>
</div> </div>
</template> </template>
...@@ -204,6 +241,21 @@ export default { ...@@ -204,6 +241,21 @@ export default {
orderDrawer: false, orderDrawer: false,
commissionPopUpVisible: false, commissionPopUpVisible: false,
activeNameNum:"1", activeNameNum:"1",
form: {
OrderId: null,
LureEmpId: null,
OrderType: null
},
dialogTableVisible: false,
rules: {
LureEmpId: [{
required: true,
message: "请选择转交引流人",
trigger: "change"
},],},
EmployeeList: [],
clickShow: false,
isPermission: false
}; };
}, },
created() {}, created() {},
...@@ -223,13 +275,79 @@ export default { ...@@ -223,13 +275,79 @@ export default {
}, },
mounted() { mounted() {
let $this = this; let $this = this;
this.userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
if(userInfo.PostName=='总经理' ||
userInfo.PostName=='副总经理' ||
userInfo.PostName=='技术开发' ||
userInfo.PostName=='开发经理' ||
userInfo.PostName=='票务经理'){
this.isPermission = true
}else{
this.isPermission = false
}
this.MsgBus.$on("closeaddContacts", function() { this.MsgBus.$on("closeaddContacts", function() {
$this.commissionPopUpVisible = false; $this.commissionPopUpVisible = false;
$this.emptyMore() $this.emptyMore()
}); });
}, },
methods: { methods: {
// 获取业务员
Employee() {
let userInfo = this.getLocalStorage();
let msg = {
RB_Group_id: userInfo.RB_Group_id,
BranchId: -1,
DepartmentId: 0,
PostId: 0,
IsLeave: 0,
};
this.apipost2(
"admin_get_EmployeeGetList",
msg,
(res) => {
if (res.data.resultCode == 1) {
this.EmployeeList = res.data.data;
} else {}
},
(err) => {}
);
},
submitForm(form) {
if(!this.form.LureEmpId){
this.Error('请选择需要转交的引流人!')
return
}
let msg = {
OrderId:this.form.OrderId,
LureEmpId:this.form.LureEmpId,
OrderType:this.form.OrderType
}
this.clickShow = true
this.apipost2('CarSingle_post_UpdateLureEmpId', msg, res => {
this.clickShow = false
if (res.data.resultCode == 1) {
this.dialogTableVisible = false
this.Success('操作成功!')
this.$emit('success')
}else{
this.Error(res.data.message)
}
});
},
goTurn(row){
this.Employee()
this.form = {
OrderId: row.OrderId,
LureEmpId: null,
OrderType: row.OrderType
}
this.dialogTableVisible = true
},
resetForm(form) {
this.clickShow = false
this.dialogTableVisible = false;
},
goDetails(row){ goDetails(row){
let data = [{ let data = [{
path: "", path: "",
......
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