|
|
@@ -5107,7 +5107,7 @@ export default {
|
|
|
res = await this.$api.letter.getAllAgreementByUserId({ userId: this.userId })
|
|
|
}
|
|
|
if (this.isLetter == '3') {
|
|
|
- this.userId =data? data.userid:this.userId
|
|
|
+ this.userId = data ? data.userid : this.userId
|
|
|
res = await this.$api.letter.getExternalAgreement()
|
|
|
}
|
|
|
|
|
|
@@ -6087,21 +6087,21 @@ export default {
|
|
|
}
|
|
|
if (this.$route.query.data) {
|
|
|
const mergedArray = [
|
|
|
- ...this.imageList1,
|
|
|
- ...this.imageList2,
|
|
|
- ...this.imageList3,
|
|
|
- ...this.imageList4,
|
|
|
- ...this.imageList5
|
|
|
- ];
|
|
|
- if (mergedArray.length > 0) {
|
|
|
- let imageparam = {
|
|
|
- imageList: mergedArray,
|
|
|
- quoteNo: this.$route.query.data.quoteno
|
|
|
- };
|
|
|
- this.$api.letter.uploadImages(imageparam).then(responses => {
|
|
|
- this.imageEcho(this.$route.query.data.quoteno); // 获取图片
|
|
|
- });
|
|
|
- }
|
|
|
+ ...this.imageList1,
|
|
|
+ ...this.imageList2,
|
|
|
+ ...this.imageList3,
|
|
|
+ ...this.imageList4,
|
|
|
+ ...this.imageList5
|
|
|
+ ];
|
|
|
+ if (mergedArray.length > 0) {
|
|
|
+ let imageparam = {
|
|
|
+ imageList: mergedArray,
|
|
|
+ quoteNo: this.$route.query.data.quoteno
|
|
|
+ };
|
|
|
+ this.$api.letter.uploadImages(imageparam).then(responses => {
|
|
|
+ this.imageEcho(this.$route.query.data.quoteno); // 获取图片
|
|
|
+ });
|
|
|
+ }
|
|
|
let params = {
|
|
|
orderNo: this.$route.query.data.orderno,
|
|
|
...this.policyNumberForm,
|
|
|
@@ -8671,8 +8671,23 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
policydrivingupload(file, val) {
|
|
|
- this.policyNumberForm[val + 'List'] = []
|
|
|
- this.$refs.jqPolicyupload.clearFiles()
|
|
|
+ // this.policyNumberForm[val + 'List'] = []
|
|
|
+ switch (val) {
|
|
|
+ case jqPolicy:
|
|
|
+ this.policyNumberForm.jqPolicyList = []
|
|
|
+ break;
|
|
|
+ case syPolicy:
|
|
|
+ this.policyNumberForm.syPolicyList = []
|
|
|
+ break;
|
|
|
+ case noPolicy:
|
|
|
+ this.policyNumberForm.noPolicyList = []
|
|
|
+ break;
|
|
|
+ case jqSign:
|
|
|
+ this.policyNumberForm.jqSignList = []
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
+ }
|
|
|
var file = file.raw;
|
|
|
const params = new FormData(); // 声明formData数据类型
|
|
|
params.append("multipartFile", file);
|