|
|
@ -1,179 +1,106 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-card shadow="hover" |
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
class="mgb20"> |
|
|
|
|
|
|
|
<div class="flex-between"> |
|
|
|
<div class="flex-between"> |
|
|
|
<div class="per_title" |
|
|
|
<div class="per_title" v-preventReClick @click="goback(0)"> |
|
|
|
v-preventReClick |
|
|
|
|
|
|
|
@click="goback(0)"> |
|
|
|
|
|
|
|
<i class="el-icon-arrow-left"></i> |
|
|
|
<i class="el-icon-arrow-left"></i> |
|
|
|
<span class="per_back">返回</span> |
|
|
|
<span class="per_back">返回</span> |
|
|
|
<span v-if="form.customerName || !customerId" |
|
|
|
<span v-if="form.customerName || !customerId" class="per_school" |
|
|
|
class="per_school" |
|
|
|
|
|
|
|
v-text="isDetail ? form.customerName + '/查看' : (customerId ? form.customerName + '/编辑' : '新增')"></span> |
|
|
|
v-text="isDetail ? form.customerName + '/查看' : (customerId ? form.customerName + '/编辑' : '新增')"></span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" |
|
|
|
<el-card shadow="hover" class="card"> |
|
|
|
class="card"> |
|
|
|
<div class="tabs" v-if="customerId"> |
|
|
|
<div class="tabs" |
|
|
|
<a class="item" v-for="(item, i) in tabs" :key="i" :class="{ active: i == curTab }" @click="tabChange(i)">{{ |
|
|
|
v-if="customerId"> |
|
|
|
item |
|
|
|
<a class="item" |
|
|
|
}}</a> |
|
|
|
v-for="(item, i) in tabs" |
|
|
|
|
|
|
|
:key="i" |
|
|
|
|
|
|
|
:class="{active: i == curTab}" |
|
|
|
|
|
|
|
@click="tabChange(i)">{{ item }}</a> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-show="curTab === 'tab1'"> |
|
|
|
<div v-show="curTab === 'tab1'"> |
|
|
|
<el-form :model="form" |
|
|
|
<el-form :model="form" :rules="rules" ref="form" label-width="120px" class="flex-start-around info" |
|
|
|
:rules="rules" |
|
|
|
|
|
|
|
ref="form" |
|
|
|
|
|
|
|
label-width="120px" |
|
|
|
|
|
|
|
class="flex-start-around info" |
|
|
|
|
|
|
|
:disabled="isDetail"> |
|
|
|
:disabled="isDetail"> |
|
|
|
<el-col :span="6" |
|
|
|
<el-col :span="6" style="margin-right: 60px;"> |
|
|
|
style="margin-right: 60px;"> |
|
|
|
<el-form-item prop="countries" label="国家"> |
|
|
|
<el-form-item prop="countries" |
|
|
|
<el-select v-model="form.countries" clearable placeholder="请选择国家"> |
|
|
|
label="国家"> |
|
|
|
<el-option v-for="(item, index) in countryList" :key="index" :label="item.name" |
|
|
|
<el-select v-model="form.countries" |
|
|
|
|
|
|
|
clearable |
|
|
|
|
|
|
|
placeholder="请选择国家"> |
|
|
|
|
|
|
|
<el-option v-for="(item,index) in countryList" |
|
|
|
|
|
|
|
:key="index" |
|
|
|
|
|
|
|
:label="item.name" |
|
|
|
|
|
|
|
:value="item.name"></el-option> |
|
|
|
:value="item.name"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="schoolId" |
|
|
|
<el-form-item prop="schoolId" label="客户名称"> |
|
|
|
label="客户名称"> |
|
|
|
|
|
|
|
<div class="flex a-center"> |
|
|
|
<div class="flex a-center"> |
|
|
|
<el-select v-model="form.schoolId" |
|
|
|
<el-select v-model="form.schoolId" filterable clearable placeholder="请选择学校" :disabled="!!customerId" |
|
|
|
filterable |
|
|
|
@change="SchoolChange" @clear="clearSchool"> |
|
|
|
clearable |
|
|
|
<el-option v-for="(item, index) in schoolList" :key="index" :label="item.schoolName" |
|
|
|
placeholder="请选择学校" |
|
|
|
|
|
|
|
:disabled="!!customerId" |
|
|
|
|
|
|
|
@change="SchoolChange" |
|
|
|
|
|
|
|
@clear="clearSchool"> |
|
|
|
|
|
|
|
<el-option v-for="(item,index) in schoolList" |
|
|
|
|
|
|
|
:key="index" |
|
|
|
|
|
|
|
:label="item.schoolName" |
|
|
|
|
|
|
|
:value="item.schoolId"></el-option> |
|
|
|
:value="item.schoolId"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
<!-- <i v-if="!isDetail" |
|
|
|
<!-- <i v-if="!isDetail" |
|
|
|
class="el-icon-circle-plus-outline plus-cus" |
|
|
|
class="el-icon-circle-plus-outline plus-cus" |
|
|
|
@click="addCustomer"></i> --> |
|
|
|
@click="addCustomer"></i> --> |
|
|
|
<el-button v-if="!isDetail" |
|
|
|
<el-button v-if="!isDetail" style="margin-left: 5px" type="primary" size="mini" |
|
|
|
style="margin-left: 5px" |
|
|
|
|
|
|
|
type="primary" |
|
|
|
|
|
|
|
size="mini" |
|
|
|
|
|
|
|
@click="setCustomer">设置</el-button> |
|
|
|
@click="setCustomer">设置</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="cityId" |
|
|
|
<el-form-item prop="cityId" label="城市"> |
|
|
|
label="城市"> |
|
|
|
<el-select v-model="form.cityId" placeholder="" disabled> |
|
|
|
<el-select v-model="form.cityId" |
|
|
|
<el-option v-for="(item, index) in cityList" :key="index" :label="item.cityName" |
|
|
|
placeholder="" |
|
|
|
|
|
|
|
disabled> |
|
|
|
|
|
|
|
<el-option v-for="(item,index) in cityList" |
|
|
|
|
|
|
|
:key="index" |
|
|
|
|
|
|
|
:label="item.cityName" |
|
|
|
|
|
|
|
:value="item.cityId"></el-option> |
|
|
|
:value="item.cityId"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="industryId" |
|
|
|
<el-form-item prop="industryId" label="行业"> |
|
|
|
label="行业"> |
|
|
|
<el-select v-model="form.industryId" clearable placeholder="请选择行业" |
|
|
|
<el-select v-model="form.industryId" |
|
|
|
|
|
|
|
clearable |
|
|
|
|
|
|
|
placeholder="请选择行业" |
|
|
|
|
|
|
|
:disabled="form.industryClassId ? false : true"> |
|
|
|
:disabled="form.industryClassId ? false : true"> |
|
|
|
<el-option v-for="(item,index) in industryList" |
|
|
|
<el-option v-for="(item, index) in industryList" :key="index" :label="item.industryName" |
|
|
|
:key="index" |
|
|
|
|
|
|
|
:label="item.industryName" |
|
|
|
|
|
|
|
:value="item.industryId"></el-option> |
|
|
|
:value="item.industryId"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<el-form-item prop="account" |
|
|
|
<el-form-item prop="account" label="账号"> |
|
|
|
label="账号"> |
|
|
|
<el-input placeholder="请输入账号" v-model.trim="form.account"></el-input> |
|
|
|
<el-input placeholder="请输入账号" |
|
|
|
|
|
|
|
v-model.trim="form.account"></el-input> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="职务"> |
|
|
|
<el-form-item label="职务"> |
|
|
|
<el-input placeholder="请输入职务名称" |
|
|
|
<el-input placeholder="请输入职务名称" v-model.trim="form.position" maxlength="11"></el-input> |
|
|
|
v-model.trim="form.position" |
|
|
|
|
|
|
|
maxlength="11"></el-input> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="产品到期时间"> |
|
|
|
<el-form-item label="产品到期时间"> |
|
|
|
<el-date-picker type="date" |
|
|
|
<el-date-picker type="date" disabled v-model="form.expireDate" style="width: 100%;" |
|
|
|
disabled |
|
|
|
|
|
|
|
v-model="form.expireDate" |
|
|
|
|
|
|
|
style="width: 100%;" |
|
|
|
|
|
|
|
value-format="yyyy-MM-dd"></el-date-picker> |
|
|
|
value-format="yyyy-MM-dd"></el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="6" |
|
|
|
<el-col :span="6" style="margin-left: 60px;"> |
|
|
|
style="margin-left: 60px;"> |
|
|
|
|
|
|
|
<el-form-item label="客户类型"> |
|
|
|
<el-form-item label="客户类型"> |
|
|
|
<el-select v-model="form.customerType" |
|
|
|
<el-select v-model="form.customerType" placeholder="下单后客户类型自动补充" disabled> |
|
|
|
placeholder="下单后客户类型自动补充" |
|
|
|
<el-option v-for="(item, index) in customerTypeList" :key="index" :label="item.name" |
|
|
|
disabled> |
|
|
|
|
|
|
|
<el-option v-for="(item,index) in customerTypeList" |
|
|
|
|
|
|
|
:key="index" |
|
|
|
|
|
|
|
:label="item.name" |
|
|
|
|
|
|
|
:value="item.value"></el-option> |
|
|
|
:value="item.value"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="provinceId" |
|
|
|
<el-form-item prop="provinceId" label="省份"> |
|
|
|
label="省份"> |
|
|
|
<el-select v-model="form.provinceId" placeholder="" disabled> |
|
|
|
<el-select v-model="form.provinceId" |
|
|
|
<el-option v-for="(item, index) in provinceList" :key="index" :label="item.provinceName" |
|
|
|
placeholder="" |
|
|
|
|
|
|
|
disabled> |
|
|
|
|
|
|
|
<el-option v-for="(item,index) in provinceList" |
|
|
|
|
|
|
|
:key="index" |
|
|
|
|
|
|
|
:label="item.provinceName" |
|
|
|
|
|
|
|
:value="item.provinceId"></el-option> |
|
|
|
:value="item.provinceId"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="industryClassId" |
|
|
|
<el-form-item prop="industryClassId" label="行业类型"> |
|
|
|
label="行业类型"> |
|
|
|
<el-select v-model="form.industryClassId" clearable placeholder="请选择行业类型" @change="changIndustry" |
|
|
|
<el-select v-model="form.industryClassId" |
|
|
|
|
|
|
|
clearable |
|
|
|
|
|
|
|
placeholder="请选择行业类型" |
|
|
|
|
|
|
|
@change="changIndustry" |
|
|
|
|
|
|
|
@clear="clearIndustry()"> |
|
|
|
@clear="clearIndustry()"> |
|
|
|
<el-option v-for="(item,index) in IndustryClassList" |
|
|
|
<el-option v-for="(item, index) in IndustryClassList" :key="index" :label="item.industryClassName" |
|
|
|
:key="index" |
|
|
|
|
|
|
|
:label="item.industryClassName" |
|
|
|
|
|
|
|
:value="item.industryClassId"></el-option> |
|
|
|
:value="item.industryClassId"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="name" |
|
|
|
<el-form-item prop="name" label="联系人姓名"> |
|
|
|
label="联系人姓名"> |
|
|
|
<el-input placeholder="请输入联系人姓名" v-model.trim="form.name"></el-input> |
|
|
|
<el-input placeholder="请输入联系人姓名" |
|
|
|
|
|
|
|
v-model.trim="form.name"></el-input> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="phone" |
|
|
|
<el-form-item prop="phone" label="手机号"> |
|
|
|
label="手机号"> |
|
|
|
<el-input placeholder="请输入联系人手机号" v-model.trim="form.phone" maxlength="11"></el-input> |
|
|
|
<el-input placeholder="请输入联系人手机号" |
|
|
|
|
|
|
|
v-model.trim="form.phone" |
|
|
|
|
|
|
|
maxlength="11"></el-input> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="email" |
|
|
|
<el-form-item prop="email" label="邮箱"> |
|
|
|
label="邮箱"> |
|
|
|
<el-input placeholder="请输入邮箱" v-model.trim="form.email"></el-input> |
|
|
|
<el-input placeholder="请输入邮箱" |
|
|
|
|
|
|
|
v-model.trim="form.email"></el-input> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
|
<div v-if="!isDetail" |
|
|
|
<div v-if="!isDetail" style="margin-top: 20px;text-align: center"> |
|
|
|
style="margin-top: 20px;text-align: center"> |
|
|
|
<el-button type="primary" v-preventReClick @click="saveAdd(0)">确定</el-button> |
|
|
|
<el-button type="primary" |
|
|
|
<el-button v-preventReClick @click="$router.back()">取消</el-button> |
|
|
|
v-preventReClick |
|
|
|
|
|
|
|
@click="saveAdd(0)">确定</el-button> |
|
|
|
|
|
|
|
<el-button v-preventReClick |
|
|
|
|
|
|
|
@click="$router.back()">取消</el-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
@ -182,69 +109,38 @@ |
|
|
|
<ul class="filter"> |
|
|
|
<ul class="filter"> |
|
|
|
<li> |
|
|
|
<li> |
|
|
|
<label>产品分类</label> |
|
|
|
<label>产品分类</label> |
|
|
|
<el-select v-model="form2.productType" |
|
|
|
<el-select v-model="form2.productType" placeholder="请选择产品类型" clearable @change="filterForm2"> |
|
|
|
placeholder="请选择产品类型" |
|
|
|
<el-option v-for="(item, index) in productTypeList" :key="index" :label="item.classificationName" |
|
|
|
clearable |
|
|
|
|
|
|
|
@change="filterForm2"> |
|
|
|
|
|
|
|
<el-option v-for="(item,index) in productTypeList" |
|
|
|
|
|
|
|
:key="index" |
|
|
|
|
|
|
|
:label="item.classificationName" |
|
|
|
|
|
|
|
:value="item.classificationId"></el-option> |
|
|
|
:value="item.classificationId"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<li> |
|
|
|
<label>订阅状态</label> |
|
|
|
<label>订阅状态</label> |
|
|
|
<el-select v-model="form2.status" |
|
|
|
<el-select v-model="form2.status" placeholder="请选择订阅状态" @change="filterForm2"> |
|
|
|
placeholder="请选择订阅状态" |
|
|
|
<el-option v-for="(item, index) in subStatusList" :key="index" :label="item.name" |
|
|
|
@change="filterForm2"> |
|
|
|
|
|
|
|
<el-option v-for="(item,index) in subStatusList" |
|
|
|
|
|
|
|
:key="index" |
|
|
|
|
|
|
|
:label="item.name" |
|
|
|
|
|
|
|
:value="item.name"></el-option> |
|
|
|
:value="item.name"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<li> |
|
|
|
<el-input style="width: 250px;" |
|
|
|
<el-input style="width: 250px;" placeholder="请输入产品名称" prefix-icon="el-icon-search" clearable |
|
|
|
placeholder="请输入产品名称" |
|
|
|
|
|
|
|
prefix-icon="el-icon-search" |
|
|
|
|
|
|
|
clearable |
|
|
|
|
|
|
|
v-model="form2.keyword"></el-input> |
|
|
|
v-model="form2.keyword"></el-input> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-button type="primary" |
|
|
|
<el-button type="primary" @click="exportList">导出列表</el-button> |
|
|
|
@click="exportList">导出列表</el-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-table :data="products" |
|
|
|
<el-table :data="products" class="orderTable" stripe header-align="center" |
|
|
|
class="orderTable" |
|
|
|
@selection-change="handleSelectionChange" row-key="id"> |
|
|
|
stripe |
|
|
|
<el-table-column type="selection" width="55" align="center" :reserve-selection="true"></el-table-column> |
|
|
|
header-align="center" |
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"> |
|
|
|
@selection-change="handleSelectionChange" |
|
|
|
|
|
|
|
row-key="id"> |
|
|
|
|
|
|
|
<el-table-column type="selection" |
|
|
|
|
|
|
|
width="55" |
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
|
|
:reserve-selection="true"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column type="index" |
|
|
|
|
|
|
|
width="100" |
|
|
|
|
|
|
|
label="序号" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="goodsName" |
|
|
|
<el-table-column prop="goodsName" label="产品名称" align="center"></el-table-column> |
|
|
|
label="产品名称" |
|
|
|
<el-table-column prop="productTypeName" label="产品分类" align="center"></el-table-column> |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column label="起止日期" align="center"> |
|
|
|
<el-table-column prop="productTypeName" |
|
|
|
|
|
|
|
label="产品分类" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column label="起止日期" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.status === '已过期' ? '' : scope.row.startAndEndTime }} |
|
|
|
{{ scope.row.status === '已过期' ? '' : scope.row.startAndEndTime }} |
|
|
|
<el-tooltip v-if="scope.row.other" |
|
|
|
<el-tooltip v-if="scope.row.other" class="item" effect="dark" placement="top"> |
|
|
|
class="item" |
|
|
|
|
|
|
|
effect="dark" |
|
|
|
|
|
|
|
placement="top"> |
|
|
|
|
|
|
|
<div slot="content"> |
|
|
|
<div slot="content"> |
|
|
|
还有<span v-html="scope.row.other"></span><br>的订单还未生效 |
|
|
|
还有<span v-html="scope.row.other"></span><br>的订单还未生效 |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -252,34 +148,23 @@ |
|
|
|
</el-tooltip> |
|
|
|
</el-tooltip> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="剩余期限" |
|
|
|
<el-table-column label="剩余期限" align="center"> |
|
|
|
align="center"> |
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.remain }} 天 |
|
|
|
{{ scope.row.remain }} 天 |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="status" |
|
|
|
<el-table-column prop="status" label="订阅状态" align="center"></el-table-column> |
|
|
|
label="订阅状态" |
|
|
|
<el-table-column label="产品状态" align="center"> |
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column label="产品状态" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-switch v-model="scope.row.isEnable" |
|
|
|
<el-switch v-model="scope.row.isEnable" :active-value="1" :inactive-value="0" |
|
|
|
:active-value="1" |
|
|
|
:active-text="scope.row.isEnable ? '启用' : '禁用'" :disabled="scope.row.status === '已过期'" |
|
|
|
:inactive-value="0" |
|
|
|
|
|
|
|
:active-text="scope.row.isEnable ? '启用' : '禁用'" |
|
|
|
|
|
|
|
:disabled="scope.row.status === '已过期'" |
|
|
|
|
|
|
|
@change="switchOff($event, scope.row, scope.$index)"></el-switch> |
|
|
|
@change="switchOff($event, scope.row, scope.$index)"></el-switch> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
|
<div class="pagination"> |
|
|
|
<div class="pagination"> |
|
|
|
<el-pagination background |
|
|
|
<el-pagination background layout="total, prev, pager, next" @current-change="handleCurrentChangeProduct" |
|
|
|
layout="total, prev, pager, next" |
|
|
|
:current-page="pageProduct" :page-size="pageSizeProduct" :total="totalProduct"></el-pagination> |
|
|
|
@current-change="handleCurrentChangeProduct" |
|
|
|
|
|
|
|
:current-page="pageProduct" |
|
|
|
|
|
|
|
:page-size="pageSizeProduct" |
|
|
|
|
|
|
|
:total="totalProduct"></el-pagination> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
@ -288,68 +173,37 @@ |
|
|
|
<ul class="filter"> |
|
|
|
<ul class="filter"> |
|
|
|
<li> |
|
|
|
<li> |
|
|
|
<label>订单类型</label> |
|
|
|
<label>订单类型</label> |
|
|
|
<el-select v-model="form3.orderType" |
|
|
|
<el-select v-model="form3.orderType" clearable placeholder="请选择订单类型" @change="getOrder"> |
|
|
|
clearable |
|
|
|
<el-option v-for="(item, index) in orderTypeList" :key="index" :label="item.name" |
|
|
|
placeholder="请选择订单类型" |
|
|
|
|
|
|
|
@change="getOrder"> |
|
|
|
|
|
|
|
<el-option v-for="(item,index) in orderTypeList" |
|
|
|
|
|
|
|
:key="index" |
|
|
|
|
|
|
|
:label="item.name" |
|
|
|
|
|
|
|
:value="item.value"></el-option> |
|
|
|
:value="item.value"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<li> |
|
|
|
<label>订单状态</label> |
|
|
|
<label>订单状态</label> |
|
|
|
<el-select v-model="form3.orderStatus" |
|
|
|
<el-select v-model="form3.orderStatus" clearable placeholder="请选择订单状态" @change="getOrder"> |
|
|
|
clearable |
|
|
|
<el-option v-for="(item, index) in orderStatusList" :key="index" :label="item.name" |
|
|
|
placeholder="请选择订单状态" |
|
|
|
|
|
|
|
@change="getOrder"> |
|
|
|
|
|
|
|
<el-option v-for="(item,index) in orderStatusList" |
|
|
|
|
|
|
|
:key="index" |
|
|
|
|
|
|
|
:label="item.name" |
|
|
|
|
|
|
|
:value="item.id"></el-option> |
|
|
|
:value="item.id"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-input style="width: 250px;" |
|
|
|
<el-input style="width: 250px;" placeholder="请输入订单编号、内容" prefix-icon="el-icon-search" clearable |
|
|
|
placeholder="请输入订单编号、内容" |
|
|
|
|
|
|
|
prefix-icon="el-icon-search" |
|
|
|
|
|
|
|
clearable |
|
|
|
|
|
|
|
v-model="form3.keyword"></el-input> |
|
|
|
v-model="form3.keyword"></el-input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-table :data="orders" |
|
|
|
<el-table :data="orders" class="orderTable" stripe header-align="center" |
|
|
|
class="orderTable" |
|
|
|
@selection-change="handleSelectionChange" row-key="orderId"> |
|
|
|
stripe |
|
|
|
<el-table-column type="selection" width="55" align="center" :reserve-selection="true"></el-table-column> |
|
|
|
header-align="center" |
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"> |
|
|
|
@selection-change="handleSelectionChange" |
|
|
|
|
|
|
|
row-key="orderId"> |
|
|
|
|
|
|
|
<el-table-column type="selection" |
|
|
|
|
|
|
|
width="55" |
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
|
|
:reserve-selection="true"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column type="index" |
|
|
|
|
|
|
|
width="100" |
|
|
|
|
|
|
|
label="序号" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="orderNumber" |
|
|
|
<el-table-column prop="orderNumber" label="订单编号" align="center"></el-table-column> |
|
|
|
label="订单编号" |
|
|
|
<el-table-column prop="orderContent" label="订单内容" align="center"> |
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="orderContent" |
|
|
|
|
|
|
|
label="订单内容" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-popover trigger="hover" |
|
|
|
<el-popover trigger="hover" placement="top" style='width: 500px' |
|
|
|
placement="top" |
|
|
|
|
|
|
|
style='width: 500px' |
|
|
|
|
|
|
|
v-if='scope.row.orderContent.length > 14'> |
|
|
|
v-if='scope.row.orderContent.length > 14'> |
|
|
|
<p> {{ scope.row.orderContent }}</p> |
|
|
|
<p> {{ scope.row.orderContent }}</p> |
|
|
|
<div slot="reference" |
|
|
|
<div slot="reference" class="name-wrapper"> |
|
|
|
class="name-wrapper"> |
|
|
|
<el-tag size="medium" class='tags'>{{ scope.row.orderContent }}</el-tag> |
|
|
|
<el-tag size="medium" |
|
|
|
|
|
|
|
class='tags'>{{ scope.row.orderContent }}</el-tag> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-popover> |
|
|
|
</el-popover> |
|
|
|
<span v-else> |
|
|
|
<span v-else> |
|
|
@ -357,89 +211,53 @@ |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="orderAmount" |
|
|
|
<el-table-column prop="orderAmount" label="订单金额(元)" align="center"></el-table-column> |
|
|
|
label="订单金额(元)" |
|
|
|
<el-table-column prop="createTime" label="订单日期" align="center"></el-table-column> |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column prop="orderType" label="订单类型" align="center"></el-table-column> |
|
|
|
<el-table-column prop="createTime" |
|
|
|
<el-table-column prop="orderStatus" label="订单状态" align="center"></el-table-column> |
|
|
|
label="订单日期" |
|
|
|
<el-table-column label="操作" align="center"> |
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="orderType" |
|
|
|
|
|
|
|
label="订单类型" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="orderStatus" |
|
|
|
|
|
|
|
label="订单状态" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column label="操作" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button type="text" |
|
|
|
<el-button type="text" @click="toOrderDetail(scope.row)">订单详情</el-button> |
|
|
|
@click="toOrderDetail(scope.row)">订单详情</el-button> |
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
|
<div class="pagination"> |
|
|
|
<div class="pagination"> |
|
|
|
<el-pagination background |
|
|
|
<el-pagination background layout="total, prev, pager, next" @current-change="handleCurrentChangeOrder" |
|
|
|
layout="total, prev, pager, next" |
|
|
|
:current-page="pageOrder" :page-size="pageSizeOrder" :total="totalOrder"></el-pagination> |
|
|
|
@current-change="handleCurrentChangeOrder" |
|
|
|
|
|
|
|
:current-page="pageOrder" |
|
|
|
|
|
|
|
:page-size="pageSizeOrder" |
|
|
|
|
|
|
|
:total="totalOrder"></el-pagination> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div v-show="curTab === 'tab4'"> |
|
|
|
<div v-show="curTab === 'tab4'"> |
|
|
|
<div class="tool"> |
|
|
|
<div class="tool"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-input style="width: 350px;" |
|
|
|
<el-input style="width: 350px;" placeholder="请输入订单编号、合同名称、合同编号、产品内容" prefix-icon="el-icon-search" |
|
|
|
placeholder="请输入订单编号、合同名称、合同编号、产品内容" |
|
|
|
|
|
|
|
prefix-icon="el-icon-search" |
|
|
|
|
|
|
|
clearable></el-input> |
|
|
|
clearable></el-input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-table :data="contractInformations" |
|
|
|
<el-table :data="contractInformations" class="table" stripe header-align="center"> |
|
|
|
class="table" |
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"> |
|
|
|
stripe |
|
|
|
|
|
|
|
header-align="center"> |
|
|
|
|
|
|
|
<el-table-column type="index" |
|
|
|
|
|
|
|
width="100" |
|
|
|
|
|
|
|
label="序号" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="contractNumber" |
|
|
|
<el-table-column prop="contractNumber" label="订单号" align="center"></el-table-column> |
|
|
|
label="订单号" |
|
|
|
<el-table-column prop="contractNumber" label="合同编号" align="center"></el-table-column> |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column prop="contractName" label="合同名称" align="center"> |
|
|
|
<el-table-column prop="contractNumber" |
|
|
|
|
|
|
|
label="合同编号" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="contractName" |
|
|
|
|
|
|
|
label="合同名称" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="endTime" |
|
|
|
<el-table-column prop="endTime" label="合同期限" align="center"> |
|
|
|
label="合同期限" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{scope.row.startTime?scope.row.startTime.split(' ').shift():''}} - {{scope.row.endTime?scope.row.endTime.split(' ').shift():''}} |
|
|
|
{{ scope.row.startTime ? scope.row.startTime.split('').shift() : '' |
|
|
|
|
|
|
|
}} - {{ scope.row.endTime ? scope.row.endTime.split('').shift() : '' }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="dataOrCourseName" |
|
|
|
<el-table-column prop="dataOrCourseName" label="产品内容" align="center"> |
|
|
|
label="产品内容" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="contractMoney" |
|
|
|
<el-table-column prop="contractMoney" label="合同金额" align="center"> |
|
|
|
label="合同金额" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.contractMoney }} 元 |
|
|
|
{{ scope.row.contractMoney }} 元 |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" |
|
|
|
<el-table-column label="操作" align="center"> |
|
|
|
align="center"> |
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button type="text" |
|
|
|
<el-button type="text" @click="showContract(scope.row)">查看</el-button> |
|
|
|
@click="showContract(scope.row)">查看</el-button> |
|
|
|
<el-button type="text" @click="showContract(scope.row)">下载</el-button> |
|
|
|
<el-button type="text" |
|
|
|
|
|
|
|
@click="showContract(scope.row)">下载</el-button> |
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
@ -448,196 +266,110 @@ |
|
|
|
<div v-show="curTab === 'tab5'"> |
|
|
|
<div v-show="curTab === 'tab5'"> |
|
|
|
<div class="tool"> |
|
|
|
<div class="tool"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-input style="width: 300px;" |
|
|
|
<el-input style="width: 300px;" placeholder="请输入商务经理、手机号" prefix-icon="el-icon-search" clearable |
|
|
|
placeholder="请输入商务经理、手机号" |
|
|
|
|
|
|
|
prefix-icon="el-icon-search" |
|
|
|
|
|
|
|
clearable |
|
|
|
|
|
|
|
v-model="bmsKeyword"></el-input> |
|
|
|
v-model="bmsKeyword"></el-input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-table :data="bms" |
|
|
|
<el-table :data="bms" class="table" stripe header-align="center"> |
|
|
|
class="table" |
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"></el-table-column> |
|
|
|
stripe |
|
|
|
<el-table-column prop="userName" label="姓名" width="200" align="center"> |
|
|
|
header-align="center"> |
|
|
|
|
|
|
|
<el-table-column type="index" |
|
|
|
|
|
|
|
width="100" |
|
|
|
|
|
|
|
label="序号" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="userName" |
|
|
|
|
|
|
|
label="姓名" |
|
|
|
|
|
|
|
width="200" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.userName }}{{ scope.row.peopleDel ? '(已被删除)' : '' }} |
|
|
|
{{ scope.row.userName }}{{ scope.row.peopleDel ? '(已被删除)' : '' }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="phone" |
|
|
|
<el-table-column prop="phone" label="手机号" width="150" align="center"></el-table-column> |
|
|
|
label="手机号" |
|
|
|
<el-table-column prop="bmName" label="所属团队" align="center"> |
|
|
|
width="150" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="bmName" |
|
|
|
|
|
|
|
label="所属团队" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-html="scope.row.bmName"></div> |
|
|
|
<div v-html="scope.row.bmName"></div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="quantityOfOrder" |
|
|
|
<el-table-column prop="quantityOfOrder" label="订单数量" width="100" align="center"></el-table-column> |
|
|
|
label="订单数量" |
|
|
|
<el-table-column prop="latestTime" label="最近下单时间" width="200" align="center"></el-table-column> |
|
|
|
width="100" |
|
|
|
<el-table-column prop="productName" label="产品" align="center" show-overflow-tooltip></el-table-column> |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column label="操作" width="120" align="center"> |
|
|
|
<el-table-column prop="latestTime" |
|
|
|
|
|
|
|
label="最近下单时间" |
|
|
|
|
|
|
|
width="200" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="productName" |
|
|
|
|
|
|
|
label="产品" |
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
|
|
show-overflow-tooltip></el-table-column> |
|
|
|
|
|
|
|
<el-table-column label="操作" |
|
|
|
|
|
|
|
width="120" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button type="text" |
|
|
|
<el-button type="text" @click="toOrder(scope.row)">查看</el-button> |
|
|
|
@click="toOrder(scope.row)">查看</el-button> |
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
|
<div class="pagination"> |
|
|
|
<div class="pagination"> |
|
|
|
<el-pagination background |
|
|
|
<el-pagination background layout="total, prev, pager, next" @current-change="handleCurrentChangeBm" |
|
|
|
layout="total, prev, pager, next" |
|
|
|
:current-page="pageBm" :page-size="pageSizeBm" :total="totalBm"></el-pagination> |
|
|
|
@current-change="handleCurrentChangeBm" |
|
|
|
|
|
|
|
:current-page="pageBm" |
|
|
|
|
|
|
|
:page-size="pageSizeBm" |
|
|
|
|
|
|
|
:total="totalBm"></el-pagination> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog :visible.sync="showImg" |
|
|
|
<el-dialog :visible.sync="showImg" width="70%" center> |
|
|
|
width="70%" |
|
|
|
<img :src="fileSrc" width="100%" alt=""> |
|
|
|
center> |
|
|
|
|
|
|
|
<img :src="fileSrc" |
|
|
|
|
|
|
|
width="100%" |
|
|
|
|
|
|
|
alt=""> |
|
|
|
|
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog :title="curRow ? '编辑客户' : '添加客户'" |
|
|
|
<el-dialog :title="curRow ? '编辑客户' : '添加客户'" :visible.sync="customerVisible" width="300px" class="dialog" |
|
|
|
:visible.sync="customerVisible" |
|
|
|
|
|
|
|
width="300px" |
|
|
|
|
|
|
|
class="dialog" |
|
|
|
|
|
|
|
:close-on-click-modal="false"> |
|
|
|
:close-on-click-modal="false"> |
|
|
|
<el-form label-width="70px"> |
|
|
|
<el-form label-width="70px"> |
|
|
|
<el-form-item label="客户名称"> |
|
|
|
<el-form-item label="客户名称"> |
|
|
|
<el-input v-model="customerForm.schoolName" |
|
|
|
<el-input v-model="customerForm.schoolName" placeholder="请输入客户名称"></el-input> |
|
|
|
placeholder="请输入客户名称"></el-input> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="userName" |
|
|
|
<el-form-item prop="userName" label="省份"> |
|
|
|
label="省份"> |
|
|
|
<el-select v-model="customerForm.provinceId" placeholder="请选择省份" @change="provinceChange"> |
|
|
|
<el-select v-model="customerForm.provinceId" |
|
|
|
<el-option v-for="(item, index) in provinceList" :key="index" :label="item.provinceName" |
|
|
|
placeholder="请选择省份" |
|
|
|
|
|
|
|
@change="provinceChange"> |
|
|
|
|
|
|
|
<el-option v-for="(item,index) in provinceList" |
|
|
|
|
|
|
|
:key="index" |
|
|
|
|
|
|
|
:label="item.provinceName" |
|
|
|
|
|
|
|
:value="item.provinceId"></el-option> |
|
|
|
:value="item.provinceId"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="userName" |
|
|
|
<el-form-item prop="userName" label="城市"> |
|
|
|
label="城市"> |
|
|
|
<el-select v-model="customerForm.cityId" placeholder="请选择城市" |
|
|
|
<el-select v-model="customerForm.cityId" |
|
|
|
|
|
|
|
placeholder="请选择城市" |
|
|
|
|
|
|
|
:disabled="customerForm.provinceId ? false : true"> |
|
|
|
:disabled="customerForm.provinceId ? false : true"> |
|
|
|
<el-option v-for="(item,index) in cities" |
|
|
|
<el-option v-for="(item, index) in cities" :key="index" :label="item.cityName" |
|
|
|
:key="index" |
|
|
|
|
|
|
|
:label="item.cityName" |
|
|
|
|
|
|
|
:value="item.cityId"></el-option> |
|
|
|
:value="item.cityId"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
|
<span slot="footer" |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
class="dialog-footer"> |
|
|
|
|
|
|
|
<el-button @click="customerVisible = false">取消</el-button> |
|
|
|
<el-button @click="customerVisible = false">取消</el-button> |
|
|
|
<el-button type="primary" |
|
|
|
<el-button type="primary" @click="submitCustomer">确定</el-button> |
|
|
|
@click="submitCustomer">确定</el-button> |
|
|
|
|
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog title="客户设置" |
|
|
|
<el-dialog title="客户字典设置" :visible.sync="customerListVisible" width="800px" class="dialog" |
|
|
|
:visible.sync="customerListVisible" |
|
|
|
:close-on-click-modal="false" custom-class="customer-dia"> |
|
|
|
width="800px" |
|
|
|
|
|
|
|
class="dialog" |
|
|
|
|
|
|
|
:close-on-click-modal="false" |
|
|
|
|
|
|
|
custom-class="customer-dia"> |
|
|
|
|
|
|
|
<div style="display: flex;justify-content: space-between;align-items: center;margin-bottom: 10px"> |
|
|
|
<div style="display: flex;justify-content: space-between;align-items: center;margin-bottom: 10px"> |
|
|
|
<el-input style="width: 200px;" |
|
|
|
<el-input style="width: 200px;" placeholder="请输入客户名称" prefix-icon="el-icon-search" v-model="customerKeyword" |
|
|
|
placeholder="请输入客户名称" |
|
|
|
|
|
|
|
prefix-icon="el-icon-search" |
|
|
|
|
|
|
|
v-model="customerKeyword" |
|
|
|
|
|
|
|
clearable></el-input> |
|
|
|
clearable></el-input> |
|
|
|
<i class="el-icon-circle-plus plus-cus" |
|
|
|
<i class="el-icon-circle-plus plus-cus" @click="addCustomer"></i> |
|
|
|
@click="addCustomer"></i> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-table :data="customers" |
|
|
|
<el-table :data="customers" class="table" ref="table" stripe header-align="center" row-key="customerId"> |
|
|
|
class="table" |
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"> |
|
|
|
ref="table" |
|
|
|
|
|
|
|
stripe |
|
|
|
|
|
|
|
header-align="center" |
|
|
|
|
|
|
|
row-key="customerId"> |
|
|
|
|
|
|
|
<el-table-column type="index" |
|
|
|
|
|
|
|
width="100" |
|
|
|
|
|
|
|
label="序号" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.$index + (pageCustomer - 1) * pageSizeCustomer + 1 }} |
|
|
|
{{ scope.$index + (pageCustomer - 1) * pageSizeCustomer + 1 }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="customerName" |
|
|
|
<el-table-column prop="customerName" label="客户名称" align="center"> |
|
|
|
label="客户名称" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.customerName || scope.row.schoolName }} |
|
|
|
{{ scope.row.customerName || scope.row.schoolName }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="provinceName" |
|
|
|
<el-table-column prop="provinceName" label="省份" align="center"> |
|
|
|
label="省份" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="cityName" |
|
|
|
<el-table-column prop="cityName" label="城市" align="center"> |
|
|
|
label="城市" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="countries" |
|
|
|
<el-table-column prop="countries" label="是否为客户" align="center"> |
|
|
|
label="是否创建" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.bindOrNot ? '是' : '否' }} |
|
|
|
{{ scope.row.bindOrNot ? '是' : '否' }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" |
|
|
|
<el-table-column label="操作" width="100" align="center"> |
|
|
|
width="100" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<i class="el-icon-edit icon" |
|
|
|
<i class="el-icon-edit icon" @click="editCustomer(scope.row)"></i> |
|
|
|
@click="editCustomer(scope.row)"></i> |
|
|
|
<i v-if="!scope.row.bindOrNot" class="el-icon-delete icon" @click="delCustomer(scope.row, i)"></i> |
|
|
|
<i v-if="!scope.row.bindOrNot" |
|
|
|
|
|
|
|
class="el-icon-delete icon" |
|
|
|
|
|
|
|
@click="delCustomer(scope.row, i)"></i> |
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
|
<div class="pagination"> |
|
|
|
<div class="pagination"> |
|
|
|
<el-pagination background |
|
|
|
<el-pagination background layout="total, prev, pager, next" :total="totalCustomer" |
|
|
|
layout="total, prev, pager, next" |
|
|
|
@current-change="handleCurrentChangeCustomer" :current-page="pageCustomer" :page-size="pageSizeCustomer"> |
|
|
|
:total="totalCustomer" |
|
|
|
|
|
|
|
@current-change="handleCurrentChangeCustomer" |
|
|
|
|
|
|
|
:current-page="pageCustomer" |
|
|
|
|
|
|
|
:page-size="pageSizeCustomer"> |
|
|
|
|
|
|
|
</el-pagination> |
|
|
|
</el-pagination> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
|
<pdf :visible.sync="pdfVisible" |
|
|
|
<pdf :visible.sync="pdfVisible" :src.sync="fileSrc"></pdf> |
|
|
|
:src.sync="fileSrc"></pdf> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
@ -1516,24 +1248,29 @@ export default { |
|
|
|
.tabs { |
|
|
|
.tabs { |
|
|
|
margin-bottom: 30px; |
|
|
|
margin-bottom: 30px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.card { |
|
|
|
.card { |
|
|
|
min-height: calc(100vh - 260px); |
|
|
|
min-height: calc(100vh - 260px); |
|
|
|
margin-bottom: 20px; |
|
|
|
margin-bottom: 20px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.addhr_tag { |
|
|
|
.addhr_tag { |
|
|
|
background-color: #666; |
|
|
|
background-color: #666; |
|
|
|
width: 6px; |
|
|
|
width: 6px; |
|
|
|
height: 17px; |
|
|
|
height: 17px; |
|
|
|
margin-right: 5px; |
|
|
|
margin-right: 5px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.radio_icon { |
|
|
|
.radio_icon { |
|
|
|
font-size: 26px; |
|
|
|
font-size: 26px; |
|
|
|
color: #9278ff; |
|
|
|
color: #9278ff; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/deep/.warning { |
|
|
|
/deep/.warning { |
|
|
|
margin-left: 5px; |
|
|
|
margin-left: 5px; |
|
|
|
color: #9278ff; |
|
|
|
color: #9278ff; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.tags { |
|
|
|
.tags { |
|
|
|
border: none; |
|
|
|
border: none; |
|
|
|
background: none; |
|
|
|
background: none; |
|
|
@ -1546,24 +1283,29 @@ export default { |
|
|
|
line-clamp: 2; |
|
|
|
line-clamp: 2; |
|
|
|
-webkit-box-orient: vertical; |
|
|
|
-webkit-box-orient: vertical; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.info { |
|
|
|
.info { |
|
|
|
margin-top: 20px; |
|
|
|
margin-top: 20px; |
|
|
|
|
|
|
|
|
|
|
|
.el-select { |
|
|
|
.el-select { |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.plus-cus { |
|
|
|
.plus-cus { |
|
|
|
margin-left: 10px; |
|
|
|
margin-left: 10px; |
|
|
|
font-size: 18px; |
|
|
|
font-size: 18px; |
|
|
|
color: #9076ff; |
|
|
|
color: #9076ff; |
|
|
|
cursor: pointer; |
|
|
|
cursor: pointer; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/deep/.customer-dia { |
|
|
|
/deep/.customer-dia { |
|
|
|
.icon { |
|
|
|
.icon { |
|
|
|
margin-right: 10px; |
|
|
|
margin-right: 10px; |
|
|
|
font-size: 16px; |
|
|
|
font-size: 16px; |
|
|
|
color: #7a7a7a; |
|
|
|
color: #7a7a7a; |
|
|
|
cursor: pointer; |
|
|
|
cursor: pointer; |
|
|
|
|
|
|
|
|
|
|
|
&:hover { |
|
|
|
&:hover { |
|
|
|
color: #9076ff; |
|
|
|
color: #9076ff; |
|
|
|
} |
|
|
|
} |
|
|
|