|
|
@@ -3,7 +3,8 @@
|
|
|
<PageMain class="vh100">
|
|
|
<SearchForm :fields="fields" isOffset :formInline="formInline" :onSearch="agreementQuery" :onReset="resetForm" />
|
|
|
<ComplexTable :tableData="tableData" :columns="columns" :showIndex="false" :columnwidth="200" :showSelect="true"
|
|
|
- :pageInfo="pageInfo" @getList="getList" rowKey="costId" @selectionChange="selectionChange" uniqueIdName="costId">
|
|
|
+ :pageInfo="pageInfo" @getList="getList" rowKey="costId" @selectionChange="selectionChange"
|
|
|
+ uniqueIdName="costId">
|
|
|
<template v-slot:table-title-btn>
|
|
|
<el-button type="primary" @click="agreementSelection()">
|
|
|
添加费用
|
|
|
@@ -35,7 +36,8 @@
|
|
|
<template v-slot:operation="scope">
|
|
|
<el-button type="primary" link @click="agreemenUpdate(scope.operationData)"> 编辑
|
|
|
</el-button>
|
|
|
- <el-button type="primary" link @click="operatorTrajectoryRef.operAtorTrajectory(scope.operationData.id)"> 查看轨迹
|
|
|
+ <el-button type="primary" link @click="operatorTrajectoryRef.operAtorTrajectory(scope.operationData.costId)">
|
|
|
+ 查看轨迹
|
|
|
</el-button>
|
|
|
<el-dropdown placement="bottom-start" trigger="click">
|
|
|
<span class="el-dropdown-link">
|
|
|
@@ -140,7 +142,7 @@
|
|
|
<el-form inline>
|
|
|
<el-form-item label="协议">
|
|
|
<el-select style="width:200px" v-model="agreementId" placeholder="请选择协议" @change="changeAgreement" filterable>
|
|
|
- <el-option v-for="item in agreementList" :key="item.id" :value="item.id"
|
|
|
+ <el-option v-for="item in agreementList1" :key="item.id" :value="item.id"
|
|
|
:label="item.agreementTitle"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
@@ -776,22 +778,35 @@ const copyDialog = ref(false)
|
|
|
const agreementId = ref('')
|
|
|
const coverRuleId = ref('')
|
|
|
const productId = ref('')
|
|
|
+const companyId = ref('')
|
|
|
const agreementList1 = ref([])
|
|
|
const rulesList = ref([])
|
|
|
/** 复制操作处理:记录当前行的ID并打开复制确认对话框 */
|
|
|
-const handleCopy = (row) => {
|
|
|
+const handleCopy = () => {
|
|
|
agreementId.value = ''
|
|
|
coverRuleId.value = ''
|
|
|
openDialog()
|
|
|
}
|
|
|
|
|
|
const openDialog = () => {
|
|
|
- api.agreementApi.agreementList({ size: 10000, }).then((res: any) => {
|
|
|
+ const params = { pages: 1, size: sysUpAndDownList.value.length, newCostIds: sysUpAndDownList.value }
|
|
|
+
|
|
|
+ api.agreementApi.queryByFeePage(params).then((res: any) => {
|
|
|
if (res.code == '200') {
|
|
|
- agreementList1.value = res.data.records;
|
|
|
+ const companyIdList = Array.from(new Set(res.data.records.map(v => v.companyId)))
|
|
|
+ if (companyIdList.length > 1) {
|
|
|
+ ElMessage.error('请选择同一个公司的费用')
|
|
|
+ } else {
|
|
|
+ companyId.value = companyIdList[0]
|
|
|
+ api.agreementApi.agreementList({ size: 10000, companyId: companyId.value }).then((res: any) => {
|
|
|
+ if (res.code == '200') {
|
|
|
+ agreementList1.value = res.data.records;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ copyDialog.value = true
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
- copyDialog.value = true
|
|
|
}
|
|
|
|
|
|
const changeAgreement = () => {
|