|
@@ -74,19 +74,19 @@
|
|
|
:on-exceed="handleExceed"
|
|
|
list-type="picture-card"
|
|
|
:file-list="yyzzList"
|
|
|
- :auto-upload="ture"
|
|
|
+ :auto-upload="false"
|
|
|
>
|
|
|
<el-button slot="trigger" size="small" type="primary"
|
|
|
>点击选择</el-button
|
|
|
>
|
|
|
</el-upload>
|
|
|
- <!-- <el-button
|
|
|
+ <el-button
|
|
|
style="margin-left: 10px"
|
|
|
size="small"
|
|
|
type="success"
|
|
|
@click="submitUpload"
|
|
|
>上传到服务器</el-button
|
|
|
- > -->
|
|
|
+ >
|
|
|
</el-aside>
|
|
|
<el-main>
|
|
|
<el-row>
|
|
@@ -229,7 +229,7 @@
|
|
|
ref="fsfzzload"
|
|
|
class="upload-demo"
|
|
|
action=""
|
|
|
- :class="{ fsfzzUoload: showBtnImg, Uoloadfsfzz: fsfzzBtnImg }"
|
|
|
+ :class="{ uoload: showBtnImg, UoloadSty: fsfzzBtnImg }"
|
|
|
:on-change="fsfzzImgChange"
|
|
|
accept=".jpg, .jpeg, .png, .JPG, .JPEG, .PNG"
|
|
|
:http-request="fsfzzRequest"
|
|
@@ -240,19 +240,19 @@
|
|
|
:on-exceed="fsfzzExceed"
|
|
|
list-type="picture-card"
|
|
|
:file-list="fsfzzList"
|
|
|
- :auto-upload="ture"
|
|
|
+ :auto-upload="false"
|
|
|
>
|
|
|
<el-button slot="trigger" size="small" type="primary"
|
|
|
>点击选择</el-button
|
|
|
>
|
|
|
</el-upload>
|
|
|
- <!-- <el-button
|
|
|
+ <el-button
|
|
|
style="margin-left: 10px"
|
|
|
size="small"
|
|
|
type="success"
|
|
|
@click="fsfzzUpload"
|
|
|
>上传到服务器</el-button
|
|
|
- > -->
|
|
|
+ >
|
|
|
<span style="font-size: 14px"
|
|
|
><span class="separation"></span>身份证反面</span
|
|
|
>
|
|
@@ -260,7 +260,7 @@
|
|
|
ref="fsfzfload"
|
|
|
class="upload-demo"
|
|
|
action=""
|
|
|
- :class="{ fsfzfUoload: showBtnImg, Uoloadfsfzf: fsfzfBtnImg }"
|
|
|
+ :class="{ uoloadbyz: showBtnImg, byzUoloadSty: fsfzfBtnImg }"
|
|
|
:on-change="fsfzfImgChange"
|
|
|
accept=".jpg, .jpeg, .png, .JPG, .JPEG, .PNG"
|
|
|
:http-request="fsfzfRequest"
|
|
@@ -330,7 +330,7 @@
|
|
|
ref="jsfzzload"
|
|
|
class="upload-demo"
|
|
|
action=""
|
|
|
- :class="{ jsfzzUoload: showBtnImg, Uoloadjsfzz: jsfzzBtnImg }"
|
|
|
+ :class="{ uoload: showBtnImg, UoloadSty: jsfzzBtnImg }"
|
|
|
:on-change="jsfzzImgChange"
|
|
|
accept=".jpg, .jpeg, .png, .JPG, .JPEG, .PNG"
|
|
|
:http-request="jsfzzRequest"
|
|
@@ -361,7 +361,7 @@
|
|
|
ref="jsfzfload"
|
|
|
class="upload-demo"
|
|
|
action=""
|
|
|
- :class="{ jsfzfUoload: showBtnImg, Uoloadjsfzf: jsfzfBtnImg }"
|
|
|
+ :class="{ uoloadbyz: showBtnImg, byzUoloadSty: jsfzfBtnImg }"
|
|
|
:on-change="jsfzfImgChange"
|
|
|
accept=".jpg, .jpeg, .png, .JPG, .JPEG, .PNG"
|
|
|
:http-request="jsfzfRequest"
|
|
@@ -562,7 +562,7 @@
|
|
|
</el-main>
|
|
|
|
|
|
<el-footer>
|
|
|
- <el-checkbox v-model="checked">我已阅读并同意</el-checkbox
|
|
|
+ <el-checkbox >我已阅读并同意</el-checkbox
|
|
|
><a href="">《xxxxxxxx融信协议》</a>
|
|
|
</el-footer>
|
|
|
</el-container>
|
|
@@ -734,8 +734,56 @@ export default {
|
|
|
//图片预览
|
|
|
// 表单参数
|
|
|
form: {},
|
|
|
- formt: {},
|
|
|
- forms: {},
|
|
|
+ // 表单校验
|
|
|
+ rules: {
|
|
|
+ scyName: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: "企业名称不能为空",
|
|
|
+ trigger: ["change", "blur"],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ scySocialCode: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: "社会统一信用代码不能为空",
|
|
|
+ trigger: ["change", "blur"],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ scyLegal: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: "法人代表不能为空",
|
|
|
+ trigger: ["change", "blur"],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ smiManager: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: "客户经理不能为空",
|
|
|
+ trigger: ["change", "blur"],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ smiContract: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: "联系人姓名不能为空",
|
|
|
+ trigger: ["change", "blur"],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ smiContractPhone: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: "联系人电话不能为空",
|
|
|
+ trigger: ["change", "blur"],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
|
|
+ message: "请输入正确的手机号码",
|
|
|
+ trigger: ["blur", "change"],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
yyzzImageUrl: "",
|
|
|
yyzzVisible: false,
|
|
|
fsfzzImageUrl: "",
|
|
@@ -760,8 +808,8 @@ export default {
|
|
|
fsfzfBtnImg: false,
|
|
|
jsfzzBtnImg: false,
|
|
|
jsfzfBtnImg: false,
|
|
|
- srsqsBtnImg: false,
|
|
|
- sqzssqBtnImg: false,
|
|
|
+ frsqsBtnImg: false,
|
|
|
+ szzssqBtnImg: false,
|
|
|
qtfjBtnImg: false,
|
|
|
limitCountImg: 1,
|
|
|
|
|
@@ -914,16 +962,14 @@ export default {
|
|
|
/** 查询企业状态 */
|
|
|
getList() {
|
|
|
cashBack().then((response) => {
|
|
|
- this.form = response.data.list;
|
|
|
- console.log(response.data.list)
|
|
|
- if (this.form) {
|
|
|
+ if (this.response) {
|
|
|
+ this.form = response.data.list;
|
|
|
if (response.data.list.scyStatus == "03"){
|
|
|
- console.log(response.data.data)
|
|
|
this.$set(this.form, "pbaiBankaccountId", response.data.data[0].pbaiBankaccountId);
|
|
|
this.$set(this.form, "pbaiBankName", response.data.data[0].pbaiBankName);
|
|
|
this.active = 1;
|
|
|
}else if(response.data.list.scyStatus == "02"){
|
|
|
- this.active =0;
|
|
|
+ this.active = 1;
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -1139,10 +1185,13 @@ export default {
|
|
|
"scyRegisteredCapital",
|
|
|
response.data.scyRegisteredCapital
|
|
|
);
|
|
|
+ if(response.data.scyStartTime!=null){
|
|
|
this.$set(this.form, "scyStartTime", response.data.scyStartTime);
|
|
|
+ }
|
|
|
+ if(response.data.scyEndTime!=null){
|
|
|
this.$set(this.form, "scyEndTime", response.data.scyEndTime);
|
|
|
+ }
|
|
|
this.$set(this.form, "scyLicenseFile", response.data.scyLicenseFile);
|
|
|
- console.log(this.form);
|
|
|
setTimeout(() => {
|
|
|
loading.close();
|
|
|
}, 2000);
|
|
@@ -1162,7 +1211,6 @@ export default {
|
|
|
background: "rgba(0, 0, 0, 0.7)",
|
|
|
});
|
|
|
getCard(fd).then((response) => {
|
|
|
- console.log(response);
|
|
|
if (response) {
|
|
|
this.$set(this.form, "scyLegalId", response.data.scyLegalId);
|
|
|
this.$set(this.form, "scyLegal", response.data.scyLegal);
|
|
@@ -1210,7 +1258,6 @@ export default {
|
|
|
background: "rgba(0, 0, 0, 0.7)",
|
|
|
});
|
|
|
getCard(fd).then((response) => {
|
|
|
- console.log(response);
|
|
|
if (response) {
|
|
|
this.$set(this.form, "handler", response.data.handler);
|
|
|
this.$set(this.form, "handlerCard", response.data.handlerCard);
|
|
@@ -1338,81 +1385,6 @@ export default {
|
|
|
download() {
|
|
|
window.location.href = "http://localhost:8080/template/template.xlsx";
|
|
|
},
|
|
|
- // 文件上传到服务器之前的文件校验
|
|
|
- beforeUpload(file) {
|
|
|
- const extension = file.name.substring(file.name.lastIndexOf(".") + 1);
|
|
|
- const size = file.size / 1024 / 1024;
|
|
|
- if (extension !== "xlsx") {
|
|
|
- // 校验文件格式
|
|
|
- this.$message.warning("只支持上传后缀名为.xlsx的Excel文件");
|
|
|
- }
|
|
|
- if (size > 10) {
|
|
|
- // 校验文件大小
|
|
|
- this.$message.warning("文件大小不能超过10MB");
|
|
|
- }
|
|
|
- },
|
|
|
- // 文件状态改变
|
|
|
- handleChange(file, fileList) {
|
|
|
- if (file) {
|
|
|
- this.fileList = fileList.slice(-3);
|
|
|
- }
|
|
|
- },
|
|
|
- // 文件删除时
|
|
|
- handleRemove(file, fileList) {
|
|
|
- console.log(file, fileList);
|
|
|
- this.fileList = []; // 文件列表置空
|
|
|
- },
|
|
|
- // 点击文件列表中已上传的文件时的钩子
|
|
|
- handlePreview(file) {
|
|
|
- console.log(file);
|
|
|
- },
|
|
|
- // 文件上传成功
|
|
|
- handleSuccess(response, file, fileList) {
|
|
|
- console.log("-------handleSuccess-------");
|
|
|
- console.log(response);
|
|
|
- this.$message.success("文件 [" + file.name + "] 上传成功");
|
|
|
- },
|
|
|
- // 文件上传失败
|
|
|
- handleError(err, file, fileList) {
|
|
|
- console.log("-------handleError-------");
|
|
|
- console.log(err);
|
|
|
- this.$message.error("文件上传失败");
|
|
|
- },
|
|
|
- // 覆盖默认的上传行为,可以自定义上传的实现
|
|
|
- httpRequest(param) {
|
|
|
- console.log(param);
|
|
|
- const fileObj = param.file; // 获取file文件
|
|
|
- const formData = new FormData(); // FormData对象
|
|
|
- formData.append("file", fileObj); // file封装到FormData里
|
|
|
- // 请求后台上传数据的接口
|
|
|
- this.$http
|
|
|
- .post("/upload", formData, {
|
|
|
- headers: { "Content-Type": "multipart/form-data" },
|
|
|
- // url: '/upload',
|
|
|
- // data: formData
|
|
|
- // method: 'post'
|
|
|
- })
|
|
|
- .then(
|
|
|
- (res) => {
|
|
|
- console.log("-------res--------");
|
|
|
- console.log(res);
|
|
|
- if (res.data.meta.status === "200") {
|
|
|
- this.$message.success(res.data.meta.msg);
|
|
|
- // 清空文件列表
|
|
|
- this.fileList = [];
|
|
|
- } else {
|
|
|
- this.$message.error(res.data.meta.msg);
|
|
|
- }
|
|
|
- },
|
|
|
- (err) => {
|
|
|
- console.log("-------err--------");
|
|
|
- console.log(err);
|
|
|
- this.$message.error(
|
|
|
- "上传文件内容有问题,请保证上传文件字段均不为空且正确"
|
|
|
- );
|
|
|
- }
|
|
|
- );
|
|
|
- },
|
|
|
// 下一步
|
|
|
next() {
|
|
|
if (this.active == 0) {
|
|
@@ -1511,50 +1483,6 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
<style>
|
|
|
-.uoloadSty .el-upload--picture-card {
|
|
|
- width: 110px;
|
|
|
- height: 110px;
|
|
|
- line-height: 110px;
|
|
|
-}
|
|
|
-.disUoloadSty .el-upload--picture-card {
|
|
|
- display: none;
|
|
|
-}
|
|
|
-
|
|
|
-.fsfzzUoload .el-upload--picture-card {
|
|
|
- width: 110px;
|
|
|
- height: 110px;
|
|
|
- line-height: 110px;
|
|
|
-}
|
|
|
-.Uoloadfsfzz .el-upload--picture-card {
|
|
|
- display: none;
|
|
|
-}
|
|
|
-
|
|
|
-.fsfzfUoload .el-upload--picture-card {
|
|
|
- width: 110px;
|
|
|
- height: 110px;
|
|
|
- line-height: 110px;
|
|
|
-}
|
|
|
-.Uoloadfsfzf .el-upload--picture-card {
|
|
|
- display: none;
|
|
|
-}
|
|
|
-
|
|
|
-.jsfzzUoload .el-upload--picture-card {
|
|
|
- width: 110px;
|
|
|
- height: 110px;
|
|
|
- line-height: 110px;
|
|
|
-}
|
|
|
-.Uoloadjsfzz .el-upload--picture-card {
|
|
|
- display: none;
|
|
|
-}
|
|
|
-.jsfzfUoload .el-upload--picture-card {
|
|
|
- width: 110px;
|
|
|
- height: 110px;
|
|
|
- line-height: 110px;
|
|
|
-}
|
|
|
-.Uoloadjsfzf .el-upload--picture-card {
|
|
|
- display: none;
|
|
|
-}
|
|
|
-
|
|
|
.substance p {
|
|
|
font-family: "微软雅黑", sans-serif;
|
|
|
font-weight: 400;
|