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

fix:批量操作功能新增确认按钮

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

+ 16 - 0
src/http/moudules/task.js

@@ -1769,3 +1769,19 @@ export const exportAmountAuditing = (data) => {
   })
 }
 
+//批量修改比例(车险)
+export const batchOperation = (data) => {
+  return axios({
+    url: "/fnc/plyFee/bxImportOtherConfirm",
+    method: "put",
+    data
+  })
+}
+//批量修改比例(非车)
+export const noCarBatchOperation = (data) => {
+  return axios({
+    url: "/fnc/plyFee/noBxImportOtherConfirm",
+    method: "put",
+    data
+  })
+}

+ 14 - 0
src/views/FinancialManagement/CarInsurance/CompanySettlement/CarInsurance/DocumentaryFeesDetail.vue

@@ -329,6 +329,9 @@
         <el-table-column prop="syOtherCostsPremium" label="商业跟单金额">
         </el-table-column>
       </el-table>
+      <footer style="margin-top: 15px;display: flex;justify-content: flex-end;">
+        <el-button type="primary" @click="confrimBatch">确认</el-button>
+      </footer>
     </el-dialog>
     <el-dialog :visible.sync="dialogVisibleprogress" width="25%">
       <el-upload
@@ -1149,11 +1152,22 @@ export default {
       this.dialogVisibleprogress = true;
       this.progressPercent = 0;
     },
+    //打开批量操作修改比例弹框
     handBatchratio() {
       this.dialogVisibleradio = true;
       this.tableDataRadio = {};
       this.fileListRadio = [];
     },
+    confrimBatch(){
+      this.$api.task.batchOperation({resultList:this.tableDataRadio.resultList}).then((res) => {
+        if (res.code == 200) {
+          this.$message.success('操作成功')
+
+          this.dialogVisibleradio = false;
+          
+        } 
+      });
+    },
     drivinguploadRadio(file, fileList) {
       this.fileListRadio = [];
       const params = new FormData(); // 声明formData数据类型

+ 13 - 0
src/views/FinancialManagement/CarInsurance/CompanySettlement/NoCarInsurance/DocumentaryFeesDetail.vue

@@ -160,6 +160,9 @@
             label="非车跟单金额">
           </el-table-column>
         </el-table>
+      <footer style="margin-top: 15px;display: flex;justify-content: flex-end;">
+        <el-button type="primary" @click="confrimBatch">确认</el-button>
+      </footer>
     </el-dialog>
     <el-dialog  :visible.sync="dialogVisibleprogress" width="25%" >
       <el-upload style="margin-bottom:10px" action="#" class="upload-demo" :limit="1" :auto-upload="false"
@@ -865,6 +868,16 @@ drivinguploadBatchs(file, fileList){
       this.fileListRadio=[]
       this.tableDataRadio={}
     },
+    confrimBatch(){
+      this.$api.task.noCarBatchOperation({resultList:this.tableDataRadio.resultList}).then((res) => {
+        if (res.code == 200) {
+          this.$message.success('操作成功')
+
+          this.dialogVisibleradio = false;
+          
+        } 
+      });
+    },
     drivinguploadRadio(file, fileList){
       this.fileListRadio=fileList
       const params = new FormData(); // 声明formData数据类型

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

@@ -6812,6 +6812,8 @@ export default {
           stageFlag: type,
           jqstartdate: this.jqstartDate,
           jqenddate: this.jqendDate,
+          systartdate : this.systartDate,
+          syenddate : this.syendDate,
           kind: this.kindList,
           risk: this.riskList,
           kindList: this.kindList,