This commit is contained in:
zpc 2026-01-28 15:13:36 +08:00
parent 4275557e20
commit fd17928ce3

View File

@ -128,8 +128,8 @@
<view v-if="tabList[tabCur].id == 1" class="bt-fixed">
<template v-if="subTab[subTabCur].id != 4">
<view class="btn center"
@click="open('changePop')">哈尼券</view>
<view v-if="subTab[subTabCur].id != 2 && show_dadajuan" class="btn center" @click="open('changePop')">
哈尼券</view>
<view v-if="subTab[subTabCur].id != 2" class="btn2 center" @click="open('sendPop')">发货</view>
<view v-if="subTab[subTabCur].id != 6" class="btn center" @click="open('model')">上锁</view>
</template>
@ -317,9 +317,19 @@
</template>
<script>
import { getUserInfo } from '@/common/server/user.js';
import { getWarehouseIndex, confirmSend, moveInSafe, moveOutSafe, recoveryPrizeWithType, sendPrizeWithAddress, getSendRecordWithStatus } from '@/common/server/warehouse.js';
import {
getUserInfo
} from '@/common/server/user.js';
import {
getWarehouseIndex,
confirmSend,
moveInSafe,
moveOutSafe,
recoveryPrizeWithType,
sendPrizeWithAddress,
getSendRecordWithStatus
} from '@/common/server/warehouse.js';
export default {
data() {
return {
@ -511,7 +521,9 @@
},
async submitGet(item) {
// API: warehouse_send_confirm
const res = await confirmSend({ id: item.id });
const res = await confirmSend({
id: item.id
});
if (res.status == 1) {
this.$c.toast({
title: res.msg,
@ -564,10 +576,14 @@
let res;
if (this.subTab[this.subTabCur].id == 4) {
// API: warehouse_remove
res = await moveOutSafe({ recovery_info: JSON.stringify(data) });
res = await moveOutSafe({
recovery_info: JSON.stringify(data)
});
} else {
// API: warehouse_movein
res = await moveInSafe({ recovery_info: JSON.stringify(data) });
res = await moveInSafe({
recovery_info: JSON.stringify(data)
});
}
if (res.status == 1) {