| | |
| | | </el-form> |
| | | <!-- 表格和分页 --> |
| | | <template v-slot:table-wrap> |
| | | <!-- <ul class="toolbar" v-permissions="['business:customerlog:create', 'business:customerlog:delete']"> |
| | | <li><el-button type="primary" @click="$refs.operaCustomerLogWindow.open('新建客户留资记录信息表')" icon="el-icon-plus" v-permissions="['business:customerlog:create']">新建</el-button></li> |
| | | <li><el-button @click="deleteByIdInBatch" icon="el-icon-delete" v-permissions="['business:customerlog:delete']">删除</el-button></li> |
| | | </ul>--> |
| | | <ul class="toolbar" v-permissions="['business:customerlog:create', 'business:customerlog:delete']"> |
| | | <li><el-button type="primary" @click="reSubmitAll(0)" icon="el-icon-plus" v-permissions="['business:customerlog:update']">提交全部【未提交】数据</el-button></li> |
| | | <li><el-button type="primary" @click="reSubmitAll(2)" icon="el-icon-plus" v-permissions="['business:customerlog:update']">重新提交【失败】数据</el-button></li> |
| | | </ul> |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | | :data="tableData.list" |
| | | stripe |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="55"></el-table-column> |
| | | <el-table-column prop="createDate" label="创建时间" min-width="120px"></el-table-column> |
| | | <el-table-column prop="type" label="提交类型" min-width="100px"> |
| | | <el-table-column prop="index" width="55"><template slot-scope="scope">{{scope.$index+1}}</template></el-table-column> |
| | | <el-table-column prop="type" label="提交类型" fixed min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.type ==0">测试装修风格</span> |
| | | <span v-if="row.type ==1">0元定制</span> |
| | | <span v-if="row.type ==2">装修计算器</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="phone" label="手机号" fixed min-width="100px"></el-table-column> |
| | | <el-table-column prop="name" label="姓名" fixed min-width="100px"></el-table-column> |
| | | <el-table-column prop="createDate" label="创建时间" min-width="120px"></el-table-column> |
| | | <el-table-column prop="orderDate" label="预约量房时间" min-width="120px"></el-table-column> |
| | | <el-table-column prop="plaDate" label="计划装修开始时间" min-width="120px"> |
| | | <template slot-scope="{row}"> |
| | |
| | | <el-table-column prop="styleInfo" label="风格" min-width="100px"></el-table-column> |
| | | <el-table-column prop="provinceName" label="省份名称" min-width="100px"></el-table-column> |
| | | <el-table-column prop="cityName" label="城市名称" min-width="100px"></el-table-column> |
| | | <el-table-column prop="phone" label="手机号" min-width="100px"></el-table-column> |
| | | <el-table-column prop="budget" label="装修预算(元)" min-width="100px"></el-table-column> |
| | | <el-table-column prop="crmStatus" label="crm提交状态" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | |
| | | <el-table-column |
| | | v-if="containPermissions(['business:customerlog:update', 'business:customerlog:delete'])" |
| | | label="操作" |
| | | min-width="120" |
| | | min-width="150" |
| | | fixed="right" |
| | | align="center" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.operaCustomerLogWindow.open('编辑客户留资记录信息表', row)" icon="el-icon-edit" v-permissions="['business:customerlog:update']">编辑</el-button> |
| | | <el-button type="text" @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:customerlog:update']" v-if="row.crmStatus !=1">重新提交crm</el-button> |
| | | <!-- <el-button type="text" @click="$refs.operaCustomerLogWindow.open('编辑客户留资记录信息表', row)" icon="el-icon-edit" v-permissions="['business:customerlog:update']">编辑</el-button>--> |
| | | <el-button type="text" @click="reSubmit(row)" icon="el-icon-edit" v-permissions="['business:customerlog:update']" v-if="row.crmStatus !=1">重新提交crm</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | components: { TableLayout, Pagination, OperaCustomerLogWindow }, |
| | | data () { |
| | | return { |
| | | running: false, |
| | | // 搜索 |
| | | searchForm: { |
| | | queryEndDate: '', |
| | |
| | | }, |
| | | methods: { |
| | | // 查询数据 |
| | | reSubmit (row) { |
| | | this.api.reSubmit({ id: row.id }) |
| | | .then(res => { |
| | | this.handlePageChange() |
| | | }) |
| | | .finally(() => { |
| | | }) |
| | | }, |
| | | reSubmitAll (status) { |
| | | this.$dialog.actionConfirm('确认进行该操作吗??') |
| | | .then(() => { |
| | | this.running = true |
| | | this.api.reSubmitAll({ crmStatus: status }) |
| | | .then(res => { |
| | | this.handlePageChange() |
| | | }) |
| | | .finally(() => { |
| | | }) |
| | | .catch(e => { |
| | | }) |
| | | .finally(() => { |
| | | this.running = false |
| | | }) |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |