剩余模块:生产退料

This commit is contained in:
2025-06-03 02:55:34 +08:00
parent eb2c8d2d7a
commit a12f56d2be
100 changed files with 9219 additions and 7499 deletions

View File

@@ -2,20 +2,11 @@
<view class="app status-bar-gap">
<view class="page">
<l-header :title="t('home.xxck')" sticky></l-header>
<view class="input-box">
<view class="input-item">
<up-input :placeholder="t('receive.djbh')" border="none" clearable inputAlign="left"
v-model="state.queryString" @change="changeFun">
<template #prefix>
<up-icon name="search" color="#2979ff" size="24"></up-icon>
</template>
</up-input>
</view>
</view>
<architecture ref="architectureRef" :dataType="t('home.xxck')" :placeholder="t('receive.djbh')"
@scanConfirm="scanConfirmFun" @inputConfirm="changeFun" />
<view class="receive-listBox" ref="listBoxRef">
<scroll-view id="scroll-box" class="scroll-box" scroll-y="true"
:style="{'height':state.scrollHeight+'px'}" @scrolltolower="fnScrollBottom()">
<scroll-view id="scroll-box" class="scroll-box" scroll-y="true" :style="{'height':state.scrollHeight+'px'}"
@scrolltolower="fnScrollBottom()">
<view class="list-box-list" v-if="state.dataList.length > 0">
<view class="data-item" @click.stop="fnToUrl(item)" v-for="(item, index) in state.dataList" :key="index">
<view class="tit">{{ t('receive.djbh') }}{{item.FBillNo}}</view>
@@ -33,11 +24,12 @@
</template>
<script lang="ts" setup>
import { reactive, nextTick, onMounted, ref,computed } from 'vue';
import { reactive, nextTick, onMounted, ref, computed } from 'vue';
import { onLoad, onShow, onReachBottom } from '@dcloudio/uni-app'
import { useI18n } from 'vue-i18n'
import { parseTime } from '../../utils/tools.js';
import { PRD_MORPTList, SAL_DELIVERYNOTICEList, receiveBillList } from '../../common/request/api/api';
const architectureRef = ref()
const listBoxRef = ref(null)
const getI18n = useI18n()
const { t, locale } = getI18n
@@ -50,7 +42,6 @@
pageSize: 200,
totalCount: 0
},
})
onShow(() => {
@@ -63,6 +54,16 @@
}).exec();
fnDataList()
})
const fnToUrl = (item : any) => {
toPages('/pages/outOftock/material', { id: item.FID, fBillNo: item.FBillNo })
}
const scanConfirmFun = (e : any) => {
state.queryString = e
state.page.pageIndex = 1
state.dataList = []
fnDataList()
architectureRef.value.closeFun()
}
const fnScrollBottom = () => {
console.log(state.page.pageIndex * state.page.pageSize, state.page.totalCount);
if (state.page.pageIndex * state.page.pageSize <= state.page.totalCount) {
@@ -74,9 +75,6 @@
}, 500);
}
}
const fnToUrl = (item : any) => {
toPages('/pages/outOftock/material', { id: item.FID, fBillNo: item.FBillNo })
}
const debounceTimer = ref()
const changeFun = (e : any) => {
if (debounceTimer.value !== null) clearTimeout(debounceTimer.value)
@@ -85,7 +83,7 @@
state.page.pageIndex = 1
state.dataList = []
fnDataList()
}, 500)
})
}
const fnDataList = () => {
let param = {