| | |
| | | <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> |
| | |
| | | |
| | | <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 |
| | |
| | | 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) { |