Просмотр исходного кода

fix:补录订单优化保单图片清除功能

test 2 лет назад
Родитель
Сommit
154ad16b7c

+ 3 - 0
src/views/Core/components/detailsDialog.vue

@@ -887,6 +887,9 @@ export default {
         ],
       },
       dynamicFormArray: [],
+      operator:{
+        label:'agreement_operator'
+      }
     };
   },
   props: {

+ 13 - 0
src/views/Task/daikeComponents/KtLetter.vue

@@ -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;

+ 1 - 1
src/views/Task/daikeComponents/KtOrder.vue

@@ -245,7 +245,7 @@
       <el-table-column prop="createtime" label="录单日期" align="center" width="200"></el-table-column>
       <el-table-column prop="signingTime" label="承保确认时间" align="center" width="200"></el-table-column>
       
-      <el-table-column label="操作" align="center" min-width="100">
+      <el-table-column label="操作" align="center"  fixed="right" min-width="100">
         <template slot-scope="scope">
           <el-button v-if="scope.row.orderstatus != '3'" size="mini" type="text" style="color: #2d4d89"
             @click="CloseEdit(scope.$index, scope.row)">重新报价</el-button>