|
|
@@ -1,11 +1,26 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<el-drawer title="添加业务员" append-to-body :visible.sync="dialogTableVisible" size="70%">
|
|
|
- <el-form size="small" inline label-position="right" label-width="50px" :model="search">
|
|
|
- <el-form-item label="搜索">
|
|
|
- <el-input v-model="params.content.where.condition" prefix-icon="el-icon-search" placeholder="编号,业务员名称" @clear="listData(params.content.pageNumber = 1)" @keyup.native.enter="listData(params.content.pageNumber = 1)" clearable></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
+ <div style="margin-bottom:10px;padding-left: 10px;display:flex;justify-content:space-between">
|
|
|
+ <el-input
|
|
|
+ style="width:200px"
|
|
|
+ v-model="params.content.where.condition"
|
|
|
+ prefix-icon="el-icon-search"
|
|
|
+ placeholder="编号,业务员名称"
|
|
|
+ size="small"
|
|
|
+ @clear="listData(params.content.pageNumber = 1)"
|
|
|
+ @keyup.native.enter="listData(params.content.pageNumber = 1)"
|
|
|
+ clearable
|
|
|
+ ></el-input>
|
|
|
+ <uploadAllData
|
|
|
+ class="inline-16"
|
|
|
+ :total="total"
|
|
|
+ dataType="业务员"
|
|
|
+ @handlePullApi="handlePullApi"
|
|
|
+ @handleUploadApi="handleUploadApi"
|
|
|
+ @onSuccess="onSuccess"
|
|
|
+ ></uploadAllData>
|
|
|
+ </div>
|
|
|
<tablelayout :layout="tablecols" :data="list" :custom="true" :checkbox="true" height="calc(100vh - 452px)" @checkboxCallBack="checkboxCallBack">
|
|
|
<template v-slot:customcol="scope">
|
|
|
<div v-if="scope.column.columnname === 'province'">
|
|
|
@@ -36,9 +51,12 @@
|
|
|
|
|
|
<script>
|
|
|
import tablelayout from '@/components/table/index.vue'
|
|
|
+import uploadAllData from '@/components/uploadAllData/index'
|
|
|
+
|
|
|
export default {
|
|
|
components:{
|
|
|
- tablelayout
|
|
|
+ tablelayout,
|
|
|
+ uploadAllData
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
@@ -88,8 +106,7 @@ export default {
|
|
|
},
|
|
|
async onSubmit () {
|
|
|
const res = await this.$api.requested({
|
|
|
- "classname":"webmanage.saletool.orderclue.ordercluerule",
|
|
|
- "method": "insertOrderclueruleArea",
|
|
|
+ "id":20230408101002,
|
|
|
"content": {
|
|
|
"cluetype":"业务员",
|
|
|
"sat_orderclue_areas":this.selection
|
|
|
@@ -100,10 +117,30 @@ export default {
|
|
|
this.$emit('onSuccess')
|
|
|
})
|
|
|
},
|
|
|
+ /*拉取数据*/
|
|
|
+ handlePullApi (pullApi) {
|
|
|
+ pullApi.content = JSON.parse(JSON.stringify(this.params.content))
|
|
|
+ pullApi.id = this.params.id
|
|
|
+ /*pullApi.content.sa_projectid = this.$route.query.id*/
|
|
|
+ },
|
|
|
+ /*上传数据*/
|
|
|
+ handleUploadApi (uploadApi,data) {
|
|
|
+ uploadApi.id = 20230408101002
|
|
|
+ uploadApi.content = {
|
|
|
+ "cluetype": '业务员', //订单ID
|
|
|
+ "sat_orderclue_areas": data
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onSuccess () {
|
|
|
+ console.log('成功')
|
|
|
+ this.list = []
|
|
|
+ this.dialogTableVisible = false
|
|
|
+ this.$emit('onSuccess')
|
|
|
+ },
|
|
|
},
|
|
|
created () {
|
|
|
//获取表结构
|
|
|
- this.tablecols = this.tool.tabelCol(this.$route.name)['salerTable'].tablecols
|
|
|
+ this.tablecols = this.tool.tabelCol(this.$route.name)['salerTable'].tablecols.splice(0,this.tool.tabelCol(this.$route.name)['salerTable'].tablecols.length - 1)
|
|
|
}
|
|
|
}
|
|
|
|