Browse Source

完善经销商备案

zhanglei
yunuo970428 2 years ago
parent
commit
7b3f52314a
  1. 102
      anrui-base/anrui-base-ui/src/api/dealer/dealer.js
  2. 18
      anrui-base/anrui-base-ui/src/api/jichuxinxi/dictcommons.js
  3. 59
      anrui-base/anrui-base-ui/src/router/index.js
  4. 370
      anrui-base/anrui-base-ui/src/views/dealer/dealerrecord/dealerrecord.vue
  5. 636
      anrui-base/anrui-base-ui/src/views/dealer/dealerrecord/dealerrecordAdd.vue
  6. 369
      anrui-base/anrui-base-ui/src/views/dealer/dealerrecord/dealerrecordInfo.vue
  7. 467
      anrui-base/anrui-base-ui/src/views/dealer/distributormanagement/distributormanagement.vue
  8. 609
      anrui-base/anrui-base-ui/src/views/dealer/distributormanagement/distributormanagementAdd.vue
  9. 274
      anrui-base/anrui-base-ui/src/views/dealer/distributormanagement/distributormanagementInfo.vue
  10. 469
      anrui-base/anrui-base-ui/src/views/workFlow/jingxiaoshangFlow/jingxiaoshangDaiBan.vue
  11. 1129
      anrui-base/anrui-base-ui/src/views/workFlow/jingxiaoshangFlow/jingxiaoshangEdit.vue
  12. 463
      anrui-base/anrui-base-ui/src/views/workFlow/jingxiaoshangFlow/jingxiaoshangYiBan.vue

102
anrui-base/anrui-base-ui/src/api/dealer/dealer.js

