This commit is contained in:
hongchao 2025-08-04 10:26:20 +08:00
commit a18bf89ac7
3 changed files with 23 additions and 12 deletions

View File

@ -225,11 +225,11 @@ onShow(async () => {
display: flex; display: flex;
// 768px padding-top // 768px padding-top
@media (min-width: 768px) { @media (min-width: 768px) {
padding-top: 150rpx; padding-top: 130rpx;
} }
// 768px padding-top // 768px padding-top
@media (max-width: 767px) { @media (max-width: 767px) {
padding-top: 100rpx; padding-top: 80rpx;
} }
.user-lef { .user-lef {
width: 60px; width: 60px;

View File

@ -114,12 +114,13 @@
v-model="queryCodeParams.maCode" v-model="queryCodeParams.maCode"
:localdata="codeRange" :localdata="codeRange"
@change="changeCode" @change="changeCode"
@click="handleMaCode"
></uni-data-select> ></uni-data-select>
</uni-col> </uni-col>
</uni-row> </uni-row>
</div> </div>
<scroll-view scroll-y style="padding-bottom: 90rpx; height: 70vh"> <scroll-view scroll-y style="padding-bottom: 30rpx; height: 70vh">
<view class="table-list-item" v-for="(item, index) in codeDeviceList" :key="item.maId"> <view class="table-list-item" v-for="(item, index) in codeDeviceList" :key="item.maId">
<uni-row :gutter="24"> <uni-row :gutter="24">
<uni-col :span="6">物资类型</uni-col> <uni-col :span="6">物资类型</uni-col>
@ -162,9 +163,9 @@
<view class="loading-text"> <view class="loading-text">
{{ '没有更多数据了~' }} {{ '没有更多数据了~' }}
</view> </view>
<view v-if="codeDeviceList.length > 0" class="outbound-btn" @tap="onHandleOutbound"> 添加 </view>
</scroll-view> </scroll-view>
</scroll-view> </scroll-view>
<view class="outbound-btn" @tap="onHandleOutbound"> 添加 </view>
</view> </view>
</template> </template>
@ -307,6 +308,10 @@ const getCodeDeviceListData = async () => {
} }
} }
const handleMaCode = () => {
isExpanded.value = false
}
const changeCode = (value) => { const changeCode = (value) => {
console.log('🚀 ~ changeCode ~ value:', value) console.log('🚀 ~ changeCode ~ value:', value)
if (!value) return if (!value) return
@ -694,11 +699,11 @@ const ocrClick = () => {
// //
.outbound-btn { .outbound-btn {
position: fixed; // position: fixed;
bottom: 40rpx; // bottom: 40rpx;
left: 50%; // left: 50%;
transform: translateX(-50%); // transform: translateX(-50%);
width: 90%; // width: 90%;
height: 88rpx; height: 88rpx;
background: linear-gradient(135deg, #4b8eff 0%, #3784fb 100%); background: linear-gradient(135deg, #4b8eff 0%, #3784fb 100%);
text-align: center; text-align: center;

View File

@ -249,6 +249,10 @@ const fitNumChange = () => {
// //
const getDetailsById = async () => { const getDetailsById = async () => {
try { try {
uni.showLoading({
title: '加载中...',
mask: true, //
})
const res = await detailsLeaseTask(opts.value.id) const res = await detailsLeaseTask(opts.value.id)
console.log('🚀 ~ getDetailsById ~ res:', res) console.log('🚀 ~ getDetailsById ~ res:', res)
tableData.value = res.data.leaseApplyDetailsList tableData.value = res.data.leaseApplyDetailsList
@ -261,6 +265,8 @@ const getDetailsById = async () => {
getAgreementInfoById() getAgreementInfoById()
} catch (error) { } catch (error) {
console.log('🚀 ~ getDetailsById ~ error:', error) console.log('🚀 ~ getDetailsById ~ error:', error)
} finally {
uni.hideLoading()
} }
} }
// //
@ -553,7 +559,7 @@ const submit = (isOut) => {
const res = await uni.showModal({ const res = await uni.showModal({
title: '提示', title: '提示',
content: '是否确认提交?', content: '是否确认提交?',
confirmText: '确定', confirmText: isOut == 0 ? '暂存' : '出库',
cancelText: '取消', cancelText: '取消',
}) })
console.log('🚀 ~ .then ~ res:', res) console.log('🚀 ~ .then ~ res:', res)
@ -600,8 +606,8 @@ const back = () => {
.showModal({ .showModal({
title: '提示', title: '提示',
content: '当前有未提交的数据,是否暂存?', content: '当前有未提交的数据,是否暂存?',
confirmText: '确定', confirmText: '暂存',
cancelText: '取消', cancelText: '不暂存',
}) })
.then((res) => { .then((res) => {
if (res.confirm) { if (res.confirm) {