|
|
|
@ -1,274 +1,270 @@ |
|
|
|
|
<template> |
|
|
|
|
<div> |
|
|
|
|
<el-row :gutter="20"> |
|
|
|
|
<el-col :span="24"> |
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<div class="flex-between"> |
|
|
|
|
<div class="per_title" v-preventReClick @click="goback()"> |
|
|
|
|
<i class="el-icon-arrow-left"></i> |
|
|
|
|
<span class="per_back">返回</span> |
|
|
|
|
<span class="per_school" v-text="isDetail ? '查看客户信息' : (customerId ? '编辑客户信息' : '新增客户信息')"></span> |
|
|
|
|
</div> |
|
|
|
|
<el-button v-if="!isDetail" type="primary" round class="mag" v-preventReClick @click="saveAdd('form')">确定</el-button> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<div class="flex-between"> |
|
|
|
|
<div class="per_title" v-preventReClick @click="goback()"> |
|
|
|
|
<i class="el-icon-arrow-left"></i> |
|
|
|
|
<span class="per_back">返回</span> |
|
|
|
|
<span class="per_school" v-text="isDetail ? '查看客户信息' : (customerId ? '编辑客户信息' : '新增客户信息')"></span> |
|
|
|
|
</div> |
|
|
|
|
<el-button v-if="!isDetail" type="primary" round class="mag" v-preventReClick @click="saveAdd('form')">确定</el-button> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<div> |
|
|
|
|
<div class="flex-center mgb20"> |
|
|
|
|
<p class="addhr_tag"></p> |
|
|
|
|
<span>基本信息</span> |
|
|
|
|
</div> |
|
|
|
|
<el-card shadow="hover" :class="customerId ? 'mgb20' : 'card'"> |
|
|
|
|
<div> |
|
|
|
|
<div class="flex-center mgb20"> |
|
|
|
|
<p class="addhr_tag"></p> |
|
|
|
|
<span>基本信息</span> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div> |
|
|
|
|
<el-form :model="form" :rules="rules" ref="form" label-width="120px" class="flex-start-around" :disabled="isDetail"> |
|
|
|
|
<el-col :span="6" style="margin-right: 60px;"> |
|
|
|
|
<el-form-item prop="countries" label="国家"> |
|
|
|
|
<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> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item prop="schoolId" label="客户名称"> |
|
|
|
|
<el-select v-model="form.schoolId" filterable clearable placeholder="请选择学校" @change="SchoolChange" @clear="clearSchool"> |
|
|
|
|
<el-option v-for="(item,index) in schoolList" :key="index" :label="item.schoolName" :value="item.schoolId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item prop="cityId" label="城市"> |
|
|
|
|
<el-select v-model="form.cityId" placeholder="" disabled> |
|
|
|
|
<el-option v-for="(item,index) in cityList" :key="index" :label="item.cityName" :value="item.cityId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item prop="industryId" label="行业"> |
|
|
|
|
<el-select v-model="form.industryId" clearable placeholder="请选择行业" :disabled="form.industryClassId ? false : true"> |
|
|
|
|
<el-option v-for="(item,index) in industryList" :key="index" :label="item.industryName" :value="item.industryId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<div> |
|
|
|
|
<el-form :model="form" :rules="rules" ref="form" label-width="120px" class="flex-start-around" :disabled="isDetail"> |
|
|
|
|
<el-col :span="6" style="margin-right: 60px;"> |
|
|
|
|
<el-form-item prop="countries" label="国家"> |
|
|
|
|
<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> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item prop="schoolId" label="客户名称"> |
|
|
|
|
<el-select v-model="form.schoolId" filterable clearable placeholder="请选择学校" @change="SchoolChange" @clear="clearSchool"> |
|
|
|
|
<el-option v-for="(item,index) in schoolList" :key="index" :label="item.schoolName" :value="item.schoolId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item prop="cityId" label="城市"> |
|
|
|
|
<el-select v-model="form.cityId" placeholder="" disabled> |
|
|
|
|
<el-option v-for="(item,index) in cityList" :key="index" :label="item.cityName" :value="item.cityId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item prop="industryId" label="行业"> |
|
|
|
|
<el-select v-model="form.industryId" clearable placeholder="请选择行业" :disabled="form.industryClassId ? false : true"> |
|
|
|
|
<el-option v-for="(item,index) in industryList" :key="index" :label="item.industryName" :value="item.industryId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item prop="account" label="账号"> |
|
|
|
|
<el-input placeholder="请输入账号" v-model="form.account"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="职务"> |
|
|
|
|
<el-input placeholder="请输入职务名称" v-model="form.position" maxlength="11"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="产品到期时间"> |
|
|
|
|
<el-date-picker type="date" disabled v-model="form.expireDate" style="width: 100%;" value-format="yyyy-MM-dd"></el-date-picker> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-form-item prop="account" label="账号"> |
|
|
|
|
<el-input placeholder="请输入账号" v-model="form.account"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="职务"> |
|
|
|
|
<el-input placeholder="请输入职务名称" v-model="form.position" maxlength="11"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="产品到期时间"> |
|
|
|
|
<el-date-picker type="date" disabled v-model="form.expireDate" style="width: 100%;" value-format="yyyy-MM-dd"></el-date-picker> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
|
<el-col :span="6" style="margin-left: 60px;"> |
|
|
|
|
<el-form-item label="客户类型"> |
|
|
|
|
<el-select v-model="form.customerType" placeholder="下单后客户类型自动补充" disabled> |
|
|
|
|
<el-option v-for="(item,index) in customerTypeList" :key="index" :label="item.name" :value="item.value"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item prop="provinceId" label="省份"> |
|
|
|
|
<el-select v-model="form.provinceId" placeholder="" disabled> |
|
|
|
|
<el-option v-for="(item,index) in provinceList" :key="index" :label="item.provinceName" :value="item.provinceId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item prop="industryClassId" label="行业类型"> |
|
|
|
|
<el-select v-model="form.industryClassId" clearable placeholder="请选择行业类型" @change="changIndustry" @clear="clearIndustry()"> |
|
|
|
|
<el-option v-for="(item,index) in IndustryClassList" :key="index" :label="item.industryClassName" :value="item.industryClassId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item prop="name" label="联系人姓名"> |
|
|
|
|
<el-input placeholder="请输入联系人姓名" v-model="form.name"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item prop="phone" label="手机号"> |
|
|
|
|
<el-input placeholder="请输入联系人手机号" v-model="form.phone" maxlength="11" @blur="phoneChange"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item prop="email" label="邮箱"> |
|
|
|
|
<el-input placeholder="请输入邮箱" v-model="form.email" @blur="emailChange"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-form> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
<el-col :span="6" style="margin-left: 60px;"> |
|
|
|
|
<el-form-item label="客户类型"> |
|
|
|
|
<el-select v-model="form.customerType" placeholder="下单后客户类型自动补充" disabled> |
|
|
|
|
<el-option v-for="(item,index) in customerTypeList" :key="index" :label="item.name" :value="item.value"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item prop="provinceId" label="省份"> |
|
|
|
|
<el-select v-model="form.provinceId" placeholder="" disabled> |
|
|
|
|
<el-option v-for="(item,index) in provinceList" :key="index" :label="item.provinceName" :value="item.provinceId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item prop="industryClassId" label="行业类型"> |
|
|
|
|
<el-select v-model="form.industryClassId" clearable placeholder="请选择行业类型" @change="changIndustry" @clear="clearIndustry()"> |
|
|
|
|
<el-option v-for="(item,index) in IndustryClassList" :key="index" :label="item.industryClassName" :value="item.industryClassId"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item prop="name" label="联系人姓名"> |
|
|
|
|
<el-input placeholder="请输入联系人姓名" v-model="form.name"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item prop="phone" label="手机号"> |
|
|
|
|
<el-input placeholder="请输入联系人手机号" v-model="form.phone" maxlength="11" @blur="phoneChange"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item prop="email" label="邮箱"> |
|
|
|
|
<el-input placeholder="请输入邮箱" v-model="form.email" @blur="emailChange"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-form> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" class="mgb20" v-show="customerId"> |
|
|
|
|
<div class="flex-center mgb20 user_header"> |
|
|
|
|
<p class="addhr_tag"></p> |
|
|
|
|
<span>课程权限</span> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<el-table :data="coursePermissionss" class="orderTable" stripe header-align="center"> |
|
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="courseName" label="课程名称" align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="使用期限" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{scope.row.periodOfUse}} |
|
|
|
|
<span v-if='scope.row.options == 0'>日</span> |
|
|
|
|
<span v-if='scope.row.options == 1'>月</span> |
|
|
|
|
<span v-if='scope.row.options == 2'>年</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="起止日期" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{scope.row.startTime}}~{{scope.row.endTime}} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="剩余期限" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{scope.row.remainingPeriod}} 天 |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="端口地址" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button @click="configure(scope.row)" :disabled="isDetail">配置</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="状态" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-switch v-if="scope.row.ship" v-model="scope.row.isEnable" :active-value="1" :inactive-value="0" :active-text="scope.row.isEnable ? '启用' : '禁用'" :disabled="isDetail" @change="switchOff($event,scope.row,scope.$index)"></el-switch> |
|
|
|
|
<span v-else>未发货</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
<el-card shadow="hover" class="mgb20" v-show="customerId"> |
|
|
|
|
<div class="flex-center mgb20 user_header"> |
|
|
|
|
<p class="addhr_tag"></p> |
|
|
|
|
<span>课程权限</span> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<el-table :data="coursePermissionss" class="orderTable" stripe header-align="center"> |
|
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="courseName" label="课程名称" align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="使用期限" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{scope.row.periodOfUse}} |
|
|
|
|
<span v-if='scope.row.options == 0'>日</span> |
|
|
|
|
<span v-if='scope.row.options == 1'>月</span> |
|
|
|
|
<span v-if='scope.row.options == 2'>年</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="起止日期" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{scope.row.startTime}}~{{scope.row.endTime}} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="剩余期限" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{scope.row.remainingPeriod}} 天 |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="端口地址" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button @click="configure(scope.row)" :disabled="isDetail">配置</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="状态" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-switch v-if="scope.row.ship" v-model="scope.row.isEnable" :active-value="1" :inactive-value="0" :active-text="scope.row.isEnable ? '启用' : '禁用'" :disabled="isDetail" @change="switchOff($event,scope.row,scope.$index)"></el-switch> |
|
|
|
|
<span v-else>未发货</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" class="mgb20" v-show="customerId"> |
|
|
|
|
<div class="flex-center mgb20 user_header"> |
|
|
|
|
<p class="addhr_tag"></p> |
|
|
|
|
<span>数据平台权限</span> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<el-table :data="dataPermissionss" class="orderTable" stripe header-align="center"> |
|
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="productName" label="产品名称" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="periodOfUse" label="使用期限" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{scope.row.periodOfUse}} |
|
|
|
|
<span v-if='scope.row.options == 0'>日</span> |
|
|
|
|
<span v-if='scope.row.options == 1'>月</span> |
|
|
|
|
<span v-if='scope.row.options == 2'>年</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="usePeriod" label="起止日期" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{scope.row.startTime}} - {{scope.row.endTime}} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="remainingPeriod" label="剩余期限" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{scope.row.remainingPeriod}} 天 |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="accountNum" label="账号数" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{scope.row.accountNum}} 个 |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="端口地址" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button @click="configure(scope.row)" :disabled="isDetail">配置</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="状态" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-switch v-if="scope.row.ship" v-model="scope.row.isEnable" :active-value="1" :inactive-value="0" :active-text="scope.row.isEnable ? '启用' : '禁用'" :disabled="isDetail" @change="switchOff($event,scope.row,scope.$index)"></el-switch> |
|
|
|
|
<span v-else>未发货</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
<el-card shadow="hover" class="mgb20" v-show="customerId"> |
|
|
|
|
<div class="flex-center mgb20 user_header"> |
|
|
|
|
<p class="addhr_tag"></p> |
|
|
|
|
<span>数据平台权限</span> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<el-table :data="dataPermissionss" class="orderTable" stripe header-align="center"> |
|
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="productName" label="产品名称" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="periodOfUse" label="使用期限" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{scope.row.periodOfUse}} |
|
|
|
|
<span v-if='scope.row.options == 0'>日</span> |
|
|
|
|
<span v-if='scope.row.options == 1'>月</span> |
|
|
|
|
<span v-if='scope.row.options == 2'>年</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="usePeriod" label="起止日期" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{scope.row.startTime}} - {{scope.row.endTime}} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="remainingPeriod" label="剩余期限" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{scope.row.remainingPeriod}} 天 |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="accountNum" label="账号数" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{scope.row.accountNum}} 个 |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="端口地址" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button @click="configure(scope.row)" :disabled="isDetail">配置</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="状态" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-switch v-if="scope.row.ship" v-model="scope.row.isEnable" :active-value="1" :inactive-value="0" :active-text="scope.row.isEnable ? '启用' : '禁用'" :disabled="isDetail" @change="switchOff($event,scope.row,scope.$index)"></el-switch> |
|
|
|
|
<span v-else>未发货</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" class="mgb20" v-show="customerId"> |
|
|
|
|
<div class="flex-center mgb20 user_header"> |
|
|
|
|
<p class="addhr_tag"></p> |
|
|
|
|
<span>合同信息</span> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<el-table :data="contractInformations" class="table" stripe header-align="center"> |
|
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<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 prop="endTime" label="合同期限" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{scope.row.startTime?scope.row.startTime.split(' ').shift():''}} - {{scope.row.endTime?scope.row.endTime.split(' ').shift():''}} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="dataOrCourseName" label="产品内容" align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="contractMoney" label="合同金额" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{scope.row.contractMoney}} 元 |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="操作" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button type="text" @click="showContract(scope.row)">查看</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
<el-card shadow="hover" class="mgb20" v-show="customerId"> |
|
|
|
|
<div class="flex-center mgb20 user_header"> |
|
|
|
|
<p class="addhr_tag"></p> |
|
|
|
|
<span>合同信息</span> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<el-table :data="contractInformations" class="table" stripe header-align="center"> |
|
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<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 prop="endTime" label="合同期限" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{scope.row.startTime?scope.row.startTime.split(' ').shift():''}} - {{scope.row.endTime?scope.row.endTime.split(' ').shift():''}} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="dataOrCourseName" label="产品内容" align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="contractMoney" label="合同金额" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{scope.row.contractMoney}} 元 |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="操作" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button type="text" @click="showContract(scope.row)">查看</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<!-- 选择IP --> |
|
|
|
|
<el-dialog :visible.sync="ipVisible" width="70%" center> |
|
|
|
|
<div class="flex-center mgb20"> |
|
|
|
|
<p class="hr_tag"></p> |
|
|
|
|
<span>客户列表</span> |
|
|
|
|
</div> |
|
|
|
|
<el-table :data="IPData" stripe header-align="center"> |
|
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="age" label="服务器名称" align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="IP" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<div class="tab_temp"> |
|
|
|
|
<div class="flex-center"> |
|
|
|
|
<label>内网:</label> |
|
|
|
|
<el-input v-model="scope.row.Intranet" placeholder="请输入IP地址"></el-input> |
|
|
|
|
</div> |
|
|
|
|
<div class="flex-center mar10"> |
|
|
|
|
<label>外网:</label> |
|
|
|
|
<el-input v-model="scope.row.extranet" placeholder="请输入端口号"></el-input> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="端口" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<div class="tab_temp"> |
|
|
|
|
<div class="flex-center"> |
|
|
|
|
<label>内网:</label> |
|
|
|
|
<el-input v-model="scope.row.Intranet" placeholder="请输入内网IP地址"></el-input> |
|
|
|
|
</div> |
|
|
|
|
<div class="flex-center mar10"> |
|
|
|
|
<label>外网:</label> |
|
|
|
|
<el-input v-model="scope.row.extranet" placeholder="请输入外网IP地址"></el-input> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="选择" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<i class="el-icon-success radio_icon"></i> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
|
<el-button @click="ipVisible = false">取 消</el-button> |
|
|
|
|
<el-button type="primary" @click="IPSure()">确 定</el-button> |
|
|
|
|
</span> |
|
|
|
|
</el-dialog> |
|
|
|
|
<!-- 选择IP --> |
|
|
|
|
<el-dialog :visible.sync="ipVisible" width="70%" center> |
|
|
|
|
<div class="flex-center mgb20"> |
|
|
|
|
<p class="hr_tag"></p> |
|
|
|
|
<span>客户列表</span> |
|
|
|
|
</div> |
|
|
|
|
<el-table :data="IPData" stripe header-align="center"> |
|
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="age" label="服务器名称" align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="IP" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<div class="tab_temp"> |
|
|
|
|
<div class="flex-center"> |
|
|
|
|
<label>内网:</label> |
|
|
|
|
<el-input v-model="scope.row.Intranet" placeholder="请输入IP地址"></el-input> |
|
|
|
|
</div> |
|
|
|
|
<div class="flex-center mar10"> |
|
|
|
|
<label>外网:</label> |
|
|
|
|
<el-input v-model="scope.row.extranet" placeholder="请输入端口号"></el-input> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="端口" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<div class="tab_temp"> |
|
|
|
|
<div class="flex-center"> |
|
|
|
|
<label>内网:</label> |
|
|
|
|
<el-input v-model="scope.row.Intranet" placeholder="请输入内网IP地址"></el-input> |
|
|
|
|
</div> |
|
|
|
|
<div class="flex-center mar10"> |
|
|
|
|
<label>外网:</label> |
|
|
|
|
<el-input v-model="scope.row.extranet" placeholder="请输入外网IP地址"></el-input> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="选择" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<i class="el-icon-success radio_icon"></i> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
|
<el-button @click="ipVisible = false">取 消</el-button> |
|
|
|
|
<el-button type="primary" @click="IPSure()">确 定</el-button> |
|
|
|
|
</span> |
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
<el-dialog :visible.sync="showImg" width="70%" center> |
|
|
|
|
<img :src="fileSrc" width="100%" alt=""> |
|
|
|
|
</el-dialog> |
|
|
|
|
<pdf :visible.sync="pdfVisible" :src.sync="fileSrc"></pdf> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
<el-dialog :visible.sync="showImg" width="70%" center> |
|
|
|
|
<img :src="fileSrc" width="100%" alt=""> |
|
|
|
|
</el-dialog> |
|
|
|
|
<pdf :visible.sync="pdfVisible" :src.sync="fileSrc"></pdf> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
@ -660,14 +656,17 @@ export default { |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
.addhr_tag{ |
|
|
|
|
background-color: #666; |
|
|
|
|
width: 6px; |
|
|
|
|
height: 17px; |
|
|
|
|
margin-right: 5px; |
|
|
|
|
} |
|
|
|
|
.radio_icon{ |
|
|
|
|
font-size: 26px; |
|
|
|
|
color: #9278FF; |
|
|
|
|
} |
|
|
|
|
.card { |
|
|
|
|
min-height: calc(100vh - 260px); |
|
|
|
|
} |
|
|
|
|
.addhr_tag{ |
|
|
|
|
background-color: #666; |
|
|
|
|
width: 6px; |
|
|
|
|
height: 17px; |
|
|
|
|
margin-right: 5px; |
|
|
|
|
} |
|
|
|
|
.radio_icon{ |
|
|
|
|
font-size: 26px; |
|
|
|
|
color: #9278FF; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|