Browse Source

YT-668寄售库直接发货、客户直接退货,只有这俩个直接的功能不能修改数量,是否需要左滑编辑 直接合格转隔离

intex_online20241111
zhang_li 3 months ago
parent
commit
81ab26d52d
  1. 9
      src/mycomponents/record/recordComDetailCard.vue
  2. 9
      src/pages/customerReturn/record/returnRecord.vue
  3. 12
      src/pages/deliver/record/deliverRecord.vue
  4. 6
      src/pages/inventoryMove/coms/comMoveRecord.vue
  5. 5
      src/pages/inventoryMove/coms/okToHoldRecordPack.vue

9
src/mycomponents/record/recordComDetailCard.vue

@ -4,7 +4,7 @@
<uni-collapse-item :open="true">
<template v-slot:title>
<uni-swipe-action>
<uni-swipe-action-item @click="removeItem($event,dataContent)" :right-options="removeOptions">
<uni-swipe-action-item @click="removeItem($event,dataContent)" :right-options="scanOptions">
<item-qty :dataContent="dataContent" :isShowBalance="true"
:isShowBalanceQty="isShowBalanceQty"
:isShowRecommendQty="false"
@ -109,14 +109,17 @@
type: Boolean,
default: true
},
isShowHandleQty: {
type: Boolean,
default: true
},
isShowModifedLocation: {
type: Boolean,
default: false
},
allowModifyQty: {
type: Boolean,
default: false
default: true
},
allowModifyLocation: {
type: Boolean,

9
src/pages/customerReturn/record/returnRecord.vue

@ -211,6 +211,7 @@
var itemp = createItemInfo(balance, pack);
let newDetail = createDetailInfo(balance, pack); //
newDetail.packingNumber =pack.number
newDetail.handleQty =result.label.qty
itemp.subList.push(newDetail);
this.detailSource.push(itemp)
} else {
@ -314,7 +315,13 @@
if (res.success) {
this.managementList = res.list;
var params = this.setParams()
console.log("提交" + JSON.stringify(params))
console.log("提交" ,params)
let obj = params.subList.find(item=>item.balanceQty < item.handleQty)
if(obj){
this.$refs.comMessage.showConfirmWarningModal('批次[' +obj.batch + ']数量[' + obj.handleQty + ']不允许大于库存数量[' +obj.balanceQty + ']')
uni.hideLoading()
return
}
customerReturnRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {

12
src/pages/deliver/record/deliverRecord.vue

@ -175,10 +175,6 @@
} else {
this.setData(result)
}
},
setData(result){
@ -343,7 +339,13 @@
if (res.success) {
this.managementList = res.list;
var params = this.setParams()
console.log("提交" + JSON.stringify(params))
console.log("提交",params)
let obj = params.subList.find(item=>item.balanceQty < item.handleQty)
if(obj){
this.$refs.comMessage.showConfirmWarningModal('批次[' +obj.batch + ']数量[' + obj.handleQty + ']不允许大于库存数量[' +obj.balanceQty + ']')
uni.hideLoading()
return
}
deliverRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {

6
src/pages/inventoryMove/coms/comMoveRecord.vue

@ -160,7 +160,7 @@
this.businessType = res.businessType;
this.fromLocationAreaTypeList = res.fromLocationAreaTypeList;
this.toLocationAreaTypeList = res.toLocationAreaTypeList;
this.showFromLocationPopup()
} else {
this.showErrorMessage(res.message)
}
@ -245,13 +245,13 @@
this.$refs.scanPopup.openScanPopupForType(this.fromLocationCode, this.businessType);
},
showFromLocationPopup() {
this.$nextTick(() => {
setTimeout(()=>{
if(this.showOnePop){
this.$refs.okToHoldRecordPackRef.showOne = true
}else{
this.$refs.scanFromLocationCode.openScanPopup();
}
})
},200)
},
getFromLocation(location) {
this.fromLocationCode = location.code;

5
src/pages/inventoryMove/coms/okToHoldRecordPack.vue

@ -9,7 +9,10 @@
</view>
<view class="item">
<view class="label">来源库位</view>
<view class="value"><u-input v-model="fromLocationCode" @confirm="fromLocationScanMsg" clearable></u-input></view>
<view class="value">
<u-input v-model="fromLocationCode" @confirm="fromLocationScanMsg"></u-input>
<u-icon name="photo" color="#2979ff" size="28"></u-icon>
</view>
<view class="searchIcon">
<image src="/static/search.svg" mode="" @click="fromLocationClick"/>
</view>

Loading…
Cancel
Save