maven
4 天以前 3be3d4aad39136990b2c03563f58a1efb6d4315e
yys  商机管理
已修改2个文件
24 ■■■■■ 文件已修改
src/views/salesManagement/opportunityManagement/fileList.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/salesManagement/opportunityManagement/index.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/salesManagement/opportunityManagement/fileList.vue
@@ -2,10 +2,11 @@
  <el-dialog v-model="dialogVisible" title="附件" width="40%" :before-close="handleClose">
    <el-table :data="tableData" border height="40vh" stripe>
      <el-table-column label="附件名称" prop="name" min-width="400" show-overflow-tooltip />
      <el-table-column fixed="right" label="操作" width="100" align="center">
      <el-table-column fixed="right" label="操作" width="150" align="center">
        <template #default="scope">
          <el-button link type="primary" size="small" @click="downLoadFile(scope.row)">下载</el-button>
          <el-button link type="primary" size="small" @click="lookFile(scope.row)">预览</el-button>
          <el-button link type="primary" size="small" @click="delFile(scope.row)">删除</el-button>
        </template>
      </el-table-column>
    </el-table>
@@ -16,6 +17,9 @@
<script setup>
import { ref, getCurrentInstance } from 'vue'
import filePreview from '@/components/filePreview/index.vue'
import {
  delLedgerFile
} from "@/api/salesManagement/salesLedger.js";
const dialogVisible = ref(false)
const tableData = ref([])
@@ -35,6 +39,13 @@
const lookFile = (row) => {
  filePreviewRef.value.open(row.url)
}
const delFile = (row) => {
  let ids = [];
  ids.push(row.id);
  delLedgerFile(ids).then((res) => {
    proxy.$modal.msgSuccess("删除成功");
  });
}
defineExpose({
  open
})
src/views/salesManagement/opportunityManagement/index.vue
@@ -9,6 +9,16 @@
            placeholder="请输入客户名称"
            clearable
            prefix-icon="Search"
            style="width: 200px;"
            @change="handleQuery"
          />
        </el-form-item>
        <el-form-item label="城市">
          <el-input
              v-model="searchForm.city"
              placeholder="请输入城市名称"
              clearable
              prefix-icon="Search"
            style="width: 200px"
            @change="handleQuery"
          />
@@ -309,6 +319,7 @@
// 搜索表单
const searchForm = reactive({
  customerName: '',
  city: '',
  entryDate: [],
  entryDateStart: '',
  entryDateEnd: ''