|
|
@@ -2,10 +2,10 @@
|
|
|
<div class="app-container">
|
|
|
<div class="filter-container">
|
|
|
<el-input
|
|
|
- @keyup.enter="handleSearch"
|
|
|
- class="w200px mr5px"
|
|
|
v-model="queryForm.keyWord"
|
|
|
+ class="w200px mr5px"
|
|
|
placeholder="关键字搜索"
|
|
|
+ @keyup.enter="handleSearch"
|
|
|
/>
|
|
|
<el-button type="primary" @click="handleSearch">
|
|
|
<i-ep-search />
|
|
|
@@ -13,13 +13,13 @@
|
|
|
</el-button>
|
|
|
<div class="w100px ml10px" style="display: inline-block">
|
|
|
<el-checkbox
|
|
|
- style="position: absolute; top: 11px"
|
|
|
v-model="disableLock"
|
|
|
- label="已禁用"
|
|
|
border
|
|
|
+ label="已禁用"
|
|
|
+ style="position: absolute; top: 11px"
|
|
|
></el-checkbox>
|
|
|
</div>
|
|
|
- <el-button @click="openDialog()" color="#11a983">
|
|
|
+ <el-button color="#11a983" @click="openDialog()">
|
|
|
<i-ep-plus />
|
|
|
增加
|
|
|
</el-button>
|
|
|
@@ -29,57 +29,61 @@
|
|
|
</div>
|
|
|
<div class="table-con">
|
|
|
<el-table
|
|
|
- :max-height="tableHeight"
|
|
|
v-loading="loading"
|
|
|
:data="tableData"
|
|
|
- highlight-current-row
|
|
|
+ :max-height="tableHeight"
|
|
|
border
|
|
|
+ highlight-current-row
|
|
|
>
|
|
|
<el-table-column label="操作" width="140">
|
|
|
<template #default="{ row }">
|
|
|
- <el-button link @click="openDialog(row.id)" type="primary">
|
|
|
+ <el-button link type="primary" @click="openDialog(row.id)">
|
|
|
<i-ep-edit />
|
|
|
编辑
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
v-if="row.voidFlag == 0"
|
|
|
link
|
|
|
- @click="handleDisable(row.id, 1)"
|
|
|
type="warning"
|
|
|
+ @click="handleDisable(row.id, 1)"
|
|
|
>禁用</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
v-if="row.voidFlag == 1"
|
|
|
- type="success"
|
|
|
link
|
|
|
+ type="success"
|
|
|
@click="handleDisable(row.id, 0)"
|
|
|
>启用</el-button
|
|
|
>
|
|
|
+ <el-button link type="warning" @click="setTargetVersion(row)">
|
|
|
+ <i-ep-edit />
|
|
|
+ 设置版本
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column type="index" label="#" width="50">
|
|
|
+ <el-table-column label="#" type="index" width="50">
|
|
|
<template #default="scope">
|
|
|
<span>{{ scope.$index + 1 }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="clientName" width="150" label="客户名称" />
|
|
|
- <el-table-column prop="clientCode" width="200" label="客户编码" />
|
|
|
- <el-table-column prop="md5ParamDigest" width="280" label="MD5" />
|
|
|
- <el-table-column prop="contactPhone" width="150" label="联系电话" />
|
|
|
- <el-table-column prop="contactPerson" width="150" label="联系人" />
|
|
|
+ <el-table-column label="客户名称" prop="clientName" width="150" />
|
|
|
+ <el-table-column label="客户编码" prop="clientCode" width="200" />
|
|
|
+ <el-table-column label="MD5" prop="md5ParamDigest" width="280" />
|
|
|
+ <el-table-column label="联系电话" prop="contactPhone" width="150" />
|
|
|
+ <el-table-column label="联系人" prop="contactPerson" width="150" />
|
|
|
<el-table-column
|
|
|
+ label="联系地址"
|
|
|
prop="clientAddress"
|
|
|
show-overflow-tooltip
|
|
|
width="250"
|
|
|
- label="联系地址"
|
|
|
/>
|
|
|
- <el-table-column prop="status" label="状态">
|
|
|
+ <el-table-column label="状态" prop="status">
|
|
|
<template #default="{ row }">
|
|
|
<el-tag v-if="row.voidFlag == 0" type="success"> 正常 </el-tag>
|
|
|
<el-tag v-else="row.voidFlag == 1" type="danger"> 停用 </el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="createTime" label="创建时间" width="155">
|
|
|
+ <el-table-column label="创建时间" prop="createTime" width="155">
|
|
|
<template #default="{ row }">
|
|
|
<span v-if="row.createTime">
|
|
|
{{ $filters.getTime(row.createTime) }}
|
|
|
@@ -89,22 +93,40 @@
|
|
|
</el-table>
|
|
|
<pagination
|
|
|
v-if="total > 0"
|
|
|
- v-model:total="total"
|
|
|
- v-model:page="queryPage.pageIndex"
|
|
|
v-model:limit="queryPage.pageSize"
|
|
|
+ v-model:page="queryPage.pageIndex"
|
|
|
+ v-model:total="total"
|
|
|
@pagination="getTableData"
|
|
|
/>
|
|
|
</div>
|
|
|
+
|
|
|
+ <el-dialog
|
|
|
+ v-model="targetVersionVisible"
|
|
|
+ :lock-scroll="false"
|
|
|
+ :title="targetVersionTitle"
|
|
|
+ destroy-on-close
|
|
|
+ style="margin: 30px auto 0"
|
|
|
+ top="30px"
|
|
|
+ width="1400"
|
|
|
+ @close="targetVersionVisible = false"
|
|
|
+ >
|
|
|
+ <project-target-version ref="targetVersionRef" />
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
<child-dialog ref="childDialog" @dialogChange="dialogChange"></child-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
-<script setup lang="ts">
|
|
|
+<script lang="ts" setup>
|
|
|
import { queryERPClientList, voidERPClient } from "@/api/baseInfo";
|
|
|
import ChildDialog from "./compt/childDialog.vue";
|
|
|
import { useTable } from "@/hooks/useTable";
|
|
|
+import ProjectTargetVersion from "@/views/baseInfo/erpClientList/compt/projectTargetVersion.vue";
|
|
|
|
|
|
let disableLock = ref("");
|
|
|
const childDialog = ref<any>();
|
|
|
+const targetVersionVisible = ref(false);
|
|
|
+const targetVersionTitle = ref("");
|
|
|
+const targetVersionRef = ref();
|
|
|
|
|
|
//增加编辑
|
|
|
function openDialog(item?: any) {
|
|
|
@@ -122,6 +144,14 @@ function openDialog(item?: any) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+//设置更新版本
|
|
|
+function setTargetVersion(row) {
|
|
|
+ targetVersionVisible.value = true;
|
|
|
+ setTimeout(() => {
|
|
|
+ targetVersionRef.value.handleInitSearch(row.id);
|
|
|
+ }, 200);
|
|
|
+}
|
|
|
+
|
|
|
//禁用删除
|
|
|
function handleDisable(id, status) {
|
|
|
ElMessageBox.confirm("确认操作?", "警告", {
|