Commit 494a23df authored by qinj's avatar qinj

进度查询添加完成节点

parent 5f5d3767
...@@ -2,94 +2,117 @@ ...@@ -2,94 +2,117 @@
<div class="form-container"> <div class="form-container">
<Title :title="title"> <Title :title="title">
</Title> </Title>
<div style="height:50px;display: flex;align-items: center;float: right; <div style="height:50px;display: flex;align-items: center;float: right;
margin-right: 90px;"> margin-right: 90px;">
<div class="parallelogram2"></div> <div class="parallelogram2"></div>
<div style="margin-right:15px">当前节点</div> <div style="margin-right:15px">当前节点</div>
<!-- <div class="parallelogram3"></div> <!-- <div class="parallelogram3"></div>
<div style="margin-right:15px">未审批</div> --> <div style="margin-right:15px">未审批</div> -->
</div> </div>
<div style="height:150px;display: flex;margin: 20px 290px;"> <div style="height:150px;display: flex;margin: 20px 290px;">
<div class="div_list"> <div class="div_list">
<div id="parallelogram" :class="{'bgcolor':formData.ExtProcessNode_SDK==1}"> <div id="parallelogram"
<div class="div_txt">提交</div> :class="{'bgcolor':formData.ExtProcessNode_SDK==1}">
</div> <div class="div_txt">提交</div>
<div class="parallelogram1"></div> </div>
<div class="triangle_right"></div> <div class="parallelogram1"></div>
</div> <div class="triangle_right"></div>
<div class="div_list"> </div>
<div id="parallelogram" :class="{'bgcolor':formData.ExtProcessNode_SDK==2}"> <div class="div_list">
<div class="div_txt2">审批_1区域渠道经理</div> <div id="parallelogram"
</div> :class="{'bgcolor':formData.ExtProcessNode_SDK==2}">
<div class="parallelogram1"></div> <div class="div_txt2">审批_1区域渠道经理</div>
<div class="triangle_right"></div> </div>
</div> <div class="div_list"> <div class="parallelogram1"></div>
<div id="parallelogram" :class="{'bgcolor':formData.ExtProcessNode_SDK==3}"> <div class="triangle_right"></div>
<div class="div_txt2">审批_2渠道销售总监</div> </div>
</div> <div class="div_list">
<div class="parallelogram1"></div> <div id="parallelogram"
<div class="triangle_right"></div> :class="{'bgcolor':formData.ExtProcessNode_SDK==3}">
</div> <div class="div_list"> <div class="div_txt2">审批_2渠道销售总监</div>
<div id="parallelogram" :class="{'bgcolor':formData.ExtProcessNode_SDK==4}"> </div>
<div class="div_txt2">审批_3渠道管理部</div> <div class="parallelogram1"></div>
</div> <div class="triangle_right"></div>
</div> </div>
</div> <div class="div_list">
<div class="basic-info"> <div id="parallelogram"
<ele-form-section :class="{'bgcolor':formData.ExtProcessNode_SDK==4}">
v-model="formData" <div class="div_txt2">审批_3渠道管理部</div>
:rules="rules" </div>
:sections="sections" <div class="parallelogram1"></div>
> <div class="triangle_right"></div>
<template v-slot:ExtLockRsp_SDK="{ formData }"> </div>
<!-- 插槽内容有el-form-item组件包裹 --> <div class="div_list">
<el-select v-model="formData.ExtLockRsp_SDK" :disabled="!formData.ExtProcessNode_SDK==2" style="width: 91%" multiple filterable placeholder="请选择" no-match-text="无匹配数据"> <div id="parallelogram"
<el-option :class="{'bgcolor':formData.ExtProcessNode_SDK==5}">
v-for="item in province" <div class="div_txt2">完成</div>
:key="item.AccountID" </div>
:label="item.Name" </div>
:value="item.ExtSocialUnifiedCreditCode_SDK" </div>
/> <div class="basic-info">
</el-select> <ele-form-section v-model="formData"
</template> :rules="rules"
<template v-slot:ExtLockCity_SDK="{ formData }"> :sections="sections">
<!-- 插槽内容有el-form-item组件包裹 --> <template v-slot:ExtLockRsp_SDK="{ formData }">
<el-select v-model="formData.ExtLockCity_SDK" :disabled="!formData.ExtProcessNode_SDK==2" style="width: 91%" multiple filterable placeholder="请选择" no-match-text="无匹配数据"> <!-- 插槽内容有el-form-item组件包裹 -->
<el-option <el-select v-model="formData.ExtLockRsp_SDK"
v-for="item in apptions" :disabled="!formData.ExtProcessNode_SDK==2"
:key="item.Code" style="width: 91%"
:label="item.Name" multiple
:value="item.Code" filterable
/> placeholder="请选择"
</el-select> no-match-text="无匹配数据">
</template> <el-option v-for="item in province"
<template v-slot:ExtChannelType_SDK="{ formData }"> :key="item.AccountID"
<!-- 插槽内容有el-form-item组件包裹 --> :label="item.Name"
<el-select v-model="formData.ExtChannelType_SDK" :disabled="!formData.ExtProcessNode_SDK==2" style="width: 91%" filterable placeholder="请选择" no-match-text="无匹配数据"> :value="item.ExtSocialUnifiedCreditCode_SDK" />
<el-option </el-select>
v-for="item in cOptions" </template>
:key="item.id" <template v-slot:ExtLockCity_SDK="{ formData }">
:label="item.content" <!-- 插槽内容有el-form-item组件包裹 -->
:value="item.keyword" <el-select v-model="formData.ExtLockCity_SDK"
/> :disabled="!formData.ExtProcessNode_SDK==2"
</el-select> style="width: 91%"
</template> multiple
filterable
placeholder="请选择"
no-match-text="无匹配数据">
<el-option v-for="item in apptions"
:key="item.Code"
:label="item.Name"
:value="item.Code" />
</el-select>
</template>
<template v-slot:ExtChannelType_SDK="{ formData }">
<!-- 插槽内容有el-form-item组件包裹 -->
<el-select v-model="formData.ExtChannelType_SDK"
:disabled="!formData.ExtProcessNode_SDK==2"
style="width: 91%"
filterable
placeholder="请选择"
no-match-text="无匹配数据">
<el-option v-for="item in cOptions"
:key="item.id"
:label="item.content"
:value="item.keyword" />
</el-select>
</template>
</ele-form-section> </ele-form-section>
<div class="table-contain"> <div class="table-contain">
<div class="form-container">审批意见</div> <div class="form-container">审批意见</div>
<!-- <div class="btn"> <!-- <div class="btn">
<el-button type="primary" @click="approve">审批</el-button> <el-button type="primary" @click="approve">审批</el-button>
<el-button type="" @click="reject">退回</el-button> <el-button type="" @click="reject">退回</el-button>
</div> --> </div> -->
<el-table :data="tableData" <el-table :data="tableData"
border border
style="width: 100%"> style="width: 100%">
<el-table-column prop="Node" <el-table-column prop="Node"
label="审批节点"> label="审批节点">
</el-table-column> </el-table-column>
<el-table-column prop="CreateName_SDK" <el-table-column prop="CreateName_SDK"
label="审批人"> label="审批人">
</el-table-column> </el-table-column>
<el-table-column prop="Result" <el-table-column prop="Result"
...@@ -102,13 +125,13 @@ ...@@ -102,13 +125,13 @@
label="备注"> label="备注">
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination v-show="TotalRecords>0" <pagination v-show="TotalRecords>0"
:total="TotalRecords" :total="TotalRecords"
:page.sync="page.currentPage" :page.sync="page.currentPage"
:limit.sync="page.pageSize" :limit.sync="page.pageSize"
@pagination="getList" /> @pagination="getList" />
</div> </div>
<!-- <el-dialog title="审批意见" :visible.sync="dialogFormVisible"> <!-- <el-dialog title="审批意见" :visible.sync="dialogFormVisible">
<el-form :model="form"> <el-form :model="form">
<el-form-item label-width=500> <el-form-item label-width=500>
<el-input v-model="form.note" autocomplete="off"></el-input> <el-input v-model="form.note" autocomplete="off"></el-input>
...@@ -120,13 +143,13 @@ ...@@ -120,13 +143,13 @@
</div> </div>
</el-dialog> --> </el-dialog> -->
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import Title from '@/components/Title' import Title from '@/components/Title'
import { getCustomer,typeSearch,lockRsp,ProcessApproval,processHistory } from '@/api/customers'; import { getCustomer, typeSearch, lockRsp, ProcessApproval, processHistory } from '@/api/customers';
import Pagination from '@/components/Pagination' import Pagination from '@/components/Pagination'
import { Country } from '@/api/qcc' import { Country } from '@/api/qcc'
export default { export default {
...@@ -134,16 +157,16 @@ export default { ...@@ -134,16 +157,16 @@ export default {
Pagination, Pagination,
Title, Title,
}, },
data () { data() {
return { return {
form:{}, form: {},
dialogFormVisible:false, dialogFormVisible: false,
title: '城市代理商审批进度查询', title: '城市代理商审批进度查询',
addBtnStart: false, addBtnStart: false,
objectId: '', objectId: '',
id:'', id: '',
status:0, status: 0,
loading:false, loading: false,
formData: {}, formData: {},
province: [], province: [],
sections: [ sections: [
...@@ -155,8 +178,8 @@ export default { ...@@ -155,8 +178,8 @@ export default {
label: '公司全称', label: '公司全称',
layout: 24, layout: 24,
code: 'qcc', code: 'qcc',
disabled:true, disabled: true,
returnFn: function(row) { returnFn: function (row) {
return { return {
Name: row.Name, Name: row.Name,
ExtSocialUnifiedCreditCode_SDK: row.CreditCode, ExtSocialUnifiedCreditCode_SDK: row.CreditCode,
...@@ -168,24 +191,24 @@ export default { ...@@ -168,24 +191,24 @@ export default {
type: 'input', type: 'input',
label: '公司全称曾用名', label: '公司全称曾用名',
layout: 12, layout: 12,
disabled:true, disabled: true,
}, },
ExtSocialUnifiedCreditCode_SDK: { ExtSocialUnifiedCreditCode_SDK: {
type: 'input', type: 'input',
label: '社会统一信用代码', label: '社会统一信用代码',
disabled:true, disabled: true,
layout: 12 layout: 12
}, },
ExtRegisteredCapital_SDK: { ExtRegisteredCapital_SDK: {
type: 'input', type: 'input',
label: '注册资本(万元)', label: '注册资本(万元)',
disabled:true, disabled: true,
layout: 12, layout: 12,
}, },
ExtCorporateName_SDK: { ExtCorporateName_SDK: {
type: 'input', type: 'input',
label: '法人', label: '法人',
disabled:true, disabled: true,
layout: 12, layout: 12,
}, },
// Ext_QuoteOppotunity_KUT: { // Ext_QuoteOppotunity_KUT: {
...@@ -202,30 +225,30 @@ export default { ...@@ -202,30 +225,30 @@ export default {
type: 'input', type: 'input',
label: '省份', label: '省份',
layout: 12, layout: 12,
disabled:true, disabled: true,
}, },
ExtCityName_SDK: { ExtCityName_SDK: {
type: 'input', type: 'input',
label: '城市', label: '城市',
layout: 12, layout: 12,
isOptions: true, isOptions: true,
disabled:true, disabled: true,
}, },
ExtDistrictName_SDK: { ExtDistrictName_SDK: {
type: 'input', type: 'input',
label: '县市', label: '县市',
layout: 12, layout: 12,
isOptions: true, isOptions: true,
disabled:true, disabled: true,
}, },
ExtAddressDetail_SDK: { ExtAddressDetail_SDK: {
type: 'input', type: 'input',
label: '详细经营地址', label: '详细经营地址',
layout: 12, layout: 12,
disabled:true, disabled: true,
}, },
} }
}, },
...@@ -235,36 +258,36 @@ export default { ...@@ -235,36 +258,36 @@ export default {
ExtLeader_SDK: { ExtLeader_SDK: {
type: 'input', type: 'input',
label: '公司负责人姓名', label: '公司负责人姓名',
disabled:true, disabled: true,
layout: 12 layout: 12
}, },
ExtLeaderPhone_SDK: { ExtLeaderPhone_SDK: {
type: 'input', type: 'input',
label: '公司负责人联系方式', label: '公司负责人联系方式',
disabled:true, disabled: true,
layout: 12 layout: 12
}, },
ExtLeaderEmail_SDK: { ExtLeaderEmail_SDK: {
type: 'input', type: 'input',
label: '公司负责人邮箱', label: '公司负责人邮箱',
disabled:true, disabled: true,
layout: 12 layout: 12
}, },
ExtUnis_SDK: { ExtUnis_SDK: {
type: 'input', type: 'input',
layout: 12, layout: 12,
disabled:true, disabled: true,
label: 'Unis业务负责人姓名' label: 'Unis业务负责人姓名'
}, },
ExtUnisPhone_SDK: { ExtUnisPhone_SDK: {
type: 'input', type: 'input',
layout: 12, layout: 12,
disabled:true, disabled: true,
label: 'Unis业务负责人联系方式' label: 'Unis业务负责人联系方式'
}, },
ExtUnisEmail_SDK: { ExtUnisEmail_SDK: {
type: 'input', type: 'input',
disabled:true, disabled: true,
label: 'Unis业务负责人邮箱', label: 'Unis业务负责人邮箱',
layout: 12 layout: 12
}, },
...@@ -289,68 +312,68 @@ export default { ...@@ -289,68 +312,68 @@ export default {
} }
}, },
], ],
tableData:[], tableData: [],
TotalRecords:0, TotalRecords: 0,
page:{}, page: {},
apptions:[], apptions: [],
cOptions:[], cOptions: [],
// 同 vue-ele-form // 同 vue-ele-form
rules: { rules: {
ExtChannelType_SDK: {required: true, message: '请选择签约渠道类型'}, ExtChannelType_SDK: { required: true, message: '请选择签约渠道类型' },
ExtLockRsp_SDK: { required: true, message: '请选择锁定RSP' }, ExtLockRsp_SDK: { required: true, message: '请选择锁定RSP' },
ExtLockCity_SDK: { required: true, message: '请选择城市覆盖范围' }, ExtLockCity_SDK: { required: true, message: '请选择城市覆盖范围' },
} }
} }
}, },
watch:{ watch: {
}, },
created(){ created() {
this.id=this.$route.query.objectID this.id = this.$route.query.objectID
this.getList() this.getList()
this.getHistoryList() this.getHistoryList()
this.getChannelType() this.getChannelType()
}, },
methods: { methods: {
getList(){ getList() {
getCustomer({objectID:this.id}).then((resp)=>{ getCustomer({ objectID: this.id }).then((resp) => {
this.formData=resp.results[0] this.formData = resp.results[0]
lockRsp({extProvince_SDK: resp.results[0].ExtProvince_SDK}).then((resp)=>{ lockRsp({ extProvince_SDK: resp.results[0].ExtProvince_SDK }).then((resp) => {
this.province=resp.results this.province = resp.results
}) })
const app={provinceCode:resp.results[0].ExtProvince_SDK} const app = { provinceCode: resp.results[0].ExtProvince_SDK }
this.$request(Country.searchCity,app).then((resp) => { this.$request(Country.searchCity, app).then((resp) => {
this.apptions=resp.results this.apptions = resp.results
})
})
},
getChannelType() {
typeSearch({ code: 'ExtChannelType_SDK', module: 'Customer', content: 'CCP' }).then((resp) => {
this.cOptions = resp
}) })
})
}, },
getChannelType(){ getHistoryList() {
typeSearch({code:'ExtChannelType_SDK',module:'Customer',content:'CCP'}).then((resp)=>{ processHistory({ businessObjectID: this.id }).then((resp) => {
this.cOptions=resp this.tableData = resp.results
}) })
},
getHistoryList(){
processHistory({businessObjectID:this.id}).then((resp)=>{
this.tableData=resp.results
})
}, },
handleSuccess () { handleSuccess() {
// this.$message.success('创建成功') // this.$message.success('创建成功')
}, },
// 对象格式转化为键值对 // 对象格式转化为键值对
paramsToFormData(obj) { paramsToFormData(obj) {
const formData = new FormData(); const formData = new FormData();
Object.keys(obj).forEach((key) => { Object.keys(obj).forEach((key) => {
if (obj[key] instanceof Array) { if (obj[key] instanceof Array) {
obj[key].forEach((item) => { obj[key].forEach((item) => {
formData.append(key, item); formData.append(key, item);
}); });
return; return;
} }
formData.append(key, obj[key]); formData.append(key, obj[key]);
}); });
return formData; return formData;
}, },
} }
...@@ -358,95 +381,95 @@ export default { ...@@ -358,95 +381,95 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep .el-row--flex { ::v-deep .el-row--flex {
display: -webkit-box; display: -webkit-box;
.el-col-14 { .el-col-14 {
width: 90%; width: 90%;
}
} }
.basic-info { }
::v-deep .ele-form-btns{ .basic-info {
.el-form-item__content { ::v-deep .ele-form-btns {
display: none; .el-form-item__content {
} display: none;
} }
} }
.btn {
margin-left: 45%;
margin-bottom: 8px;
}
.table-contain {
padding: 0 80px 0 20px;
margin-left: 65px;
background: #fff;
border-radius: 2px;
} }
.div_list{ .btn {
display: flex; margin-left: 45%;
margin-right:10px; margin-bottom: 8px;
justify-content: center;
align-items: center;
} }
.div_txt{ .table-contain {
padding: 0 80px 0 20px;
margin-left: 65px;
background: #fff;
border-radius: 2px;
}
.div_list {
display: flex;
margin-right: 10px;
justify-content: center;
align-items: center;
}
.div_txt {
text-align: center; text-align: center;
line-height: 75px; line-height: 75px;
} }
.div_txt2{ .div_txt2 {
height: 80px; height: 80px;
margin-top: 12px; margin-top: 12px;
} }
.triangle_right { .triangle_right {
width: 0; width: 0;
height: 0; height: 0;
border-top: 20px solid transparent; border-top: 20px solid transparent;
border-left: 20px solid #a22796; border-left: 20px solid #a22796;
border-bottom: 20px solid transparent; border-bottom: 20px solid transparent;
} }
.bgcolor{ .bgcolor {
background: #a22796 !important; background: #a22796 !important;
} }
#parallelogram { #parallelogram {
width: 115px; width: 115px;
height: 75px; height: 75px;
background: #fff; background: #fff;
margin-right: 10px; margin-right: 10px;
border: 2px solid #a22796; border: 2px solid #a22796;
-webkit-transform: skew(0deg); -webkit-transform: skew(0deg);
-moz-transform: skew(0deg); -moz-transform: skew(0deg);
-o-transform: skew(0deg); -o-transform: skew(0deg);
transform: skew(0deg); transform: skew(0deg);
} }
.parallelogram1 { .parallelogram1 {
width: 45px; width: 45px;
height: 20px; height: 20px;
background: #a22796; background: #a22796;
border: 2px solid #a22796; border: 2px solid #a22796;
-webkit-transform: skew(0deg); -webkit-transform: skew(0deg);
-moz-transform: skew(0deg); -moz-transform: skew(0deg);
-o-transform: skew(0deg); -o-transform: skew(0deg);
transform: skew(0deg); transform: skew(0deg);
} }
.parallelogram2 { .parallelogram2 {
width: 80px; width: 80px;
height: 30px; height: 30px;
margin-right: 10px; margin-right: 10px;
background: #a22796; background: #a22796;
border: 2px solid #a22796; border: 2px solid #a22796;
-webkit-transform: skew(0deg); -webkit-transform: skew(0deg);
-moz-transform: skew(0deg); -moz-transform: skew(0deg);
-o-transform: skew(0deg); -o-transform: skew(0deg);
transform: skew(0deg); transform: skew(0deg);
} }
.parallelogram3 { .parallelogram3 {
width: 80px; width: 80px;
height: 30px; height: 30px;
margin-right: 10px; margin-right: 10px;
background: #fff; background: #fff;
border: 2px solid #a22796; border: 2px solid #a22796;
-webkit-transform: skew(0deg); -webkit-transform: skew(0deg);
-moz-transform: skew(0deg); -moz-transform: skew(0deg);
-o-transform: skew(0deg); -o-transform: skew(0deg);
transform: skew(0deg); transform: skew(0deg);
} }
</style> </style>
<template> <template>
<div class="form-container"> <div class="form-container">
<Title :title="title"> <Title :title="title">
</Title> </Title>
<div style="height:50px;display: flex;align-items: center;float: right; <div style="height:50px;display: flex;align-items: center;float: right;
margin-right: 90px;"> margin-right: 90px;">
<div class="parallelogram2"></div> <div class="parallelogram2"></div>
<div style="margin-right:15px">当前节点</div> <div style="margin-right:15px">当前节点</div>
<!-- <div class="parallelogram3"></div> <!-- <div class="parallelogram3"></div>
<div style="margin-right:15px">未审批</div> --> <div style="margin-right:15px">未审批</div> -->
</div> </div>
<div style="height:150px;display: flex;margin: 20px 290px;"> <div style="height:150px;display: flex;margin: 20px 290px;">
<div class="div_list"> <div class="div_list">
<div id="parallelogram" :class="{'bgcolor':formData.ExtProcessNode_SDK==1}"> <div id="parallelogram"
<div class="div_txt">提交</div> :class="{'bgcolor':formData.ExtProcessNode_SDK==1}">
</div> <div class="div_txt">提交</div>
<div class="parallelogram1"></div> </div>
<div class="triangle_right"></div> <div class="parallelogram1"></div>
</div> <div class="triangle_right"></div>
<div class="div_list"> </div>
<div id="parallelogram" :class="{'bgcolor':formData.ExtProcessNode_SDK==2}"> <div class="div_list">
<div class="div_txt2">审批_1区域渠道经理</div> <div id="parallelogram"
</div> :class="{'bgcolor':formData.ExtProcessNode_SDK==2}">
<div class="parallelogram1"></div> <div class="div_txt2">审批_1区域渠道经理</div>
<div class="triangle_right"></div> </div>
</div> <div class="parallelogram1"></div>
<div class="div_list"> <div class="triangle_right"></div>
<div id="parallelogram" :class="{'bgcolor':formData.ExtProcessNode_SDK==3}"> </div>
<div class="div_txt2">审批_2渠道销售部大区负责人</div> <div class="div_list">
</div> <div id="parallelogram"
<div class="parallelogram1"></div> :class="{'bgcolor':formData.ExtProcessNode_SDK==3}">
<div class="triangle_right"></div> <div class="div_txt2">审批_2渠道销售部大区负责人</div>
</div> </div>
<div class="parallelogram1"></div>
<div class="triangle_right"></div>
</div>
<div class="div_list">
<div id="parallelogram"
:class="{'bgcolor':formData.ExtProcessNode_SDK==4}">
<div class="div_txt2">审批_3渠道销售总监</div>
</div>
<div class="parallelogram1"></div>
<div class="triangle_right"></div>
</div>
<div class="div_list">
<div id="parallelogram"
:class="{'bgcolor':formData.ExtProcessNode_SDK==5}">
<div class="div_txt2">审批_4渠道管理部</div>
</div>
<div class="parallelogram1"></div>
<div class="triangle_right"></div>
</div>
<div class="div_list"> <div class="div_list">
<div id="parallelogram" :class="{'bgcolor':formData.ExtProcessNode_SDK==4}"> <div id="parallelogram"
<div class="div_txt2">审批_3渠道销售总监</div> :class="{'bgcolor':formData.ExtProcessNode_SDK==6}">
</div> <div class="div_txt2">完成</div>
<div class="parallelogram1"></div> </div>
<div class="triangle_right"></div> </div>
</div> <div class="div_list"> </div>
<div id="parallelogram" :class="{'bgcolor':formData.ExtProcessNode_SDK==5}">
<div class="div_txt2">审批_4渠道管理部</div>
</div>
</div>
</div>
<div class="basic-info"> <div class="basic-info">
<ele-form-section <ele-form-section v-model="formData"
v-model="formData" :sections="sections">
:sections="sections"
>
</ele-form-section> </ele-form-section>
<div class="table-contain"> <div class="table-contain">
<div class="form-container">审批意见</div> <div class="form-container">审批意见</div>
<!-- <div class="btn"> <!-- <div class="btn">
<el-button type="primary" @click="approve">审批</el-button> <el-button type="primary" @click="approve">审批</el-button>
<el-button type="" @click="reject">退回</el-button> <el-button type="" @click="reject">退回</el-button>
</div> --> </div> -->
<el-table :data="tableData" <el-table :data="tableData"
border border
style="width: 100%"> style="width: 100%">
<el-table-column prop="Node" <el-table-column prop="Node"
label="审批节点"> label="审批节点">
</el-table-column> </el-table-column>
<el-table-column prop="CreateName_SDK" <el-table-column prop="CreateName_SDK"
label="审批人"> label="审批人">
</el-table-column> </el-table-column>
<el-table-column prop="Result" <el-table-column prop="Result"
...@@ -76,13 +88,13 @@ ...@@ -76,13 +88,13 @@
label="备注"> label="备注">
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination v-show="TotalRecords>0" <pagination v-show="TotalRecords>0"
:total="TotalRecords" :total="TotalRecords"
:page.sync="page.currentPage" :page.sync="page.currentPage"
:limit.sync="page.pageSize" :limit.sync="page.pageSize"
@pagination="getList" /> @pagination="getList" />
</div> </div>
<!-- <el-dialog title="审批意见" :visible.sync="dialogFormVisible"> <!-- <el-dialog title="审批意见" :visible.sync="dialogFormVisible">
<el-form :model="form"> <el-form :model="form">
<el-form-item label-width=500> <el-form-item label-width=500>
<el-input v-model="form.note" autocomplete="off"></el-input> <el-input v-model="form.note" autocomplete="off"></el-input>
...@@ -94,13 +106,13 @@ ...@@ -94,13 +106,13 @@
</div> </div>
</el-dialog> --> </el-dialog> -->
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import Title from '@/components/Title' import Title from '@/components/Title'
import { getCustomer,typeSearch,lockRsp,ProcessApproval,processHistory, province } from '@/api/customers'; import { getCustomer, typeSearch, lockRsp, ProcessApproval, processHistory, province } from '@/api/customers';
import { Country } from '@/api/qcc' import { Country } from '@/api/qcc'
import Pagination from '@/components/Pagination' import Pagination from '@/components/Pagination'
export default { export default {
...@@ -108,16 +120,16 @@ export default { ...@@ -108,16 +120,16 @@ export default {
Pagination, Pagination,
Title, Title,
}, },
data () { data() {
return { return {
form:{}, form: {},
dialogFormVisible:false, dialogFormVisible: false,
title: '省级代理商审批进度查询', title: '省级代理商审批进度查询',
addBtnStart: false, addBtnStart: false,
objectId: '', objectId: '',
id:'', id: '',
status:0, status: 0,
loading:false, loading: false,
formData: {}, formData: {},
province: [], province: [],
sections: [ sections: [
...@@ -129,8 +141,8 @@ export default { ...@@ -129,8 +141,8 @@ export default {
label: '公司全称', label: '公司全称',
layout: 24, layout: 24,
code: 'qcc', code: 'qcc',
disabled:true, disabled: true,
returnFn: function(row) { returnFn: function (row) {
return { return {
Name: row.Name, Name: row.Name,
ExtSocialUnifiedCreditCode_SDK: row.CreditCode, ExtSocialUnifiedCreditCode_SDK: row.CreditCode,
...@@ -142,24 +154,24 @@ export default { ...@@ -142,24 +154,24 @@ export default {
type: 'input', type: 'input',
label: '公司全称曾用名', label: '公司全称曾用名',
layout: 12, layout: 12,
disabled:true, disabled: true,
}, },
ExtSocialUnifiedCreditCode_SDK: { ExtSocialUnifiedCreditCode_SDK: {
type: 'input', type: 'input',
label: '社会统一信用代码', label: '社会统一信用代码',
disabled:true, disabled: true,
layout: 12 layout: 12
}, },
ExtRegisteredCapital_SDK: { ExtRegisteredCapital_SDK: {
type: 'input', type: 'input',
label: '注册资本(万元)', label: '注册资本(万元)',
disabled:true, disabled: true,
layout: 12, layout: 12,
}, },
ExtCorporateName_SDK: { ExtCorporateName_SDK: {
type: 'input', type: 'input',
label: '法人', label: '法人',
disabled:true, disabled: true,
layout: 12, layout: 12,
}, },
// Ext_QuoteOppotunity_KUT: { // Ext_QuoteOppotunity_KUT: {
...@@ -176,30 +188,30 @@ export default { ...@@ -176,30 +188,30 @@ export default {
type: 'input', type: 'input',
label: '省份', label: '省份',
layout: 12, layout: 12,
disabled:true, disabled: true,
}, },
ExtCityName_SDK: { ExtCityName_SDK: {
type: 'input', type: 'input',
label: '城市', label: '城市',
layout: 12, layout: 12,
isOptions: true, isOptions: true,
disabled:true, disabled: true,
}, },
ExtDistrictName_SDK: { ExtDistrictName_SDK: {
type: 'input', type: 'input',
label: '县市', label: '县市',
layout: 12, layout: 12,
isOptions: true, isOptions: true,
disabled:true, disabled: true,
}, },
ExtAddressDetail_SDK: { ExtAddressDetail_SDK: {
type: 'input', type: 'input',
label: '详细经营地址', label: '详细经营地址',
layout: 12, layout: 12,
disabled:true, disabled: true,
}, },
} }
}, },
...@@ -209,181 +221,183 @@ export default { ...@@ -209,181 +221,183 @@ export default {
ExtLeader_SDK: { ExtLeader_SDK: {
type: 'input', type: 'input',
label: '公司负责人姓名', label: '公司负责人姓名',
disabled:true, disabled: true,
layout: 12 layout: 12
}, },
ExtLeaderPhone_SDK: { ExtLeaderPhone_SDK: {
type: 'input', type: 'input',
label: '公司负责人联系方式', label: '公司负责人联系方式',
disabled:true, disabled: true,
layout: 12 layout: 12
}, },
ExtLeaderEmail_SDK: { ExtLeaderEmail_SDK: {
type: 'input', type: 'input',
label: '公司负责人邮箱', label: '公司负责人邮箱',
disabled:true, disabled: true,
layout: 12 layout: 12
}, },
ExtUnis_SDK: { ExtUnis_SDK: {
type: 'input', type: 'input',
layout: 12, layout: 12,
disabled:true, disabled: true,
label: 'Unis业务负责人姓名' label: 'Unis业务负责人姓名'
}, },
ExtUnisPhone_SDK: { ExtUnisPhone_SDK: {
type: 'input', type: 'input',
layout: 12, layout: 12,
disabled:true, disabled: true,
label: 'Unis业务负责人联系方式' label: 'Unis业务负责人联系方式'
}, },
ExtUnisEmail_SDK: { ExtUnisEmail_SDK: {
type: 'input', type: 'input',
disabled:true, disabled: true,
label: 'Unis业务负责人邮箱', label: 'Unis业务负责人邮箱',
layout: 12 layout: 12
}, },
ExtBusiness_SDK: { ExtBusiness_SDK: {
type: 'input', type: 'input',
layout: 12, layout: 12,
disabled:true, disabled: true,
label: '商务负责人姓名' label: '商务负责人姓名'
}, },
ExtBusinessPhone_SDK: { ExtBusinessPhone_SDK: {
type: 'input', type: 'input',
layout: 12, layout: 12,
disabled:true, disabled: true,
label: '商务负责人联系方式' label: '商务负责人联系方式'
}, },
ExtBusinessEmail_SDK: { ExtBusinessEmail_SDK: {
type: 'input', type: 'input',
disabled:true, disabled: true,
label: '商务负责人邮箱', label: '商务负责人邮箱',
layout: 12 layout: 12
}, },
} }
}, },
{ {
title: '签约信息', title: '签约信息',
formDesc: { formDesc: {
ExtChannelType_SDK : { ExtChannelType_SDK: {
type: 'input', type: 'input',
label: '签约渠道类型', label: '签约渠道类型',
layout: 12, layout: 12,
disabled:true disabled: true
}, },
ExtProductGroup_SDK: { ExtProductGroup_SDK: {
type: 'input', type: 'input',
label: '签约产品组', label: '签约产品组',
layout: 12, layout: 12,
disabled:true disabled: true
}, },
ExtTotalAgent_SDK: { ExtTotalAgent_SDK: {
type: 'input', type: 'input',
label: '签约总代', label: '签约总代',
layout: 12, layout: 12,
disabled:true disabled: true
}, },
ExtLockCityName_SDK: { ExtLockCityName_SDK: {
type: 'input', type: 'input',
label: '覆盖范围(城市)', label: '覆盖范围(城市)',
layout: 12, layout: 12,
disabled:true disabled: true
}, },
} }
}, },
], ],
tableData:[], tableData: [],
TotalRecords:0, TotalRecords: 0,
page:{}, page: {},
// 同 vue-ele-form // 同 vue-ele-form
// rules: { // rules: {
// ExtLockCity_SDK: {required: true, message: '请选择覆盖城市范围'}, // ExtLockCity_SDK: {required: true, message: '请选择覆盖城市范围'},
// } // }
} }
}, },
watch:{ watch: {
// province:{ // province:{
// handler(newVal,oldVal){ // handler(newVal,oldVal){
// this.province=newVal // this.province=newVal
// }, // },
// deep:true // deep:true
// } // }
}, },
created(){ created() {
this.id=this.$route.query.objectID this.id = this.$route.query.objectID
this.getList() this.getList()
this.getHistoryList() this.getHistoryList()
}, },
methods: { methods: {
getList(){ getList() {
console.log('objectId',this.id) console.log('objectId', this.id)
getCustomer({objectID:this.id}).then((resp)=>{ getCustomer({ objectID: this.id }).then((resp) => {
this.formData=resp.results[0] this.formData = resp.results[0]
const app={provinceCode:resp.results[0].ExtProvince_SDK} const app = { provinceCode: resp.results[0].ExtProvince_SDK }
this.$request(Country.searchCity,app).then((resp) => { this.$request(Country.searchCity, app).then((resp) => {
this.province=resp.results this.province = resp.results
})
}) })
})
}, },
getHistoryList(){ getHistoryList() {
processHistory({businessObjectID:this.id}).then((resp)=>{ processHistory({ businessObjectID: this.id }).then((resp) => {
this.tableData=resp.results this.tableData = resp.results
}) })
}, },
handleSuccess () { handleSuccess() {
// this.$message.success('创建成功') // this.$message.success('创建成功')
}, },
approve(){ approve() {
this.dialogFormVisible=true this.dialogFormVisible = true
this.status=1 this.status = 1
}, },
reject(){ reject() {
this.dialogFormVisible=true this.dialogFormVisible = true
this.status=2 this.status = 2
}, },
approveClick(){ approveClick() {
const ExtLockCity_SDK=this.formData.ExtLockCity_SDK.toString() const ExtLockCity_SDK = this.formData.ExtLockCity_SDK.toString()
const cc={extProcessNode_SDK:this.formData.ExtProcessNode_SDK, const cc = {
extCustomerType_SDK:this.formData.ExtCustomerType_SDK, extProcessNode_SDK: this.formData.ExtProcessNode_SDK,
extProvince_SDK:this.formData.ExtProvince_SDK, extCustomerType_SDK: this.formData.ExtCustomerType_SDK,
objectID:this.formData.ObjectID, extProvince_SDK: this.formData.ExtProvince_SDK,
extLockRsp_SDK:this.formData.extLockRsp_SDK, objectID: this.formData.ObjectID,
extLockCity_SDK:ExtLockCity_SDK, extLockRsp_SDK: this.formData.extLockRsp_SDK,
extChannelType_SDK:this.formData.ExtChannelType_SDK} extLockCity_SDK: ExtLockCity_SDK,
if(this.status==1){ extChannelType_SDK: this.formData.ExtChannelType_SDK
const add={customerDTO:cc,note:this.form.note,result:"approve"} }
this.loading=true if (this.status == 1) {
ProcessApproval(add).then((resp)=>{ const add = { customerDTO: cc, note: this.form.note, result: "approve" }
this.loading=false this.loading = true
this.$message.success("审批成功!") ProcessApproval(add).then((resp) => {
this.dialogFormVisible=false this.loading = false
this.$router.back() this.$message.success("审批成功!")
}) this.dialogFormVisible = false
}else{ this.$router.back()
this.loading=true })
const bdd={customerDTO:cc,note:this.form.note,result:"reject"} } else {
ProcessApproval(bdd).then((resp)=>{ this.loading = true
this.loading=false const bdd = { customerDTO: cc, note: this.form.note, result: "reject" }
this.$message.success("退回成功!") ProcessApproval(bdd).then((resp) => {
this.dialogFormVisible=false this.loading = false
this.$router.back() this.$message.success("退回成功!")
}) this.dialogFormVisible = false
this.$router.back()
})
} }
}, },
// 对象格式转化为键值对 // 对象格式转化为键值对
paramsToFormData(obj) { paramsToFormData(obj) {
const formData = new FormData(); const formData = new FormData();
Object.keys(obj).forEach((key) => { Object.keys(obj).forEach((key) => {
if (obj[key] instanceof Array) { if (obj[key] instanceof Array) {
obj[key].forEach((item) => { obj[key].forEach((item) => {
formData.append(key, item); formData.append(key, item);
}); });
return; return;
} }
formData.append(key, obj[key]); formData.append(key, obj[key]);
}); });
return formData; return formData;
}, },
} }
...@@ -391,95 +405,95 @@ extChannelType_SDK:this.formData.ExtChannelType_SDK} ...@@ -391,95 +405,95 @@ extChannelType_SDK:this.formData.ExtChannelType_SDK}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep .el-row--flex { ::v-deep .el-row--flex {
display: -webkit-box; display: -webkit-box;
.el-col-14 { .el-col-14 {
width: 90%; width: 90%;
}
} }
.basic-info { }
::v-deep .ele-form-btns{ .basic-info {
.el-form-item__content { ::v-deep .ele-form-btns {
display: none; .el-form-item__content {
} display: none;
} }
} }
.btn {
margin-left: 45%;
margin-bottom: 8px;
}
.table-contain {
padding: 0 80px 0 20px;
margin-left: 65px;
background: #fff;
border-radius: 2px;
} }
.div_list{ .btn {
display: flex; margin-left: 45%;
margin-right:10px; margin-bottom: 8px;
justify-content: center;
align-items: center;
} }
.div_txt{ .table-contain {
padding: 0 80px 0 20px;
margin-left: 65px;
background: #fff;
border-radius: 2px;
}
.div_list {
display: flex;
margin-right: 10px;
justify-content: center;
align-items: center;
}
.div_txt {
text-align: center; text-align: center;
line-height: 75px; line-height: 75px;
} }
.div_txt2{ .div_txt2 {
height: 80px; height: 80px;
margin-top: 12px; margin-top: 12px;
} }
.triangle_right { .triangle_right {
width: 0; width: 0;
height: 0; height: 0;
border-top: 20px solid transparent; border-top: 20px solid transparent;
border-left: 20px solid #a22796; border-left: 20px solid #a22796;
border-bottom: 20px solid transparent; border-bottom: 20px solid transparent;
} }
.bgcolor{ .bgcolor {
background: #a22796 !important; background: #a22796 !important;
} }
#parallelogram { #parallelogram {
width: 115px; width: 115px;
height: 90px; height: 90px;
background: #fff; background: #fff;
margin-right: 10px; margin-right: 10px;
border: 2px solid #a22796; border: 2px solid #a22796;
-webkit-transform: skew(0deg); -webkit-transform: skew(0deg);
-moz-transform: skew(0deg); -moz-transform: skew(0deg);
-o-transform: skew(0deg); -o-transform: skew(0deg);
transform: skew(0deg); transform: skew(0deg);
} }
.parallelogram1 { .parallelogram1 {
width: 45px; width: 45px;
height: 20px; height: 20px;
background: #a22796; background: #a22796;
border: 2px solid #a22796; border: 2px solid #a22796;
-webkit-transform: skew(0deg); -webkit-transform: skew(0deg);
-moz-transform: skew(0deg); -moz-transform: skew(0deg);
-o-transform: skew(0deg); -o-transform: skew(0deg);
transform: skew(0deg); transform: skew(0deg);
} }
.parallelogram2 { .parallelogram2 {
width: 80px; width: 80px;
height: 30px; height: 30px;
margin-right: 10px; margin-right: 10px;
background: #a22796; background: #a22796;
border: 2px solid #a22796; border: 2px solid #a22796;
-webkit-transform: skew(0deg); -webkit-transform: skew(0deg);
-moz-transform: skew(0deg); -moz-transform: skew(0deg);
-o-transform: skew(0deg); -o-transform: skew(0deg);
transform: skew(0deg); transform: skew(0deg);
} }
.parallelogram3 { .parallelogram3 {
width: 80px; width: 80px;
height: 30px; height: 30px;
margin-right: 10px; margin-right: 10px;
background: #fff; background: #fff;
border: 2px solid #a22796; border: 2px solid #a22796;
-webkit-transform: skew(0deg); -webkit-transform: skew(0deg);
-moz-transform: skew(0deg); -moz-transform: skew(0deg);
-o-transform: skew(0deg); -o-transform: skew(0deg);
transform: skew(0deg); transform: skew(0deg);
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment