|
@@ -246,9 +246,20 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
|
|
+ prop="promiseFileStatus"
|
|
|
|
+ label="承诺协议上传状态"
|
|
|
|
+ width="140"
|
|
|
|
+ show-overflow-tooltip>
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span v-if="scope.row.promiseFileStatus == 1" style="color: red">承诺协议未上传</span>
|
|
|
|
+ <span v-else-if="scope.row.promiseFileStatus == 2" style="color: red">承诺协议上传失败</span>
|
|
|
|
+ <span v-if="scope.row.promiseFileStatus == 3" style="color: green">承诺协议协议上传成功</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
prop="contractStatus"
|
|
prop="contractStatus"
|
|
label="协议查询接口状态"
|
|
label="协议查询接口状态"
|
|
- width="120"
|
|
|
|
|
|
+ width="140"
|
|
show-overflow-tooltip>
|
|
show-overflow-tooltip>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span v-if="scope.row.contractStatus == 1" style="color: red">协议上传失败</span>
|
|
<span v-if="scope.row.contractStatus == 1" style="color: red">协议上传失败</span>
|
|
@@ -282,6 +293,7 @@
|
|
<template slot-scope="scope" show-overflow-tooltip>
|
|
<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="recInfo(scope.row)">备案信息</el-link>
|
|
<el-link style="margin-left: 10px; cursor:pointer; color: blue;" @click="concatInfo(scope.row)">协议信息</el-link>
|
|
<el-link style="margin-left: 10px; cursor:pointer; color: blue;" @click="concatInfo(scope.row)">协议信息</el-link>
|
|
|
|
+ <el-link style="margin-left: 10px; cursor:pointer; color: blue;" @click="promiseInfo(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>
|
|
<el-link v-if="scope.row.recStatus == 1" style="margin-left: 10px; cursor:pointer; color: blue;" @click="stopUse(scope.row)">停用</el-link>
|
|
<el-link v-if="scope.row.recStatus == 4" style="margin-left: 10px; cursor:pointer; color: blue;" @click="startUse(scope.row)">启用</el-link>
|
|
<el-link v-if="scope.row.recStatus == 4" style="margin-left: 10px; cursor:pointer; color: blue;" @click="startUse(scope.row)">启用</el-link>
|
|
|
|
|
|
@@ -357,6 +369,43 @@
|
|
<el-button @click="contractAdd" type="primary">协议上传</el-button>
|
|
<el-button @click="contractAdd" type="primary">协议上传</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <el-dialog
|
|
|
|
+ @close="custRecClose"
|
|
|
|
+ :visible.sync="promiseVis"
|
|
|
|
+ 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" v-show= false>
|
|
|
|
+ <el-form-item label-width=120px label="承诺文件名">
|
|
|
|
+ <el-input v-model="customerRec.promiseFileName" auto-complete="off" :disabled=disable ></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="12" v-show= true>
|
|
|
|
+ <el-form-item label-width=120px label="承诺文件" prop="promiseFileName">
|
|
|
|
+ <el-upload
|
|
|
|
+ class="avatar-uploader"
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ action="#"
|
|
|
|
+ :show-file-list="false"
|
|
|
|
+ :http-request="httpRequestPre">
|
|
|
|
+ <el-input label-width=120px v-model="customerRec.promiseFileName" 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.promiseBase64Str" v-show="false" auto-complete="off"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </el-form>
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button @click="promiseAdd" type="primary">承诺协议上传</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </el-dialog>
|
|
<el-dialog
|
|
<el-dialog
|
|
@close="custRecClose"
|
|
@close="custRecClose"
|
|
:visible.sync="recVis"
|
|
:visible.sync="recVis"
|
|
@@ -393,6 +442,13 @@
|
|
</el-row>
|
|
</el-row>
|
|
<el-row :span="24">
|
|
<el-row :span="24">
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
|
+ <el-form-item label-width=120px label="公司邮箱">
|
|
|
|
+ <el-input v-model="customerRec.invoiceMail" auto-complete="off" :disabled=disable ></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-form-item label-width=120px label="公司税号">
|
|
<el-input v-model="customerRec.companyReferencenum" auto-complete="off" :disabled=disable ></el-input>
|
|
<el-input v-model="customerRec.companyReferencenum" auto-complete="off" :disabled=disable ></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -508,6 +564,13 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
+ <el-row :span="24">
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <el-form-item label-width=120px label="公司邮箱">
|
|
|
|
+ <el-input v-model="customerRec.invoiceMail" auto-complete="off" :disabled=disable ></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
<el-row :span="24">
|
|
<el-row :span="24">
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label-width=120px label="公司税号" prop="companyReferencenum">
|
|
<el-form-item label-width=120px label="公司税号" prop="companyReferencenum">
|
|
@@ -792,6 +855,7 @@ import XLSX from 'xlsx';
|
|
changeStatus: false,
|
|
changeStatus: false,
|
|
recVis: false,
|
|
recVis: false,
|
|
concatVis: false,
|
|
concatVis: false,
|
|
|
|
+ promiseVis: false,
|
|
accIsclose: false,
|
|
accIsclose: false,
|
|
carRecclose: false,
|
|
carRecclose: false,
|
|
recVisList: false,
|
|
recVisList: false,
|
|
@@ -850,8 +914,43 @@ import XLSX from 'xlsx';
|
|
this.customerRec.base64Str = resBase64.split(',')[1];
|
|
this.customerRec.base64Str = resBase64.split(',')[1];
|
|
})
|
|
})
|
|
this.$message.success('文件上传成功');
|
|
this.$message.success('文件上传成功');
|
|
- }
|
|
|
|
- },
|
|
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ getBase64Pre(file) {
|
|
|
|
+ this.customerRec.promiseFileName = 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);
|
|
|
|
+ };
|
|
|
|
+ reader.onloadend = function() {
|
|
|
|
+ resolve(fileResult);
|
|
|
|
+ };
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ httpRequestPre(data) {
|
|
|
|
+ const isPFX = data.file.type == 'application/pdf';
|
|
|
|
+ const isLt2M = data.file.size / 1024 / 1024 < 10;
|
|
|
|
+
|
|
|
|
+ if (!isPFX) {
|
|
|
|
+ this.$message.error('上传文件只能是pdf格式!');
|
|
|
|
+ }else if (!isLt2M) {
|
|
|
|
+ this.$message.error('上传文件大小不能超过 10MB!');
|
|
|
|
+ } else {
|
|
|
|
+ // 转base64
|
|
|
|
+ this.getBase64Pre(data.file).then((resBase64) => {
|
|
|
|
+ this.fileBase64 = resBase64.split(',')[1]//直接拿到base64信息
|
|
|
|
+ this.customerRec.promiseBase64Str = resBase64.split(',')[1];
|
|
|
|
+ })
|
|
|
|
+ this.$message.success('文件上传成功');
|
|
|
|
+ }
|
|
|
|
+ },
|
|
addCustomer(formName){
|
|
addCustomer(formName){
|
|
this.$refs[formName].validate(async (valid) => {
|
|
this.$refs[formName].validate(async (valid) => {
|
|
if(valid) {
|
|
if(valid) {
|
|
@@ -936,6 +1035,15 @@ import XLSX from 'xlsx';
|
|
this.disable = !((this.customerRec.interType == 1) && (this.customerRec.recStatus == 2));
|
|
this.disable = !((this.customerRec.interType == 1) && (this.customerRec.recStatus == 2));
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ async promiseInfo(recoder){
|
|
|
|
+ //this.recVis = true;
|
|
|
|
+ this.promiseVis = true;
|
|
|
|
+ const response = await this.$http.post(`lowerService/customeRecQuery`, {'customerName': recoder.customerName, 'companyName': recoder.companyName});
|
|
|
|
+ if (response.data.code == 0) {
|
|
|
|
+ this.customerRec = response.data.data;
|
|
|
|
+ this.disable = !((this.customerRec.interType == 1) && (this.customerRec.recStatus == 2));
|
|
|
|
+ }
|
|
|
|
+ },
|
|
stopUse(recoder){
|
|
stopUse(recoder){
|
|
this.$confirm('此操作将备案状态改为停用状态, 是否继续?', '提示', {
|
|
this.$confirm('此操作将备案状态改为停用状态, 是否继续?', '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
@@ -1016,6 +1124,7 @@ import XLSX from 'xlsx';
|
|
custRecClose() {
|
|
custRecClose() {
|
|
this.recVis = false;
|
|
this.recVis = false;
|
|
this.concatVis = false;
|
|
this.concatVis = false;
|
|
|
|
+ this.promiseVis = false;
|
|
this.addCustomerRecShow1 =false;
|
|
this.addCustomerRecShow1 =false;
|
|
this.customerRec = {};
|
|
this.customerRec = {};
|
|
},
|
|
},
|
|
@@ -1113,6 +1222,23 @@ import XLSX from 'xlsx';
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ async promiseAdd(){
|
|
|
|
+ const response = await this.$http.post(`customer/promiseAdd`, this.customerRec);
|
|
|
|
+ if(response.data.code == 0) {
|
|
|
|
+ this.loadData();
|
|
|
|
+ this.recInfoList(this.customerRec)
|
|
|
|
+ this.changeStatus = false;
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'success',
|
|
|
|
+ message: '承诺协议上传成功'
|
|
|
|
+ });
|
|
|
|
+ }else {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'error',
|
|
|
|
+ message: '承诺协议上传失败:'+response.data.msg
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
async contractStatusFail() {
|
|
async contractStatusFail() {
|
|
const response = await this.$http.post(`customer/contractStatusFail`, this.customerRec);
|
|
const response = await this.$http.post(`customer/contractStatusFail`, this.customerRec);
|
|
if(response.data.code == 0) {
|
|
if(response.data.code == 0) {
|