领料出库

This commit is contained in:
hongchao 2025-03-10 16:37:07 +08:00
parent 44df35a4de
commit e591c13c60
3 changed files with 16 additions and 8 deletions

View File

@ -208,6 +208,7 @@ const leaseOutBack = async (item) => {
}) })
}else{ }else{
if(item.manageType==0){// if(item.manageType==0){//
console.log('编码xxxxxxxxx', item)
const { status,manageType,maTypeName,typeName,storageNum,preNum,alNum,unitName,id,typeId, unitValue} = item const { status,manageType,maTypeName,typeName,storageNum,preNum,alNum,unitName,id,typeId, unitValue} = item
leaseApplyInfo.value.maTypeName = maTypeName leaseApplyInfo.value.maTypeName = maTypeName
leaseApplyInfo.value.typeName = typeName leaseApplyInfo.value.typeName = typeName
@ -228,7 +229,8 @@ const leaseOutBack = async (item) => {
outNum:item.alNum, outNum:item.alNum,
taskId:leaseApplyInfo.value.taskId, taskId:leaseApplyInfo.value.taskId,
typeId:item.typeId, typeId:item.typeId,
parentId:item.parentId parentId:item.parentId,
publishTask:leaseApplyInfo.value.publishTask
} }
console.log(param) console.log(param)
uni.showModal({ uni.showModal({
@ -325,8 +327,6 @@ const onClick = (e, item) => {
console.log("333333333333333333333333333") console.log("333333333333333333333333333")
if (e.index === 0) { if (e.index === 0) {
if (item.status == 2) {// if (item.status == 2) {//
console.log("x22222222222222222222",32)
console.log(302)//退
leaseOutBack(item) leaseOutBack(item)
}else{ }else{
console.log("rrrrrrrrrrrrr",30) console.log("rrrrrrrrrrrrr",30)

View File

@ -32,7 +32,7 @@
</view> </view>
</uni-col> </uni-col>
<uni-col :span="6"> <uni-col :span="6">
<view class="search" @click="getTableList()">搜索</view> <view class="search" @click="getTableList(false,true)">搜索</view>
</uni-col> </uni-col>
</uni-row> </uni-row>
@ -170,7 +170,12 @@ const onChangeDate = (val) => {
} }
// //
const getTableList = async (isTap = false) => { const getTableList = async (isTap = false,isSearch = false) => {
if (isSearch) {
//
queryParams.value.pageNum = 1;
tableList.value = [];
}
console.log('queryParams.value查询参数', queryParams.value) console.log('queryParams.value查询参数', queryParams.value)
const res = await getPickingOutboundListAPI(queryParams.value) const res = await getPickingOutboundListAPI(queryParams.value)
console.log('res列表数据', res) console.log('res列表数据', res)
@ -181,8 +186,8 @@ const getTableList = async (isTap = false) => {
if (res.data.rows.length == 0) { if (res.data.rows.length == 0) {
tableList.value = [] tableList.value = []
} else { } else {
tableList.value = res.data.rows // tableList.value = res.data.rows
// tableList.value.push(...res.data.rows) tableList.value = [...tableList.value, ...res.data.rows]
} }
} }
} }
@ -193,6 +198,7 @@ const getTableList = async (isTap = false) => {
// }) // })
onShow(() => { onShow(() => {
queryParams.value.pageNum = 1;
tableList.value = [] tableList.value = []
total.value = 0 total.value = 0
getTableList() getTableList()

View File

@ -94,6 +94,7 @@ const queryCodeParams = ref({
pageSize: 10, pageSize: 10,
taskId: '', taskId: '',
typeId: '', typeId: '',
publishTask: '',
}) })
// //
@ -177,7 +178,7 @@ const onChangeChecked = (item) => {
const leaseOutBack = async (item) => { const leaseOutBack = async (item) => {
// //
const { typeId, parentId,taskId } = queryParams.value const { typeId, parentId,taskId,publishTask } = queryParams.value
// const isSelect = codeDeviceList.value.some((e) => e.checked === true) // const isSelect = codeDeviceList.value.some((e) => e.checked === true)
// if (!isSelect) { // if (!isSelect) {
// uni.showToast({ // uni.showToast({
@ -206,6 +207,7 @@ const leaseOutBack = async (item) => {
taskId, taskId,
parentId, parentId,
typeId, typeId,
publishTask,
} }
console.log(param) console.log(param)
const res = await leaseOutBackApi(param) const res = await leaseOutBackApi(param)