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

复制费用时支持跨险种复制费用

祁鹏飞 1 месяц назад
Родитель
Сommit
4ffbbec601
1 измененных файлов с 8 добавлено и 4 удалено
  1. 8 4
      src/views/quoteConfig/agreement/agreementDetails.vue

+ 8 - 4
src/views/quoteConfig/agreement/agreementDetails.vue

@@ -154,7 +154,7 @@
                     </el-button>
                     <el-button type="primary" link @click="handleUpdateCostRatio()"> 批量设置比例
                     </el-button>
-                    <el-button type="primary" link @click="handleCopy(item)"> 批量复制
+                    <el-button type="primary" link @click="handleCopy(item,costitem)"> 批量复制
                     </el-button>
                     <ComplexTable showSelect :tableData="costitem.ptlAgreementCostVoList" :columns="columns"
                       :showIndex="false" tableheight="auto" :columnwidth="200" @selectionChange="(arr) => costIds = arr"
@@ -960,11 +960,13 @@ const copyDialog = ref(false)
 const costIds = ref([])
 const agreementId = ref('')
 const coverRuleId = ref('')
+const costitemObj = ref({})
 const agreementList = ref([])
 const rulesList = ref([])
 /** 复制操作处理:记录当前行的ID并打开复制确认对话框 */
-const handleCopy = (item) => {
-  if (item.id) coverRuleId.value = item.id
+const handleCopy = (item,costitem) => {
+  costitemObj.value=costitem
+  coverRuleId.value = item.id
   openDialog()
 }
 
@@ -975,7 +977,7 @@ const openDialog = () => {
     }
   });
   formInline.companyId = agreementInfo.value.companyId
-  findpage();
+  resetForm();
   copyDialog.value = true
 }
 //表格字段数据
@@ -1172,6 +1174,8 @@ const costitemCopy = () => {
       costIds: sysUpAndDownList.value,
       agreementId: agreementInfo.value.id,
       coverRuleId: coverRuleId.value,
+      productId: costitemObj.value.productId,
+      productName: costitemObj.value.productName,
     }
     api.agreementApi.AgreementFeecopy(params).then((res: any) => {
       if (res.code == '200') {