lixuan #1
@@ -13,7 +13,13 @@ const liekQuery = (query) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//公司账户详情
|
||||||
|
const getByCompanyId = (query) => {
|
||||||
|
return request.get(`/oil-finance/oilCompanyAccount/getByCompanyId/${query}`);
|
||||||
|
};
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
getRefineryCompanyList,
|
getRefineryCompanyList,
|
||||||
liekQuery,
|
liekQuery,
|
||||||
|
getByCompanyId,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -10,12 +10,9 @@ const getByPage = (params) => {
|
|||||||
const get = (query) => {
|
const get = (query) => {
|
||||||
return request.get(`/oil-finance/oilCompanyAccountReverse/get/${query}`);
|
return request.get(`/oil-finance/oilCompanyAccountReverse/get/${query}`);
|
||||||
};
|
};
|
||||||
//公司详情
|
|
||||||
const getByCompanyId = (query) => {
|
|
||||||
return request.get(`/oil-finance/oilCompanyAccount/getByCompanyId/${query}`);
|
|
||||||
};
|
|
||||||
//公司财务详情
|
//公司财务详情
|
||||||
const getByCompanyIdSec = (query) => {
|
const getByCompanyId = (query) => {
|
||||||
return request.get(`/oil-user/oilCompanyFinance/getByCompanyId/${query}`);
|
return request.get(`/oil-user/oilCompanyFinance/getByCompanyId/${query}`);
|
||||||
};
|
};
|
||||||
// 新增
|
// 新增
|
||||||
@@ -47,7 +44,6 @@ export default {
|
|||||||
getByCompanyId,
|
getByCompanyId,
|
||||||
save,
|
save,
|
||||||
update,
|
update,
|
||||||
getByCompanyIdSec,
|
|
||||||
getCascaderList,
|
getCascaderList,
|
||||||
getLikeByNameSuccess,
|
getLikeByNameSuccess,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -10,12 +10,8 @@ const getByPage = (params) => {
|
|||||||
const get = (query) => {
|
const get = (query) => {
|
||||||
return request.get(`/oil-finance/oilCompanyAccountReverse/get/${query}`);
|
return request.get(`/oil-finance/oilCompanyAccountReverse/get/${query}`);
|
||||||
};
|
};
|
||||||
//详情
|
|
||||||
const getByCompanyId = (query) => {
|
|
||||||
return request.get(`/oil-finance/oilCompanyAccount/getByCompanyId/${query}`);
|
|
||||||
};
|
|
||||||
export default {
|
export default {
|
||||||
getByPage,
|
getByPage,
|
||||||
get,
|
get,
|
||||||
getByCompanyId,
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,23 +1,31 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="padding:30px 75px 50px;">
|
<div style="padding: 30px 75px 50px">
|
||||||
<div style="width:100%;position: absolute;top: 15px;left: 0;">
|
<div style="width: 100%; position: absolute; top: 15px; left: 0">
|
||||||
<div style="display: flex;
|
<div style="display: flex; align-items: center; padding-left: 20px">
|
||||||
align-items: center;padding-left: 20px;">
|
|
||||||
<svg-icon
|
<svg-icon
|
||||||
icon-class="iconsiji2"
|
icon-class="iconsiji2"
|
||||||
style="font-size: 30px;margin-right: 10px;"
|
style="font-size: 30px; margin-right: 10px"
|
||||||
/>
|
/>
|
||||||
<span>添加认证信息</span>
|
<span>添加认证信息</span>
|
||||||
</div>
|
</div>
|
||||||
<el-divider style="width:100%"></el-divider>
|
<el-divider style="width: 100%"></el-divider>
|
||||||
</div>
|
</div>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-form ref="form" :rules="rules" :model="oilCompanyAuth" label-width="100px" :size="$store.getters.size">
|
<el-form
|
||||||
|
ref="form"
|
||||||
|
:rules="rules"
|
||||||
|
:model="oilCompanyAuth"
|
||||||
|
label-width="100px"
|
||||||
|
:size="$store.getters.size"
|
||||||
|
>
|
||||||
<el-row :gutter="gridNum.row.gutter">
|
<el-row :gutter="gridNum.row.gutter">
|
||||||
|
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="企业名称" prop="companyName">
|
<el-form-item label="企业名称" prop="companyName">
|
||||||
<el-input v-model="oilCompanyAuth.companyName" clearable disabled/>
|
<el-input
|
||||||
|
v-model="oilCompanyAuth.companyName"
|
||||||
|
clearable
|
||||||
|
disabled
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
@@ -28,7 +36,11 @@
|
|||||||
:size="$store.getters.size"
|
:size="$store.getters.size"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:options="areaTree"
|
:options="areaTree"
|
||||||
:props="{value:'id', label:'areaName', children:'childList'}"
|
:props="{
|
||||||
|
value: 'id',
|
||||||
|
label: 'areaName',
|
||||||
|
children: 'childList',
|
||||||
|
}"
|
||||||
filterable
|
filterable
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
@@ -36,41 +48,68 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="详细地址" prop="address">
|
<el-form-item label="详细地址" prop="address">
|
||||||
<el-input v-model="oilCompanyAuth.address" clearable placeholder="不包含省市区" />
|
<el-input
|
||||||
|
v-model="oilCompanyAuth.address"
|
||||||
|
clearable
|
||||||
|
placeholder="不包含省市区"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="法人代表" prop="companyLegalPerson">
|
<el-form-item label="法人代表" prop="companyLegalPerson">
|
||||||
<el-input v-model="oilCompanyAuth.companyLegalPerson" clearable placeholder="法人姓名" />
|
<el-input
|
||||||
|
v-model="oilCompanyAuth.companyLegalPerson"
|
||||||
|
clearable
|
||||||
|
placeholder="法人姓名"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="注册资本" prop="registeredCapital">
|
<el-form-item label="注册资本" prop="registeredCapital">
|
||||||
<el-input v-model="oilCompanyAuth.registeredCapital" clearable placeholder="小写数字" />
|
<el-input
|
||||||
|
v-model="oilCompanyAuth.registeredCapital"
|
||||||
|
clearable
|
||||||
|
placeholder="小写数字"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="经营资质" prop="businessQualia">
|
<el-form-item label="经营资质" prop="businessQualia">
|
||||||
<el-input v-model="oilCompanyAuth.businessQualia" clearable placeholder="企业经营资质" />
|
<el-input
|
||||||
|
v-model="oilCompanyAuth.businessQualia"
|
||||||
|
clearable
|
||||||
|
placeholder="企业经营资质"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="联系方式" prop="contactPhone">
|
<el-form-item label="联系方式" prop="contactPhone">
|
||||||
<el-input v-model="oilCompanyAuth.contactPhone" clearable placeholder="手机号" />
|
<el-input
|
||||||
|
v-model="oilCompanyAuth.contactPhone"
|
||||||
|
clearable
|
||||||
|
placeholder="手机号"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="企业网址" prop="website">
|
<el-form-item label="企业网址" prop="website">
|
||||||
<el-input v-model="oilCompanyAuth.website" clearable placeholder="企业门户" />
|
<el-input
|
||||||
|
v-model="oilCompanyAuth.website"
|
||||||
|
clearable
|
||||||
|
placeholder="企业门户"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="营业执照号码" prop="businessLienceId">
|
<el-form-item label="营业执照号码" prop="businessLienceId">
|
||||||
<el-input v-model="oilCompanyAuth.businessLienceId" clearable placeholder="营业执照号码" />
|
<el-input
|
||||||
</el-form-item></el-col>
|
v-model="oilCompanyAuth.businessLienceId"
|
||||||
|
clearable
|
||||||
|
placeholder="营业执照号码"
|
||||||
|
/> </el-form-item
|
||||||
|
></el-col>
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- <el-col :span="12">
|
<!-- <el-col :span="12">
|
||||||
<el-form-item label="打款名称" prop="bankCardName">
|
<el-form-item label="打款名称" prop="bankCardName">
|
||||||
@@ -117,7 +156,7 @@
|
|||||||
</el-col> -->
|
</el-col> -->
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="营业执照照片" prop="businessLienceImg">
|
<el-form-item label="营业执照照片" prop="businessLienceImg">
|
||||||
<el-upload
|
<!-- <el-upload
|
||||||
action="/lsm/ocr/business"
|
action="/lsm/ocr/business"
|
||||||
list-type="picture-card"
|
list-type="picture-card"
|
||||||
:on-preview="businessLienceImgPreview"
|
:on-preview="businessLienceImgPreview"
|
||||||
@@ -127,7 +166,7 @@
|
|||||||
:limit="1"
|
:limit="1"
|
||||||
>
|
>
|
||||||
<i class="el-icon-plus" />
|
<i class="el-icon-plus" />
|
||||||
</el-upload>
|
</el-upload> -->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
v-el-drag-dialog
|
v-el-drag-dialog
|
||||||
@@ -135,7 +174,11 @@
|
|||||||
title="营业执照"
|
title="营业执照"
|
||||||
:modal="false"
|
:modal="false"
|
||||||
>
|
>
|
||||||
<img width="100%" :src="oilCompanyAuth.ibusinessLienceImgImageShow" alt="">
|
<img
|
||||||
|
width="100%"
|
||||||
|
:src="oilCompanyAuth.ibusinessLienceImgImageShow"
|
||||||
|
alt=""
|
||||||
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- <el-col :span="12">
|
<!-- <el-col :span="12">
|
||||||
@@ -147,49 +190,59 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col> -->
|
</el-col> -->
|
||||||
|
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-row>
|
</el-row>
|
||||||
<div :span="24" style="background:#fff;margin-top:20px;text-align: right;width:100%;position: absolute;bottom: 15px;left: 0;">
|
<div
|
||||||
<el-divider style="width:100%"></el-divider>
|
:span="24"
|
||||||
<el-button @click="close">取消</el-button>
|
style="
|
||||||
<el-button type="primary" @click="submit" style="margin-right:10px">提交</el-button>
|
background: #fff;
|
||||||
</div>
|
margin-top: 20px;
|
||||||
|
text-align: right;
|
||||||
|
width: 100%;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 15px;
|
||||||
|
left: 0;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<el-divider style="width: 100%"></el-divider>
|
||||||
|
<el-button @click="close">取消</el-button>
|
||||||
|
<el-button type="primary" @click="submit" style="margin-right: 10px"
|
||||||
|
>提交</el-button
|
||||||
|
>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import oilCompanyAuthApi from '@/api/customerManagement/oilCompanyAuth'
|
import oilCompanyAuthApi from "@/api/customerManagement/oilCompanyAuth";
|
||||||
import AreaCodeApi from '@/api/customerManagement/areaCode'
|
import AreaCodeApi from "@/api/customerManagement/areaCode";
|
||||||
import { imgCompress } from '@/utils'
|
// import { imgCompress } from "@/utils";
|
||||||
import axios from 'axios'
|
import axios from "axios";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
oilCompanyInfo: {
|
oilCompanyInfo: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default() {
|
default() {},
|
||||||
|
},
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
gridNum: {
|
gridNum: {
|
||||||
row: {
|
row: {
|
||||||
gutter: 2
|
gutter: 2,
|
||||||
},
|
},
|
||||||
cols: {
|
cols: {
|
||||||
xs: 24,
|
xs: 24,
|
||||||
sm: 24,
|
sm: 24,
|
||||||
md: 12,
|
md: 12,
|
||||||
lg: 12,
|
lg: 12,
|
||||||
xl: 6
|
xl: 6,
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
loading:false,
|
loading: false,
|
||||||
imgCompress,
|
// imgCompress,
|
||||||
userList:[],
|
userList: [],
|
||||||
uploadUrl: process.env.VUE_APP_UPLOAD_PRIVATE_URL, // 加密图片url
|
uploadUrl: process.env.VUE_APP_UPLOAD_PRIVATE_URL, // 加密图片url
|
||||||
imgeDialogVisible: false,
|
imgeDialogVisible: false,
|
||||||
areaTree: [], // 省市区树形结构
|
areaTree: [], // 省市区树形结构
|
||||||
@@ -212,145 +265,193 @@ export default {
|
|||||||
businessLienceId: undefined,
|
businessLienceId: undefined,
|
||||||
auth: false,
|
auth: false,
|
||||||
auditMark: undefined,
|
auditMark: undefined,
|
||||||
createSource: 'WEBM'
|
createSource: "WEBM",
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
companyName: [
|
companyName: [
|
||||||
{ required: true, message: '请输入企业名称', trigger: 'blur' },
|
{ required: true, message: "请输入企业名称", trigger: "blur" },
|
||||||
{ min: 3, max: 50, message: '长度在 3 到 50 个字符', trigger: 'blur' }
|
{
|
||||||
|
min: 3,
|
||||||
|
max: 50,
|
||||||
|
message: "长度在 3 到 50 个字符",
|
||||||
|
trigger: "blur",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
bankCardName:[
|
bankCardName: [
|
||||||
{ required: true, message: '请输入打款名称', trigger: 'blur' },
|
{ required: true, message: "请输入打款名称", trigger: "blur" },
|
||||||
],
|
],
|
||||||
bankCardNo:[
|
bankCardNo: [
|
||||||
{ required: true, message: '请输入银行卡号', trigger: 'blur' },
|
{ required: true, message: "请输入银行卡号", trigger: "blur" },
|
||||||
],
|
],
|
||||||
bankName:[
|
bankName: [
|
||||||
{ required: true, message: '请输入开户行名称', trigger: 'change' },
|
{ required: true, message: "请输入开户行名称", trigger: "change" },
|
||||||
],
|
],
|
||||||
interBankCode:[
|
interBankCode: [
|
||||||
{ required: true, message: '请输入联行号', trigger: 'blur' },
|
{ required: true, message: "请输入联行号", trigger: "blur" },
|
||||||
],
|
],
|
||||||
address: [
|
address: [
|
||||||
{ min: 1, max: 300, message: '长度在 1 到 300 个字符', trigger: 'blur' }
|
{
|
||||||
|
min: 1,
|
||||||
|
max: 300,
|
||||||
|
message: "长度在 1 到 300 个字符",
|
||||||
|
trigger: "blur",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
companyLegalPerson: [
|
companyLegalPerson: [
|
||||||
{ min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }
|
{
|
||||||
],
|
min: 1,
|
||||||
registeredCapital: [
|
max: 50,
|
||||||
{ pattern: /^\d*$/, message: '只能输入数值' }
|
message: "长度在 1 到 50 个字符",
|
||||||
|
trigger: "blur",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
|
registeredCapital: [{ pattern: /^\d*$/, message: "只能输入数值" }],
|
||||||
businessQualia: [
|
businessQualia: [
|
||||||
{ min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
{
|
||||||
|
min: 1,
|
||||||
|
max: 255,
|
||||||
|
message: "长度在 1 到 255 个字符",
|
||||||
|
trigger: "blur",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
contactPhone: [
|
contactPhone: [
|
||||||
{ pattern: /^1[3456789]\d{9}$/, message: '目前只支持中国大陆的手机号码' }
|
{
|
||||||
|
pattern: /^1[3456789]\d{9}$/,
|
||||||
|
message: "目前只支持中国大陆的手机号码",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
website: [
|
website: [
|
||||||
{ pattern: /^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\*\+,;=.]+$/, message: '请输入正确网址' }
|
{
|
||||||
|
pattern:
|
||||||
|
/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\*\+,;=.]+$/,
|
||||||
|
message: "请输入正确网址",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
businessLienceId: [
|
businessLienceId: [
|
||||||
{ min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }
|
{
|
||||||
|
min: 1,
|
||||||
|
max: 50,
|
||||||
|
message: "长度在 1 到 50 个字符",
|
||||||
|
trigger: "blur",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
businessScope: [
|
businessScope: [
|
||||||
{ min: 1, max: 255, message: '长度在 1 到 255 个字符', trigger: 'blur' }
|
{
|
||||||
]
|
min: 1,
|
||||||
}
|
max: 255,
|
||||||
}
|
message: "长度在 1 到 255 个字符",
|
||||||
|
trigger: "blur",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.oilCompanyAuth.companyId = this.oilCompanyInfo.id
|
this.oilCompanyAuth.companyId = this.oilCompanyInfo.id;
|
||||||
this.oilCompanyAuth.companyName = this.oilCompanyInfo.name
|
this.oilCompanyAuth.companyName = this.oilCompanyInfo.name;
|
||||||
AreaCodeApi.getTree().then(res => {
|
AreaCodeApi.getTree().then((res) => {
|
||||||
this.areaTree = res.data
|
this.areaTree = res.data;
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleSelect(e){
|
handleSelect(e) {
|
||||||
console.log(e)
|
console.log(e);
|
||||||
if(e){
|
if (e) {
|
||||||
console.log(this.userList.filter((item,index)=>item.bankName==e)[0].cnaps);
|
console.log(
|
||||||
this.oilCompanyAuth.interBankCode = this.userList.filter((item,index)=>item.bankName==e)[0].cnaps
|
this.userList.filter((item, index) => item.bankName == e)[0].cnaps
|
||||||
|
);
|
||||||
|
this.oilCompanyAuth.interBankCode = this.userList.filter(
|
||||||
|
(item, index) => item.bankName == e
|
||||||
|
)[0].cnaps;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
userRemoteMethod(queryString){
|
userRemoteMethod(queryString) {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
if(this.timer){
|
if (this.timer) {
|
||||||
clearTimeout(this.timer)
|
clearTimeout(this.timer);
|
||||||
}
|
}
|
||||||
this.timer = setTimeout(()=>{
|
this.timer = setTimeout(() => {
|
||||||
AreaCodeApi.findAllByName({name:queryString}).then(res=>{
|
AreaCodeApi.findAllByName({ name: queryString }).then((res) => {
|
||||||
this.loading = false
|
this.loading = false;
|
||||||
this.userList = res.data
|
this.userList = res.data;
|
||||||
})
|
});
|
||||||
},300)
|
}, 300);
|
||||||
|
|
||||||
},
|
},
|
||||||
businessLienceImgPreview(file) { // 查询大图
|
businessLienceImgPreview(file) {
|
||||||
this.oilCompanyAuth.ibusinessLienceImgImageShow = file.url
|
// 查询大图
|
||||||
this.imgeDialogVisible = true
|
this.oilCompanyAuth.ibusinessLienceImgImageShow = file.url;
|
||||||
|
this.imgeDialogVisible = true;
|
||||||
},
|
},
|
||||||
businessLienceImgSuccess(response, file) { // 营业执照上传成功
|
businessLienceImgSuccess(response, file) {
|
||||||
if (response.code === '0') {
|
// 营业执照上传成功
|
||||||
this.oilCompanyAuth.businessLienceId = response.data.words_result.creditCode.words
|
if (response.code === "0") {
|
||||||
this.oilCompanyAuth.companyName = response.data.words_result.unitName.words
|
this.oilCompanyAuth.businessLienceId =
|
||||||
this.oilCompanyAuth.companyLegalPerson = response.data.words_result.legal.words
|
response.data.words_result.creditCode.words;
|
||||||
this.oilCompanyAuth.businessScope = response.data.words_result.scope.words
|
this.oilCompanyAuth.companyName =
|
||||||
|
response.data.words_result.unitName.words;
|
||||||
|
this.oilCompanyAuth.companyLegalPerson =
|
||||||
|
response.data.words_result.legal.words;
|
||||||
|
this.oilCompanyAuth.businessScope =
|
||||||
|
response.data.words_result.scope.words;
|
||||||
}
|
}
|
||||||
|
|
||||||
imgCompress(file.raw).then(res => {
|
// imgCompress(file.raw).then((res) => {
|
||||||
const form = new FormData()
|
// const form = new FormData();
|
||||||
res.fileName = file.fileName
|
// res.fileName = file.fileName;
|
||||||
form.append('file', res)
|
// form.append("file", res);
|
||||||
form.append('code', 'A003')
|
// form.append("code", "A003");
|
||||||
|
|
||||||
// 上传到oss
|
// // 上传到oss
|
||||||
axios.post(this.uploadUrl, form, { headers: { 'Content-type': 'application/x-www-form-urlencoded' }}).then(res => {
|
// axios
|
||||||
if (res.data.code === 20000) {
|
// .post(this.uploadUrl, form, {
|
||||||
this.oilCompanyAuth.businessLienceImg = res.data.data.path
|
// headers: { "Content-type": "application/x-www-form-urlencoded" },
|
||||||
}
|
// })
|
||||||
})
|
// .then((res) => {
|
||||||
})
|
// if (res.data.code === 20000) {
|
||||||
|
// this.oilCompanyAuth.businessLienceImg = res.data.data.path;
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
// });
|
||||||
},
|
},
|
||||||
businessLienceImgRemove() { // 营业执照删除
|
businessLienceImgRemove() {
|
||||||
this.oilCompanyAuth.ibusinessLienceImgImageShow = undefined
|
// 营业执照删除
|
||||||
this.oilCompanyAuth.businessLienceImg = undefined
|
this.oilCompanyAuth.ibusinessLienceImgImageShow = undefined;
|
||||||
|
this.oilCompanyAuth.businessLienceImg = undefined;
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
this.$refs['form'].validate((valid) => {
|
this.$refs["form"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.save(this.oilCompanyAuth)
|
this.save(this.oilCompanyAuth);
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
save() {
|
save() {
|
||||||
const data = { ...this.oilCompanyAuth }
|
const data = { ...this.oilCompanyAuth };
|
||||||
if (data.auth) {
|
if (data.auth) {
|
||||||
data.auditMark = 1
|
data.auditMark = 1;
|
||||||
} else {
|
} else {
|
||||||
data.auditMark = 2
|
data.auditMark = 2;
|
||||||
}
|
}
|
||||||
if (this.addrCode.length > 1) {
|
if (this.addrCode.length > 1) {
|
||||||
data.provinceCode = this.addrCode[0]
|
data.provinceCode = this.addrCode[0];
|
||||||
data.cityCode = this.addrCode[1]
|
data.cityCode = this.addrCode[1];
|
||||||
data.areaCode = this.addrCode[2]
|
data.areaCode = this.addrCode[2];
|
||||||
}
|
}
|
||||||
// 保存
|
// 保存
|
||||||
oilCompanyAuthApi.save(data).then(res => {
|
oilCompanyAuthApi.save(data).then((res) => {
|
||||||
this.$message.success(res.msg)
|
this.$message.success(res.msg);
|
||||||
this.$emit('closeDialog')
|
this.$emit("closeDialog");
|
||||||
this.$emit('getByPage')
|
this.$emit("getByPage");
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
close() {
|
close() {
|
||||||
this.$emit('closeDialog')
|
this.$emit("closeDialog");
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.el-divider--horizontal{
|
.el-divider--horizontal {
|
||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title="充值"
|
title="充值"
|
||||||
:visible="controlWindows.recharge"
|
:visible.sync="controlWindows.recharge"
|
||||||
width="30%"
|
width="30%"
|
||||||
:before-close="closeWindow"
|
:before-close="closeWindow"
|
||||||
@opened="openDrawer"
|
@opened="openDrawer"
|
||||||
|
|||||||
@@ -129,7 +129,7 @@
|
|||||||
direction="ltr"
|
direction="ltr"
|
||||||
size="60%"
|
size="60%"
|
||||||
:withHeader="false"
|
:withHeader="false"
|
||||||
:visible="controlWindows.detail"
|
:visible.sync="controlWindows.detail"
|
||||||
>
|
>
|
||||||
<general-details
|
<general-details
|
||||||
title="详情"
|
title="详情"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
:title="controlWindows.addInfo.title"
|
:title="controlWindows.addInfo.title"
|
||||||
direction="ltr"
|
direction="ltr"
|
||||||
size="50%"
|
size="50%"
|
||||||
:visible="controlWindows.add"
|
:visible.sync="controlWindows.add"
|
||||||
@opened="openDrawer"
|
@opened="openDrawer"
|
||||||
:before-close="closeWindow"
|
:before-close="closeWindow"
|
||||||
>
|
>
|
||||||
@@ -273,7 +273,7 @@ export default {
|
|||||||
// 公司change
|
// 公司change
|
||||||
companyChange(id) {
|
companyChange(id) {
|
||||||
if (id) {
|
if (id) {
|
||||||
serve.getByCompanyIdSec(id).then((res) => {
|
serve.getByCompanyId(id).then((res) => {
|
||||||
this.companyFinance = res.data;
|
this.companyFinance = res.data;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
:title="controlWindows.addInfo.title"
|
:title="controlWindows.addInfo.title"
|
||||||
direction="ltr"
|
direction="ltr"
|
||||||
size="50%"
|
size="50%"
|
||||||
:visible="controlWindows.addTurn"
|
:visible.sync="controlWindows.addTurn"
|
||||||
@opened="openDrawer"
|
@opened="openDrawer"
|
||||||
:before-close="closeWindow"
|
:before-close="closeWindow"
|
||||||
>
|
>
|
||||||
@@ -92,6 +92,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import serve from "api/financialCenter/enterpriseRecharge.js";
|
import serve from "api/financialCenter/enterpriseRecharge.js";
|
||||||
|
import commonServe from "api/common.js";
|
||||||
|
|
||||||
import autocomplete from "components/autocomplete/index.vue";
|
import autocomplete from "components/autocomplete/index.vue";
|
||||||
|
|
||||||
@@ -184,7 +185,7 @@ export default {
|
|||||||
// 公司财务信息
|
// 公司财务信息
|
||||||
companyChange(id) {
|
companyChange(id) {
|
||||||
if (id) {
|
if (id) {
|
||||||
serve.getByCompanyIdSec(id).then((res) => {
|
serve.getByCompanyId(id).then((res) => {
|
||||||
this.companyFinance = res.data;
|
this.companyFinance = res.data;
|
||||||
this.getByCompanyId(res.data.companyId);
|
this.getByCompanyId(res.data.companyId);
|
||||||
});
|
});
|
||||||
@@ -192,7 +193,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//
|
//
|
||||||
getByCompanyId(id) {
|
getByCompanyId(id) {
|
||||||
serve.getByCompanyId(id).then((res) => {
|
commonServe.getByCompanyId(id).then((res) => {
|
||||||
this.companyInfo = res.data;
|
this.companyInfo = res.data;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -264,7 +264,7 @@
|
|||||||
direction="ltr"
|
direction="ltr"
|
||||||
size="60%"
|
size="60%"
|
||||||
:withHeader="false"
|
:withHeader="false"
|
||||||
:visible="controlWindows.detail"
|
:visible.sync="controlWindows.detail"
|
||||||
>
|
>
|
||||||
<general-details
|
<general-details
|
||||||
title="详情"
|
title="详情"
|
||||||
@@ -555,7 +555,7 @@ export default {
|
|||||||
detail(row) {
|
detail(row) {
|
||||||
Promise.all([
|
Promise.all([
|
||||||
serve.get(row.id),
|
serve.get(row.id),
|
||||||
serve.getByCompanyId(row.companyId),
|
commonServe.getByCompanyId(row.companyId),
|
||||||
]).then(([firstRes, secondRes]) => {
|
]).then(([firstRes, secondRes]) => {
|
||||||
this.oilCompanyMatch = { ...firstRes.data, ...secondRes.data };
|
this.oilCompanyMatch = { ...firstRes.data, ...secondRes.data };
|
||||||
this.controlWindows.detail = true;
|
this.controlWindows.detail = true;
|
||||||
|
|||||||
@@ -178,7 +178,7 @@
|
|||||||
direction="ltr"
|
direction="ltr"
|
||||||
size="60%"
|
size="60%"
|
||||||
:withHeader="false"
|
:withHeader="false"
|
||||||
:visible="controlWindows.detail"
|
:visible.sync="controlWindows.detail"
|
||||||
>
|
>
|
||||||
<general-details
|
<general-details
|
||||||
title="详情"
|
title="详情"
|
||||||
@@ -252,24 +252,7 @@ export default {
|
|||||||
total: 0,
|
total: 0,
|
||||||
params: {},
|
params: {},
|
||||||
},
|
},
|
||||||
// rechargeTypeEnum: [
|
|
||||||
// {
|
|
||||||
// label: "充值",
|
|
||||||
// value: "RECHARGE",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// label: "销账",
|
|
||||||
// value: "REVOKE",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// label: "赊销",
|
|
||||||
// value: "CHARGE_SALES",
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// label: "消费返利",
|
|
||||||
// value: "CONSUME_REBATE",
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
LoopBackTypeEnum: [
|
LoopBackTypeEnum: [
|
||||||
{
|
{
|
||||||
label: "充值圈回",
|
label: "充值圈回",
|
||||||
@@ -289,38 +272,6 @@ export default {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
// rechargeStatusEnum: [
|
|
||||||
// {
|
|
||||||
// label: "已申请",
|
|
||||||
// value: 0,
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// label: "已成功",
|
|
||||||
// value: 1,
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// label: "已撤销",
|
|
||||||
// value: -1,
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
// repaymentExamineEnum: [
|
|
||||||
// {
|
|
||||||
// label: "还款待审核",
|
|
||||||
// value: 0,
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// label: "还款成功",
|
|
||||||
// value: 1,
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// label: "还款失败",
|
|
||||||
// value: -1,
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// label: "待还款",
|
|
||||||
// value: -2,
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
oilCompanyMatch: {},
|
oilCompanyMatch: {},
|
||||||
mappingData: [
|
mappingData: [
|
||||||
{
|
{
|
||||||
@@ -412,7 +363,7 @@ export default {
|
|||||||
detail(row) {
|
detail(row) {
|
||||||
Promise.all([
|
Promise.all([
|
||||||
serve.get(row.id),
|
serve.get(row.id),
|
||||||
serve.getByCompanyId(row.companyId),
|
commonServe.getByCompanyId(row.companyId),
|
||||||
]).then(([firstRes, secondRes]) => {
|
]).then(([firstRes, secondRes]) => {
|
||||||
this.oilCompanyMatch = { ...firstRes.data, ...secondRes.data };
|
this.oilCompanyMatch = { ...firstRes.data, ...secondRes.data };
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
:title="controlWindows.addInfo.title"
|
:title="controlWindows.addInfo.title"
|
||||||
direction="ltr"
|
direction="ltr"
|
||||||
size="40%"
|
size="40%"
|
||||||
:visible="controlWindows.add"
|
:visible.sync="controlWindows.add"
|
||||||
@opened="openDrawer"
|
@opened="openDrawer"
|
||||||
:before-close="closeWindow"
|
:before-close="closeWindow"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title="调价"
|
title="调价"
|
||||||
:visible="controlWindows.adjust"
|
:visible.sync="controlWindows.adjust"
|
||||||
width="30%"
|
width="30%"
|
||||||
:before-close="closeWindow"
|
:before-close="closeWindow"
|
||||||
@opened="openDrawer"
|
@opened="openDrawer"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title="批量修改"
|
title="批量修改"
|
||||||
:visible="controlWindows.batch"
|
:visible.sync="controlWindows.batch"
|
||||||
width="30%"
|
width="30%"
|
||||||
:before-close="closeWindow"
|
:before-close="closeWindow"
|
||||||
@opened="openDrawer"
|
@opened="openDrawer"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
title="创建订单"
|
title="创建订单"
|
||||||
direction="ltr"
|
direction="ltr"
|
||||||
size="40%"
|
size="40%"
|
||||||
:visible="controlWindows.create"
|
:visible.sync="controlWindows.create"
|
||||||
@opened="openDrawer"
|
@opened="openDrawer"
|
||||||
:before-close="closeWindow"
|
:before-close="closeWindow"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
title="调价记录"
|
title="调价记录"
|
||||||
direction="ltr"
|
direction="ltr"
|
||||||
size="60%"
|
size="60%"
|
||||||
:visible="controlWindows.record"
|
:visible.sync="controlWindows.record"
|
||||||
:before-close="closeWindow"
|
:before-close="closeWindow"
|
||||||
@opened="openDrawer"
|
@opened="openDrawer"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -170,7 +170,7 @@
|
|||||||
direction="ltr"
|
direction="ltr"
|
||||||
size="60%"
|
size="60%"
|
||||||
:withHeader="false"
|
:withHeader="false"
|
||||||
:visible="controlWindows.detail"
|
:visible.sync="controlWindows.detail"
|
||||||
>
|
>
|
||||||
<general-details
|
<general-details
|
||||||
title="详情"
|
title="详情"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
:title="controlWindows.addInfo.title"
|
:title="controlWindows.addInfo.title"
|
||||||
direction="ltr"
|
direction="ltr"
|
||||||
size="40%"
|
size="40%"
|
||||||
:visible="controlWindows.add"
|
:visible.sync="controlWindows.add"
|
||||||
@opened="openDrawer"
|
@opened="openDrawer"
|
||||||
:before-close="closeWindow"
|
:before-close="closeWindow"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -121,7 +121,7 @@
|
|||||||
direction="ltr"
|
direction="ltr"
|
||||||
size="60%"
|
size="60%"
|
||||||
:withHeader="false"
|
:withHeader="false"
|
||||||
:visible="controlWindows.detail"
|
:visible.sync="controlWindows.detail"
|
||||||
>
|
>
|
||||||
<general-details
|
<general-details
|
||||||
title="详情"
|
title="详情"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
:title="controlWindows.addInfo.title"
|
:title="controlWindows.addInfo.title"
|
||||||
direction="ltr"
|
direction="ltr"
|
||||||
size="40%"
|
size="40%"
|
||||||
:visible="controlWindows.add"
|
:visible.sync="controlWindows.add"
|
||||||
@opened="openDrawer"
|
@opened="openDrawer"
|
||||||
:before-close="closeWindow"
|
:before-close="closeWindow"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -150,7 +150,7 @@
|
|||||||
direction="ltr"
|
direction="ltr"
|
||||||
size="60%"
|
size="60%"
|
||||||
:withHeader="false"
|
:withHeader="false"
|
||||||
:visible="controlWindows.detail"
|
:visible.sync="controlWindows.detail"
|
||||||
>
|
>
|
||||||
<general-details
|
<general-details
|
||||||
title="详情"
|
title="详情"
|
||||||
|
|||||||
Reference in New Issue
Block a user