Commit 9e2302ef authored by dcy's avatar dcy

移交修改参数,公海池加上批量移交

parent 42151158
......@@ -435,7 +435,7 @@ export default {
/** 表单重置 */
resetHandOverForm() {
this.form = {
customerId: undefined,
customerIdList: undefined,
customerServiceId: undefined
};
this.resetForm("handOverForm");
......@@ -482,9 +482,8 @@ export default {
/** 修改按钮操作 */
handOver(row) {
this.resetHandOverForm();
this.openHandOver = true;
this.handOverForm.customerId = row.id;
this.handOverForm.customerIdList = [row.id];
},
/** 提交按钮 */
......@@ -548,7 +547,7 @@ export default {
this.openHandOver = false;
this.handOverForm = {
customerId: undefined,
customerServiceId: undefined
customerIdList : undefined
};
},
......
......@@ -336,7 +336,7 @@ export default {
}
handOverCustomer({
customerServiceId:this.service,
customerId:this.transferData.id
customerIdList :[this.transferData.id]
}).then(r=>{
if(r.code === 0){
this.transferShow = false;
......
......@@ -59,6 +59,7 @@
</el-col>
<el-col :span="1.5">
<el-button type="primary" size="mini" @click="batchHandover"
:disabled="multipleSelection.length === 0"
>批量移交</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
......@@ -118,7 +119,8 @@
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="transferShow = false">取 消</el-button>
<el-button type="primary" @click="transferFn">确 定</el-button>
<el-button type="primary" v-if="isBatch" @click="transferFn(multipleSelection.map(item => item.id))">确 定</el-button>
<el-button type="primary" v-else @click="transferFn([transferData.id])">确 定</el-button>
</span>
</el-dialog>
<!-- 分页组件 -->
......@@ -189,6 +191,8 @@ export default {
service:undefined,//客服
transferData:undefined,//移交数据
transferShow:false,
multipleSelection:[],
isBatch:false,
};
},
created() {
......@@ -348,6 +352,8 @@ export default {
this.service = row.customerService
this.transferData = row;
this.transferShow =true;
this.isBatch = false;
},
customerServiceFn(val){
if(this.customerServiceList.length > 0){
......@@ -357,18 +363,19 @@ export default {
return ''
}
},
transferFn(){
transferFn(val){
if(!this.service){
return this.$message.warning('请选择跟进客服!');
}
handOverCustomer({
customerServiceId:this.service,
customerId:this.transferData.id
customerIdList:val
}).then(r=>{
if(r.code === 0){
this.transferShow = false;
this.service = '';
this.getList();
this.multipleSelection = [];
this.$message.success('移交成功!');
}
})
......@@ -397,9 +404,10 @@ export default {
},
batchHandover(){
this.transferShow = true;
this.isBatch = true
},
handleSelectionChange(val){
console.log(val);
this.multipleSelection = val;
}
}
};
......
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