剩余模块:生产退料

This commit is contained in:
2025-05-26 16:57:56 +08:00
parent b1d8dec263
commit eb2c8d2d7a
161 changed files with 18754 additions and 6607 deletions

View File

@@ -19,7 +19,7 @@
<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" v-for="(item, index) in state.dataList" :key="index">
<view class="data-item" v-for="(item, index) in state.dataList" :key="index" @click="clickPRD_MOViewIntoPro(item)">
<view class="tit">{{ t('index.scddbh') }}{{item.FBillNo}}</view>
<view class="line-p"></view>
<view class="b-font">{{ t('receive.rq') }}{{item.FDateFormat}}</view>
@@ -80,7 +80,6 @@
const fnScrollBottom = () => {
console.log(state.page.pageIndex * state.page.pageSize, state.page.totalCount);
if (state.page.pageIndex * state.page.pageSize <= state.page.totalCount) {
debugger
state.page.pageIndex++;
uni.showLoading({ mask: true });
setTimeout(() => {
@@ -98,16 +97,31 @@
fnDataList(true)
}, 500)
}
const viewIntoProFun = (item : object) => {
const viewIntoProFun = (item : object,typeVertical:string = 'details') => {
PRD_MOViewIntoPro({
Number: state.queryString
}).then((res : any) => {
if (res.code === 200) {
pageDataInfoCom.putInProdPageData({ ...res.data, ...item, time: new Date().getTime(), type: state.type })
route({ url: '/pages/putInProd/details' })
if(typeVertical === 'details'){
pageDataInfoCom.putInProdPageData({ ...res.data, ...item, time: new Date().getTime(), type: state.type })
route({ url: '/pages/putInProd/details' })
}
if(typeVertical === 'item'){
if(state.type === '2'){
toPages('/pages/putInProd/print',{...res.data})
}
}
}
})
}
const clickPRD_MOViewIntoPro = (item:any) => {
PRD_MOViewIntoPro({
Number: item.FBillNo
}).then((res : any) => {
if(state.type === '2'){
toPages('/pages/putInProd/print',{...res.data})
}
})
}
const fnDataList = (scanData : boolean = false) => {
let param = {