From 8d459194e620a691994fb8226fb08c51a3dd8065 Mon Sep 17 00:00:00 2001
From: weimingfei <fei_gaming@sina.com>
Date: 星期三, 29 十月 2025 21:33:24 +0800
Subject: [PATCH] 钥匙柜
---
admin/src/views/business/categoryJkLine.vue | 38 ++++++++++++++++++++++++++++++++------
1 files changed, 32 insertions(+), 6 deletions(-)
diff --git a/admin/src/views/business/categoryJkLine.vue b/admin/src/views/business/categoryJkLine.vue
index f1a7a9d..2b860d2 100644
--- a/admin/src/views/business/categoryJkLine.vue
+++ b/admin/src/views/business/categoryJkLine.vue
@@ -13,7 +13,7 @@
<!-- 琛ㄦ牸鍜屽垎椤� -->
<template v-slot:table-wrap>
<ul class="toolbar" v-permissions="['business:category:create','business:category:delete']">
- <li><el-button type="primary" @click="$refs.OperaCategoryFileWindow.open('鏂板缓涓荤嚎璺�')" icon="el-icon-plus" v-permissions="['business:category:create']">鏂板缓</el-button></li>
+ <li><el-button type="primary" @click="$refs.OperaCategoryJkLineWindow.open('鏂板缓涓荤嚎璺�')" icon="el-icon-plus" v-permissions="['business:category:create']">鏂板缓</el-button></li>
<li><el-button type="danger" @click="deleteByIdInBatch" icon="el-icon-delete" v-permissions="['business:category:delete']">鎵归噺鍒犻櫎</el-button></li>
</ul>
<el-table
@@ -25,16 +25,25 @@
>
<el-table-column type="selection" width="55"></el-table-column>
<el-table-column prop="name" show-overflow-tooltip label="涓荤嚎璺�" min-width="120px"></el-table-column>
+ <el-table-column prop="lineNum" show-overflow-tooltip label="绾胯矾鏁�" min-width="120px"></el-table-column>
+ <el-table-column prop="customerNum" show-overflow-tooltip label="瀹㈡埛浜ら�氳鍒掞紙宸插畬鎴�/鍏ㄩ儴锛�" align="center" min-width="200px">
+ <template slot-scope="{row}">
+ <span class="green"> {{row.customerDoneNum || 0}}/</span>
+ <span > {{row.customerNum || 0}}</span>
+ <span v-if="row.status == 2 " class="red" style="margin-left: 10px; ">(瑙勫垝涓�)</span>
+ </template>
+ </el-table-column>
<el-table-column prop="sortnum" label="鎺掑簭鐮�" min-width="70px"></el-table-column>
<el-table-column prop="editDate" label="鎿嶄綔鏃堕棿" width="160px"></el-table-column>
<el-table-column
v-if="containPermissions(['business:category:update', 'business:category:delete' ])"
label="鎿嶄綔"
- min-width="140"
+ min-width="180"
fixed="right"
>
<template slot-scope="{row}">
- <el-button type="text" icon="el-icon-edit" @click="$refs.OperaCategoryFileWindow.open('缂栬緫涓荤嚎璺�',row)" v-permissions="['business:category:update']">缂栬緫</el-button>
+ <el-button type="text" icon="el-icon-edit" @click="$refs.OperaCategoryJkLineWindow.open('缂栬緫涓荤嚎璺�',row)" v-permissions="['business:category:update']">缂栬緫</el-button>
+ <el-button type="text" icon="el-icon-edit" @click="distanceDo(row)" v-if="row.status !=2 && row.customerDoneNum < row.customerNum " v-permissions="['business:category:update']">浜ら�氳鍒�</el-button>
<el-button type="text" icon="el-icon-delete" @click="deleteById(row)" style="color: red" v-permissions="['business:category:delete']">鍒犻櫎</el-button>
</template>
</el-table-column>
@@ -47,7 +56,7 @@
</pagination>
</template>
<!-- 鏂板缓/淇敼 -->
- <OperaCategoryFileWindow ref="OperaCategoryFileWindow" @success="handlePageChange"/>
+ <OperaCategoryJkLineWindow ref="OperaCategoryJkLineWindow" @success="handlePageChange"/>
</TableLayout>
</template>
@@ -55,11 +64,12 @@
import BaseTable from '@/components/base/BaseTable'
import TableLayout from '@/layouts/TableLayout'
import Pagination from '@/components/common/Pagination'
-import OperaCategoryFileWindow from '@/components/business/OperaCategoryFileWindow'
+import OperaCategoryJkLineWindow from '@/components/business/OperaCategoryJkLineWindow'
+import { distanceCustomer } from '@/api/business/jkSketch'
export default {
name: 'areaSet',
extends: BaseTable,
- components: { TableLayout, Pagination, OperaCategoryFileWindow },
+ components: { TableLayout, Pagination, OperaCategoryJkLineWindow },
data () {
return {
// 鎼滅储
@@ -79,6 +89,22 @@
this.search()
},
methods: {
+ distanceDo (row) {
+ var that = this
+ this.$confirm('纭畾杩涜璇ヤ富绾胯矾涓嬪鎴疯窛绂昏绠楀悧?', '鎻愮ず', {
+ confirmButtonText: '纭畾',
+ cancelButtonText: '鍙栨秷',
+ type: 'warning'
+ }).then(() => {
+ distanceCustomer({ categoryId: row.id })
+ .then(res => {
+ this.$tip.apiSuccess('浜ら�氳鍒掍换鍔℃鍦ㄥ悗鍙版墽琛岋紝鍙兘闇�瑕佷竴娈垫椂闂达紝璇风瓑寰呬换鍔″畬鎴愬悗鏌ョ湅缁撴灉')
+ that.search()
+ })
+ }).catch(() => {
+ this.$tip.apiSuccess('鎿嶄綔澶辫触')
+ })
+ }
}
}
</script>
--
Gitblit v1.9.3