@ -0,0 +1,102 @@
import request from '@/utils/request'
export default {
// 查询分页列表
listPage: function(params) {
return request({
url: '/base/v1/basedistributorapply/listPage',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
})
},
saveOrUpdate: function(data) {
return request({
url: '/base/v1/basedistributorapply/save',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
recordInfo: function(data) {
return request({
url: '/base/v1/basedistributor/recordInfo',
method: 'get',
params: data
})
},
detail: function(data) {
return request({
url: '/base/v1/basedistributorapply/detail/' + data,
method: 'get'
})
},
deleteBySids: function(data) {
return request({
url: '/base/v1/basedistributorapply/deleteBySids',
method: 'DELETE',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
submit: function(data) {
return request({
url: '/base/v1/basedistributorapply/submit',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
// 流程审批(同意)
complete: function(params) {
return request({
url: '/base/v1/basedistributorapply/complete',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
})
},
// 流程审批(驳回)
reject: function(params) {
return request({
url: '/base/v1/basedistributorapply/reject',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
})
},
// 流程审批(终止)
breakProcess: function(params) {
return request({
url: '/base/v1/basedistributorapply/breakProcess',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
})
},
// 流程审批(撤回)
revokeProcess: function(params) {
return request({
url: '/base/v1/basedistributorapply/revokeProcess',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
})
},
// 审批流程(同意)获取下一环节
getNextNodesForSubmit: function(data) {
return request({
url: '/base/v1/basedistributorapply/getNextNodesForSubmit',
method: 'get',
params: data
})
},
// 审批流程(驳回)获取上一环节
getPreviousNodesForReject: function(data) {
return request({
url: '/base/v1/basedistributorapply/getPreviousNodesForReject',
method: 'get',
params: data
})
}
}

18
anrui-base/anrui-base-ui/src/api/jichuxinxi/dictcommons.js

@ -69,3 +69,21 @@ export function selectHaveMessage(data) {
headers: { 'Content-Type': 'application/json' }
})
}
// 根据当前登录用户sid获取本分公司下的销售部门和销售专员
export function selectOrgList(data) {
return request({
url: '/portal/v1/sysorganization/selectOrgList',
method: 'get',
params: data
})
}
// 根据部门sid获取该部门主管人员
export function selectMangerByDeptSid(data) {
return request({
url: '/base/v1/basedistributorapply/selectMangerByDeptSid',
method: 'get',
params: data
})
}

59
anrui-base/anrui-base-ui/src/router/index.js

@ -22,9 +22,6 @@ export const constantRoutes = [
redirect: 'index'
},
{
path: '/login',
component: () => import('@/views/login/login.vue')
}, {
path: '/index',
component: Layout,
redirect: '/index',
@ -83,48 +80,42 @@ export const constantRoutes = [
}
]
},
// 4经销商管理
{
path: '/jingxiaoshang',
component: Layout,
redirect: '/jingxiaoshang',
meta: {
title: '经销商管理'
},
children: [
{
path: '/jingxiaoshang/jingxiaoshangguanli',
component: () =>
import('@/views/jingxiaoshang/jingxiaoshangguanli/jingxiaoshangguanli.vue'),
name: 'jingxiaoshangguanli',
meta: {
title: '经销商管理',
noCache: true
}
}
]
},
// 5挂靠公司 现已改为经销商
{
path: '/guakaogongsi',
path: '/distributormanagement',
component: Layout,
redirect: '/guakaogongsi',
redirect: '/distributormanagement',
meta: {
title: '经销商'
title: '经销商管理'
},
children: [
{
path: '/guakaogongsi/guakaogongsiguanli',
path: '/distributormanagement/distributormanagement',
component: () =>
import('@/views/guakaogongsi/guakaogongsiguanli/guakaogongsiguanli.vue'),
name: 'guakaogongsiguanli',
meta: {
title: '经销商',
noCache: true
}
import('@/views/dealer/distributormanagement/distributormanagement.vue'),
name: 'DistributorManagement',
meta: { title: '经销商管理', noCache: true }
}
]
},
// 5挂靠公司 现已改为经销商
{
path: '/dealerrecord',
component: Layout,
redirect: '/dealerrecord',
meta: {
title: '经销商备案'
},
children: [
{
path: '/dealerrecord/dealerrecord',
component: () =>
import('@/views/dealer/dealerrecord/dealerrecord.vue'),
name: 'DealerRecord',
meta: { title: '经销商备案', noCache: true }
}
]
},
// 7、中介人员
{
path: '/zhongjie',

370
anrui-base/anrui-base-ui/src/views/dealer/dealerrecord/dealerrecord.vue

@ -0,0 +1,370 @@
<template>
<div class="app-container">
<div v-show="viewState ==1">
<button-bar view-title="经销商备案申请管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<div class="main-content">
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="110px" class="tab-header">
<el-form-item label="分公司">
<el-input v-model="listQuery.params.company" placeholder="" clearable class="filter-item"/>
</el-form-item>
<el-form-item label="申请部门">
<el-input v-model="listQuery.params.dept" placeholder="" clearable class="filter-item"/>
</el-form-item>
<el-form-item label="申请人">
<el-input v-model="listQuery.params.applyName" placeholder="" clearable class="filter-item"/>
</el-form-item>
<el-form-item label="销售专员">
<el-input v-model="listQuery.params.salesman" placeholder="" clearable class="filter-item"/>
</el-form-item>
<el-form-item label="经销商名称">
<el-input v-model="listQuery.params.distributor" placeholder="" clearable class="filter-item"/>
</el-form-item>
<el-form-item label="申请日期">
<el-date-picker v-model="listQuery.params.applyStartDate" type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择日期">
</el-date-picker>
<span style="padding: 0 8px"></span>
<el-date-picker v-model="listQuery.params.applyEndDate" type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择日期">
</el-date-picker>
</el-form-item>
<el-form-item label="有效期至">
<el-date-picker v-model="listQuery.params.effectiveStartDate" type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择日期">
</el-date-picker>
<span style="padding: 0 8px"></span>
<el-date-picker v-model="listQuery.params.effectiveEndDate" type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button>
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handleReset">重置</el-button>
</div>
</div>
</div>
<div class="listtop">
<div class="tit">经销商备案申请列表</div>
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
<div>
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange">
<el-table-column type="selection" align="center" width="50"/>
<el-table-column label="序号" fixed type="index" width="80" :index="indexMethod" align="center"/>
<el-table-column label="操作" fixed align="center" width="140px">
<template slot-scope="{row}">
<el-button size="mini" type="primary" @click="toEdit(row)" :disabled="row.nodeState =='发起申请' ? false : row.nodeState == '待提交' ? false : true">办理</el-button>
<el-button size="mini" type="primary" @click="toInfo(row)">查看</el-button>
</template>
</el-table-column>
<el-table-column prop="state" label="流程状态" width="120" align="center">
<template slot-scope="scope">
<span v-if="scope.row.nodeState=='待提交'" type="primary" size="mini">待提交</span>
<span v-else @click="flowRecord(scope.row)" class="bluezi">{{ scope.row.nodeState }}</span>
</template>
</el-table-column>
<el-table-column prop="state" label="分公司" width="120" align="center">
<template slot-scope="scope">
<span>{{ scope.row.company }}</span>
</template>
</el-table-column>
<el-table-column label="申请部门" width="130" align="center"> <!-- ? -->
<template slot-scope="scope">
<span>{{ scope.row.dept }}</span>
</template>
</el-table-column>
<el-table-column label="申请人" width="100" align="center">
<template slot-scope="scope">
<span>{{ scope.row.applyName }}</span>
</template>
</el-table-column>
<el-table-column label="申请日期" width="120" align="center">
<template slot-scope="scope">
<span>{{ scope.row.applyDate }}</span>
</template>
</el-table-column>
<el-table-column label="销售专员" width="120" align="center">
<template slot-scope="scope">
<span>{{ scope.row.salesman }}</span>
</template>
</el-table-column>
<el-table-column label="经销商名称" width="110" align="center">
<template slot-scope="scope">
<span>{{ scope.row.distributor }}</span>
</template>
</el-table-column>
<el-table-column label="有效期至" width="120" align="center">
<template slot-scope="scope">
<span>{{ scope.row.effectiveDate }}</span>
</template>
</el-table-column>
<el-table-column label="备注" align="center">
<template slot-scope="scope">
<span>{{ scope.row.remarks }}</span>
</template>
</el-table-column>
</el-table>
</div>
<div class="pages">
<div class="tit"/>
<!-- 翻页 -->
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
</div>
</div>
<!-- 新增或编辑 -->
<dealerrecordAdd v-show="viewState == 2 || viewState ==3" ref="divAdd" @doback="resetState" @reloadlist="getList"/>
<!-- 详情 -->
<dealerrecordInfo v-show="viewState == 4" ref="divInfo" @doback="resetState"/>
<!-- 流程审批记录 -->
<el-dialog title="" :visible.sync="centerDialogVisible" width="78%" height="1%" :before-close="closeIt" center>
<iframe frameborder="0" id="iframe" style="width:100%;" scrolling="no" :src="this.centerDialogVisible === true ? url :''"></iframe>
</el-dialog>
</div>
</template>
<script>
import req from '@/api/dealer/dealer'
import { getOrgSidByPath, typeValues } from '@/api/jichuxinxi/dictcommons'
import { getStorage } from '@/utils/auth'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import dealerrecordAdd from './dealerrecordAdd.vue'
import dealerrecordInfo from './dealerrecordInfo.vue'
import ButtonBar from '@/components/ButtonBar/index.vue'
export default {
name: 'DealerRecord',
components: {
Pagination,
pageye,
dealerrecordAdd,
dealerrecordInfo,
ButtonBar
},
data() {
return {
url: '',
dialogHeight: '80%',
centerDialogVisible: false,
isSearchShow: false,
searchxianshitit: '显示查询条件',
viewState: 1,
// ---------
btndisabled: false,
btnList: [
{
type: 'danger',
size: 'small',
icon: 'del',
btnKey: 'doDel',
btnLabel: '删除'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
// -----------
tableKey: 0,
sids: [],
list: [],
FormLoading: false,
listLoading: false,
listQuery: {
params: {
userSid: '',
menuUrl: '',
salesman: '',
applyStartDate: '',
applyEndDate: '',
dept: '',
distributor: '',
company: '',
orgPath: '',
effectiveStartDate: '',
effectiveEndDate: '',
applyName: ''
},
total: 0,
current: 1,
size: 10
},
temp: {}, //
sdies: ''
}
},
mounted() {
// vuewindowpostMessagehandleMessage
window.addEventListener('message', this.handleMessage)
this.$refs['btnbar'].setButtonList(this.btnList)
},
created() {
//
this.getList()
},
methods: {
async handleMessage(event) {
var code = ''
if (event.data.params !== null && event.data.params !== undefined) {
code = event.data.params.code
}
if (code === 1) {
this.centerDialogVisible = false
} else if (code === 2) {
this.dialogHeight = event.data.params.data
this.setIframeHeight(document.getElementById('iframe'))
}
},
closeIt() {
this.url = ''
this.centerDialogVisible = false
},
setIframeHeight(iframe) {
iframe.height = this.dialogHeight
},
flowRecord(row) {
this.centerDialogVisible = true
var params = {
deployId: row.procDefId,
procInsId: row.procInstId,
token: getStorage()
}
this.url = 'http://localhost:9530/#/flow/flowRecordForBusiness?data=' + encodeURI((JSON.stringify(params)))
},
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'doDel':
this.doDel()
break
case 'doClose':
this.doClose()
break
default:
break
}
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
//
getList() {
this.listLoading = true
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid')
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
this.listQuery.params.menuUrl = this.$route.path
req.listPage(this.listQuery).then((response) => {
this.listLoading = false
if (response.success) {
this.list = response.data.records
this.listQuery.total = response.data.total
} else {
this.list = []
this.listQuery.total = 0
}
})
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
handleReset() {
this.listQuery = {
params: {
userSid: '',
menuUrl: '',
salesman: '',
applyStartDate: '',
applyEndDate: '',
dept: '',
distributor: '',
company: '',
orgPath: '',
effectiveStartDate: '',
effectiveEndDate: '',
applyName: ''
},
total: 0,
current: 1,
size: 10
}
this.getList()
},
handleSelectionChange(row) {
const aa = []
row.forEach((element) => {
aa.push(element.sid)
})
this.sids = aa
this.sdies = this.sids.join()
},
toEdit(row) {
this.viewState = 3
this.$refs['divAdd'].showEdit(row)
},
//
toInfo(row) {
this.viewState = 4
this.$refs['divInfo'].showInfo(row)
},
// ID
doDel() {
if (this.sids.length > 0) {
const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?'
this.$confirm(tip, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
req.deleteBySids(this.sids).then(resp => {
if (resp.success) {
loading.close()
this.$message({ type: 'success', message: resp.msg, showClose: true })
this.getList()
} else {
loading.close()
}
}).catch(e => {
loading.close()
})
}).catch(() => {
})
} else {
this.$message({ showClose: true, type: 'error', message: '请选择至少一条记录进行操作' })
}
},
resetState() {
this.viewState = 1
},
doClose() {
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)
}
}
}
</script>
<style scoped>
</style>

636
anrui-base/anrui-base-ui/src/views/dealer/dealerrecord/dealerrecordAdd.vue

@ -0,0 +1,636 @@
<template>
<div class="app-container">
<div>
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="save()">保存</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="submit()">提交</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
<el-form ref="dataForm" :model="temp" class="formaddcopy02" :rules="rules">
<div class="title">经销商备案申请</div>
<el-row style="border-top: 1px solid #DFE6EC">
<el-col :span="8">
<div class="span-sty">申请部门</div>
<el-form-item><span class="addinputInfo">{{ temp.dept }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">申请人</div>
<el-form-item><span class="addinputInfo">{{ temp.applyName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">申请日期</div>
<el-form-item><span class="addinputInfo">{{ temp.applyDate }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty"><el-checkbox v-model="checked" @change="changeChecked" style="padding-right: 10px">同申请人</el-checkbox>销售部门</div>
<el-form-item>
<el-select v-model="temp.salesDept" :disabled="checked" class="addinputInfo" filterable placeholder="" @change="changeOrg">
<el-option v-for="item in org_list" :key="item.orgDeptSid" :label="item.orgDeptName" :value="item.orgDeptName"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">销售专员</div>
<el-form-item>
<el-select class="addinputInfo" :disabled="checked" v-model="temp.salesman" filterable placeholder="" @change="changeStaff">
<el-option v-for="item in staff_list" :key="item.staffSid" :label="item.staffName" :value="item.staffName"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">销售部经理</div>
<el-form-item><span class="addinputInfo">{{ temp.manage }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">有效期至</div>
<el-form-item><span class="addinputInfo">{{ temp.effectiveDate }}</span>
</el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">备注</div>
<el-form-item>
<el-input class="addinputInfo" style="width: 50%" v-model="temp.remarks" clearable placeholder=""/>
</el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">是否同意</div>
<el-form-item>
<el-radio-group style="font-size: 1px" class="addinputInfo" v-model="temp.agree">
<el-radio label="1"></el-radio>
<el-radio label="0"></el-radio>
</el-radio-group>
</el-form-item>
</el-col>
</el-row>
<div class="title">基本信息</div>
<el-row>
<el-col :span="16">
<div class="span-sty">所属经销商</div>
<el-form-item><span class="addinputInfo">{{ temp.pDistributorName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">是否投放商品展车</div>
<el-form-item><span class="addinputInfo">{{ temp.isDelivery }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="16">
<div class="span-sty">经销商名称</div>
<el-form-item><span class="addinputInfo">{{ temp.disName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">统一社会信用代码</div>
<el-form-item><span class="addinputInfo">{{ temp.registNum }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">注册地址</div>
<el-form-item><span class="addinputInfo">{{ temp.registDetailAddress }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">实际经营地址</div>
<el-form-item><span class="addinputInfo">{{ temp.managementDetailAddressProvince + temp.managementDetailAddressCity + temp.managementDetailAddressCounty + temp.managementDetailAddress }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">成立日期</div>
<el-form-item><span class="addinputInfo">{{ temp.setUpTime }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">开始合作时间</div>
<el-form-item><span class="addinputInfo">{{ temp.startCoopDate }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">是否担保</div>
<el-form-item><span class="addinputInfo">{{ temp.isGuarantee }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">实际控制人</div>
<el-form-item><span class="addinputInfo">{{ temp.legalName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">身份证号码</div>
<el-form-item><span class="addinputInfo">{{ temp.legalIdCard }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">手机号码</div>
<el-form-item><span class="addinputInfo">{{ temp.legalMobile }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">企业联系人</div>
<el-form-item><span class="addinputInfo">{{ temp.contract }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty">手机号码</div>
<el-form-item><span class="addinputInfo">{{ temp.mobile }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">开票信息</div>
<el-row>
<el-col :span="16">
<div class="span-sty">单位名称</div>
<el-form-item><span class="addinputInfo">{{ temp.disName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">税号</div>
<el-form-item><span class="addinputInfo">{{ temp.registNum }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="16">
<div class="span-sty">地址</div>
<el-form-item><span class="addinputInfo">{{ temp.registDetailAddress }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">联系电话</div>
<el-form-item><span class="addinputInfo">{{ temp.invoPhone }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="16">
<div class="span-sty">开户行</div>
<el-form-item><span class="addinputInfo">{{ temp.invoBank }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">银行账号</div>
<el-form-item><span class="addinputInfo">{{ temp.invoBankNum }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">人员列表</div>
<el-table :key="tableKey" v-loading="listLoading" :data="temp.perList" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="姓名" align="center">
<template slot-scope="scope">
<span>{{ scope.row.name }}</span>
</template>
</el-table-column>
<el-table-column label="身份" align="center">
<template slot-scope="scope">
<span>{{ scope.row.identityValue }}</span>
</template>
</el-table-column>
<el-table-column label="手机号码" align="center">
<template slot-scope="scope">
<span>{{ scope.row.mobile }}</span>
</template>
</el-table-column>
<el-table-column label="备注" align="center">
<template slot-scope="scope">
<span>{{ scope.row.remarks }}</span>
</template>
</el-table-column>
</el-table>
<div class="title">附件清单</div>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center">合作协议</div>
<el-form-item>
<upload-img ref="uploadImg" class="addinputInfo" v-model="image_list1" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center">营业执照</div>
<el-form-item>
<upload-img ref="uploadImg" class="addinputInfo" v-model="image_list2" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center">道路运输许可证</div>
<el-form-item>
<upload-img ref="uploadImg" class="addinputInfo" v-model="image_list3" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center">法人身份证</div>
<el-form-item>
<upload-img ref="uploadImg" class="addinputInfo" v-model="image_list4" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center">其他资料</div>
<el-form-item>
<upload-img ref="uploadImg" class="addinputInfo" v-model="image_list5" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
</div>
</template>
<script>
import req from '@/api/dealer/dealer'
import { selectMangerByDeptSid, selectOrgList } from '@/api/jichuxinxi/dictcommons'
import uploadImg from '@/components/uploadFile/uploadImg'
export default {
name: 'DealerRecordAdd',
components: {
uploadImg
},
data() {
return {
viewTitle: '',
submitdisabled: false,
tableKey: 0,
index: 0,
listLoading: false,
checked: false,
org_list: [],
staff_list: [],
image_list1: [],
image_list2: [],
image_list3: [],
image_list4: [],
image_list5: [],
temp: {
userSid: '',
orgSidPath: '',
sid: '',
distributorSid: '',
disName: '',
registNum: '',
setUpTime: '',
registDetailAddress: '',
provinceCode: '',
cityCode: '',
managementAddressCode: '',
managementDetailAddressProvince: '',
managementDetailAddressCity: '',
managementDetailAddressCounty: '',
managementDetailAddress: '',
contract: '',
mobile: '',
legalName: '',
legalIdCard: '',
legalMobile: '',
isGuarantee: '',
isGuaranteeKey: '',
startCoopDate: '',
useOrg: '',
useOrgName: '',
invoPhone: '',
invoBank: '',
invoBankNum: '',
disLevelKey: '',
disLevelValue: '',
perList: [],
yyzzList: [],
dlysxkzList: [],
frsfzList: [],
qtzlList: [],
hzxyList: [],
isDelivery: '',
isDeliveryKey: '',
effectiveDate: '',
agree: '',
applyName: '',
salesmanSid: '',
salesman: '',
applyDate: '',
dept: '',
deptSid: '',
salesDept: '',
salesDeptSid: '',
manage: '',
manageSid: '',
remarks: '',
taskId: '',
instanceId: '',
pdisName: '',
pDistributorSid: '',
pDistributorName: ''
},
rules: {}
}
},
methods: {
showAdd(sid) {
this.viewTitle = '【新增】经销商备案'
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
})
selectOrgList({ userSid: window.sessionStorage.getItem('userSid'), orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => {
if (resp.success) {
this.org_list = resp.data
}
})
req.recordInfo({ sid: sid }).then((res) => {
if (res.success) {
this.temp = res.data
this.temp.applyName = window.sessionStorage.getItem('name')
this.temp.dept = window.sessionStorage.getItem('defaultOrgPathName').substring(window.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1)
this.temp.deptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1)
this.temp.userSid = window.sessionStorage.getItem('userSid')
this.temp.orgSidPath = window.sessionStorage.getItem('defaultOrgPath')
}
})
},
showEdit(row) {
this.viewTitle = '【编辑】经销商备案'
this.$nextTick(() => {
this.$refs['dataForm'].clearValidate()
})
req.detail(row.sid).then((res) => {
if (res.success) {
this.temp = res.data
selectOrgList({ userSid: window.sessionStorage.getItem('userSid'), orgPath: this.temp.orgSidPath }).then((resp) => {
if (resp.success) {
this.org_list = resp.data
//
const choosetItem = this.org_list.filter((item) => item.orgDeptName === this.temp.salesDept)
if (choosetItem.length > 0 && choosetItem !== null) {
this.staff_list = choosetItem[0].staffinfoVoList
}
//
if (this.temp.hzxyList.length > 0) {
this.temp.hzxyList.forEach((e) => {
this.image_list1.push({
name: '',
url: e
})
})
}
if (this.temp.yyzzList.length > 0) {
this.temp.yyzzList.forEach((e) => {
this.image_list2.push({
name: '',
url: e
})
})
}
if (this.temp.dlysxkzList.length > 0) {
this.temp.dlysxkzList.forEach((e) => {
this.image_list3.push({
name: '',
url: e
})
})
}
if (this.temp.frsfzList.length > 0) {
this.temp.frsfzList.forEach((e) => {
this.image_list4.push({
name: '',
url: e
})
})
}
if (this.temp.qtzlList.length > 0) {
this.temp.qtzlList.forEach((e) => {
this.image_list5.push({
name: '',
url: e
})
})
}
}
})
}
})
},
changeChecked(val) {
if (val) {
this.temp.salesDept = this.temp.dept
this.temp.salesDeptSid = this.temp.deptSid
this.temp.salesman = this.temp.applyName
this.temp.salesmanSid = window.sessionStorage.getItem('staffSid')
selectMangerByDeptSid({ deptSid: this.temp.deptSid }).then((res) => {
if (res.success) {
this.temp.manage = res.data.manage
this.temp.manageSid = res.data.manageSid
}
})
} else {
this.temp.salesDept = ''
this.temp.salesDeptSid = ''
this.temp.salesman = ''
this.temp.salesmanSid = ''
this.temp.manage = ''
this.temp.manageSid = ''
}
},
changeOrg(value) {
const choosetItem = this.org_list.filter((item) => item.orgDeptName === value)
if (choosetItem.length > 0 && choosetItem !== null) {
this.temp.salesDeptSid = choosetItem[0].orgDeptSid
this.staff_list = choosetItem[0].staffinfoVoList
selectMangerByDeptSid({ deptSid: choosetItem[0].orgDeptSid }).then((res) => {
if (res.success) {
this.temp.manage = res.data.manage
this.temp.manageSid = res.data.manageSid
}
})
} else {
//
this.temp.salesDeptSid = ''
//
this.temp.salesman = ''
this.temp.salesmanSid = ''
this.staff_list = []
//
this.temp.manage = ''
this.temp.manageSid = ''
}
},
changeStaff(value) {
const choosetItem = this.staff_list.filter((item) => item.staffName === value)
if (choosetItem.length > 0 && choosetItem !== null) {
this.temp.salesmanSid = choosetItem[0].staffSid
} else {
this.temp.salesmanSid = ''
}
},
save() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.submitdisabled = true
this.getUrl()
req.saveOrUpdate(this.temp).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '保存成功' })
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
submit() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.getUrl()
if (this.temp.isDelivery === '是' && this.temp.hzxyList.length === 0) {
this.$message({ showClose: true, type: 'error', message: '是否投放商品展车为是时,合作协议附件不能为空' })
return
}
this.submitdisabled = true
req.submit(this.temp).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '提交成功' })
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
getUrl() {
if (this.image_list1.length > 0) {
const aa = []
this.image_list1.forEach((e) => {
aa.push(e.url)
})
this.temp.hzxyList = aa
} else {
this.temp.hzxyList = []
}
if (this.image_list2.length > 0) {
const bb = []
this.image_list2.forEach((e) => {
bb.push(e.url)
})
this.temp.yyzzList = bb
} else {
this.temp.yyzzList = []
}
if (this.image_list3.length > 0) {
const cc = []
this.image_list3.forEach((e) => {
cc.push(e.url)
})
this.temp.dlysxkzList = cc
} else {
this.temp.dlysxkzList = []
}
if (this.image_list4.length > 0) {
const dd = []
this.image_list4.forEach((e) => {
dd.push(e.url)
})
this.temp.frsfzList = dd
} else {
this.temp.frsfzList = []
}
if (this.image_list5.length > 0) {
const ee = []
this.image_list5.forEach((e) => {
ee.push(e.url)
})
this.temp.qtzlList = ee
} else {
this.temp.qtzlList = []
}
},
//
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.temp = {
userSid: '',
orgSidPath: '',
sid: '',
distributorSid: '',
disName: '',
registNum: '',
setUpTime: '',
registDetailAddress: '',
provinceCode: '',
cityCode: '',
managementAddressCode: '',
managementDetailAddressProvince: '',
managementDetailAddressCity: '',
managementDetailAddressCounty: '',
managementDetailAddress: '',
contract: '',
mobile: '',
legalName: '',
legalIdCard: '',
legalMobile: '',
isGuarantee: '',
isGuaranteeKey: '',
startCoopDate: '',
useOrg: '',
useOrgName: '',
invoPhone: '',
invoBank: '',
invoBankNum: '',
disLevelKey: '',
disLevelValue: '',
perList: [],
yyzzList: [],
dlysxkzList: [],
frsfzList: [],
qtzlList: [],
hzxyList: [],
isDelivery: '',
isDeliveryKey: '',
effectiveDate: '',
agree: '',
applyName: '',
salesmanSid: '',
salesman: '',
applyDate: '',
dept: '',
deptSid: '',
salesDept: '',
salesDeptSid: '',
manage: '',
manageSid: '',
remarks: '',
taskId: '',
instanceId: '',
pdisName: '',
pDistributorSid: '',
pDistributorName: ''
}
this.image_list1 = []
this.image_list2 = []
this.image_list3 = []
this.image_list4 = []
this.image_list5 = []
this.submitdisabled = false
this.checked = false
this.$refs['dataForm'].resetFields()
this.$emit('doback')
}
}
}
</script>
<style scoped>
.span-sty {
width: 170px !important;
}
.addinputInfo {
margin-left: 160px !important;
}
</style>

369
anrui-base/anrui-base-ui/src/views/dealer/dealerrecord/dealerrecordInfo.vue

@ -0,0 +1,369 @@
<template>
<div class="app-container">
<div>
<div class="tab-header webtop">
<div>经销商备案详情</div>
<div>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
<el-form ref="dataForm" :model="temp" class="formaddcopy02" :rules="rules">
<div class="title">经销商备案申请</div>
<el-row style="border-top: 1px solid #DFE6EC">
<el-col :span="8">
<div class="span-sty">申请部门</div>
<el-form-item><span class="addinputInfo">{{ temp.dept }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">申请人</div>
<el-form-item><span class="addinputInfo">{{ temp.applyName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">申请日期</div>
<el-form-item><span class="addinputInfo">{{ temp.applyDate }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">销售部门</div>
<el-form-item><span class="addinputInfo">{{ temp.salesDept }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">销售专员</div>
<el-form-item><span class="addinputInfo">{{ temp.salesman }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">销售部经理</div>
<el-form-item><span class="addinputInfo">{{ temp.manage }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">有效期至</div>
<el-form-item><span class="addinputInfo">{{ temp.effectiveDate }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">备注</div>
<el-form-item><span class="addinputInfo">{{ temp.remarks }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">是否同意</div>
<el-form-item><span class="addinputInfo">{{ temp.agree == '1' ? '是' : temp.agree == '0' ? '否' : '' }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">基本信息</div>
<el-row>
<el-col :span="16">
<div class="span-sty">所属经销商</div>
<el-form-item><span class="addinputInfo">{{ temp.pDistributorName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">是否投放商品展车</div>
<el-form-item><span class="addinputInfo">{{ temp.isDelivery }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="16">
<div class="span-sty">经销商名称</div>
<el-form-item><span class="addinputInfo">{{ temp.disName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">统一社会信用代码</div>
<el-form-item><span class="addinputInfo">{{ temp.registNum }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">注册地址</div>
<el-form-item><span class="addinputInfo">{{ temp.registDetailAddress }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">实际经营地址</div>
<el-form-item><span class="addinputInfo">{{ temp.managementDetailAddressProvince + temp.managementDetailAddressCity + temp.managementDetailAddressCounty + temp.managementDetailAddress }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">成立日期</div>
<el-form-item><span class="addinputInfo">{{ temp.setUpTime }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">开始合作时间</div>
<el-form-item><span class="addinputInfo">{{ temp.startCoopDate }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">是否担保</div>
<el-form-item><span class="addinputInfo">{{ temp.isGuarantee }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">实际控制人</div>
<el-form-item><span class="addinputInfo">{{ temp.legalName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">身份证号码</div>
<el-form-item><span class="addinputInfo">{{ temp.legalIdCard }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">手机号码</div>
<el-form-item><span class="addinputInfo">{{ temp.legalMobile }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">企业联系人</div>
<el-form-item><span class="addinputInfo">{{ temp.contract }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty">手机号码</div>
<el-form-item><span class="addinputInfo">{{ temp.mobile }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">开票信息</div>
<el-row>
<el-col :span="16">
<div class="span-sty">单位名称</div>
<el-form-item><span class="addinputInfo">{{ temp.disName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">税号</div>
<el-form-item><span class="addinputInfo">{{ temp.registNum }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="16">
<div class="span-sty">地址</div>
<el-form-item><span class="addinputInfo">{{ temp.registDetailAddress }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">联系电话</div>
<el-form-item><span class="addinputInfo">{{ temp.invoPhone }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="16">
<div class="span-sty">开户行</div>
<el-form-item><span class="addinputInfo">{{ temp.invoBank }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">银行账号</div>
<el-form-item><span class="addinputInfo">{{ temp.invoBankNum }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">人员列表</div>
<el-table :key="tableKey" v-loading="listLoading" :data="temp.perList" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="姓名" align="center">
<template slot-scope="scope">
<span>{{ scope.row.name }}</span>
</template>
</el-table-column>
<el-table-column label="身份" align="center">
<template slot-scope="scope">
<span>{{ scope.row.identityValue }}</span>
</template>
</el-table-column>
<el-table-column label="手机号码" align="center">
<template slot-scope="scope">
<span>{{ scope.row.mobile }}</span>
</template>
</el-table-column>
<el-table-column label="备注" align="center">
<template slot-scope="scope">
<span>{{ scope.row.remarks }}</span>
</template>
</el-table-column>
</el-table>
<div class="title">附件清单</div>
<el-row>
<el-col :span="24">
<div class="span-sty">合作协议</div>
<el-form-item><el-image style="width: 150px; height: 150px" class="addinputInfo" v-for="(item, index) in temp.hzxyList" :key="index" :src="item" :preview-src-list="temp.hzxyList"/></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">营业执照</div>
<el-form-item><el-image style="width: 150px; height: 150px" class="addinputInfo" v-for="(item, index) in temp.yyzzList" :key="index" :src="item" :preview-src-list="temp.yyzzList"/></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">道路运输许可证</div>
<el-form-item><el-image style="width: 150px; height: 150px" class="addinputInfo" v-for="(item, index) in temp.dlysxkzList" :key="index" :src="item" :preview-src-list="temp.dlysxkzList"/></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">法人身份证</div>
<el-form-item><el-image style="width: 150px; height: 150px" class="addinputInfo" v-for="(item, index) in temp.frsfzList" :key="index" :src="item" :preview-src-list="temp.frsfzList"/></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">其他资料</div>
<el-form-item><el-image style="width: 150px; height: 150px" class="addinputInfo" v-for="(item, index) in temp.qtzlList" :key="index" :src="item" :preview-src-list="temp.qtzlList"/></el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
</div>
</template>
<script>
import req from '@/api/dealer/dealer'
export default {
name: 'GuakaogongsiInfo',
data() {
return {
tableKey: 0,
index: 0,
listLoading: false,
temp: {
userSid: '',
orgSidPath: '',
sid: '',
distributorSid: '',
disName: '',
registNum: '',
setUpTime: '',
registDetailAddress: '',
provinceCode: '',
cityCode: '',
managementAddressCode: '',
managementDetailAddressProvince: '',
managementDetailAddressCity: '',
managementDetailAddressCounty: '',
managementDetailAddress: '',
contract: '',
mobile: '',
legalName: '',
legalIdCard: '',
legalMobile: '',
isGuarantee: '',
isGuaranteeKey: '',
startCoopDate: '',
useOrg: '',
useOrgName: '',
invoPhone: '',
invoBank: '',
invoBankNum: '',
disLevelKey: '',
disLevelValue: '',
perList: [],
yyzzList: [],
dlysxkzList: [],
frsfzList: [],
qtzlList: [],
hzxyList: [],
isDelivery: '',
isDeliveryKey: '',
effectiveDate: '',
agree: '',
applyName: '',
salesmanSid: '',
salesman: '',
applyDate: '',
dept: '',
deptSid: '',
salesDept: '',
salesDeptSid: '',
manage: '',
manageSid: '',
remarks: '',
taskId: '',
instanceId: '',
pdisName: '',
pDistributorSid: '',
pDistributorName: ''
}, //
rules: {}
}
},
methods: {
//
handleReturn() {
this.temp = {
userSid: '',
orgSidPath: '',
sid: '',
distributorSid: '',
disName: '',
registNum: '',
setUpTime: '',
registDetailAddress: '',
provinceCode: '',
cityCode: '',
managementAddressCode: '',
managementDetailAddressProvince: '',
managementDetailAddressCity: '',
managementDetailAddressCounty: '',
managementDetailAddress: '',
contract: '',
mobile: '',
legalName: '',
legalIdCard: '',
legalMobile: '',
isGuarantee: '',
isGuaranteeKey: '',
startCoopDate: '',
useOrg: '',
useOrgName: '',
invoPhone: '',
invoBank: '',
invoBankNum: '',
disLevelKey: '',
disLevelValue: '',
perList: [],
yyzzList: [],
dlysxkzList: [],
frsfzList: [],
qtzlList: [],
hzxyList: [],
isDelivery: '',
isDeliveryKey: '',
effectiveDate: '',
agree: '',
applyName: '',
salesmanSid: '',
salesman: '',
applyDate: '',
dept: '',
deptSid: '',
salesDept: '',
salesDeptSid: '',
manage: '',
manageSid: '',
remarks: '',
taskId: '',
instanceId: '',
pdisName: '',
pDistributorSid: '',
pDistributorName: ''
}
this.$emit('doback')
},
showInfo(row) {
req.detail(row.sid).then((response) => {
if (response.success) {
this.temp = response.data
}
})
}
}
}
</script>
<style scoped>
.span-sty {
width: 130px !important;
}
.addinputInfo {
margin-left: 120px !important;
}
</style>

467
anrui-base/anrui-base-ui/src/views/dealer/distributormanagement/distributormanagement.vue

@ -0,0 +1,467 @@
<template>
<div class="app-container">
<div v-show="viewState ==1">
<button-bar view-title="经销商管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<div class="main-content">
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="140px" class="tab-header">
<el-form-item label="经销商名称">
<el-input v-model="listQuery.params.disName" placeholder="请输入经销商名称" clearable class="filter-item"/>
</el-form-item>
<el-form-item label="统一社会信用代码">
<el-input v-model="listQuery.params.registNum" placeholder="请输入统一社会信用代码" clearable class="filter-item"/>
</el-form-item>
<el-form-item label="实际控制人姓名">
<el-input v-model="listQuery.params.legalName" placeholder="请输入实际控制人姓名" clearable class="filter-item"/>
</el-form-item>
<el-form-item label="级别">
<el-select v-model="listQuery.params.disLevelKey" class="filter-item" clearable placeholder="请选择状态">
<el-option v-for="item in disLevel_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select>
</el-form-item>
<el-form-item label="是否担保">
<el-select v-model="listQuery.params.isGuaranteeKey" class="filter-item" clearable placeholder="请选择是否担保">
<el-option v-for="item in options" :key="item.key" :label="item.label" :value="item.key"/>
</el-select>
</el-form-item>
<el-form-item label="所属经销商">
<el-select v-model="listQuery.params.pdistributorSid" class="addinputw" placeholder="请选择所属经销商" clearable>
<el-option v-for="item in pDistributorSid_list" :key="item.sid" :label="item.disName" :value="item.sid"/>
</el-select>
</el-form-item>
<el-form-item label="成立日期">
<el-date-picker v-model="listQuery.params.setUpStartTime" type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择日期">
</el-date-picker>
<span style="padding: 0 8px"></span>
<el-date-picker v-model="listQuery.params.setUpEndTime" type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button>
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handleReset">重置</el-button>
</div>
</div>
</div>
<div class="listtop">
<div class="tit">经销商信息列表</div>
<div class="rel_css">
<span style="font-size: 15px">关联状态</span>
<el-select v-model="listQuery.params.relationState" class="filter-item rel_btn" clearable placeholder="请选择关联关系" @change="relationStateChange">
<el-option v-for="item in optionsRel" :key="item.key" :label="item.label" :value="item.key"/>
</el-select>
</div>
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
<div>
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange">
<el-table-column type="selection" align="center" width="50"/>
<el-table-column label="序号" fixed type="index" width="80" :index="indexMethod" align="center"/>
<el-table-column label="操作" fixed align="center" width="140px">
<template slot-scope="{row}">
<el-button size="mini" type="primary" @click="toInfo(row)">查看</el-button>
</template>
</el-table-column>
<el-table-column prop="state" label="状态" width="120" align="center">
<template slot-scope="scope">
<span>{{ scope.row.state }}</span>
</template>
</el-table-column>
<el-table-column label="所属经销商" width="180" align="center"> <!-- ? -->
<template slot-scope="scope">
<span>{{ scope.row.pdistributorName }}</span>
</template>
</el-table-column>
<el-table-column label="经销商名称" width="180" header-align="center" align="left">
<template slot-scope="scope">
<span>{{ scope.row.disName }}</span>
</template>
</el-table-column>
<el-table-column label="统一社会信用代码" width="190" align="center">
<template slot-scope="scope">
<span>{{ scope.row.registNum }}</span>
</template>
</el-table-column>
<el-table-column label="注册地址" width="220" align="center">
<template slot-scope="scope">
<span>{{ scope.row.registDetailAddress }}</span>
</template>
</el-table-column>
<el-table-column label="联系电话" width="120" align="center">
<template slot-scope="scope">
<span>{{ scope.row.invoPhone }}</span>
</template>
</el-table-column>
<el-table-column label="成立日期" width="120" align="center"> <!-- ? -->
<template slot-scope="scope">
<span>{{ scope.row.setUpTime }}</span>
</template>
</el-table-column>
<el-table-column label="是否担保" width="120" align="center"> <!-- ? -->
<template slot-scope="scope">
<span>{{ scope.row.isGuarantee }}</span>
</template>
</el-table-column>
<el-table-column label="是否投放展车" width="120" align="center"> <!-- ? -->
<template slot-scope="scope">
<span>{{ scope.row.isDelivery }}</span>
</template>
</el-table-column>
<el-table-column label="本年销售台数" width="160" align="center"> <!-- ? -->
<template slot-scope="scope">
<span>{{ scope.row.curYearSaleNum }}</span>
</template>
</el-table-column>
<el-table-column label="累计销售台数" width="160" align="center"> <!-- ? -->
<template slot-scope="scope">
<span>{{ scope.row.cumSaleNum }}</span>
</template>
</el-table-column>
</el-table>
</div>
<div class="pages">
<div class="tit"/>
<!-- 翻页 -->
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
</div>
</div>
<!-- 新增或编辑 -->
<distributormanagementAdd v-show="viewState == 2 || viewState ==3" ref="divAdd" @doback="resetState" @reloadlist="getList"/>
<!-- 详情 -->
<distributormanagementInfo v-show="viewState == 4" ref="divInfo" @doback="resetState"/>
<!-- 报备 -->
<dealerrecordAdd v-show="viewState == 5" ref="divRecord" @doback="resetState" @reloadlist="getList"/>
</div>
</template>
<script>
import { deleteBySids, getOneLevelList, pagerList } from '@/api/jichuxinxi/baseaffiliatcompany'
import { getOrgSidByPath, typeValues } from '@/api/jichuxinxi/dictcommons'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar/index.vue'
import distributormanagementAdd from './distributormanagementAdd.vue'
import distributormanagementInfo from './distributormanagementInfo.vue'
import dealerrecordAdd from '../dealerrecord/dealerrecordAdd'
export default {
name: 'DistributorManagement',
components: {
Pagination,
pageye,
ButtonBar,
distributormanagementAdd,
distributormanagementInfo,
dealerrecordAdd
},
data() {
return {
isSearchShow: false,
searchxianshitit: '显示查询条件',
viewState: 1,
// ---------
btndisabled: false,
btnList: [
{
type: 'primary',
size: 'small',
icon: 'plus',
btnKey: 'toAdd',
btnLabel: '新增'
},
{
type: 'primary',
size: 'small',
icon: 'edit',
btnKey: 'toEdit',
btnLabel: '编辑'
},
{
type: 'danger',
size: 'small',
icon: 'del',
btnKey: 'doDel',
btnLabel: '删除'
},
{
type: 'primary',
size: 'small',
icon: '',
btnKey: 'toReport',
btnLabel: '报备'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
// -----------
tableKey: 0,
sids: [],
list: [],
multipleSelection: [],
FormLoading: false,
listLoading: false,
pDistributorSid_list: [],
//
options: [
{
key: 1,
label: '是'
},
{
key: 0,
label: '否'
}
],
//
optionsRel: [
{
key: 1,
label: '已关联'
},
{
key: 0,
label: '未关联'
}
],
listQuery: {
params: {
createOrg: '',
disName: '', //
isGuaranteeKey: '', // 0/1
legalName: '', //
registNum: '', //
disLevel: '', //
pdistributorSid: '',
setUpEndTime: '', //
setUpStartTime: '', //
userSid: '',
orgPath: '',
menuUrl: ''
},
total: 0,
current: 1,
size: 10
},
sdies: '',
dialogStatus: '', //
disLevel_list: [] //
}
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
created() {
//
this.init()
//
this.getListOrgAll()
},
methods: {
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
init() {
this.getType()
},
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'toAdd':
this.toAdd()
break
case 'toEdit':
this.toEdit()
break
case 'doDel':
this.doDel()
break
case 'toReport':
this.toReport()
break
case 'doClose':
this.doClose()
break
default:
break
}
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
getListOrgAll(state) {
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) {
this.listQuery.params.relationState = state
this.listQuery.params.createOrg = res.data
this.getList()
}
})
},
//
getType() {
typeValues({ type: 'disLevel' }).then((res) => {
if (res.code === '200') {
this.disLevel_list = res.data
}
})
},
getLevelList() {
getOneLevelList({ sid: '' }).then((res) => {
if (res.code === '200') {
this.pDistributorSid_list = res.data
}
})
},
relationStateChange(val) {
this.getListOrgAll(val)
},
//
getList() {
this.listLoading = true
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid')
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
this.listQuery.params.menuUrl = this.$route.path
pagerList(this.listQuery).then((response) => {
this.listLoading = false
if (response.success) {
this.list = response.data.records
this.listQuery.total = response.data.total
} else {
this.list = []
this.listQuery.total = 0
}
})
this.getLevelList()
},
//
handleFilter() {
this.listQuery.current = 1
this.getListOrgAll()
},
handleReset() {
this.listQuery = {
params: {
disName: '', //
isGuaranteeKey: '', // 0/1
legalName: '', //
registNum: '', //
disLevel: '', //
pdistributorSid: '',
setUpEndTime: '', //
setUpStartTime: '', //
userSid: '',
orgPath: '',
menuUrl: ''
},
total: 0,
current: 1,
size: 10
}
this.getListOrgAll()
},
handleSelectionChange(row) {
const aa = []
this.multipleSelection = row
row.forEach((element) => {
aa.push(element.sid)
})
this.sids = aa
this.sdies = this.sids.join()
console.log('this.sids000000', this.sdies)
},
//
toAdd() {
this.viewState = 2
this.$refs['divAdd'].showAdd()
},
//
toEdit() {
if (this.sids.length === 1) {
this.viewState = 3
this.$refs['divAdd'].showEdit(this.sids[0])
} else {
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' })
}
},
//
toInfo(scope) {
this.viewState = 4
this.$refs['divInfo'].showInfo(scope.sid)
},
toReport() {
if (this.sids.length === 1) {
if (this.multipleSelection[0].state === '未报备') {
this.viewState = 5
this.$refs['divRecord'].showAdd(this.sids[0])
} else {
this.$message({ showClose: true, type: 'error', message: '请选择状态为未报备的记录进行操作' })
}
} else {
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' })
}
},
// ID
doDel() {
if (this.sdies.length > 0) {
const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?'
this.$confirm(tip, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
deleteBySids({ sids: this.sdies }).then(resp => {
if (resp.success) {
loading.close()
this.$message({ type: 'success', message: resp.msg, showClose: true })
this.getListOrgAll()
} else {
loading.close()
}
}).catch(e => {
loading.close()
})
}).catch(() => {
})
} else {
this.$message({ showClose: true, message: '请至少选择一条记录进行操作', type: 'error' })
}
},
resetState() {
this.viewState = 1
},
doClose() {
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)
}
}
}
</script>
<style scoped>
.rel_css {
position: absolute;
right: 150px;
}
</style>

609
anrui-base/anrui-base-ui/src/views/dealer/distributormanagement/distributormanagementAdd.vue

@ -0,0 +1,609 @@
<template>
<div class="app-container">
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<el-button type="primary" size="small" @click="handleCreate()">保存</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
<el-form ref="dataForm" :model="temp" label-position="right" class="formadd" :rules="rules">
<div class="title">基本信息</div>
<el-row style="border-top: 1px solid #DFE6EC">
<el-col :span="4" class="tleftb">
<span><span style="color: red">*</span>所属经销商</span>
</el-col>
<el-col :span="8">
<el-form-item prop="pDistributorName">
<el-select v-model="temp.pDistributorName" style="width: 30%" placeholder="请选择" @change="pDistributorSidChange" clearable filterable>
<el-option v-for="item in pDistributorSid_list" :key="item.sid" :label="item.disName" :value="item.disName"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>是否投放商品展车</span>
</el-col>
<el-col :span="8">
<el-form-item>
<el-radio-group v-model="temp.isDelivery">
<el-radio label="是"></el-radio>
<el-radio label="否"></el-radio>
</el-radio-group>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span><span style="color: red">*</span>经销商名称</span>
</el-col>
<el-col :span="8">
<el-form-item prop="disName">
<el-input v-model="temp.disName" maxlength="125" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span><span style="color: red">*</span>统一社会信用代码</span>
</el-col>
<el-col :span="8">
<el-form-item prop="registNum">
<el-input v-model="temp.registNum" maxlength="125" placeholder="请填写统一社会信用代码" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>注册地址</span>
</el-col>
<el-col :span="20">
<el-form-item>
<el-input v-model="temp.registDetailAddress" maxlength="125" placeholder="请填写详细地址" style="width:63%" clearable/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>实际经营地址</span>
</el-col>
<el-col :span="20">
<el-form-item prop="">
<el-select v-model="temp.provinceCode" filterable placeholder="请选择省" class="filter-item" style="width: 12%" @change="getSheng02">
<el-option v-for="item in inputProvinceList02" :key="item.sid" :label="item.name" :value="item.districtCode"/>
</el-select>
<el-select v-model="temp.cityCode" filterable placeholder="请选择市" class="filter-item" style="width: 12%" @change="getShi02">
<el-option v-for="item in inputCityList02" :key="item.sid" :label="item.name" :value="item.districtCode"/>
</el-select>
<el-select v-model="temp.managementAddressCode" filterable placeholder="请选择县" class="filter-item" style="width: 12%" @change="getQu02">
<el-option v-for="item in inputCountyList02" :key="item.sid" :label="item.name" :value="item.districtCode"/>
</el-select>
<el-input v-model="temp.managementDetailAddress" maxlength="125" placeholder="请填写详细地址" style="width:63%" clearable/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>成立日期</span>
</el-col>
<el-col :span="4">
<el-form-item prop="setUpTime">
<el-date-picker class="addinputw" v-model="temp.setUpTime" type="date" value-format="yyyy-MM-dd" placeholder="选择日期" :picker-options="pickerOptions">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>开始合作日期</span>
</el-col>
<el-col :span="4">
<el-form-item prop="startCoopDate">
<el-date-picker class="addinputw" v-model="temp.startCoopDate" type="date" value-format="yyyy-MM-dd" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>是否担保</span>
</el-col>
<el-col :span="4">
<el-form-item prop="isGuarantee">
<el-radio-group v-model="temp.isGuarantee">
<el-radio label="是"></el-radio>
<el-radio label="否"></el-radio>
</el-radio-group>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span><span style="color: red">*</span>实际控制人</span>
</el-col>
<el-col :span="4">
<el-form-item prop="legalName">
<el-input v-model="temp.legalName" maxlength="125" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span><span style="color: red">*</span>身份证号码</span>
</el-col>
<el-col :span="4">
<el-form-item prop="legalIdCard">
<el-input v-model="temp.legalIdCard" maxlength="125" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span><span style="color: red">*</span>手机号码</span>
</el-col>
<el-col :span="4">
<el-form-item prop="legalMobile">
<el-input v-model="temp.legalMobile" maxlength="125" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>企业联系人</span>
</el-col>
<el-col :span="4">
<el-form-item prop="contract">
<el-input v-model="temp.contract" maxlength="125" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>手机号码</span>
</el-col>
<el-col :span="4">
<el-form-item prop="mobile">
<el-input v-model="temp.mobile" maxlength="125" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb"/>
<el-col :span="4"/>
</el-row>
<div class="title titleOne">
<div>人员列表</div>
<el-button type="primary" size="small" icon="el-icon-plus" class="btntopblueline" @click="addRenyuan()">新增
</el-button>
</div>
<el-table :key="tableKey" v-loading="listLoading" :data="temp.perList" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="操作" align="center" width="250px" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button size="mini" type="danger" @click="handleCheck(scope.$index)">删除</el-button>
</template>
</el-table-column>
<el-table-column label="姓名" align="center">
<template slot-scope="scope">
<el-input v-model="scope.row.name" maxlength="125" placeholder="" class="addinputw" clearable/>
</template>
</el-table-column>
<el-table-column label="身份" align="center">
<template slot-scope="scope">
<el-select v-model="scope.row.identityKey" class="addinputw" placeholder="请选择身份" @change="identityChange(scope.row,scope.row.identityKey)" clearable>
<el-option v-for="item in identity_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select>
</template>
</el-table-column>
<el-table-column label="手机号码" align="center">
<template slot-scope="scope" prop="mobile">
<el-input v-model="scope.row.mobile" maxlength="125" placeholder="" class="addinputw" clearable/>
</template>
</el-table-column>
<el-table-column label="备注" align="center">
<template slot-scope="scope">
<el-input v-model="scope.row.remarks" maxlength="125" placeholder="" class="addinputw" clearable/>
</template>
</el-table-column>
</el-table>
</el-form>
</div>
</div>
</template>
<script>
import { details, getOneLevelList, SaveList, Update, submit } from '@/api/jichuxinxi/baseaffiliatcompany'
import { getCity, getCounty, getProvince } from '@/api/portal/areaPicker' //
import { typeValues } from '@/api/jichuxinxi/dictcommons'
import { getOrgSidByPath, fetchBySid } from '@/api/jichuxinxi/dictcommons'
export default {
name: 'DistributorManagementAdd',
data() {
var checkSubmit = (rule, value, callback) => {
const Submit = /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/
if (!value) {
return callback(new Error('请填写实际控制人联系电话'))
} else if (!Submit.test(value)) {
return callback(new Error('请输入正确的手机号'))
} else {
callback()
}
}
return {
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now()
}
},
viewTitle: '',
FormLoading: false,
tableKey: 0,
listLoading: false,
index: 0,
pDistributorSid_list: [],
identity_list: [],
inputProvinceList02: [],
inputCityList02: [],
inputCountyList02: [],
temp: {
cityCode: '',
contract: '',
createOrg: '',
createOrgName: '',
disLevelKey: '',
disLevelValue: '',
disName: '',
dlysxkzList: [],
frsfzList: [],
isDelivery: '',
isDeliveryKey: '',
invoBank: '',
invoBankNum: '',
invoPhone: '',
isGuarantee: '',
isGuaranteeKey: '',
legalIdCard: '',
legalMobile: '',
legalName: '',
managementAddressCode: '',
managementDetailAddress: '',
managementDetailAddressCity: '',
managementDetailAddressCounty: '',
managementDetailAddressProvince: '',
mobile: '',
orgSidPath: '',
pDistributorName: '',
pDistributorSid: '',
pdisName: '',
perList: [],
provinceCode: '',
qtzlList: [],
registDetailAddress: '',
registNum: '',
setUpTime: '',
sid: '',
startCoopDate: '',
useOrg: '',
useOrgName: '',
userSid: '',
yyzzList: []
},
rules: {
pDistributorName: [{ required: true, message: '请选择所属经销商', trigger: 'change' }],
disName: [{ required: true, message: '请填写经销商名称', trigger: 'blur' }],
legalName: [{ required: true, message: '请填写实际控制人姓名', trigger: 'blur' }],
legalIdCard: [{ required: true, message: '请填写实际控制人身份证号码', trigger: 'blur' }],
legalMobile: [{ required: true, validator: checkSubmit, trigger: 'blur' }],
registNum: [{ required: true, message: '请填写统一社会信用代码', trigger: 'blur' }]
}
}
},
methods: {
init() {
this.setaDter()
this.huoquSheng02()
},
// --------------------------------
huoquSheng02() {
getProvince().then((res) => {
console.log('注册省:', res)
if (res.success) {
this.inputProvinceList02 = res.data
}
})
},
getSheng02(value) {
let bb = ''
this.inputProvinceList02.forEach((e) => {
if (e.districtCode === value) {
bb = {
name: e.name,
districtCode: e.districtCode,
sid: e.sid
}
}
})
// codeprovince
this.temp.managementDetailAddressProvince = bb.name
this.huoquShi02(bb.sid)
},
huoquShi02(sid1) {
var sid = {
sid: sid1
}
this.inputCityList02 = []
this.inputCountyList02 = []
getCity(sid).then((res) => {
if (res.success) {
this.inputCityList02 = res.data
console.log('市02', this.inputCityList02)
}
})
},
getShi02(value) {
let bb = ''
this.inputCityList02.forEach((e) => {
if (e.districtCode === value) {
bb = {
name: e.name,
districtCode: e.districtCode,
sid: e.sid
}
}
})
this.temp.managementDetailAddressCity = bb.name
this.huoquXian02(bb.sid)
},
huoquXian02(sid1) {
var sid = {
sid: sid1
}
getCounty(sid).then((res) => {
console.log('333县', res)
if (res.success) {
this.inputCountyList02 = res.data
}
})
},
getQu02(value) {
let bb = ''
this.inputCountyList02.forEach((e) => {
if (e.districtCode === value) {
bb = {
name: e.name,
districtCode: e.districtCode,
sid: e.sid
}
}
})
this.temp.managementDetailAddressCounty = bb.name
},
setaDter() {
typeValues({ type: 'identity' }).then((res) => {
if (res.success) {
this.identity_list = res.data
}
})
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
if (res.success) {
this.temp.createOrg = res.data
this.temp.useOrg = res.data
fetchBySid(res.data).then((resp) => {
if (resp.success) {
this.temp.createOrgName = resp.data.name
this.temp.useOrgName = resp.data.name
}
})
}
})
},
showAdd() {
this.viewTitle = '【新增】经销商'
this.init()
this.temp.orgSidPath = window.sessionStorage.getItem('defaultOrgPath')
this.temp.userSid = window.sessionStorage.getItem('userSid')
this.getLevelList('')
},
showEdit(sid) {
this.init()
this.viewTitle = '【编辑】经销商'
details(sid).then((response) => {
if (response.success) {
this.temp = response.data
this.getLevelList(sid)
if (this.temp.managementAddressCode !== '') {
getProvince().then((res) => {
if (res.success) {
this.inputProvinceList02 = res.data
let bb = ''
this.inputProvinceList02.forEach((e) => {
if (e.districtCode === this.temp.provinceCode) {
bb = {
name: e.name,
districtCode: e.districtCode,
sid: e.sid
}
}
})
var sid = {
sid: bb.sid
}
getCity(sid).then((res) => {
if (res.success) {
this.inputCityList02 = res.data
let cc = ''
this.inputCityList02.forEach((e) => {
if (e.districtCode === this.temp.cityCode) {
cc = {
name: e.name,
districtCode: e.districtCode,
sid: e.sid
}
}
})
var sid02 = {
sid: cc.sid
}
getCounty(sid02).then((res) => {
if (res.success) {
this.inputCountyList02 = res.data
}
})
}
})
}
})
}
}
})
},
getLevelList(sid) {
getOneLevelList({ sid: sid }).then((res) => {
if (res.success) {
this.pDistributorSid_list = res.data
}
})
},
//
identityChange(row, identityKey) {
const choosetItem = this.identity_list.filter((item) => item.dictKey === identityKey)
if (choosetItem.length > 0 && choosetItem !== null) {
row.identityValue = choosetItem[0].dictValue
} else {
row.identityValue = ''
}
},
//
pDistributorSidChange(val) {
const choosetItem = this.pDistributorSid_list.filter((item) => item.disName === val)
if (choosetItem.length > 0 && choosetItem !== null) {
this.temp.pDistributorSid = choosetItem[0].sid
} else {
this.temp.pDistributorSid = ''
}
},
//
addRenyuan() {
this.temp.perList.push({
linkType: '',
mobile: '',
name: '',
remarks: ''
})
},
//
handleCheck(index) {
this.temp.perList.splice(index, 1)
},
handleCreate() {
if (this.temp.pDistributorName === '') {
this.temp.pDistributorName = '无'
this.temp.pDistributorSid = '0'
}
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.FormLoading = true
if (this.temp.isGuarantee === '是') {
this.temp.isGuaranteeKey = '1'
} else if (this.temp.isGuarantee === '否') {
this.temp.isGuaranteeKey = '0'
}
if (this.temp.isDelivery === '是') {
this.temp.isDeliveryKey = '1'
} else if (this.temp.isDelivery === '否') {
this.temp.isDeliveryKey = '0'
}
if (this.temp.sid === '') {
SaveList(this.temp).then((response) => {
this.FormLoading = false
if (response.success) {
this.$message({ showClose: true, type: 'success', message: '保存成功' })
this.handleReturn('true')
} else {
this.$notify({
title: '提示',
message: '添加失败',
type: 'error',
duration: 2000
})
}
})
} else {
Update(this.temp).then((response) => {
this.FormLoading = false
if (response.success) {
this.$message({ showClose: true, type: 'success', message: '保存成功' })
this.handleReturn('true')
} else {
this.$notify({
title: '失败',
message: '修改失败',
type: 'error'
})
}
})
}
}
})
},
//
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.temp = {
cityCode: '',
contract: '',
createOrg: '',
createOrgName: '',
disLevelKey: '',
disLevelValue: '',
disName: '',
dlysxkzList: [],
frsfzList: [],
isDelivery: '',
isDeliveryKey: '',
invoBank: '',
invoBankNum: '',
invoPhone: '',
isGuarantee: '',
isGuaranteeKey: '',
legalIdCard: '',
legalMobile: '',
legalName: '',
managementAddressCode: '',
managementDetailAddress: '',
managementDetailAddressCity: '',
managementDetailAddressCounty: '',
managementDetailAddressProvince: '',
mobile: '',
orgSidPath: '',
pDistributorName: '',
pDistributorSid: '',
pdisName: '',
perList: [],
provinceCode: '',
qtzlList: [],
registDetailAddress: '',
registNum: '',
setUpTime: '',
sid: '',
startCoopDate: '',
useOrg: '',
useOrgName: '',
userSid: '',
yyzzList: []
}
this.$refs['dataForm'].resetFields()
this.$emit('doback')
}
}
}
</script>
<style scoped>
.headline {
height: 40px;
padding: 10px;
font-weight: bold;
display: flex;
background-color: #ffffff;
justify-content: space-between;
border: 1px solid #DFE6EC;
align-items: center;
}
.titleOne {
padding: 7px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.addinputw {
width: 90% !important;
}
</style>

274
anrui-base/anrui-base-ui/src/views/dealer/distributormanagement/distributormanagementInfo.vue

@ -0,0 +1,274 @@
<template>
<div class="app-container">
<div>
<div class="tab-header webtop">
<div>经销商详情</div>
<div>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
<el-form ref="dataForm" :model="temp" class="formaddcopy02">
<div class="title">基本信息</div>
<el-row>
<el-col :span="16">
<div class="span-sty">所属经销商</div>
<el-form-item><span class="addinputInfo">{{ temp.pDistributorName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">是否投放商品展车</div>
<el-form-item><span class="addinputInfo">{{ temp.isDelivery }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="16">
<div class="span-sty">经销商名称</div>
<el-form-item><span class="addinputInfo">{{ temp.disName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">统一社会信用代码</div>
<el-form-item><span class="addinputInfo">{{ temp.registNum }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">注册地址</div>
<el-form-item><span class="addinputInfo">{{ temp.registDetailAddress }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">实际经营地址</div>
<el-form-item><span class="addinputInfo">{{ temp.managementDetailAddressProvince + temp.managementDetailAddressCity + temp.managementDetailAddressCounty + temp.managementDetailAddress }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">成立日期</div>
<el-form-item><span class="addinputInfo">{{ temp.setUpTime }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">开始合作时间</div>
<el-form-item><span class="addinputInfo">{{ temp.startCoopDate }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">是否担保</div>
<el-form-item><span class="addinputInfo">{{ temp.isGuarantee }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">实际控制人</div>
<el-form-item><span class="addinputInfo">{{ temp.legalName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">身份证号码</div>
<el-form-item><span class="addinputInfo">{{ temp.legalIdCard }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">手机号码</div>
<el-form-item><span class="addinputInfo">{{ temp.legalMobile }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">企业联系人</div>
<el-form-item><span class="addinputInfo">{{ temp.contract }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">手机号码</div>
<el-form-item><span class="addinputInfo">{{ temp.mobile }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">有效期至</div>
<el-form-item><span class="addinputInfo">{{ temp.effectiveDate }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">开票信息</div>
<el-row>
<el-col :span="16">
<div class="span-sty">单位名称</div>
<el-form-item><span class="addinputInfo">{{ temp.disName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">税号</div>
<el-form-item><span class="addinputInfo">{{ temp.registNum }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="16">
<div class="span-sty">地址</div>
<el-form-item><span class="addinputInfo">{{ temp.registDetailAddress }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">联系电话</div>
<el-form-item><span class="addinputInfo">{{ temp.invoPhone }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="16">
<div class="span-sty">开户行</div>
<el-form-item><span class="addinputInfo">{{ temp.invoBank }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">银行账号</div>
<el-form-item><span class="addinputInfo">{{ temp.invoBankNum }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">人员列表</div>
<el-table :key="tableKey" v-loading="listLoading" :data="temp.perList" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="姓名" align="center">
<template slot-scope="scope">
<span>{{ scope.row.name }}</span>
</template>
</el-table-column>
<el-table-column label="身份" align="center">
<template slot-scope="scope">
<span>{{ scope.row.identityValue }}</span>
</template>
</el-table-column>
<el-table-column label="手机号码" align="center">
<template slot-scope="scope">
<span>{{ scope.row.mobile }}</span>
</template>
</el-table-column>
<el-table-column label="备注" align="center">
<template slot-scope="scope">
<span>{{ scope.row.remarks }}</span>
</template>
</el-table-column>
</el-table>
<div class="title">附件清单</div>
<el-row>
<el-col :span="24">
<div class="span-sty">合作协议</div>
<el-form-item><el-image style="width: 150px; height: 150px" class="addinputInfo" v-for="(item, index) in temp.hzxyList" :key="index" :src="item" :preview-src-list="temp.hzxyList"/></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">营业执照</div>
<el-form-item><el-image style="width: 150px; height: 150px" class="addinputInfo" v-for="(item, index) in temp.yyzzList" :key="index" :src="item" :preview-src-list="temp.yyzzList"/></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">道路运输许可证</div>
<el-form-item><el-image style="width: 150px; height: 150px" class="addinputInfo" v-for="(item, index) in temp.dlysxkzList" :key="index" :src="item" :preview-src-list="temp.dlysxkzList"/></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">法人身份证</div>
<el-form-item><el-image style="width: 150px; height: 150px" class="addinputInfo" v-for="(item, index) in temp.frsfzList" :key="index" :src="item" :preview-src-list="temp.frsfzList"/></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">其他资料</div>
<el-form-item><el-image style="width: 150px; height: 150px" class="addinputInfo" v-for="(item, index) in temp.qtzlList" :key="index" :src="item" :preview-src-list="temp.qtzlList"/></el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
<el-dialog :visible="dialogVisible" append-to-body :before-close="handColse">
<img width="100%" :src="dialogImageUrl" alt=""/>
</el-dialog>
</div>
</template>
<script>
import { details } from '@/api/jichuxinxi/baseaffiliatcompany'
export default {
name: 'GuakaogongsiInfo',
data() {
return {
dialogVisible: false,
dialogImageUrl: '',
tableKey: 0,
businessLicenseKey: 1,
roadTransportKey: 2,
corporateIdentityCardKey: 3,
otherDetailsKey: 4,
index: 0,
FormLoading: false,
listLoading: false,
temp: {
cityCode: '',
contract: '',
createOrg: '',
createOrgName: '',
disLevelKey: '',
disLevelValue: '',
disName: '',
dlysxkzList: [],
frsfzList: [],
invoBank: '',
invoBankNum: '',
invoPhone: '',
isGuarantee: '',
legalIdCard: '',
legalMobile: '',
legalName: '',
managementAddressCode: '',
managementDetailAddress: '',
managementDetailAddressCity: '',
managementDetailAddressCounty: '',
managementDetailAddressProvince: '',
mobile: '',
orgSidPath: '',
pDistributorName: '',
pDistributorSid: '',
pdisName: '',
perList: [],
provinceCode: '',
qtzlList: [],
registDetailAddress: '',
registNum: '',
setUpTime: '',
sid: '',
startCoopDate: '',
useOrg: '',
useOrgName: '',
userSid: '',
yyzzList: []
}, //
rules: {}
}
},
methods: {
handLook(row) {
console.log('查看图片', row)
this.dialogVisible = true
this.dialogImageUrl = row.filePath
console.log('查看图片', this.dialogImageUrl)
},
handColse() {
this.dialogVisible = false
},
//
handleReturn() {
this.temp = {}
this.$emit('doback')
},
showInfo(sids) {
details(sids).then((response) => {
if (response.success) {
this.temp = response.data
}
})
}
}
}
</script>
<style scoped>
.span-sty {
width: 130px !important;
}
.addinputInfo {
margin-left: 120px !important;
}
</style>

469
anrui-base/anrui-base-ui/src/views/workFlow/jingxiaoshangFlow/jingxiaoshangDaiBan.vue

@ -10,181 +10,150 @@
</div>
</div>
<div class="">
<el-form ref="dataForm" :model="temp" label-position="right" class="formadd" :rules="rules">
<div class="title">基本信息</div>
<el-form ref="dataForm" :model="temp" class="formaddcopy02" :rules="rules">
<div class="title">经销商备案申请</div>
<el-row style="border-top: 1px solid #DFE6EC">
<el-col :span="4" class="tleftb">
<span>所属经销商</span>
<el-col :span="8">
<div class="span-sty">申请部门</div>
<el-form-item><span class="addinputInfo">{{ temp.dept }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">申请人</div>
<el-form-item><span class="addinputInfo">{{ temp.applyName }}</span></el-form-item>
</el-col>
<el-col :span="20">
<el-form-item>
<span>{{ temp.pDistributorName }}</span>
</el-form-item>
<el-col :span="8">
<div class="span-sty">申请日期</div>
<el-form-item><span class="addinputInfo">{{ temp.applyDate }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>经销商名称</span>
</el-col>
<el-col :span="8">
<el-form-item>
<span>{{ temp.disName }}</span>
</el-form-item>
<div class="span-sty">销售部门</div>
<el-form-item><span class="addinputInfo">{{ temp.salesDept }}</span></el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>统一社会信用代码</span>
<el-col :span="8">
<div class="span-sty">销售专员</div>
<el-form-item><span class="addinputInfo">{{ temp.salesman }}</span></el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<span>{{ temp.registNum }}</span>
</el-form-item>
<div class="span-sty">销售部经理</div>
<el-form-item><span class="addinputInfo">{{ temp.manage }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>注册地址</span>
<el-col :span="8">
<div class="span-sty">有效期至</div>
<el-form-item><span class="addinputInfo">{{ temp.effectiveDate }}</span></el-form-item>
</el-col>
<el-col :span="20">
<el-form-item>
<span>{{ temp.registDetailAddress }}</span>
</el-form-item>
<el-col :span="8">
<div class="span-sty">备注</div>
<el-form-item><span class="addinputInfo">{{ temp.remarks }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">是否同意</div>
<el-form-item><span class="addinputInfo">{{ temp.agree == '1' ? '是' : temp.agree == '0' ? '否' : '' }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">基本信息</div>
<el-row>
<el-col :span="4" class="tleftb">
<span>实际经营地址</span>
<el-col :span="16">
<div class="span-sty">所属经销商</div>
<el-form-item><span class="addinputInfo">{{ temp.pDistributorName }}</span></el-form-item>
</el-col>
<el-col :span="20">
<el-form-item>
<span>{{ temp.managementDetailAddressProvince + temp.managementDetailAddressCity + temp.managementDetailAddressCounty + temp.managementDetailAddress }}</span>
</el-form-item>
<el-col :span="8">
<div class="span-sty">是否投放商品展车</div>
<el-form-item><span class="addinputInfo">{{ temp.isDelivery }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>成立日期</span>
</el-col>
<el-col :span="4">
<el-form-item>
<span>{{ temp.setUpTime }}</span>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>开始合作时间</span>
</el-col>
<el-col :span="4">
<el-form-item>
<span>{{ temp.startCoopDate }}</span>
</el-form-item>
<el-col :span="16">
<div class="span-sty">经销商名称</div>
<el-form-item><span class="addinputInfo">{{ temp.disName }}</span></el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>是否担保</span>
</el-col>
<el-col :span="4">
<el-form-item>
<span>{{ temp.isGuarantee }}</span>
</el-form-item>
<el-col :span="8">
<div class="span-sty">统一社会信用代码</div>
<el-form-item><span class="addinputInfo">{{ temp.registNum }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>实际控制人</span>
</el-col>
<el-col :span="4">
<el-form-item>
<span>{{ temp.legalName }}</span>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>身份证号码</span>
</el-col>
<el-col :span="4">
<el-form-item>
<span>{{ temp.legalIdCard }}</span>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>手机号码</span>
</el-col>
<el-col :span="4">
<el-form-item>
<span>{{ temp.legalMobile }}</span>
</el-form-item>
<el-col :span="24">
<div class="span-sty">注册地址</div>
<el-form-item><span class="addinputInfo">{{ temp.registDetailAddress }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>企业联系人</span>
<el-col :span="24">
<div class="span-sty">实际经营地址</div>
<el-form-item><span class="addinputInfo">{{ temp.managementDetailAddressProvince + temp.managementDetailAddressCity + temp.managementDetailAddressCounty + temp.managementDetailAddress }}</span></el-form-item>
</el-col>
<el-col :span="4">
<el-form-item>
<span>{{ temp.contract }}</span>
</el-form-item>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">成立日期</div>
<el-form-item><span class="addinputInfo">{{ temp.setUpTime }}</span></el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>手机号码</span>
<el-col :span="8">
<div class="span-sty">开始合作时间</div>
<el-form-item><span class="addinputInfo">{{ temp.startCoopDate }}</span></el-form-item>
</el-col>
<el-col :span="4">
<el-form-item>
<span>{{ temp.mobile }}</span>
</el-form-item>
<el-col :span="8">
<div class="span-sty">是否担保</div>
<el-form-item><span class="addinputInfo">{{ temp.isGuarantee }}</span></el-form-item>
</el-col>
<el-col :span="4" class="tleftb"/>
<el-col :span="4"/>
</el-row>
<div class="title">开票信息</div>
<el-row>
<el-col :span="4" class="tleftb">
<span>单位名称</span>
</el-col>
<el-col :span="8">
<el-form-item>
{{ temp.disName }}
</el-form-item>
<div class="span-sty">实际控制人</div>
<el-form-item><span class="addinputInfo">{{ temp.legalName }}</span></el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>税号</span>
<el-col :span="8">
<div class="span-sty">身份证号码</div>
<el-form-item><span class="addinputInfo">{{ temp.legalIdCard }}</span></el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<span>{{ temp.registNum }}</span>
</el-form-item>
<div class="span-sty">手机号码</div>
<el-form-item><span class="addinputInfo">{{ temp.legalMobile }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>地址</span>
</el-col>
<el-col :span="8">
<el-form-item>
<span>{{ temp.registDetailAddress }}</span>
</el-form-item>
<div class="span-sty">企业联系人</div>
<el-form-item><span class="addinputInfo">{{ temp.contract }}</span></el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>联系电话</span>
<el-col :span="16">
<div class="span-sty">手机号码</div>
<el-form-item><span class="addinputInfo">{{ temp.mobile }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">开票信息</div>
<el-row>
<el-col :span="16">
<div class="span-sty">单位名称</div>
<el-form-item><span class="addinputInfo">{{ temp.disName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<span>{{ temp.invoPhone }}</span>
</el-form-item>
<div class="span-sty">税号</div>
<el-form-item><span class="addinputInfo">{{ temp.registNum }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>开户行</span>
<el-col :span="16">
<div class="span-sty">地址</div>
<el-form-item><span class="addinputInfo">{{ temp.registDetailAddress }}</span></el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<span>{{ temp.invoBank }}</span>
</el-form-item>
<div class="span-sty">联系电话</div>
<el-form-item><span class="addinputInfo">{{ temp.invoPhone }}</span></el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>银行账号</span>
</el-row>
<el-row>
<el-col :span="16">
<div class="span-sty">开户行</div>
<el-form-item><span class="addinputInfo">{{ temp.invoBank }}</span></el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<span>{{ temp.invoBankNum }}</span>
</el-form-item>
<div class="span-sty">银行账号</div>
<el-form-item><span class="addinputInfo">{{ temp.invoBankNum }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">人员列表</div>
@ -212,112 +181,39 @@
</el-table-column>
</el-table>
<div class="title">附件清单</div>
<div class="headline">
<div style="margin-left: 5px;font-weight: bold">营业执照</div>
</div>
<el-table :key="businessLicenseKey" :data="temp.yyzzList" border style="width: 100%">
<el-table-column label="文件名" align="center">
<template slot-scope="scope">
<span class="bluezi" @click="handLook(scope.row)">{{ scope.row.fileName }}</span>
</template>
</el-table-column>
<el-table-column label="文件类型" align="center">
<template slot-scope="scope">
<span>{{ scope.row.fileType }}</span>
</template>
</el-table-column>
<el-table-column label="上传人" align="center">
<template slot-scope="scope">
<span>{{ scope.row.name }}</span>
</template>
</el-table-column>
<el-table-column label="上传时间" align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime }}</span>
</template>
</el-table-column>
</el-table>
<div class="headline">
<div style="margin-left: 5px;font-weight: bold">道路运输许可证</div>
</div>
<el-table :key="roadTransportKey" :data="temp.dlysxkzList" border style="width: 100%">
<el-table-column label="文件名" align="center">
<template slot-scope="scope">
<span class="bluezi" @click="handLook(scope.row)">{{ scope.row.fileName }}</span>
</template>
</el-table-column>
<el-table-column label="文件类型" align="center">
<template slot-scope="scope">
<span>{{ scope.row.fileType }}</span>
</template>
</el-table-column>
<el-table-column label="上传人" align="center">
<template slot-scope="scope">
<span>{{ scope.row.name }}</span>
</template>
</el-table-column>
<el-table-column label="上传时间" align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime }}</span>
</template>
</el-table-column>
</el-table>
<div class="headline">
<div style="margin-left: 5px;font-weight: bold">法人身份证</div>
</div>
<el-table :key="corporateIdentityCardKey" :data="temp.frsfzList" border style="width: 100%">
<el-table-column label="文件名" align="center">
<template slot-scope="scope">
<span class="bluezi" @click="handLook(scope.row)">{{ scope.row.fileName }}</span>
</template>
</el-table-column>
<el-table-column label="文件类型" align="center">
<template slot-scope="scope">
<span>{{ scope.row.fileType }}</span>
</template>
</el-table-column>
<el-table-column label="上传人" align="center">
<template slot-scope="scope">
<span>{{ scope.row.name }}</span>
</template>
</el-table-column>
<el-table-column label="上传时间" align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime }}</span>
</template>
</el-table-column>
</el-table>
<div class="headline">
<div style="margin-left: 5px;font-weight: bold">其他资料</div>
</div>
<el-table :key="otherDetailsKey" :data="temp.qtzlList" border style="width: 100%">
<el-table-column label="文件名" align="center">
<template slot-scope="scope">
<span class="bluezi" @click="handLook(scope.row)">{{ scope.row.fileName }}</span>
</template>
</el-table-column>
<el-table-column label="文件类型" align="center">
<template slot-scope="scope">
<span>{{ scope.row.fileType }}</span>
</template>
</el-table-column>
<el-table-column label="上传人" align="center">
<template slot-scope="scope">
<span>{{ scope.row.name }}</span>
</template>
</el-table-column>
<el-table-column label="上传时间" align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime }}</span>
</template>
</el-table-column>
</el-table>
<el-row>
<el-col :span="24">
<div class="span-sty">合作协议</div>
<el-form-item><el-image style="width: 150px; height: 150px" class="addinputInfo" v-for="(item, index) in temp.hzxyList" :key="index" :src="item" :preview-src-list="temp.hzxyList"/></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">营业执照</div>
<el-form-item><el-image style="width: 150px; height: 150px" class="addinputInfo" v-for="(item, index) in temp.yyzzList" :key="index" :src="item" :preview-src-list="temp.yyzzList"/></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">道路运输许可证</div>
<el-form-item><el-image style="width: 150px; height: 150px" class="addinputInfo" v-for="(item, index) in temp.dlysxkzList" :key="index" :src="item" :preview-src-list="temp.dlysxkzList"/></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">法人身份证</div>
<el-form-item><el-image style="width: 150px; height: 150px" class="addinputInfo" v-for="(item, index) in temp.frsfzList" :key="index" :src="item" :preview-src-list="temp.frsfzList"/></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">其他资料</div>
<el-form-item><el-image style="width: 150px; height: 150px" class="addinputInfo" v-for="(item, index) in temp.qtzlList" :key="index" :src="item" :preview-src-list="temp.qtzlList"/></el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
<el-dialog :visible="dialogVisible" append-to-body :before-close="handColse">
<img width="100%" :src="dialogImageUrl" alt=""/>
</el-dialog>
<!-- 选择待办人 的弹出框-->
<el-dialog title="填写审批意见" :visible.sync="nodeDialogVisible" width="80%">
<el-form class="formadd" >
@ -347,61 +243,72 @@
</template>
<script>
import { details, complete, breakProcess, reject, getPreviousNodesForReject, getNextNodesForSubmit } from '@/api/jichuxinxi/baseaffiliatcompany'
import req from '@/api/dealer/dealer'
export default {
name: 'JingXiaoShangDaiBan',
data() {
return {
dialogVisible: false,
dialogImageUrl: '',
tableKey: 0,
businessLicenseKey: 1,
roadTransportKey: 2,
corporateIdentityCardKey: 3,
otherDetailsKey: 4,
index: 0,
FormLoading: false,
listLoading: false,
temp: {
cityCode: '',
contract: '',
createOrg: '',
createOrgName: '',
disLevelKey: '',
disLevelValue: '',
userSid: '',
orgSidPath: '',
sid: '',
distributorSid: '',
disName: '',
dlysxkzList: [],
frsfzList: [],
invoBank: '',
invoBankNum: '',
invoPhone: '',
isGuarantee: '',
legalIdCard: '',
legalMobile: '',
legalName: '',
registNum: '',
setUpTime: '',
registDetailAddress: '',
provinceCode: '',
cityCode: '',
managementAddressCode: '',
managementDetailAddress: '',
managementDetailAddressProvince: '',
managementDetailAddressCity: '',
managementDetailAddressCounty: '',
managementDetailAddressProvince: '',
managementDetailAddress: '',
contract: '',
mobile: '',
orgSidPath: '',
pDistributorName: '',
pDistributorSid: '',
pdisName: '',
perList: [],
provinceCode: '',
qtzlList: [],
registDetailAddress: '',
registNum: '',
setUpTime: '',
sid: '',
legalName: '',
legalIdCard: '',
legalMobile: '',
isGuarantee: '',
isGuaranteeKey: '',
startCoopDate: '',
useOrg: '',
useOrgName: '',
userSid: '',
yyzzList: []
invoPhone: '',
invoBank: '',
invoBankNum: '',
disLevelKey: '',
disLevelValue: '',
perList: [],
yyzzList: [],
dlysxkzList: [],
frsfzList: [],
qtzlList: [],
hzxyList: [],
isDelivery: '',
isDeliveryKey: '',
effectiveDate: '',
agree: '',
applyName: '',
salesmanSid: '',
salesman: '',
applyDate: '',
dept: '',
deptSid: '',
salesDept: '',
salesDeptSid: '',
manage: '',
manageSid: '',
remarks: '',
taskId: '',
instanceId: '',
pdisName: '',
pDistributorSid: '',
pDistributorName: ''
}, //
rules: {},
operation: '', //
@ -457,17 +364,8 @@ export default {
}, '*')
},
methods: {
handLook(row) {
console.log('查看图片', row)
this.dialogVisible = true
this.dialogImageUrl = row.filePath
console.log('查看图片', this.dialogImageUrl)
},
handColse() {
this.dialogVisible = false
},
showInfo(sids) {
details(sids).then((response) => {
showInfo(sid) {
req.detail(sid).then((response) => {
if (response.success) {
this.temp = response.data
}
@ -478,7 +376,7 @@ export default {
this.operation = val
this.currentLink = true
this.dialogList.comment = '同意'
getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey, businessSid: this.linkByParameter.businessSid }).then((resp) => {
req.getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey, businessSid: this.linkByParameter.businessSid }).then((resp) => {
if (resp.success) {
var arr = resp.data
this.nextNode = arr[0]
@ -492,7 +390,7 @@ export default {
this.operation = val
this.currentLink = true
this.dialogList.comment = ''
getPreviousNodesForReject({ taskDefKey: this.current.taskDefKey, businessSid: this.linkByParameter.businessSid }).then((resp) => {
req.getPreviousNodesForReject({ taskDefKey: this.current.taskDefKey, businessSid: this.linkByParameter.businessSid }).then((resp) => {
if (resp.success) {
var arr = resp.data
this.nextNode = arr[0]
@ -528,7 +426,7 @@ export default {
/** 同意任务 */
handleAgree() {
this.linkByParameter.comment = this.dialogList.comment
complete(this.linkByParameter).then((response) => {
req.complete(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
@ -551,7 +449,7 @@ export default {
/** 驳回任务 */
handleReject() {
this.linkByParameter.comment = this.dialogList.comment
reject(this.linkByParameter).then((response) => {
req.reject(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
@ -574,7 +472,7 @@ export default {
/** 终止任务 */
handleStop() {
this.linkByParameter.comment = this.dialogList.comment
breakProcess(this.linkByParameter).then((response) => {
req.breakProcess(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
@ -598,12 +496,11 @@ export default {
}
</script>
<style scoped>
.headline{
height: 40px;
padding: 10px;
font-weight: bold;
background-color: #ffffff;
border: 1px solid #DFE6EC;
.span-sty {
width: 130px !important;
}
.addinputInfo {
margin-left: 120px !important;
}
.rowClass{
border-top: 1px solid #E0E3EB;

1129
anrui-base/anrui-base-ui/src/views/workFlow/jingxiaoshangFlow/jingxiaoshangEdit.vue

File diff suppressed because it is too large

463
anrui-base/anrui-base-ui/src/views/workFlow/jingxiaoshangFlow/jingxiaoshangYiBan.vue

@ -2,187 +2,156 @@
<div class="app-container">
<div>
<div class="tab-header webtop">
<div>经销商详情</div>
<div>经销商备案详情</div>
<div>
<el-button type="danger" size="small" @click="openRevoke()">撤回</el-button>
</div>
</div>
<div class="">
<el-form ref="dataForm" :model="temp" label-position="right" class="formadd" :rules="rules">
<div class="title">基本信息</div>
<el-form ref="dataForm" :model="temp" class="formaddcopy02" :rules="rules">
<div class="title">经销商备案申请</div>
<el-row style="border-top: 1px solid #DFE6EC">
<el-col :span="4" class="tleftb">
<span>所属经销商</span>
<el-col :span="8">
<div class="span-sty">申请部门</div>
<el-form-item><span class="addinputInfo">{{ temp.dept }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">申请人</div>
<el-form-item><span class="addinputInfo">{{ temp.applyName }}</span></el-form-item>
</el-col>
<el-col :span="20">
<el-form-item>
<span>{{ temp.pDistributorName }}</span>
</el-form-item>
<el-col :span="8">
<div class="span-sty">申请日期</div>
<el-form-item><span class="addinputInfo">{{ temp.applyDate }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>经销商名称</span>
</el-col>
<el-col :span="8">
<el-form-item>
<span>{{ temp.disName }}</span>
</el-form-item>
<div class="span-sty">销售部门</div>
<el-form-item><span class="addinputInfo">{{ temp.salesDept }}</span></el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>统一社会信用代码</span>
<el-col :span="8">
<div class="span-sty">销售专员</div>
<el-form-item><span class="addinputInfo">{{ temp.salesman }}</span></el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<span>{{ temp.registNum }}</span>
</el-form-item>
<div class="span-sty">销售部经理</div>
<el-form-item><span class="addinputInfo">{{ temp.manage }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>注册地址</span>
<el-col :span="8">
<div class="span-sty">有效期至</div>
<el-form-item><span class="addinputInfo">{{ temp.effectiveDate }}</span></el-form-item>
</el-col>
<el-col :span="20">
<el-form-item>
<span>{{ temp.registDetailAddress }}</span>
</el-form-item>
<el-col :span="8">
<div class="span-sty">备注</div>
<el-form-item><span class="addinputInfo">{{ temp.remarks }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">是否同意</div>
<el-form-item><span class="addinputInfo">{{ temp.agree == '1' ? '是' : temp.agree == '0' ? '否' : '' }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">基本信息</div>
<el-row>
<el-col :span="4" class="tleftb">
<span>实际经营地址</span>
<el-col :span="16">
<div class="span-sty">所属经销商</div>
<el-form-item><span class="addinputInfo">{{ temp.pDistributorName }}</span></el-form-item>
</el-col>
<el-col :span="20">
<el-form-item>
<span>{{ temp.managementDetailAddressProvince + temp.managementDetailAddressCity + temp.managementDetailAddressCounty + temp.managementDetailAddress }}</span>
</el-form-item>
<el-col :span="8">
<div class="span-sty">是否投放商品展车</div>
<el-form-item><span class="addinputInfo">{{ temp.isDelivery }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>成立日期</span>
</el-col>
<el-col :span="4">
<el-form-item>
<span>{{ temp.setUpTime }}</span>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>开始合作时间</span>
</el-col>
<el-col :span="4">
<el-form-item>
<span>{{ temp.startCoopDate }}</span>
</el-form-item>
<el-col :span="16">
<div class="span-sty">经销商名称</div>
<el-form-item><span class="addinputInfo">{{ temp.disName }}</span></el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>是否担保</span>
</el-col>
<el-col :span="4">
<el-form-item>
<span>{{ temp.isGuarantee }}</span>
</el-form-item>
<el-col :span="8">
<div class="span-sty">统一社会信用代码</div>
<el-form-item><span class="addinputInfo">{{ temp.registNum }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>实际控制人</span>
</el-col>
<el-col :span="4">
<el-form-item>
<span>{{ temp.legalName }}</span>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>身份证号码</span>
</el-col>
<el-col :span="4">
<el-form-item>
<span>{{ temp.legalIdCard }}</span>
</el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>手机号码</span>
</el-col>
<el-col :span="4">
<el-form-item>
<span>{{ temp.legalMobile }}</span>
</el-form-item>
<el-col :span="24">
<div class="span-sty">注册地址</div>
<el-form-item><span class="addinputInfo">{{ temp.registDetailAddress }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>企业联系人</span>
<el-col :span="24">
<div class="span-sty">实际经营地址</div>
<el-form-item><span class="addinputInfo">{{ temp.managementDetailAddressProvince + temp.managementDetailAddressCity + temp.managementDetailAddressCounty + temp.managementDetailAddress }}</span></el-form-item>
</el-col>
<el-col :span="4">
<el-form-item>
<span>{{ temp.contract }}</span>
</el-form-item>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">成立日期</div>
<el-form-item><span class="addinputInfo">{{ temp.setUpTime }}</span></el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>手机号码</span>
<el-col :span="8">
<div class="span-sty">开始合作时间</div>
<el-form-item><span class="addinputInfo">{{ temp.startCoopDate }}</span></el-form-item>
</el-col>
<el-col :span="4">
<el-form-item>
<span>{{ temp.mobile }}</span>
</el-form-item>
<el-col :span="8">
<div class="span-sty">是否担保</div>
<el-form-item><span class="addinputInfo">{{ temp.isGuarantee }}</span></el-form-item>
</el-col>
<el-col :span="4" class="tleftb"/>
<el-col :span="4"/>
</el-row>
<div class="title">开票信息</div>
<el-row>
<el-col :span="4" class="tleftb">
<span>单位名称</span>
</el-col>
<el-col :span="8">
<el-form-item>
{{ temp.disName }}
</el-form-item>
<div class="span-sty">实际控制人</div>
<el-form-item><span class="addinputInfo">{{ temp.legalName }}</span></el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>税号</span>
<el-col :span="8">
<div class="span-sty">身份证号码</div>
<el-form-item><span class="addinputInfo">{{ temp.legalIdCard }}</span></el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<span>{{ temp.registNum }}</span>
</el-form-item>
<div class="span-sty">手机号码</div>
<el-form-item><span class="addinputInfo">{{ temp.legalMobile }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>地址</span>
</el-col>
<el-col :span="8">
<el-form-item>
<span>{{ temp.registDetailAddress }}</span>
</el-form-item>
<div class="span-sty">企业联系人</div>
<el-form-item><span class="addinputInfo">{{ temp.contract }}</span></el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>联系电话</span>
<el-col :span="16">
<div class="span-sty">手机号码</div>
<el-form-item><span class="addinputInfo">{{ temp.mobile }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">开票信息</div>
<el-row>
<el-col :span="16">
<div class="span-sty">单位名称</div>
<el-form-item><span class="addinputInfo">{{ temp.disName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<span>{{ temp.invoPhone }}</span>
</el-form-item>
<div class="span-sty">税号</div>
<el-form-item><span class="addinputInfo">{{ temp.registNum }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>开户行</span>
<el-col :span="16">
<div class="span-sty">地址</div>
<el-form-item><span class="addinputInfo">{{ temp.registDetailAddress }}</span></el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<span>{{ temp.invoBank }}</span>
</el-form-item>
<div class="span-sty">联系电话</div>
<el-form-item><span class="addinputInfo">{{ temp.invoPhone }}</span></el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>银行账号</span>
</el-row>
<el-row>
<el-col :span="16">
<div class="span-sty">开户行</div>
<el-form-item><span class="addinputInfo">{{ temp.invoBank }}</span></el-form-item>
</el-col>
<el-col :span="8">
<el-form-item>
<span>{{ temp.invoBankNum }}</span>
</el-form-item>
<div class="span-sty">银行账号</div>
<el-form-item><span class="addinputInfo">{{ temp.invoBankNum }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">人员列表</div>
@ -210,171 +179,109 @@
</el-table-column>
</el-table>
<div class="title">附件清单</div>
<div class="headline">
<div style="margin-left: 5px;font-weight: bold">营业执照</div>
</div>
<el-table :key="businessLicenseKey" :data="temp.yyzzList" border style="width: 100%">
<el-table-column label="文件名" align="center">
<template slot-scope="scope">
<span class="bluezi" @click="handLook(scope.row)">{{ scope.row.fileName }}</span>
</template>
</el-table-column>
<el-table-column label="文件类型" align="center">
<template slot-scope="scope">
<span>{{ scope.row.fileType }}</span>
</template>
</el-table-column>
<el-table-column label="上传人" align="center">
<template slot-scope="scope">
<span>{{ scope.row.name }}</span>
</template>
</el-table-column>
<el-table-column label="上传时间" align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime }}</span>
</template>
</el-table-column>
</el-table>
<div class="headline">
<div style="margin-left: 5px;font-weight: bold">道路运输许可证</div>
</div>
<el-table :key="roadTransportKey" :data="temp.dlysxkzList" border style="width: 100%">
<el-table-column label="文件名" align="center">
<template slot-scope="scope">
<span class="bluezi" @click="handLook(scope.row)">{{ scope.row.fileName }}</span>
</template>
</el-table-column>
<el-table-column label="文件类型" align="center">
<template slot-scope="scope">
<span>{{ scope.row.fileType }}</span>
</template>
</el-table-column>
<el-table-column label="上传人" align="center">
<template slot-scope="scope">
<span>{{ scope.row.name }}</span>
</template>
</el-table-column>
<el-table-column label="上传时间" align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime }}</span>
</template>
</el-table-column>
</el-table>
<div class="headline">
<div style="margin-left: 5px;font-weight: bold">法人身份证</div>
</div>
<el-table :key="corporateIdentityCardKey" :data="temp.frsfzList" border style="width: 100%">
<el-table-column label="文件名" align="center">
<template slot-scope="scope">
<span class="bluezi" @click="handLook(scope.row)">{{ scope.row.fileName }}</span>
</template>
</el-table-column>
<el-table-column label="文件类型" align="center">
<template slot-scope="scope">
<span>{{ scope.row.fileType }}</span>
</template>
</el-table-column>
<el-table-column label="上传人" align="center">
<template slot-scope="scope">
<span>{{ scope.row.name }}</span>
</template>
</el-table-column>
<el-table-column label="上传时间" align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime }}</span>
</template>
</el-table-column>
</el-table>
<div class="headline">
<div style="margin-left: 5px;font-weight: bold">其他资料</div>
</div>
<el-table :key="otherDetailsKey" :data="temp.qtzlList" border style="width: 100%">
<el-table-column label="文件名" align="center">
<template slot-scope="scope">
<span class="bluezi" @click="handLook(scope.row)">{{ scope.row.fileName }}</span>
</template>
</el-table-column>
<el-table-column label="文件类型" align="center">
<template slot-scope="scope">
<span>{{ scope.row.fileType }}</span>
</template>
</el-table-column>
<el-table-column label="上传人" align="center">
<template slot-scope="scope">
<span>{{ scope.row.name }}</span>
</template>
</el-table-column>
<el-table-column label="上传时间" align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime }}</span>
</template>
</el-table-column>
</el-table>
<el-row>
<el-col :span="24">
<div class="span-sty">合作协议</div>
<el-form-item><el-image style="width: 150px; height: 150px" class="addinputInfo" v-for="(item, index) in temp.hzxyList" :key="index" :src="item" :preview-src-list="temp.hzxyList"/></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">营业执照</div>
<el-form-item><el-image style="width: 150px; height: 150px" class="addinputInfo" v-for="(item, index) in temp.yyzzList" :key="index" :src="item" :preview-src-list="temp.yyzzList"/></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">道路运输许可证</div>
<el-form-item><el-image style="width: 150px; height: 150px" class="addinputInfo" v-for="(item, index) in temp.dlysxkzList" :key="index" :src="item" :preview-src-list="temp.dlysxkzList"/></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">法人身份证</div>
<el-form-item><el-image style="width: 150px; height: 150px" class="addinputInfo" v-for="(item, index) in temp.frsfzList" :key="index" :src="item" :preview-src-list="temp.frsfzList"/></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">其他资料</div>
<el-form-item><el-image style="width: 150px; height: 150px" class="addinputInfo" v-for="(item, index) in temp.qtzlList" :key="index" :src="item" :preview-src-list="temp.qtzlList"/></el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
<el-dialog :visible="dialogVisible" append-to-body :before-close="handColse">
<img width="100%" :src="dialogImageUrl" alt=""/>
</el-dialog>
</div>
</template>
<script>
import { details, revokeProcess } from '@/api/jichuxinxi/baseaffiliatcompany'
import req from '@/api/dealer/dealer'
export default {
name: 'JingXiaoShangYiBan',
data() {
return {
dialogVisible: false,
dialogImageUrl: '',
tableKey: 0,
businessLicenseKey: 1,
roadTransportKey: 2,
corporateIdentityCardKey: 3,
otherDetailsKey: 4,
index: 0,
FormLoading: false,
listLoading: false,
temp: {
cityCode: '',
contract: '',
createOrg: '',
createOrgName: '',
disLevelKey: '',
disLevelValue: '',
userSid: '',
orgSidPath: '',
sid: '',
distributorSid: '',
disName: '',
dlysxkzList: [],
frsfzList: [],
invoBank: '',
invoBankNum: '',
invoPhone: '',
isGuarantee: '',
legalIdCard: '',
legalMobile: '',
legalName: '',
registNum: '',
setUpTime: '',
registDetailAddress: '',
provinceCode: '',
cityCode: '',
managementAddressCode: '',
managementDetailAddress: '',
managementDetailAddressProvince: '',
managementDetailAddressCity: '',
managementDetailAddressCounty: '',
managementDetailAddressProvince: '',
managementDetailAddress: '',
contract: '',
mobile: '',
orgSidPath: '',
pDistributorName: '',
pDistributorSid: '',
pdisName: '',
perList: [],
provinceCode: '',
qtzlList: [],
registDetailAddress: '',
registNum: '',
setUpTime: '',
sid: '',
legalName: '',
legalIdCard: '',
legalMobile: '',
isGuarantee: '',
isGuaranteeKey: '',
startCoopDate: '',
useOrg: '',
useOrgName: '',
userSid: '',
yyzzList: []
invoPhone: '',
invoBank: '',
invoBankNum: '',
disLevelKey: '',
disLevelValue: '',
perList: [],
yyzzList: [],
dlysxkzList: [],
frsfzList: [],
qtzlList: [],
hzxyList: [],
isDelivery: '',
isDeliveryKey: '',
effectiveDate: '',
agree: '',
applyName: '',
salesmanSid: '',
salesman: '',
applyDate: '',
dept: '',
deptSid: '',
salesDept: '',
salesDeptSid: '',
manage: '',
manageSid: '',
remarks: '',
taskId: '',
instanceId: '',
pdisName: '',
pDistributorSid: '',
pDistributorName: ''
}, //
rules: {},
//
@ -415,17 +322,8 @@ export default {
}, '*')
},
methods: {
handLook(row) {
console.log('查看图片', row)
this.dialogVisible = true
this.dialogImageUrl = row.filePath
console.log('查看图片', this.dialogImageUrl)
},
handColse() {
this.dialogVisible = false
},
showInfo(sids) {
details(sids).then((response) => {
showInfo(sid) {
req.detail(sid).then((response) => {
if (response.success) {
this.temp = response.data
}
@ -448,7 +346,7 @@ export default {
},
/** 撤回任务 */
handleRevoke() {
revokeProcess(this.linkByParameter).then((response) => {
req.revokeProcess(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
@ -472,11 +370,10 @@ export default {
}
</script>
<style scoped>
.headline{
height: 40px;
padding: 10px;
font-weight: bold;
background-color: #ffffff;
border: 1px solid #DFE6EC;
.span-sty {
width: 130px !important;
}
.addinputInfo {
margin-left: 120px !important;
}
</style>

Loading…
Cancel
Save