|
@@ -261,7 +261,7 @@
|
|
|
v-model="form.smiContractPhone"
|
|
v-model="form.smiContractPhone"
|
|
|
style="width: 215px"
|
|
style="width: 215px"
|
|
|
placeholder="请输入联系人电话"
|
|
placeholder="请输入联系人电话"
|
|
|
- maxlength="15"
|
|
|
|
|
|
|
+ maxlength="11"
|
|
|
:disabled="disabled"
|
|
:disabled="disabled"
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -274,7 +274,7 @@
|
|
|
style="width: 558px"
|
|
style="width: 558px"
|
|
|
></el-input>
|
|
></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item label="合作协议">
|
|
|
|
|
|
|
+ <el-form-item label="合作协议">
|
|
|
<el-upload
|
|
<el-upload
|
|
|
ref="upload"
|
|
ref="upload"
|
|
|
class="upload-demo"
|
|
class="upload-demo"
|
|
@@ -297,13 +297,13 @@
|
|
|
>
|
|
>
|
|
|
</el-upload>
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-button
|
|
|
|
|
- style="margin-left: 10px"
|
|
|
|
|
- size="small"
|
|
|
|
|
- type="success"
|
|
|
|
|
- @click="submitUpload"
|
|
|
|
|
- >上传到服务器</el-button
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ style="margin-left: 10px"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ type="success"
|
|
|
|
|
+ @click="submitUpload"
|
|
|
|
|
+ >上传到服务器</el-button
|
|
|
|
|
+ >
|
|
|
</el-form>
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
@@ -339,9 +339,9 @@ export default {
|
|
|
//图片预览
|
|
//图片预览
|
|
|
sfzImageUrl: "",
|
|
sfzImageUrl: "",
|
|
|
sfzVisible: false,
|
|
sfzVisible: false,
|
|
|
- showBtnImg: false,
|
|
|
|
|
- noneBtnImg: false,
|
|
|
|
|
- limitCountImg: 1,
|
|
|
|
|
|
|
+ showBtnImg: false,
|
|
|
|
|
+ noneBtnImg: false,
|
|
|
|
|
+ limitCountImg: 1,
|
|
|
// id隐藏
|
|
// id隐藏
|
|
|
isShow: false,
|
|
isShow: false,
|
|
|
// 遮罩层
|
|
// 遮罩层
|
|
@@ -398,6 +398,11 @@ export default {
|
|
|
message: "资金方名称不能为空",
|
|
message: "资金方名称不能为空",
|
|
|
trigger: ["change", "blur"],
|
|
trigger: ["change", "blur"],
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ pattern: /^[\u2E80-\u9FFF]|\w|[,,\.。]+$/,
|
|
|
|
|
+ message: "客户经理不能含有特殊字符",
|
|
|
|
|
+ trigger: "blur",
|
|
|
|
|
+ },
|
|
|
],
|
|
],
|
|
|
smiAddress: [
|
|
smiAddress: [
|
|
|
{
|
|
{
|
|
@@ -406,7 +411,7 @@ export default {
|
|
|
trigger: ["change", "blur"],
|
|
trigger: ["change", "blur"],
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
- smiType: [
|
|
|
|
|
|
|
+ smiType: [
|
|
|
{
|
|
{
|
|
|
required: true,
|
|
required: true,
|
|
|
message: "资金方类型不能为空",
|
|
message: "资金方类型不能为空",
|
|
@@ -433,11 +438,11 @@ export default {
|
|
|
message: "客户经理不能为空",
|
|
message: "客户经理不能为空",
|
|
|
trigger: ["change", "blur"],
|
|
trigger: ["change", "blur"],
|
|
|
},
|
|
},
|
|
|
- {
|
|
|
|
|
|
|
+ {
|
|
|
pattern: /^[\u2E80-\u9FFF]|\w|[,,\.。]+$/,
|
|
pattern: /^[\u2E80-\u9FFF]|\w|[,,\.。]+$/,
|
|
|
message: "客户经理不能含有特殊字符",
|
|
message: "客户经理不能含有特殊字符",
|
|
|
trigger: "blur",
|
|
trigger: "blur",
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
],
|
|
],
|
|
|
smiContract: [
|
|
smiContract: [
|
|
|
{
|
|
{
|
|
@@ -445,11 +450,11 @@ export default {
|
|
|
message: "联系人姓名不能为空",
|
|
message: "联系人姓名不能为空",
|
|
|
trigger: ["change", "blur"],
|
|
trigger: ["change", "blur"],
|
|
|
},
|
|
},
|
|
|
- {
|
|
|
|
|
|
|
+ {
|
|
|
pattern: /^[\u2E80-\u9FFF]|\w|[,,\.。]+$/,
|
|
pattern: /^[\u2E80-\u9FFF]|\w|[,,\.。]+$/,
|
|
|
message: "联系人姓名不能含有特殊字符",
|
|
message: "联系人姓名不能含有特殊字符",
|
|
|
trigger: "blur",
|
|
trigger: "blur",
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
],
|
|
],
|
|
|
smiContractPhone: [
|
|
smiContractPhone: [
|
|
|
{
|
|
{
|
|
@@ -509,7 +514,7 @@ export default {
|
|
|
ssId: null,
|
|
ssId: null,
|
|
|
ssName: null,
|
|
ssName: null,
|
|
|
};
|
|
};
|
|
|
- this.noneBtnImg = false;
|
|
|
|
|
|
|
+ this.noneBtnImg = false;
|
|
|
this.enclosureList = [];
|
|
this.enclosureList = [];
|
|
|
this.sfzList = [];
|
|
this.sfzList = [];
|
|
|
this.resetForm("form");
|
|
this.resetForm("form");
|
|
@@ -556,12 +561,12 @@ export default {
|
|
|
getFund(scyId).then((response) => {
|
|
getFund(scyId).then((response) => {
|
|
|
console.log(response);
|
|
console.log(response);
|
|
|
this.form = response.data.list[0];
|
|
this.form = response.data.list[0];
|
|
|
- if (response.data.data&&response.data.data.length!=0) {
|
|
|
|
|
|
|
+ if (response.data.data && response.data.data.length != 0) {
|
|
|
this.sfzList.push({
|
|
this.sfzList.push({
|
|
|
name: "合作协议",
|
|
name: "合作协议",
|
|
|
url: response.data.data[0].pfiUrl + "/" + getToken(),
|
|
url: response.data.data[0].pfiUrl + "/" + getToken(),
|
|
|
});
|
|
});
|
|
|
- this.noneBtnImg = true;
|
|
|
|
|
|
|
+ this.noneBtnImg = true;
|
|
|
}
|
|
}
|
|
|
this.open = true;
|
|
this.open = true;
|
|
|
this.disableds = false;
|
|
this.disableds = false;
|
|
@@ -573,15 +578,15 @@ export default {
|
|
|
handleDetail(row) {
|
|
handleDetail(row) {
|
|
|
this.reset();
|
|
this.reset();
|
|
|
const scyId = row.scyId || this.ids;
|
|
const scyId = row.scyId || this.ids;
|
|
|
- getFund(scyId).then((response) => {
|
|
|
|
|
|
|
+ getFund(scyId).then((response) => {
|
|
|
console.log(response);
|
|
console.log(response);
|
|
|
this.form = response.data.list[0];
|
|
this.form = response.data.list[0];
|
|
|
- if(response.data.data&&response.data.data.length!=0) {
|
|
|
|
|
|
|
+ if (response.data.data && response.data.data.length != 0) {
|
|
|
this.sfzList.push({
|
|
this.sfzList.push({
|
|
|
name: "合作协议",
|
|
name: "合作协议",
|
|
|
url: response.data.data[0].pfiUrl + "/" + getToken(),
|
|
url: response.data.data[0].pfiUrl + "/" + getToken(),
|
|
|
});
|
|
});
|
|
|
- this.noneBtnImg = true;
|
|
|
|
|
|
|
+ this.noneBtnImg = true;
|
|
|
}
|
|
}
|
|
|
this.open = true;
|
|
this.open = true;
|
|
|
this.disableds = true;
|
|
this.disableds = true;
|
|
@@ -591,8 +596,8 @@ export default {
|
|
|
/** 提交按钮 */
|
|
/** 提交按钮 */
|
|
|
submitForm() {
|
|
submitForm() {
|
|
|
this.$refs["form"].validate((valid) => {
|
|
this.$refs["form"].validate((valid) => {
|
|
|
- this.form.smiAgreement = this.sfzList;
|
|
|
|
|
- console.log(this.form.smiAgreement)
|
|
|
|
|
|
|
+ this.form.smiAgreement = this.sfzList;
|
|
|
|
|
+ console.log(this.form.smiAgreement);
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
if (this.form.scyId != null) {
|
|
if (this.form.scyId != null) {
|
|
|
const loading = this.$loading({
|
|
const loading = this.$loading({
|
|
@@ -650,7 +655,7 @@ export default {
|
|
|
row.scyStatus = row.scyStatus === "00" ? "01" : "00";
|
|
row.scyStatus = row.scyStatus === "00" ? "01" : "00";
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- //文件移除提示
|
|
|
|
|
|
|
+ //文件移除提示
|
|
|
beforeRemove(file, byzList) {
|
|
beforeRemove(file, byzList) {
|
|
|
for (let i = 0; i < this.byzList.length; i++) {
|
|
for (let i = 0; i < this.byzList.length; i++) {
|
|
|
if (file.uid == this.byzList[i].uid) {
|
|
if (file.uid == this.byzList[i].uid) {
|
|
@@ -663,12 +668,12 @@ export default {
|
|
|
handleExceed(file, sfzList) {
|
|
handleExceed(file, sfzList) {
|
|
|
this.$message.warning(`当前限制选择 20 个文件`);
|
|
this.$message.warning(`当前限制选择 20 个文件`);
|
|
|
},
|
|
},
|
|
|
- //图片预览
|
|
|
|
|
|
|
+ //图片预览
|
|
|
handlePictureCardPreview(file) {
|
|
handlePictureCardPreview(file) {
|
|
|
this.sfzImageUrl = file.url;
|
|
this.sfzImageUrl = file.url;
|
|
|
this.sfzVisible = true;
|
|
this.sfzVisible = true;
|
|
|
},
|
|
},
|
|
|
- dealImgChange(file, sfzList) {
|
|
|
|
|
|
|
+ dealImgChange(file, sfzList) {
|
|
|
this.noneBtnImg = sfzList.length >= this.limitCountImg;
|
|
this.noneBtnImg = sfzList.length >= this.limitCountImg;
|
|
|
},
|
|
},
|
|
|
//上传
|
|
//上传
|
|
@@ -676,7 +681,7 @@ export default {
|
|
|
this.$refs.upload.submit();
|
|
this.$refs.upload.submit();
|
|
|
},
|
|
},
|
|
|
//手动上传文件触发
|
|
//手动上传文件触发
|
|
|
- sfzRequest(param) {
|
|
|
|
|
|
|
+ sfzRequest(param) {
|
|
|
let fileObj = param.file; // 相当于input里取得的files
|
|
let fileObj = param.file; // 相当于input里取得的files
|
|
|
let fd = new FormData(); // FormData 对象
|
|
let fd = new FormData(); // FormData 对象
|
|
|
fd.append("file", fileObj); // 文件对象
|
|
fd.append("file", fileObj); // 文件对象
|