|
@@ -26,21 +26,16 @@
|
|
|
prop="customerName"
|
|
|
show-overflow-tooltip>
|
|
|
</el-table-column>
|
|
|
- <!-- <el-table-column
|
|
|
- prop="invoiceTime"
|
|
|
- label="开票时间"
|
|
|
- show-overflow-tooltip>
|
|
|
- </el-table-column> -->
|
|
|
<el-table-column
|
|
|
- prop="company"
|
|
|
label="主体名称"
|
|
|
+ prop="company"
|
|
|
show-overflow-tooltip>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="usenumAll"
|
|
|
- label="调用量"
|
|
|
+ <!-- <el-table-column
|
|
|
+ prop="invoiceTime"
|
|
|
+ label="开票时间"
|
|
|
show-overflow-tooltip>
|
|
|
- </el-table-column>
|
|
|
+ </el-table-column> -->
|
|
|
<el-table-column
|
|
|
prop="integrationType"
|
|
|
label="对接方式"
|
|
@@ -48,6 +43,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.integrationType == 0" >接口</span>
|
|
|
<span v-else-if="scope.row.integrationType == 1" >平台</span>
|
|
|
+ <span v-else-if="scope.row.integrationType == 3" >手工录入</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -152,8 +148,9 @@
|
|
|
@close="addCustomerClose"
|
|
|
:visible.sync="recVisList"
|
|
|
style="font-size: 0px;">
|
|
|
- <div class="tou">客户--备案列表</div>
|
|
|
+ <div class="tou">客户--备案列表 <el-button type="success" size="small" style="margin-left: 1%;" @click="showAddCustomerRec">添加</el-button></div>
|
|
|
<div class="line"></div>
|
|
|
+
|
|
|
<!-- 表格部分 -->
|
|
|
<template>
|
|
|
<el-table
|
|
@@ -201,11 +198,14 @@
|
|
|
<span v-if="scope.row.recStatus == 0">备案中</span>
|
|
|
<span v-else-if="scope.row.recStatus == 1" style="color: green">备案成功</span>
|
|
|
<span v-else-if="scope.row.recStatus == 2" style="color: red">备案失败</span>
|
|
|
+ <span v-else-if="scope.row.recStatus == 3" style="color: red">等待协议上传</span>
|
|
|
+ <span v-else-if="scope.row.recStatus == 4" style="color: red">手工停用</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="recStatus"
|
|
|
+ prop="contractSuc"
|
|
|
label="协议上传状态"
|
|
|
+ width="120"
|
|
|
show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.contractSuc == 1" style="color: green">协议上传成功</span>
|
|
@@ -219,6 +219,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.interType == 0">接口</span>
|
|
|
<span v-if="scope.row.interType == 1">平台</span>
|
|
|
+ <span v-if="scope.row.interType == 3">手工录入</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -237,6 +238,7 @@
|
|
|
<template slot-scope="scope" show-overflow-tooltip>
|
|
|
<el-link style="margin-left: 10px; cursor:pointer; color: blue;" @click="recInfo(scope.row)">备案信息</el-link>
|
|
|
<el-link style="margin-left: 10px; cursor:pointer; color: blue;" @click="concatInfo(scope.row)">协议信息</el-link>
|
|
|
+ <el-link v-if="scope.row.recStatus == 1" style="margin-left: 10px; cursor:pointer; color: blue;" @click="stopUse(scope.row)">停用</el-link>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -255,31 +257,39 @@
|
|
|
|
|
|
<el-row :span="24">
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label-width=120px label="协议类型">
|
|
|
- <el-input v-model="customerRec.serviceType" auto-complete="off" readonly=true ></el-input>
|
|
|
+ <el-form-item label-width=120px label="协议类型" prop="serviceType">
|
|
|
+ <el-select v-model="customerRec.serviceType" placeholder="运营范围" :disabled=true style="width: 100%">
|
|
|
+ <el-option
|
|
|
+ v-for="item in serviceTypeList"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label-width=120px label="协议文件名">
|
|
|
- <el-input v-model="customerRec.contractFileName" auto-complete="off" readonly=true ></el-input>
|
|
|
+ <el-input v-model="customerRec.contractFileName" auto-complete="off" :disabled=true ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :span="24">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label-width=120px label="服务开始时间">
|
|
|
- <el-input v-model="customerRec.serviceStartTime" auto-complete="off" readonly=true ></el-input>
|
|
|
+ <el-input v-model="customerRec.serviceStartTime" auto-complete="off" :disabled=true ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label-width=120px label="服务结束时间">
|
|
|
- <el-input v-model="customerRec.serviceEndTime" auto-complete="off" readonly=true ></el-input>
|
|
|
+ <el-input v-model="customerRec.serviceEndTime" auto-complete="off" :disabled=true ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="customerRecConform" type="primary">协议上传</el-button>
|
|
|
+ <el-button @click="contractDownload" type="primary">协议下载</el-button>
|
|
|
+ <el-button @click="contractAdd" type="primary">协议上传</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<el-dialog
|
|
@@ -295,98 +305,260 @@
|
|
|
<el-row :span="24">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label-width=120px label="客户名称">
|
|
|
- <el-input v-model="customerRec.customerName" auto-complete="off" readonly=true ></el-input>
|
|
|
+ <el-input v-model="customerRec.customerName" auto-complete="off" :disabled=true ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label-width=120px label="公司负责人">
|
|
|
- <el-input v-model="customerRec.companyLeader" readonly=true style="width: 100%"></el-input>
|
|
|
+ <el-input v-model="customerRec.companyLeader" :disabled=true style="width: 100%"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :span="24">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label-width=120px label="负责人手机号">
|
|
|
- <el-input v-model="customerRec.companyLeaderPhone" auto-complete="off" readonly=true ></el-input>
|
|
|
+ <el-input v-model="customerRec.companyLeaderPhone" auto-complete="off" :disabled=true ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label-width=120px label="公司名称">
|
|
|
- <el-input v-model="customerRec.companyName" readonly=true style="width: 100%"></el-input>
|
|
|
+ <el-input v-model="customerRec.companyName" :disabled=true style="width: 100%"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :span="24">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label-width=120px label="公司税号">
|
|
|
- <el-input v-model="customerRec.companyReferencenum" auto-complete="off" readonly=true ></el-input>
|
|
|
+ <el-input v-model="customerRec.companyReferencenum" auto-complete="off" :disabled=true ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label-width=120px label="公司开户行">
|
|
|
- <el-input v-model="customerRec.companyOpenbank" readonly=true style="width: 100%"></el-input>
|
|
|
+ <el-input v-model="customerRec.companyOpenbank" :disabled=true style="width: 100%"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :span="24">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label-width=120px label="公司开户行账号">
|
|
|
- <el-input v-model="customerRec.companyOpenbankAcc" auto-complete="off" readonly=true ></el-input>
|
|
|
+ <el-input v-model="customerRec.companyOpenbankAcc" auto-complete="off" :disabled=true ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label-width=120px label="公司地址">
|
|
|
- <el-input v-model="customerRec.companyAdress" style="width: 100%" readonly=true></el-input>
|
|
|
+ <el-input v-model="customerRec.companyAdress" style="width: 100%" :disabled=true></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :span="24">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label-width=120px label="公司电话">
|
|
|
- <el-input v-model="customerRec.companyPhone" auto-complete="off" readonly=true ></el-input>
|
|
|
+ <el-input v-model="customerRec.companyPhone" auto-complete="off" :disabled=true ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label-width=120px label="备案申请时间">
|
|
|
- <el-input v-model="customerRec.createtime" style="width: 100%" readonly=true></el-input>
|
|
|
+ <el-form-item label-width=120px label="业务类型">
|
|
|
+ <el-select v-model="customerRec.bussinessType" placeholder="业务类型" :disabled=true style="width: 100%">
|
|
|
+ <el-option
|
|
|
+ v-for="item in bussinessTypeList"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :span="24">
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label-width=120px label="公司类型">
|
|
|
+ <!-- <el-form-item label-width=120px label="公司类型">
|
|
|
+ <el-input v-model="customerRec.companyType" auto-complete="off" readonly=true ></el-input>
|
|
|
+ </el-form-item> -->
|
|
|
+ <el-form-item label-width=120px label="公司类型" prop="companyType">
|
|
|
+ <el-select v-model="customerRec.companyType" placeholder="公司类型" style="width: 100%" :disabled=true>
|
|
|
+ <el-option
|
|
|
+ v-for="item in companyList"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <!-- <el-form-item label-width=120px label="公司类型">
|
|
|
<el-input v-model="customerRec.companyType" auto-complete="off" readonly=true ></el-input>
|
|
|
+ </el-form-item> -->
|
|
|
+ <el-form-item label-width=120px label="运营范围" prop="operatingRangeType">
|
|
|
+ <el-select v-model="customerRec.operatingRangeType" placeholder="运营范围" style="width: 100%" :disabled=true>
|
|
|
+ <el-option
|
|
|
+ v-for="item in operatingRangeList"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <!-- <el-row :span="24">
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="customerRecConform" type="primary">信息上传</el-button>
|
|
|
+ <el-button type="primary" @click="changeStatusM">生成文档</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ <el-dialog
|
|
|
+ @close="custRecClose"
|
|
|
+ :visible.sync="addCustomerRecShow1"
|
|
|
+ style="font-size: 0px;">
|
|
|
+ <div class="tou">客户--备案信息</div>
|
|
|
+ <div class="line"></div>
|
|
|
+ <el-form
|
|
|
+ label-position="right"
|
|
|
+ label-width="80px"
|
|
|
+ :model="formUserList">
|
|
|
+ <el-row :span="24">
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label-width=120px label="协议类型">
|
|
|
- <el-input v-model="customerRec.serviceType" auto-complete="off" readonly=true ></el-input>
|
|
|
+ <el-form-item label-width=120px label="客户名称">
|
|
|
+ <el-input v-model="customerRec.customerName" auto-complete="off" :disabled=true ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label-width=120px label="协议文件名">
|
|
|
- <el-input v-model="customerRec.contractFileName" auto-complete="off" readonly=true ></el-input>
|
|
|
+ <el-form-item label-width=120px label="公司负责人">
|
|
|
+ <el-input v-model="customerRec.companyLeader" style="width: 100%"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row :span="24">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label-width=120px label="负责人手机号">
|
|
|
+ <el-input v-model="customerRec.companyLeaderPhone" auto-complete="off" ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label-width=120px label="公司名称">
|
|
|
+ <el-input v-model="customerRec.companyName" style="width: 100%"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row :span="24">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label-width=120px label="公司税号">
|
|
|
+ <el-input v-model="customerRec.companyReferencenum" auto-complete="off" ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label-width=120px label="公司开户行">
|
|
|
+ <el-input v-model="customerRec.companyOpenbank" style="width: 100%"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row :span="24">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label-width=120px label="公司开户行账号">
|
|
|
+ <el-input v-model="customerRec.companyOpenbankAcc" auto-complete="off" ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label-width=120px label="公司地址">
|
|
|
+ <el-input v-model="customerRec.companyAdress" style="width: 100%" ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row :span="24">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label-width=120px label="公司电话">
|
|
|
+ <el-input v-model="customerRec.companyPhone" auto-complete="off" ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label-width=120px label="业务类型">
|
|
|
+ <el-select v-model="customerRec.bussinessType" placeholder="业务类型" style="width: 100%">
|
|
|
+ <el-option
|
|
|
+ v-for="item in bussinessTypeList"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row :span="24">
|
|
|
+ <el-col :span="12">
|
|
|
+ <!-- <el-form-item label-width=120px label="公司类型">
|
|
|
+ <el-input v-model="customerRec.companyType" auto-complete="off" readonly=true ></el-input>
|
|
|
+ </el-form-item> -->
|
|
|
+ <el-form-item label-width=120px label="公司类型" prop="companyType">
|
|
|
+ <el-select v-model="customerRec.companyType" placeholder="公司类型" style="width: 100%">
|
|
|
+ <el-option
|
|
|
+ v-for="item in companyList"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <!-- <el-form-item label-width=120px label="公司类型">
|
|
|
+ <el-input v-model="customerRec.companyType" auto-complete="off" readonly=true ></el-input>
|
|
|
+ </el-form-item> -->
|
|
|
+ <el-form-item label-width=120px label="运营范围" prop="operatingRangeType">
|
|
|
+ <el-select v-model="customerRec.operatingRangeType" placeholder="运营范围" style="width: 100%">
|
|
|
+ <el-option
|
|
|
+ v-for="item in operatingRangeList"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row :span="24">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label-width=120px label="协议类型" prop="serviceType">
|
|
|
+ <el-select v-model="customerRec.serviceType" placeholder="运营范围" style="width: 100%">
|
|
|
+ <el-option
|
|
|
+ v-for="item in serviceTypeList"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label-width=120px label="协议文件" prop="contractFileName">
|
|
|
+ <el-upload
|
|
|
+ class="avatar-uploader"
|
|
|
+ style="width: 100%"
|
|
|
+ action="#"
|
|
|
+ :show-file-list="false"
|
|
|
+ :http-request="httpRequest">
|
|
|
+ <el-input label-width=120px v-model="customerRec.contractFileName" auto-complete="off" style="width: 100%"></el-input>
|
|
|
+ <!-- <el-button type="primary" @click="getFile(index)">选取文件</el-button> -->
|
|
|
+ </el-upload>
|
|
|
+ <el-input label-width=120px v-model="customerRec.base64Str" v-show="false" auto-complete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :span="24">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label-width=120px label="服务开始时间">
|
|
|
- <el-input v-model="customerRec.serviceStartTime" auto-complete="off" readonly=true ></el-input>
|
|
|
+ <el-input v-model="customerRec.serviceStartTime" auto-complete="off" ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label-width=120px label="服务结束时间">
|
|
|
- <el-input v-model="customerRec.serviceEndTime" auto-complete="off" readonly=true ></el-input>
|
|
|
+ <el-input v-model="customerRec.serviceEndTime" auto-complete="off" ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- </el-row> -->
|
|
|
+ </el-row>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="customerRecConform" type="primary">信息上传</el-button>
|
|
|
- <el-button type="primary" @click="changeStatusM">生成文档</el-button>
|
|
|
+ <el-button @click="customerRecAdd" type="primary">保存</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<el-dialog
|
|
@@ -414,96 +586,6 @@
|
|
|
<el-button type="primary" @click="customRecharge">充值</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
- <el-dialog
|
|
|
- @close="addCustomerClose"
|
|
|
- :visible.sync="carRecclose"
|
|
|
- style="font-size: 0px;">
|
|
|
- <div class="tou">客户--车辆备案</div>
|
|
|
- <div class="line"></div>
|
|
|
- <!-- 表格部分 -->
|
|
|
- <template>
|
|
|
- <el-table
|
|
|
- v-loading="loading"
|
|
|
- ref="multipleTable"
|
|
|
- :data="coustomerCarTable"
|
|
|
- height="370px"
|
|
|
- border
|
|
|
- tooltip-effect="dark">
|
|
|
- <el-table-column
|
|
|
- label="客户名称"
|
|
|
- prop="customerName"
|
|
|
- show-overflow-tooltip>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="companyName"
|
|
|
- label="公司名称"
|
|
|
- show-overflow-tooltip>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="businessType"
|
|
|
- label="业务类型"
|
|
|
- show-overflow-tooltip>
|
|
|
- <template slot-scope="scope">
|
|
|
- <span v-if="scope.row.businessType == 0">自有车</span>
|
|
|
- <span v-if="scope.row.businessType == 1">外协车</span>
|
|
|
- <span v-if="scope.row.businessType == 2">无车</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="carNum"
|
|
|
- label="车牌号"
|
|
|
- show-overflow-tooltip>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="carColor"
|
|
|
- label="车辆颜色"
|
|
|
- show-overflow-tooltip>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="custPhone"
|
|
|
- label="手机号"
|
|
|
- show-overflow-tooltip>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="etcNum"
|
|
|
- label="ETC卡号"
|
|
|
- show-overflow-tooltip>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="recStatus"
|
|
|
- label="备案状态"
|
|
|
- show-overflow-tooltip>
|
|
|
- <template slot-scope="scope">
|
|
|
- <span v-if="scope.row.recStatus == 1" style="color: green">备案成功</span>
|
|
|
- <span v-else-if="scope.row.recStatus == 0" style="color: red">备案失败</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="succTime"
|
|
|
- label="成功时间"
|
|
|
- show-overflow-tooltip>
|
|
|
-
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="failTime"
|
|
|
- label="失败时间"
|
|
|
- show-overflow-tooltip>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="failReason"
|
|
|
- label="失败原因"
|
|
|
- show-overflow-tooltip>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="操作"
|
|
|
- width="280">
|
|
|
- <template slot-scope="scope" show-overflow-tooltip>
|
|
|
- <el-link v-if="scope.row.businessType == 1 || scope.row.businessType == 0" style="cursor:pointer; color: blue;" @click="alert(scope)">解绑</el-link>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- </template>
|
|
|
- </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script type="text/javascript">
|
|
@@ -517,6 +599,15 @@
|
|
|
coustomerTable:[],
|
|
|
coustomerCarTable:[],
|
|
|
customeRecQueryListTable:[],
|
|
|
+ companyList:[{id:1,name:"行业用户"},{id:2,name:"自营平台"},{id:3,name:"合作商户"}],
|
|
|
+ bussinessTypeList:[{id:"0",name:"自有车"},{id:"2",name:"无车"}],
|
|
|
+ operatingRangeList:[{id:1,name:"快递"},
|
|
|
+ {id:2,name:"速运"},
|
|
|
+ {id:3,name:"货运代理"},
|
|
|
+ {id:4,name:"普通货运"},
|
|
|
+ {id:5,name:"专线运输"},
|
|
|
+ {id:6,name:"其他"}],
|
|
|
+ serviceTypeList:[{id:1,name:"一级产品"},{id:2,name:"二级产品"},{id:3,name:"三级产品"}],
|
|
|
custAddrules: {
|
|
|
customerName: [
|
|
|
{ required: true, message: '请输入', trigger: 'blur' },
|
|
@@ -558,6 +649,7 @@
|
|
|
pagesize: 8,
|
|
|
total:'',
|
|
|
addCustomerShow:false,
|
|
|
+ addCustomerRecShow1:false,
|
|
|
changeStatus:false,
|
|
|
recVis:false,
|
|
|
concatVis:false,
|
|
@@ -570,6 +662,47 @@
|
|
|
this.loadData();
|
|
|
},
|
|
|
methods:{
|
|
|
+ showAddCustomerRec(){
|
|
|
+ this.addCustomerRecShow1 =true;
|
|
|
+ this.customerRec.customerName = this.customer.customerName;
|
|
|
+ },
|
|
|
+ getBase64(file) {
|
|
|
+ this.customerRec.contractFileName = file.name;
|
|
|
+ this.$forceUpdate()
|
|
|
+ return new Promise((resolve, reject) => {
|
|
|
+ let reader = new FileReader();
|
|
|
+ let fileResult = "";
|
|
|
+ reader.readAsDataURL(file);
|
|
|
+ //开始转
|
|
|
+ reader.onload = function() {
|
|
|
+ fileResult = reader.result;
|
|
|
+ };
|
|
|
+ //转 失败
|
|
|
+ reader.onerror = function(error) {
|
|
|
+ reject(error);
|
|
|
+ };
|
|
|
+ //转 结束 咱就 resolve 出去
|
|
|
+ reader.onloadend = function() {
|
|
|
+ resolve(fileResult);
|
|
|
+ };
|
|
|
+ });
|
|
|
+ },
|
|
|
+ httpRequest(data){ // 没事儿就打印data看看呗 //这是限制上传文件类型
|
|
|
+ const isPFX = data.file.type === "application/pdf";
|
|
|
+ const isLt2M = data.file.size / 1024 / 1024 < 2;
|
|
|
+
|
|
|
+ if (!isPFX) {
|
|
|
+ this.$message.error("上传文件只能是pdf格式!");
|
|
|
+ }else if (!isLt2M) {
|
|
|
+ this.$message.error("上传文件大小不能超过 2MB!");
|
|
|
+ }else{
|
|
|
+ // 转base64
|
|
|
+ this.getBase64(data.file).then(resBase64 => {
|
|
|
+ this.fileBase64 = resBase64.split(',')[1] //直接拿到base64信息
|
|
|
+ this.customerRec.base64Str = resBase64.split(',')[1];
|
|
|
+ })
|
|
|
+ this.$message.success('文件上传成功');
|
|
|
+ }},
|
|
|
addCustomer(formName){
|
|
|
this.$refs[formName].validate(async (valid) => {
|
|
|
if(valid) {
|
|
@@ -656,7 +789,32 @@
|
|
|
this.customerRec = response.data.data;
|
|
|
}
|
|
|
},
|
|
|
+ stopUse(recoder){
|
|
|
+ this.$confirm('此操作将任务状态改为删除状态, 是否继续?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(async () => {
|
|
|
+ const response = await this.$http.post("customer/customeRecStop", {"customerName":recoder.customerName,"companyName":recoder.companyName});
|
|
|
+ if (response.data.code === 0) {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '停用成功'
|
|
|
+ });
|
|
|
+ recoder.recStatus=4;
|
|
|
+ }else{
|
|
|
+ this.$message({
|
|
|
+ type: 'error',
|
|
|
+ message: '停用失败:'+response.data.msg
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }).catch(() => {
|
|
|
+ //几点取消的提示
|
|
|
+ });
|
|
|
+
|
|
|
+ },
|
|
|
async recInfoList(recoder){
|
|
|
+ this.customer.customerName =recoder.customerName;
|
|
|
const response = await this.$http.post(`lowerService/customeRecQueryList`, {"customerName":recoder.customerName});
|
|
|
if (response.data.code === 0) {
|
|
|
this.customeRecQueryListTable = response.data.data;
|
|
@@ -685,10 +843,28 @@
|
|
|
custRecClose() {
|
|
|
this.recVis = false,
|
|
|
this.concatVis = false,
|
|
|
- customerRec = {};
|
|
|
+ this.addCustomerRecShow1 =false;
|
|
|
+ this.customerRec = {};
|
|
|
+ },
|
|
|
+ async customerRecAdd(){
|
|
|
+ const response = await this.$http.post(`customer/customerRecAdd`, this.customerRec);
|
|
|
+ if(response.data.code === 0) {
|
|
|
+ this.loadData();
|
|
|
+ this.addCustomerRecShow1 = false;
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '保存成功'
|
|
|
+ });
|
|
|
+ }else {
|
|
|
+ this.$message({
|
|
|
+ type: 'error',
|
|
|
+ message: '保存失败:'+response.data.msg
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
async customerRecConform(){
|
|
|
const response = await this.$http.post(`customer/customeRec`, this.customerRec);
|
|
|
+ debugger
|
|
|
if(response.data.code === 0) {
|
|
|
this.loadData();
|
|
|
this.changeStatus = false;
|
|
@@ -703,6 +879,27 @@
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
+ async contractAdd(){
|
|
|
+ const response = await this.$http.post(`customer/contractAdd`, this.customerRec);
|
|
|
+ if(response.data.code === 0) {
|
|
|
+ this.loadData();
|
|
|
+ this.changeStatus = false;
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '协议上传成功'
|
|
|
+ });
|
|
|
+ }else {
|
|
|
+ this.$message({
|
|
|
+ type: 'error',
|
|
|
+ message: '协议上传失败:'+response.data.msg
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ contractDownload(){
|
|
|
+ const BASEURL = "http://127.0.0.1:18080/"
|
|
|
+ const token = sessionStorage.getItem('token');
|
|
|
+ window.open(BASEURL+'customer/contractDownload?customerRecId='+this.customerRec['id']+'&token='+token);
|
|
|
+ },
|
|
|
// 列表展示
|
|
|
async loadData() {
|
|
|
const formData = new FormData();
|