Commit 46e31165 authored by jiangqihao's avatar jiangqihao

Merge branch 'dev' of http://120.25.63.219:6088/rex/portalhtml into dev

parents 957bc5fe fa3c5a4b
...@@ -135,7 +135,7 @@ export function processHistory(data){ ...@@ -135,7 +135,7 @@ export function processHistory(data){
data data
}) })
} }
//审批流程历史记录 //获取附件列表
export function getModels(data){ export function getModels(data){
return request({ return request({
url: '/search', url: '/search',
...@@ -143,6 +143,14 @@ export function getModels(data){ ...@@ -143,6 +143,14 @@ export function getModels(data){
data data
}) })
} }
//单条信息附件
export function getOneModel(data){
return request({
url: '/getOne',
method: 'post',
data
})
}
// // 客户发布记录 // // 客户发布记录
// export const releaseRecord = { // export const releaseRecord = {
// createUrl: '/releaserecord/create', // createUrl: '/releaserecord/create',
......
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
<el-select v-if="formData.ExtProcessNode_SDK==2" v-model="formData.ExtLockRsp_SDK" :disabled="!formData.ExtProcessNode_SDK==2" style="width: 91%" multiple filterable placeholder="请选择" no-match-text="无匹配数据" @change="handleSelectRSP"> <el-select v-if="formData.ExtProcessNode_SDK==2" v-model="formData.ExtLockRsp_SDK" :disabled="!formData.ExtProcessNode_SDK==2" style="width: 91%" multiple filterable placeholder="请选择" no-match-text="无匹配数据" @change="handleSelectRSP">
<el-option <el-option
v-for="item in province" v-for="item in province"
:key="item.ExtProcessStatus_SDK" :key="item.ExtAgentID_SDK"
:label="item.Name" :label="item.Name"
:value="item.ExtProcessStatus_SDK" :value="item.ExtAgentID_SDK"
/> />
</el-select> </el-select>
<el-input v-else v-model="formData.ExtLockRspName_SDK" disabled> <el-input v-else v-model="formData.ExtLockRspName_SDK" disabled>
...@@ -45,10 +45,34 @@ ...@@ -45,10 +45,34 @@
:value="item.keyword" :value="item.keyword"
/> />
</el-select> </el-select>
<el-input v-else v-model="formData.ExtChannelType_SDK" disabled> <el-input v-else v-model="formData.ExtChannelType_SDKText" disabled>
</el-input> </el-input>
</template> </template>
</ele-form-section> </ele-form-section>
<div class="table-contain">
<div class="form-container">附件信息</div>
<el-table :data="tableData2"
border
style="width: 100%">
<el-table-column prop="FileName"
label="附件名称">
</el-table-column>
<el-table-column prop="CreateOn_SDK"
label="上传日期">
</el-table-column>
<el-table-column prop="CreateName_SDK"
label="操作者">
</el-table-column>
<el-table-column label="操作">
<el-link slot-scope="{ row }" type="primary" @click="btnLink(row)">下载</el-link>
</el-table-column>
</el-table>
<pagination v-show="TotalRecords>0"
:total="TotalRecords"
:page.sync="page.currentPage"
:limit.sync="page.pageSize"
@pagination="getList" />
</div>
<div class="table-contain"> <div class="table-contain">
<div class="form-container">审批意见</div> <div class="form-container">审批意见</div>
<div class="btn"> <div class="btn">
...@@ -95,7 +119,7 @@ ...@@ -95,7 +119,7 @@
<script> <script>
import Title from '@/components/Title' import Title from '@/components/Title'
import { getCustomer,typeSearch,lockRsp,ProcessApproval,processHistory } from '@/api/customers'; import { getCustomer,typeSearch,lockRsp,ProcessApproval,processHistory,getOneModel } from '@/api/customers';
import Pagination from '@/components/Pagination' import Pagination from '@/components/Pagination'
import { Country } from '@/api/qcc' import { Country } from '@/api/qcc'
export default { export default {
...@@ -113,6 +137,7 @@ export default { ...@@ -113,6 +137,7 @@ export default {
id:'', id:'',
status:0, status:0,
loading:false, loading:false,
tableData2:[],
formData: {}, formData: {},
province: [], province: [],
sections: [ sections: [
...@@ -237,24 +262,24 @@ export default { ...@@ -237,24 +262,24 @@ export default {
label: 'Unis业务负责人邮箱', label: 'Unis业务负责人邮箱',
layout: 12 layout: 12
}, },
ExtBusiness_SDK: { // ExtBusiness_SDK: {
type: 'input', // type: 'input',
layout: 12, // layout: 12,
disabled:true, // disabled:true,
label: '商务负责人姓名' // label: '商务负责人姓名'
}, // },
ExtBusinessPhone_SDK: { // ExtBusinessPhone_SDK: {
type: 'input', // type: 'input',
layout: 12, // layout: 12,
disabled:true, // disabled:true,
label: '商务负责人联系方式' // label: '商务负责人联系方式'
}, // },
ExtBusinessEmail_SDK: { // ExtBusinessEmail_SDK: {
type: 'input', // type: 'input',
disabled:true, // disabled:true,
label: '商务负责人邮箱', // label: '商务负责人邮箱',
layout: 12 // layout: 12
}, // },
} }
}, },
{ {
...@@ -297,12 +322,24 @@ export default { ...@@ -297,12 +322,24 @@ export default {
}, },
created(){ created(){
this.id=this.$route.query.id this.id=this.$route.query.id
this.getList() this.getList()
this.getHistoryList() this.getHistoryList()
this.getChannelType() this.getChannelType()
this.getFile()
}, },
methods: { methods: {
getFile(){
const page={
currentPage:1,
pageSize:10,
objectID:this.id
}
getOneModel(page).then(resp=>{
this.tableData2=resp.results
})
},
getList(){ getList(){
getCustomer({objectID:this.id}).then((resp)=>{ getCustomer({objectID:this.id}).then((resp)=>{
this.formData=resp.results[0] this.formData=resp.results[0]
...@@ -324,15 +361,19 @@ export default { ...@@ -324,15 +361,19 @@ export default {
processHistory({businessObjectID:this.id}).then((resp)=>{ processHistory({businessObjectID:this.id}).then((resp)=>{
this.tableData=resp.results this.tableData=resp.results
}) })
},
btnLink(row){
window.location.href = row.FileURL
}, },
handleSelectRSP(value){ handleSelectRSP(value){
console.log('val',value)
let cont=[] let cont=[]
let val=[] let val=[]
this.province.forEach((el)=>{ this.province.forEach((el)=>{
value.forEach((item)=>{ value.forEach((item)=>{
if(el.ExtProcessStatus_SDK==item){ if(el.ExtAgentID_SDK==item){
cont.push(el.Name) cont.push(el.Name)
val.push(el.ExtProcessStatus_SDK) val.push(el.ExtAgentID_SDK)
} }
}) })
}) })
......
...@@ -19,10 +19,34 @@ ...@@ -19,10 +19,34 @@
:value="item.Code" :value="item.Code"
/> />
</el-select> </el-select>
<el-input v-else v-model="formData.ExtLockRspName_SDK" disabled> <el-input v-else v-model="formData.ExtLockCityName_SDK" disabled>
</el-input> </el-input>
</template> </template>
</ele-form-section> </ele-form-section>
<div class="table-contain">
<div class="form-container">附件信息</div>
<el-table :data="tableData2"
border
style="width: 100%">
<el-table-column prop="FileName"
label="附件名称">
</el-table-column>
<el-table-column prop="CreateOn_SDK"
label="上传日期">
</el-table-column>
<el-table-column prop="CreateName_SDK"
label="操作者">
</el-table-column>
<el-table-column label="操作">
<el-link slot-scope="{ row }" type="primary" @click="btnLink(row)">下载</el-link>
</el-table-column>
</el-table>
<pagination v-show="TotalRecords>0"
:total="TotalRecords"
:page.sync="page.currentPage"
:limit.sync="page.pageSize"
@pagination="getList" />
</div>
<div class="table-contain"> <div class="table-contain">
<div class="form-container">审批意见</div> <div class="form-container">审批意见</div>
<div class="btn"> <div class="btn">
...@@ -69,7 +93,7 @@ ...@@ -69,7 +93,7 @@
<script> <script>
import Title from '@/components/Title' import Title from '@/components/Title'
import { getCustomer,typeSearch,lockRsp,ProcessApproval,processHistory, province } from '@/api/customers'; import { getCustomer,typeSearch,lockRsp,ProcessApproval,processHistory, province,getOneModel } from '@/api/customers';
import { Country } from '@/api/qcc' import { Country } from '@/api/qcc'
import Pagination from '@/components/Pagination' import Pagination from '@/components/Pagination'
export default { export default {
...@@ -89,6 +113,7 @@ export default { ...@@ -89,6 +113,7 @@ export default {
loading:false, loading:false,
formData: {}, formData: {},
province: [], province: [],
tableData2:[],
sections: [ sections: [
{ {
title: '基本信息', title: '基本信息',
...@@ -282,8 +307,22 @@ export default { ...@@ -282,8 +307,22 @@ export default {
this.id=this.$route.query.id this.id=this.$route.query.id
this.getList() this.getList()
this.getHistoryList() this.getHistoryList()
this.getFile()
}, },
methods: { methods: {
getFile(){
const page={
currentPage:1,
pageSize:10,
objectID:this.id
}
getOneModel(page).then(resp=>{
this.tableData2=resp.results
})
},
btnLink(row){
window.location.href = row.FileURL
},
getList(){ getList(){
getCustomer({objectID:this.id}).then((resp)=>{ getCustomer({objectID:this.id}).then((resp)=>{
this.formData=resp.results[0] this.formData=resp.results[0]
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
<div style="height:50px;display: flex;align-items: center;float: right; <div style="height:50px;display: flex;align-items: center;float: right;
margin-right: 90px;"> margin-right: 90px;">
<div class="parallelogram2"></div> <div class="parallelogram2"></div>
<div style="margin-right:15px">已审批</div> <div style="margin-right:15px">当前节点</div>
<div class="parallelogram3"></div> <!-- <div class="parallelogram3"></div>
<div style="margin-right:15px">未审批</div> <div style="margin-right:15px">未审批</div> -->
</div> </div>
<div style="height:150px;display: flex;margin: 20px 290px;"> <div style="height:150px;display: flex;margin: 20px 290px;">
<div class="div_list"> <div class="div_list">
......
...@@ -17,8 +17,7 @@ ...@@ -17,8 +17,7 @@
<el-col :span="13" <el-col :span="13"
class="padding-bottom"> class="padding-bottom">
<el-form-item label="公司全称:" <el-form-item label="公司全称:"
label-width="150px" label-width="150px">
>
<el-input v-model="formData.name" <el-input v-model="formData.name"
readonly readonly
placeholder='请选择公司' placeholder='请选择公司'
...@@ -46,8 +45,7 @@ ...@@ -46,8 +45,7 @@
class="padding-bottom"> class="padding-bottom">
<el-form-item label="统一社会信用代码:" <el-form-item label="统一社会信用代码:"
label-width="150px" label-width="150px"
prop="extSocialUnifiedCreditCode_SDK" prop="extSocialUnifiedCreditCode_SDK">
>
<template> <template>
<el-input v-model="formData.extSocialUnifiedCreditCode_SDK" <el-input v-model="formData.extSocialUnifiedCreditCode_SDK"
placeholder="企查查获取" placeholder="企查查获取"
...@@ -101,15 +99,17 @@ ...@@ -101,15 +99,17 @@
class="padding-bottom"> class="padding-bottom">
<el-form-item label="省份:" <el-form-item label="省份:"
prop="extProvince_SDK" prop="extProvince_SDK"
label-width="80px" label-width="80px">
> <el-select v-model="formData.extProvince_SDK"
<el-select v-model="formData.extProvince_SDK" style="width: 91%" filterable placeholder="请选择省份" no-match-text="无匹配数据" @change="handleSelect"> style="width: 91%"
<el-option filterable
v-for="item in countryOptions" placeholder="请选择省份"
:key="item.Code" no-match-text="无匹配数据"
:label="item.Name" @change="handleSelect">
:value="item.Code" <el-option v-for="item in countryOptions"
/> :key="item.Code"
:label="item.Name"
:value="item.Code" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -119,13 +119,15 @@ ...@@ -119,13 +119,15 @@
prop="extCity_SDK" prop="extCity_SDK"
label-width="80px" label-width="80px"
required> required>
<el-select v-model="formData.extCity_SDK" style="width: 91%" filterable placeholder="请选择市" @change="handleSelectCity" > <el-select v-model="formData.extCity_SDK"
<el-option style="width: 91%"
v-for="item in cityOptions" filterable
:key="item.Code" placeholder="请选择市"
:label="item.Name" @change="handleSelectCity">
:value="item.Code" <el-option v-for="item in cityOptions"
/> :key="item.Code"
:label="item.Name"
:value="item.Code" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -135,13 +137,16 @@ ...@@ -135,13 +137,16 @@
prop="extDistrict_SDK" prop="extDistrict_SDK"
label-width="80px" label-width="80px"
required> required>
<el-select v-model="formData.extDistrict_SDK" style="width: 91%" filterable placeholder="请选择区" no-match-text="无匹配数据" @change="handleSelectDis"> <el-select v-model="formData.extDistrict_SDK"
<el-option style="width: 91%"
v-for="item in disOptions" filterable
:key="item.Code" placeholder="请选择区"
:label="item.Name" no-match-text="无匹配数据"
:value="item.Code" @change="handleSelectDis">
/> <el-option v-for="item in disOptions"
:key="item.Code"
:label="item.Name"
:value="item.Code" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -168,8 +173,7 @@ ...@@ -168,8 +173,7 @@
class="padding-bottom"> class="padding-bottom">
<el-form-item label="公司负责人姓名:" <el-form-item label="公司负责人姓名:"
prop="extLeader_SDK" prop="extLeader_SDK"
label-width="150px" label-width="150px">
>
<el-input v-model="formData.extLeader_SDK" <el-input v-model="formData.extLeader_SDK"
placeholder="" placeholder=""
style="width: 80%" style="width: 80%"
...@@ -182,8 +186,7 @@ ...@@ -182,8 +186,7 @@
<el-form-item label="公司负责人联系电话:" <el-form-item label="公司负责人联系电话:"
prop="extLeaderPhone_SDK" prop="extLeaderPhone_SDK"
label-width="160px" label-width="160px"
class="filter-icon-none" class="filter-icon-none">
>
<el-input v-model="formData.extLeaderPhone_SDK" <el-input v-model="formData.extLeaderPhone_SDK"
placeholder="" placeholder=""
style="width: 80%" style="width: 80%"
...@@ -202,8 +205,7 @@ ...@@ -202,8 +205,7 @@
<el-form-item label="公司负责人邮箱:" <el-form-item label="公司负责人邮箱:"
prop="extLeaderEmail_SDK" prop="extLeaderEmail_SDK"
label-width="150px" label-width="150px"
class="filter-icon-none" class="filter-icon-none">
>
<el-input v-model="formData.extLeaderEmail_SDK" <el-input v-model="formData.extLeaderEmail_SDK"
placeholder="" placeholder=""
style="width: 52%" style="width: 52%"
...@@ -217,8 +219,7 @@ ...@@ -217,8 +219,7 @@
class="padding-bottom"> class="padding-bottom">
<el-form-item label="Unis业务负责人姓名:" <el-form-item label="Unis业务负责人姓名:"
prop="extUnis_SDK" prop="extUnis_SDK"
label-width="160px" label-width="160px">
>
<el-input v-model="formData.extUnis_SDK" <el-input v-model="formData.extUnis_SDK"
placeholder="" placeholder=""
style="width: 80%" style="width: 80%"
...@@ -230,8 +231,7 @@ ...@@ -230,8 +231,7 @@
class="padding-bottom"> class="padding-bottom">
<el-form-item label="Unis业务负责人电话:" <el-form-item label="Unis业务负责人电话:"
prop="extUnisPhone_SDK" prop="extUnisPhone_SDK"
label-width="160px" label-width="160px">
>
<el-input v-model="formData.extUnisPhone_SDK" <el-input v-model="formData.extUnisPhone_SDK"
placeholder="" placeholder=""
style="width: 90%" style="width: 90%"
...@@ -245,8 +245,7 @@ ...@@ -245,8 +245,7 @@
<el-form-item label="Unis业务负责人邮箱:" <el-form-item label="Unis业务负责人邮箱:"
prop="extUnisEmail_SDK" prop="extUnisEmail_SDK"
label-width="160px" label-width="160px"
class="filter-icon-none" class="filter-icon-none">
>
<el-input v-model="formData.extUnisEmail_SDK" <el-input v-model="formData.extUnisEmail_SDK"
placeholder="" placeholder=""
style="width: 80%" style="width: 80%"
...@@ -266,14 +265,13 @@ ...@@ -266,14 +265,13 @@
<el-form-item label="营业执照:" <el-form-item label="营业执照:"
prop="filelll" prop="filelll"
label-width="100px" label-width="100px"
class="filter-icon-none" class="filter-icon-none">
> <el-upload :on-change="handleChange"
<el-upload class="upload-demo" :on-success="handleAvatarSuccess"
:on-change="handleChange" :on-remove="handleRemoveFile"
action="https://jsonplaceholder.typicode.com/posts/" action="https://jsonplaceholder.typicode.com/posts/"
multiple accept=".doc,.txt,.pdf,.xls,.docx,.xlsx,.jpg,.png"
:limit="1" :limit="1">
>
<el-button size="small" <el-button size="small"
type="primary">点击上传</el-button> type="primary">点击上传</el-button>
...@@ -282,10 +280,12 @@ ...@@ -282,10 +280,12 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col align="center"> <el-col align="center">
<el-button type="primary" :loading="btnloading" @click="handleApprove">提交</el-button> <el-button type="primary"
</el-col> :loading="btnloading"
</el-row> @click="handleApprove">提交</el-button>
</el-col>
</el-row>
</el-form> </el-form>
<el-dialog title="请选择公司" <el-dialog title="请选择公司"
:visible.sync="dialogTableVisible" :visible.sync="dialogTableVisible"
...@@ -330,18 +330,17 @@ ...@@ -330,18 +330,17 @@
:limit.sync="page.pageSize" :limit.sync="page.pageSize"
@pagination="getList" /> @pagination="getList" />
</el-dialog> </el-dialog>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { Qcc,Country,Customer } from '@/api/qcc' import { Qcc, Country, Customer } from '@/api/qcc'
import Pagination from '@/components/Pagination' import Pagination from '@/components/Pagination'
export default { export default {
name: 'city-register', name: 'city-register',
components: { components: {
Pagination Pagination
}, },
data() { data() {
...@@ -354,129 +353,141 @@ export default { ...@@ -354,129 +353,141 @@ export default {
formInline: {}, formInline: {},
recordList: [], recordList: [],
tableData: [], tableData: [],
fileList:[], fileList: [],
countryOptions:[], countryOptions: [],
cityOptions:[], cityOptions: [],
disOptions:[], disOptions: [],
supplierBaseRules: { supplierBaseRules: {
extSocialUnifiedCreditCode_SDK: [{ required: true, message: '请输入统一社会信用代码', trigger: 'blur' }], extSocialUnifiedCreditCode_SDK: [{ required: true, message: '请输入统一社会信用代码', trigger: 'blur' }],
extRegisteredCapital_SDK: [{ required: true, message: '请输入注册资本(万元)', trigger: 'blur' }], extRegisteredCapital_SDK: [{ required: true, message: '请输入注册资本(万元)', trigger: 'blur' }],
extCorporateName_SDK: [{ required: true, message: '请输入法人', trigger: 'blur' }], extCorporateName_SDK: [{ required: true, message: '请输入法人', trigger: 'blur' }],
extProvince_SDK: [{ required: true, message: '请选择省份', trigger: 'blur' }], extProvince_SDK: [{ required: true, message: '请选择省份', trigger: 'blur' }],
extCity_SDK: [{ required: true, message: '请选择市', trigger: 'blur' }], extCity_SDK: [{ required: true, message: '请选择市', trigger: 'blur' }],
extDistrict_SDK: [{ required: true, message: '请选择区', trigger: 'blur' }], extDistrict_SDK: [{ required: true, message: '请选择区', trigger: 'blur' }],
extAddressDetail_SDK: [{ required: true, message: '请输入详细经营地址', trigger: 'blur' }], extAddressDetail_SDK: [{ required: true, message: '请输入详细经营地址', trigger: 'blur' }],
extLeader_SDK: [{ required: true, message: '请输入公司负责人姓名', trigger: 'blur' }], extLeader_SDK: [{ required: true, message: '请输入公司负责人姓名', trigger: 'blur' }],
extLeaderPhone_SDK: [{ required: true, message: '请输入公司负责人联系电话', trigger: 'blur' }], extLeaderPhone_SDK: [{ required: true, message: '请输入公司负责人联系电话', trigger: 'blur' }],
extLeaderEmail_SDK: [{ required: true, message: '请输入公司负责人邮箱', trigger: 'blur' }, extLeaderEmail_SDK: [{ required: true, message: '请输入公司负责人邮箱', trigger: 'blur' },
{ type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }], { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }],
extUnis_SDK: [{ required: true, message: '请输入Unis业务负责人姓名', trigger: 'blur' }], extUnis_SDK: [{ required: true, message: '请输入Unis业务负责人姓名', trigger: 'blur' }],
extUnisPhone_SDK: [{ required: true, message: '请输入Unis业务负责人电话', trigger: 'blur' }], extUnisPhone_SDK: [{ required: true, message: '请输入Unis业务负责人电话', trigger: 'blur' }],
filelll: [{ required: true, message: '请上传附件', trigger: 'blur' }],
extUnisEmail_SDK: [{ required: true, message: '请输入Unis业务负责人邮箱', trigger: 'blur' }, extUnisEmail_SDK: [{ required: true, message: '请输入Unis业务负责人邮箱', trigger: 'blur' },
{ type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }], { type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }],
}, },
dialogTableVisible: false, dialogTableVisible: false,
TotalRecords:0, TotalRecords: 0,
page: { page: {
currentPage: 0, currentPage: 0,
pageSize: 0, pageSize: 0,
} }
} }
}, },
watch: { watch: {
},
computed:{
visitedViews() {
return this.$store.state.tagsView.visitedViews
},
}, },
created() { created() {
this.selectCountry() this.selectCountry()
}, },
methods: { methods: {
getList() { getList() {
this.page.searchKey=this.formInline.Name this.page.searchKey = this.formInline.Name
this.$request(Qcc.searchUrl, this.page).then((resp) => { this.$request(Qcc.searchUrl, this.page).then((resp) => {
this.tableData = resp.results.Result this.tableData = resp.results.Result
this.page = resp.results.Paging this.page = resp.results.Paging
this.TotalRecords=resp.results.Paging.TotalRecords this.TotalRecords = resp.results.Paging.TotalRecords
}) })
}, },
selectCountry(){ selectCountry() {
this.$request(Country.searchPro, this.page).then((resp) => { this.$request(Country.searchPro, this.page).then((resp) => {
this.countryOptions=resp.results this.countryOptions = resp.results
}) })
}, },
handleSelect(value){ handleSelect(value) {
const app={provinceCode:value} const app = { provinceCode: value }
this.$request(Country.searchCity,app).then((resp) => { this.$request(Country.searchCity, app).then((resp) => {
this.cityOptions=resp.results this.cityOptions = resp.results
}) })
let obj = {}; let obj = {};
obj = this.countryOptions.find((item)=>{//这里的userList就是上面遍历的数据源 obj = this.countryOptions.find((item) => {//这里的userList就是上面遍历的数据源
return item.Code === value;//筛选出匹配数据 return item.Code === value;//筛选出匹配数据
}); });
this.formData.extProvinceName_SDK=obj.Name//获取的 name this.formData.extProvinceName_SDK = obj.Name//获取的 name
this.formData.extProvince_SDK=value//获取的 id this.formData.extProvince_SDK = value//获取的 id
}, },
handleSelectCity(value){ handleSelectCity(value) {
const app={cityCode:value} const app = { cityCode: value }
this.$request(Country.searchDis,app).then((resp) => { this.$request(Country.searchDis, app).then((resp) => {
this.disOptions=resp.results this.disOptions = resp.results
}) })
let obj = {};
obj = this.cityOptions.find((item)=>{//这里的userList就是上面遍历的数据源
return item.Code === value;//筛选出匹配数据
});
this.formData.extCityName_SDK=obj.Name//获取的 name
this.formData.extCity_SDK=value//获取的 id
},
handleSelectDis(value){
let obj = {}; let obj = {};
obj = this.disOptions.find((item)=>{//这里的userList就是上面遍历的数据源 obj = this.cityOptions.find((item) => {//这里的userList就是上面遍历的数据源
return item.Code === value;//筛选出匹配数据 return item.Code === value;//筛选出匹配数据
}); });
this.formData.extDistrictName_SDK=obj.Name//获取的 name this.formData.extCityName_SDK = obj.Name//获取的 name
this.formData.extDistrict_SDK=value//获取的 id this.formData.extCity_SDK = value//获取的 id
}, },
handleSelectDis(value) {
let obj = {};
obj = this.disOptions.find((item) => {//这里的userList就是上面遍历的数据源
return item.Code === value;//筛选出匹配数据
});
this.formData.extDistrictName_SDK = obj.Name//获取的 name
this.formData.extDistrict_SDK = value//获取的 id
},
createLovTable() { createLovTable() {
this.dialogTableVisible = true this.dialogTableVisible = true
}, },
select(row, column, event) { select(row, column, event) {
this.page.searchKey=row.CreditCode this.page.searchKey = row.CreditCode
this.$request(Qcc.detailUrl, this.page).then((resp) => { this.$request(Qcc.detailUrl, this.page).then((resp) => {
this.formData.extCorporateName_SDK = row.OperName this.formData.extCorporateName_SDK = row.OperName
this.formData.extSocialUnifiedCreditCode_SDK = row.CreditCode this.formData.extSocialUnifiedCreditCode_SDK = row.CreditCode
this.formData.name = row.Name this.formData.name = row.Name
this.formData.extRegisteredCapital_SDK=resp.results.Result.RegistCapi this.formData.extRegisteredCapital_SDK = resp.results.Result.RegistCapi
this.dialogTableVisible = false this.dialogTableVisible = false
}) })
}, },
handleApprove(){ handleApprove() {
this.$refs.formData.validate((valid) => { this.$refs.formData.validate((valid) => {
if (valid) { if (valid) {
// this.aOptions.forEach(el=>{ // this.aOptions.forEach(el=>{
// this.formData.ExtProvinceName_SDK=el[this.formData.extProvince_SDK] // this.formData.ExtProvinceName_SDK=el[this.formData.extProvince_SDK]
// }) // })
// this.bOptions.forEach(el=>{ // this.bOptions.forEach(el=>{
// this.formData.extCityName_SDK=el[this.formData.extCity_SDK] // this.formData.extCityName_SDK=el[this.formData.extCity_SDK]
// }) // })
// this.cOptions.forEach(el=>{ // this.cOptions.forEach(el=>{
// this.formData.extDistrictName_SDK=el[this.formData.extDistrict_SDK] // this.formData.extDistrictName_SDK=el[this.formData.extDistrict_SDK]
// }) // })
this.formData.extCustomerType_SDK=111 this.formData.extCustomerType_SDK = 111
this.btnloading=true this.btnloading = true
this.$request(Customer.searchUrl,this.paramsToFormData(this.formData)).then((resp) => { this.$request(Customer.searchUrl, this.paramsToFormData(this.formData)).then((resp) => {
this.btnloading=false this.btnloading = false
this.$message.success('提交成功!') this.$message.success('提交成功!')
this.$router.back() this.handleClickGoBack()
}) }).catch((err) => {
} else {
this.btnloading=false this.btnloading=false
this.$message.warning('请输入必填信息!') // this.$message({
} // type: 'warning',
}); // message: err
// })
})
} else {
this.btnloading = false
this.$message.warning('请输入必填信息!')
}
});
}, },
handleClickGoBack() { handleClickGoBack() {
// const visitedViews = this.$store.state.tagsView.visitedViews // const visitedViews = this.$store.state.tagsView.visitedViews
// const path = this.$route.path // const path = this.$route.path
// visitedViews.forEach(function(item, index) { // visitedViews.forEach(function(item, index) {
...@@ -489,27 +500,35 @@ export default { ...@@ -489,27 +500,35 @@ export default {
}) })
}, },
paramsToFormData(obj) { paramsToFormData(obj) {
const formData = new FormData(); const formData = new FormData();
Object.keys(obj).forEach((key) => { Object.keys(obj).forEach((key) => {
if (obj[key] instanceof Array) { if (obj[key] instanceof Array) {
obj[key].forEach((item) => { obj[key].forEach((item) => {
formData.append(key, item); formData.append(key, item);
}); });
return; return;
} }
formData.append(key, obj[key]); formData.append(key, obj[key]);
}); });
return formData; return formData;
}, },
reSet() {this.formInline.Name='' }, reSet() { this.formInline.Name = '' },
handleClose() { handleClose() {
this.dialogTableVisible = false this.dialogTableVisible = false
}, },
myHeader(){ myHeader() {
return {'Content-Type': 'multipart/form-data'} return { 'Content-Type': 'multipart/form-data' }
},
handleChange(file, fileList) {
this.formData.file = (file.raw)
},
handleAvatarSuccess(res, file) {
console.log('res', res, "file", file)
this.supplierBaseRules.filelll = []
}, },
handleChange(file,fileList){ handleRemoveFile(res, file) {
this.formData.file=(file.raw) console.log('restest', res, "file", file)
this.supplierBaseRules.filelll = [{ required: true, message: '请上传附件', trigger: 'blur' }]
}, },
onSubmit() { }, onSubmit() { },
handlePreview() { }, handlePreview() { },
......
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
<div style="height:50px;display: flex;align-items: center;float: right; <div style="height:50px;display: flex;align-items: center;float: right;
margin-right: 90px;"> margin-right: 90px;">
<div class="parallelogram2"></div> <div class="parallelogram2"></div>
<div style="margin-right:15px">已审批</div> <div style="margin-right:15px">当前节点</div>
<div class="parallelogram3"></div> <!-- <div class="parallelogram3"></div>
<div style="margin-right:15px">未审批</div> <div style="margin-right:15px">未审批</div> -->
</div> </div>
<div style="height:150px;display: flex;margin: 20px 290px;"> <div style="height:150px;display: flex;margin: 20px 290px;">
<div class="div_list"> <div class="div_list">
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
<el-form id="registerForm" <el-form id="registerForm"
:model="formData" :model="formData"
status-icon status-icon
v-loading="btnloading"
ref="formData" ref="formData"
:rules="supplierBaseRules" :rules="supplierBaseRules"
label-position="right"> label-position="right">
...@@ -320,7 +321,7 @@ ...@@ -320,7 +321,7 @@
:offset="1" :offset="1"
class="padding-bottom"> class="padding-bottom">
<el-form-item label="营业执照:" <el-form-item label="营业执照:"
prop="filelss" prop="filelll"
label-width="100px" label-width="100px"
class="filter-icon-none" class="filter-icon-none"
> >
...@@ -328,7 +329,9 @@ ...@@ -328,7 +329,9 @@
ref="uploadExcel" ref="uploadExcel"
action="https://jsonplaceholder.typicode.com/posts/" action="https://jsonplaceholder.typicode.com/posts/"
:limit='1' :limit='1'
:auto-upload="false" accept=".doc,.txt,.pdf,.xls,.docx,.xlsx,.jpg,.png"
:on-success="handleAvatarSuccess"
:on-remove="handleRemoveFile"
:on-change="fileChange" :on-change="fileChange"
> >
<el-button size="small" type="primary">点击上传</el-button> <el-button size="small" type="primary">点击上传</el-button>
...@@ -438,6 +441,7 @@ export default { ...@@ -438,6 +441,7 @@ export default {
extChannelType_SDK: [{ required: true, message: '请选择签约渠道类型', trigger: 'blur' }], extChannelType_SDK: [{ required: true, message: '请选择签约渠道类型', trigger: 'blur' }],
extProductGroup_KUT: [{ required: true, message: '请选择签约产品组', trigger: 'blur' }], extProductGroup_KUT: [{ required: true, message: '请选择签约产品组', trigger: 'blur' }],
extTotalAgent_KUT: [{ required: true, message: '请选择签约总代', trigger: 'blur' }], extTotalAgent_KUT: [{ required: true, message: '请选择签约总代', trigger: 'blur' }],
filelll: [{ required: true, message: '请上传附件', trigger: 'blur' }],
}, },
dialogTableVisible: false, dialogTableVisible: false,
TotalRecords:0, TotalRecords:0,
...@@ -461,6 +465,8 @@ export default { ...@@ -461,6 +465,8 @@ export default {
this.getCommon() this.getCommon()
}, },
methods: { methods: {
getList() { getList() {
this.page.searchKey=this.formInline.Name this.page.searchKey=this.formInline.Name
this.$request(Qcc.searchUrl, this.page).then((resp) => { this.$request(Qcc.searchUrl, this.page).then((resp) => {
...@@ -590,7 +596,13 @@ export default { ...@@ -590,7 +596,13 @@ export default {
this.$message.success('提交成功!') this.$message.success('提交成功!')
this.$router.back() this.$router.back()
}) }).catch((err) => {
this.btnloading=false
// this.$message({
// type: 'warning',
// message: err
// })
})
} else { } else {
this.btnloading=false this.btnloading=false
this.$message.warning('请输入必填信息!') this.$message.warning('请输入必填信息!')
...@@ -635,6 +647,14 @@ export default { ...@@ -635,6 +647,14 @@ export default {
fileChange(res,file){ fileChange(res,file){
this.formData.file=(res.raw) this.formData.file=(res.raw)
}, },
handleAvatarSuccess(res,file){
console.log('res',res,"file",file)
this.supplierBaseRules.filelll=[]
},
handleRemoveFile(res, file) {
console.log('restest', res, "file", file)
this.supplierBaseRules.filelll = [{ required: true, message: '请上传附件', trigger: 'blur' }]
},
onSubmit() {}, onSubmit() {},
handlePreview() { }, handlePreview() { },
handleRemove() { }, handleRemove() { },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment