From 81dbb5d80f59a434702ea9264c66a93411430325 Mon Sep 17 00:00:00 2001
From: 周宾 <2802492122@qq.com>
Date: 星期四, 25 十二月 2025 17:37:14 +0800
Subject: [PATCH] 天津双奇点-仓储物流开发
---
src/pages/inventoryManagement/receiptManagement/index.vue | 21 ++++++++++++++++++++-
1 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/src/pages/inventoryManagement/receiptManagement/index.vue b/src/pages/inventoryManagement/receiptManagement/index.vue
index 369b1f4..81a3a2c 100644
--- a/src/pages/inventoryManagement/receiptManagement/index.vue
+++ b/src/pages/inventoryManagement/receiptManagement/index.vue
@@ -54,6 +54,7 @@
<view class="value">{{ item.createBy }}</view>
</view>
<view class="item" style="justify-content: flex-end;">
+ <button class="mini-btn" type="warn" size="mini" style="margin-left: 0;margin-right: 20rpx;" @click="deleteGoods(item)">鍒犻櫎</button>
<button class="mini-btn" type="primary" size="mini" style="margin-left: 0;margin-right: 0;" @click="openForm(item,'edit')">缂栬緫</button>
</view>
</view>
@@ -72,7 +73,7 @@
<script setup>
import { ref, reactive, computed } from 'vue'
-import { listPage, listPageByCustom } from '@/api/inventoryManagement/receiptManagement.js'
+import { listPage, listPageByCustom,deleteCustom } from '@/api/inventoryManagement/receiptManagement.js'
import { onShow, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app'
import config from '@/config'
const baseUrl = config.baseUrl
@@ -131,6 +132,24 @@
contentList.value = []
getList()
}
+const deleteGoods = async (goods) => {
+ uni.showModal({
+ title: '鎻愮ず',
+ content: '纭畾瑕佸垹闄よ鍟嗗搧鐨勫叆搴撳悧锛�',
+ success: function (res) {
+ if (res.confirm) {
+ uni.showLoading({
+ title: '鍒犻櫎涓�...'
+ })
+ let params = [goods.id]
+ deleteCustom(params).then(res => {
+ uni.hideLoading()
+ reloadPage()
+ })
+ }
+ }
+ })
+}
const getList = async () => {
let getListApi = null
if (tabCurrent.value == 1) {
--
Gitblit v1.9.3