wujianwei
6 天以前 89fd2cf7202c321512c2ea699a3a220a7138ed44
ui/admin-ui3/src/views/cwgl/fundFlow/index.vue
@@ -34,12 +34,15 @@
          :underline="false" :size="size" @click="handleDetails(row)" v-hasPermi="['cwgl:fundFlow:edit']">
          认领明细
        </el-link>
          <el-button type="text" icon="View" @click="handleFlow(row)"
          v-hasPermi="['cwgl:fundFlow:flow']">日志</el-button>
        <!-- <el-button type="text" icon="View" @click="handleFlow(row)"
          v-hasPermi="['cwgl:invoiceManage:flow']">日志</el-button> -->
      </template>
    </avue-crud>
  </basicContainer>
  <OperationLogModal ref="logModalRef" />
  <ClaimBillDialog ref="claimDialogRef" @submit="handleClaimSubmit" />
</template>
@@ -47,11 +50,14 @@
<script setup name="fundFlow" lang="ts">
import { FundFlowI, addFundFlow, delFundFlow, addFundFlowClaimDetailClaim, exportFundFlow, confirmFundFlow, getFundFlow, listFundFlow, updateFundFlow } from "@/api/cwgl/fundFlow";
import useCurrentInstance from "@/utils/useCurrentInstance";
  import { listFundFlowLog} from "@/api/cwgl/fundFlowLog";
import { computed, reactive, ref, toRefs } from "vue";
import { PagesInterface, PageQueryInterface } from "@/utils/globalInterface";
import { usePagePlus } from "@/hooks/usePagePlus";
import { hasPermission } from "@/utils/permissionUtils";
import { listFundFlowClaimDetail } from "@/api/cwgl/fundFlowClaimDetail";
import OperationLogModal from '@/components/OperationLogModal/index.vue';
import ClaimBillDialog from "../../../components/ClaimBillDialog/index.vue";
@@ -129,6 +135,13 @@
    },
    transactionAmount: {
      label: '交易金额',
         rules: [
        {
          required: true,
          message: "交易金额不能为空",
          trigger: "blur"
        }
      ],
    },
    currency: {
      label: '交易币种',
@@ -285,5 +298,15 @@
  })
};
const logModalRef = ref(null);
const handleFlow = (row: any,) => {
  // 这里可以从 row 中直接获取日志,或者调用后端接口查询
  listFundFlowLog({flowId:row.id}).then((res) => {
    if (res.code == 200) {
     logModalRef.value.open(res.rows,'payable');
    }
  });
}
/* listFundFlowClaimDetail */
</script>