|
|
@@ -3181,6 +3181,7 @@
|
|
|
<el-form :model="policyNumberForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
|
|
|
<el-form-item label="交强保单:" prop="jqPolicy">
|
|
|
<el-upload class="upload-demo" ref="jqPolicyupload" action="#" :limit="1" :auto-upload="false"
|
|
|
+ :on-remove="(file) => removePhoto(file,policyNumberForm.jqPolicyList,'jqPolicyList')"
|
|
|
:file-list="policyNumberForm.jqPolicyList" :on-change="(file) => policydrivingupload(file, 'jqPolicy')">
|
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
|
<el-button size="small" type="primary" @click.stop="policyNumberForm.jqPolicyList = []">清空</el-button>
|
|
|
@@ -3188,6 +3189,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="商业保单:" prop="syPolicy">
|
|
|
<el-upload class="upload-demo" ref="syPolicyupload" action="#" :limit="1" :auto-upload="false"
|
|
|
+ :on-remove="(file) => removePhoto(file,policyNumberForm.syPolicyList,'syPolicyList')"
|
|
|
:file-list="policyNumberForm.syPolicyList" :on-change="(file) => policydrivingupload(file, 'syPolicy')">
|
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
|
<el-button size="small" type="primary" @click.stop="policyNumberForm.syPolicyList = []">清空</el-button>
|
|
|
@@ -3195,6 +3197,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="非车保单:" prop="noPolicy">
|
|
|
<el-upload class="upload-demo" ref="noPolicyupload" action="#" :limit="1" :auto-upload="false"
|
|
|
+ :on-remove="(file) => removePhoto(file,policyNumberForm.noPolicyList,'noPolicyList')"
|
|
|
:file-list="policyNumberForm.noPolicyList" :on-change="(file) => policydrivingupload(file, 'noPolicy')">
|
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
|
<el-button size="small" type="primary" @click.stop="policyNumberForm.noPolicyList = []">清空</el-button>
|
|
|
@@ -3202,6 +3205,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="交强电子标志:" prop="jqSign">
|
|
|
<el-upload class="upload-demo" ref="jqSignupload" action="#" :limit="1" :auto-upload="false"
|
|
|
+ :on-remove="(file) => removePhoto(file,policyNumberForm.jqSignList,'jqSignList')"
|
|
|
:file-list="policyNumberForm.jqSignList" :on-change="(file) => policydrivingupload(file, 'jqSign')">
|
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
|
<el-button size="small" type="primary" @click.stop="policyNumberForm.jqSignList = []">清空</el-button>
|
|
|
@@ -4788,6 +4792,14 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
+ //清空保单图片
|
|
|
+ removePhoto(file, fileList,type){
|
|
|
+
|
|
|
+ // console.log(file, fileList);
|
|
|
+ this.policyNumberForm[type]=[]
|
|
|
+ console.log( this.policyNumberForm[type])
|
|
|
+
|
|
|
+ },
|
|
|
editingWay(paramsEdit) {
|
|
|
if (paramsEdit) {
|
|
|
var _this = this;
|
|
|
@@ -8279,6 +8291,7 @@ export default {
|
|
|
this.imageUploaddialogVisible = true;
|
|
|
},
|
|
|
policyUpload() {
|
|
|
+
|
|
|
this.policyNumberForm.jqPolicyList = !this.policyNumberForm.jqPolicyList
|
|
|
? []
|
|
|
: this.policyNumberForm.jqPolicyList;
|