Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-uniapp into master_hella

hella_online_20240829
niexiting 4 months ago
parent
commit
8bf9529dee
  1. 8
      src/mycomponents/qty/balanceQtyEdit.vue
  2. 19
      src/mycomponents/record/recordComDetailCard.vue
  3. 4
      src/pages/issue/request/issueScanRequest.vue
  4. 5
      src/pages/purchaseReceipt/job/receiptDetail.vue
  5. 3
      src/pages/repleinsh/record/directRepleinshRecord.vue

8
src/mycomponents/qty/balanceQtyEdit.vue

@ -178,12 +178,13 @@
}, },
setValue() { setValue() {
var balanceQty = Number(this.dataContent.balanceQty); var balanceQty = Number(this.dataContent.balanceQty);
if (this.allQty == 0) { if(this.allQty<0){
this.$refs.comMessage.showConfirmWarningModal('数量必须大于0', this.$refs.comMessage.showConfirmWarningModal('数量必须大于等于0',
res => { res => {
this.allQty = balanceQty; this.allQty = balanceQty;
}) })
} else if (this.allQty > balanceQty) { }else {
if (this.allQty > balanceQty) {
this.$refs.comMessage.showConfirmWarningModal('数量[' + this.allQty + ']不允许大于库存数量[' + balanceQty + ']', this.$refs.comMessage.showConfirmWarningModal('数量[' + this.allQty + ']不允许大于库存数量[' + balanceQty + ']',
res => { res => {
this.allQty = balanceQty; this.allQty = balanceQty;
@ -191,6 +192,7 @@
} else { } else {
this.callback(); this.callback();
} }
}
}, },
callback() { callback() {
let qty = Number(this.allQty); let qty = Number(this.allQty);

19
src/mycomponents/record/recordComDetailCard.vue

@ -1,12 +1,12 @@
<template> <template>
<view class="" style="background-color: #fff;"> <view class="" style="background-color: #fff;">
<uni-collapse ref="collapse1" @change=""> <uni-collapse ref="collapse1">
<uni-collapse-item :open="true"> <uni-collapse-item :open="true">
<template v-slot:title> <template v-slot:title>
<uni-swipe-action> <uni-swipe-action>
<uni-swipe-action-item @click="removeItem($event,dataContent)" :right-options="removeOptions"> <uni-swipe-action-item @click="removeItem($event,dataContent)" :right-options="removeOptions">
<item-qty :dataContent="dataContent" <item-qty :dataContent="dataContent" :isShowBalance="true"
:isShowBalance="true" :isShowBalanceQty="isShowBalanceQty"></item-qty> :isShowBalanceQty="isShowBalanceQty"></item-qty>
</uni-swipe-action-item> </uni-swipe-action-item>
</uni-swipe-action> </uni-swipe-action>
</template> </template>
@ -16,7 +16,8 @@
<uni-swipe-action-item @click="swipeClick($event,detail,index)" <uni-swipe-action-item @click="swipeClick($event,detail,index)"
:right-options="detail.scaned?scanOptions:detailOptions"> :right-options="detail.scaned?scanOptions:detailOptions">
<balance :dataContent="detail" :isShowStdPack="false" :isShowStatus="isShowStatus" <balance :dataContent="detail" :isShowStdPack="false" :isShowStatus="isShowStatus"
:isShowPack="true" :isShowFromLocation="isShowFromLocation" :isShowToLocation="isShowToLocation"> :isShowPack="true" :isShowFromLocation="isShowFromLocation"
:isShowToLocation="isShowToLocation">
</balance> </balance>
</uni-swipe-action-item> </uni-swipe-action-item>
</uni-swipe-action> </uni-swipe-action>
@ -90,19 +91,23 @@
}, },
}, },
watch: { watch: {
dataContent: { dataContent: {
handler(newName, oldName) { handler(newName, oldName) {
if (this.dataContent.subList.length > 0) { if (this.dataContent.subList.length > 0) {
if (this.$refs.collapse1 != undefined && this.$refs.collapse1 != null) {
this.$nextTick(res => { this.$nextTick(res => {
this.$refs.collapse1.resize() setTimeout(() => {
}) if (this.$refs.collapse1) {
this.$refs.collapse1.resize();
} }
}, 500)
})
} }
}, },
immediate: true, immediate: true,
deep: true deep: true
} }
}, },
data() { data() {

4
src/pages/issue/request/issueScanRequest.vue

@ -97,8 +97,6 @@
var labelInfo = data.label; var labelInfo = data.label;
var data = { var data = {
productionLineCode:labelInfo.productionLineCode,
workStationCode:labelInfo.workStationCode,
itemCode:labelInfo.itemCode, itemCode:labelInfo.itemCode,
location:labelInfo.location, location:labelInfo.location,
qty:labelInfo.qty, qty:labelInfo.qty,
@ -107,6 +105,8 @@
}; };
this.detailSource.subList.push(data) this.detailSource.subList.push(data)
this.detailSource.productionLineCode=labelInfo.productionLineCode;
this.detailSource.workStationCode=labelInfo.workStationCode;
this.detailSource.warehouseCode = labelInfo.warehouseCode; this.detailSource.warehouseCode = labelInfo.warehouseCode;
this.detailSource.workshopCode = labelInfo.workshopCode; this.detailSource.workshopCode = labelInfo.workshopCode;
this.submit(); this.submit();

5
src/pages/purchaseReceipt/job/receiptDetail.vue

@ -515,10 +515,7 @@
const timer1 = setInterval(async () => { const timer1 = setInterval(async () => {
if (timerCount == 15) { if (timerCount == 15) {
clearInterval(timer1) clearInterval(timer1)
uni.showToast({ this.showErrorMessage("上架任务生成异常,请到收货记录里重新生成上架申请")
title: "跳转打印页面失败",
icon: "none"
});
return; return;
} }
await getPutawayJobList({ await getPutawayJobList({

3
src/pages/repleinsh/record/directRepleinshRecord.vue

@ -285,7 +285,8 @@
}, },
selectBalanceItem(balance) { selectBalanceItem(balance) {
this.afterGetBalance(this.resultData, balance); this.resultData.balance =balance;
this.afterGetBalance(this.resultData);
}, },
afterGetBalance(result){ afterGetBalance(result){

Loading…
Cancel
Save