|
@@ -25,7 +25,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="pd-24 bg-#f7f7f7">
|
|
<view class="pd-24 bg-#f7f7f7">
|
|
|
<up-swipe-action>
|
|
<up-swipe-action>
|
|
|
- <up-swipe-action-item v-for="(item, index) in list" :key="index" :name="item?.id" :options="optionsActionTemp" @click="clickTempSwipe" class="mb-20 b-radius">
|
|
|
|
|
|
|
+ <up-swipe-action-item v-for="(item, index) in list" :key="index" :name="item?.id" :options="optionsActionTemp" @click="clickTempSwipe($event, item)" class="mb-20 b-radius">
|
|
|
<view class="b-radius bg-#fff pd-20 p-rtv" @click.stop="$u.route({ url: '/plant/storage/fresh-goods/detail/index', params: { id: item.id } })">
|
|
<view class="b-radius bg-#fff pd-20 p-rtv" @click.stop="$u.route({ url: '/plant/storage/fresh-goods/detail/index', params: { id: item.id } })">
|
|
|
<view class="d-flex j-sb a-c li-item-head mb-16">
|
|
<view class="d-flex j-sb a-c li-item-head mb-16">
|
|
|
<view class="li-left-tag" :class="{ [`bg-instore-${item?.instoreType}`]: true }">{{ item?.level || '' }}{{ selectDictLabel(pt_fresh_instore_type, item?.instoreType) }}</view>
|
|
<view class="li-left-tag" :class="{ [`bg-instore-${item?.instoreType}`]: true }">{{ item?.level || '' }}{{ selectDictLabel(pt_fresh_instore_type, item?.instoreType) }}</view>
|
|
@@ -137,9 +137,18 @@ const optionsActionTemp = reactive([
|
|
|
},
|
|
},
|
|
|
]);
|
|
]);
|
|
|
// 暂存项删除点击(本地移除)
|
|
// 暂存项删除点击(本地移除)
|
|
|
-const clickTempSwipe = async (event: object) => {
|
|
|
|
|
|
|
+const clickTempSwipe = async (event: object, item: any) => {
|
|
|
const { name, index } = event as any;
|
|
const { name, index } = event as any;
|
|
|
if (index === 0) {
|
|
if (index === 0) {
|
|
|
|
|
+ if (item.instoreType == '3') {
|
|
|
|
|
+ return uni.showModal({
|
|
|
|
|
+ title: '提示',
|
|
|
|
|
+ content: '该批次为采收入库的种源,请前往种养殖-采收管理里删除采收记录,入库记录将同步删除。',
|
|
|
|
|
+ showCancel: false,
|
|
|
|
|
+ confirmText: '知道了',
|
|
|
|
|
+ confirmColor: '#41c06d',
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
try {
|
|
try {
|
|
|
const res = await uni.showModal({
|
|
const res = await uni.showModal({
|
|
|
title: '删除提示',
|
|
title: '删除提示',
|