lijuncheng 10 months ago
parent
commit
5b5ce7aad1
  1. 2
      common/style/new_style.css
  2. 11
      mycomponents/item/itemQty.vue
  3. 2
      mycomponents/qty/balanceQty.vue
  4. 8
      mycomponents/qty/compareQty.vue
  5. 2
      mycomponents/record/recordComDetailCard.vue
  6. 1
      mycomponents/scan/winScanPackAndLocation.vue
  7. 8
      pages/count/coms/comCountDetailCard.vue
  8. 171
      pages/count/job/countDetail.vue
  9. 2
      pages/inventoryMove/coms/comMoveRecordCard.vue
  10. 13
      pages/productionReceipt/job/productionReceiptDetail.vue
  11. 2
      pages/productionReturn/coms/comReturnRecord.vue
  12. 2
      pages/transfer/coms/comReceiptDetailCard.vue
  13. 9
      pages/unPlanned/coms/comReceiptDetailCard.vue
  14. 2
      pages/unPlanned/coms/comReceiptRecord.vue

2
common/style/new_style.css

@ -2439,7 +2439,7 @@ button[disabled] {
font-size: 38rpx;
}
.text_stock {
.text_balance {
font-size: 36rpx;
}

11
mycomponents/item/itemQty.vue

@ -4,9 +4,11 @@
<item :dataContent="dataContent"></item>
</view>
<view>
<!-- showBalanceQty -->
<balanceQty v-if="showItemQty" :dataContent="dataContent"></balanceQty>
<compare-qty v-else :dataContent="dataContent" :recommendQty="Number(dataContent.qty)"
:handleQty="dataContent.handleQty" :isShowStatus="false">
:handleQty="dataContent.handleQty" :isShowStatus="false" :isShowStdPack="showStdPack">
</compare-qty>
</view>
<!-- <view v-else>
@ -18,7 +20,6 @@
</view>
</template>
<script>
import item from '@/mycomponents/item/item.vue'
import balanceQty from '@/mycomponents/qty/balanceQty.vue'
import compareQty from '@/mycomponents/qty/compareQty.vue'
@ -47,7 +48,11 @@
showItemQty: {
type: Boolean,
default: true
}
},
showStdPack: {
type: Boolean,
default: false
},
},
watch: {

2
mycomponents/qty/balanceQty.vue

@ -1,7 +1,7 @@
<template>
<view>
<view class="center">
<view class="uni-flex uni-row" style="font-size: 40rpx;">
<view class="uni-flex uni-row text_balance">
<text>
{{Number(dataContent.qty)}}
</text>

8
mycomponents/qty/compareQty.vue

@ -4,6 +4,7 @@
<status v-show="isShowStatus" :status='dataContent.inventoryStatus'></status>
<view class="uni-flex uni-row center">
<view v-if="Number(handleQty)!=0">
<view v-if="isShowRecommendQty">
<view v-if="Number(recommendQty)>Number(handleQty)" class="text_greater">
{{Number(handleQty)}}
</view>
@ -13,7 +14,12 @@
<view v-else-if="Number(recommendQty) ==Number( handleQty)" class="text_equal">
{{Number(handleQty)}}
</view>
</view>
<view v-else>
<view class="text_balance">
{{Number(handleQty)}}
</view>
</view>
</view>
<view class="center" v-if="isShowRecommendQty">
<view v-if="Number(handleQty)!=0" class="std_split">/</view>

2
mycomponents/record/recordComDetailCard.vue

@ -6,7 +6,7 @@
<uni-swipe-action ref="swipeAction">
<uni-swipe-action-item @click="removeItem($event,dataContent)" :right-options="removeOptions">
<item-qty :dataContent="dataContent" :handleQty="dataContent.handleQty"
:isShowBalance="true" :showItemQty="isShowItemQty"></item-qty>
:isShowBalance="true" :showBalanceQty="isShowItemQty"></item-qty>
</uni-swipe-action-item>
</uni-swipe-action>
</template>

1
mycomponents/scan/winScanPackAndLocation.vue

@ -35,7 +35,6 @@
{{fromLocationCode}}
</text>
</view>
</view>
</view>
<view class="">

8
pages/count/coms/comCountDetailCard.vue

@ -5,12 +5,12 @@
<template v-slot:title>
<uni-swipe-action ref="swipeAction">
<uni-swipe-action-item @click="removeData($event,dataContent)" :right-options="removeOptions">
<!-- 明盘 -->
<item-qty v-if="settingParam.isOpenCount=='TRUE'" :dataContent="dataContent"
:handleQty="dataContent.handleQty" :showItemQty="settingParam.isOpenCount=='FALSE'">
:handleQty="dataContent.handleQty" :showBalanceQty="true">
</item-qty>
<item-qty v-else :dataContent="dataContent" :handleQty="dataContent.handleQty"
:showBalanceQty="false" :showRecommendQty="false" :showStdPack="true">
</item-qty>
<!-- 盲盘 -->
<item v-else :dataContent="dataContent"></item>
</uni-swipe-action-item>
</uni-swipe-action>
</template>

171
pages/count/job/countDetail.vue

@ -53,6 +53,7 @@
<count-qty-edit ref="countQtyEdit" @confirm="editConfirm" @close="editClose" :isShowStatus="true"
:allowEditStatus="editInventoryStatus" :isShowBalance="jobContent.isOpenCount=='TRUE'">
</count-qty-edit>
<balance-select ref="balanceSelect" @onSelectItem='selectBalanceItem'></balance-select>
<com-message ref="comMessage"></com-message>
</view>
</template>
@ -86,6 +87,7 @@
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
import countQtyEdit from '@/mycomponents/qty/countQtyEdit.vue'
import jobTop from '@/mycomponents/job/jobTop.vue'
import balanceSelect from '@/mycomponents/balance/balanceSelect.vue'
export default {
name: 'receipt_detail',
@ -97,7 +99,8 @@
comMessage,
winScanPackAndLocation,
countQtyEdit,
jobTop
jobTop,
balanceSelect
},
data() {
return {
@ -271,10 +274,6 @@
updateData() {
this.calcHandleQty();
},
// editConfirm() {
// this.calcHandleQty();
// this.scanPopupGetFocus();
// },
openScanPopup() {
let fromlocationCode = '';
@ -318,13 +317,29 @@
//
getScanResult(result) {
if (this.jobContent.isOpenCount) {
this.getOpenCountResult(result);
} else {
this.getUnOpenCountResult(result);
}
},
getOpenCountResult(result) {
try {
let that = this;
that.package = result.package;
that.label = result.label;
var item = this.detailSource.find(r => r.itemCode == that.package.itemCode);
if (item == undefined) {
// this.$refs.comMessage.showQuestionMessage("" + that.package.itemCode +
// ",?",
// res => {
// if (res) {
that.scanByBalance(result);
// } else {
// this.scanPopupGetFocus();
// }
// })
} else {
let subItem = item.subList.find(item => {
if (item.packingNumber == that.label.packingNumber &&
@ -356,6 +371,52 @@
}
},
getUnOpenCountResult(result) {
try {
let that = this;
that.package = result.package;
that.label = result.label;
var item = this.detailSource.find(r => r.itemCode == that.package.itemCode);
if (item == undefined) {
this.$refs.comMessage.showQuestionMessage("没有物料【" + that.package.itemCode +
"】的盘点明细,是否继续盘点?",
res => {
if (res) {
that.scanByLabel(result);
} else {
this.scanPopupGetFocus();
}
})
} else {
let subItem = item.subList.find(item => {
if (item.packingNumber == that.label.packingNumber &&
item.batch == that.label.batch && item.scaned == true) {
return item;
}
})
if (subItem != undefined) {
this.$refs.comMessage.showQuestionMessage("箱码【" + that.label.packingNumber +
"】已经完成盘点,是否要编辑盘点结果?",
res => {
if (res) {
this.currentEditItem = subItem;
this.$refs.countQtyEdit.openEditPopup(subItem,
item.subList);
} else {
this.scanPopupGetFocus();
}
})
} else {
that.scanByLabel(result);
}
}
} catch (e) {
this.showErrorMessage(e.message)
}
},
//
scanByBalance(result) {
let that = this;
if (result.balance.length == 0) {
@ -380,24 +441,51 @@
}
})
} else if (result.balance.length == 1) {
that.balance = result.balance[0];
that.balance.qty = 0
that.balance.handleQty = Number(that.label.qty);
that.balance.balanceQty = that.balance.qty;
that.balance.stdPackQty = that.package.stdPackQty;
that.balance.stdPackUnit = that.package.stdPackUnit;
that.$refs.countQtyEdit.openEditPopupShowSeconds(that.balance,
null);
this.countByBalance(result.balance[0]);
} else {
//
this.$refs.balanceSelect.openPopup(result.balance);
}
},
//
scanByLabel(result) {
let that = this;
that.scanPopupLoseFocus()
let item = that.package;
item.packingNumber = that.label.packingNumber;
item.qty = 0
item.handleQty = Number(that.label.qty);
item.balanceQty = 0;
item.inventoryStatus = "OK";
that.balance = item;
that.$refs.countQtyEdit.openEditPopupShowSeconds(item,
null);
},
selectBalanceItem(balance) {
this.countByBalance(balance);
},
countByBalance(balance) {
this.balance = balance;
// this.balance.qty = 0
this.balance.handleQty = Number(this.label.qty);
this.balance.balanceQty = this.balance.qty;
this.balance.stdPackQty = this.package.stdPackQty;
this.balance.stdPackUnit = this.package.stdPackUnit;
this.$refs.countQtyEdit.openEditPopupShowSeconds(this.balance,
null);
},
editConfirm(qty, inventoryStatus, mode) {
let that = this;
//
if (mode == 'edit') {
this.currentEditItem.handleQty = qty;
this.currentEditItem.inventoryStatus = inventoryStatus;
} else { //
} else {
//
//
var detail = that.detailSource.find(r => r.itemCode == that.package.itemCode);
if (detail == undefined) {
@ -433,60 +521,13 @@
},
// editConfirm(qty, inventoryStatus, mode) {
// let that = this;
// var detail = that.detailSource.find(r => r.itemCode == that.package.itemCode);
openEditConfirm() {
// //
// if (detail == undefined) {
// //
// that.addNewItemCodeToList(qty, inventoryStatus)
// } else {
// var itemEditInfo = detail.subList.find(item => {
// if (item.packingNumber == that.package.number &&
// item.batch == that.package.batch &&
// item.inventoryStatus == inventoryStatus) {
// return item;
// }
// })
// if (itemEditInfo == undefined) {
// //
// if (mode == 'edit') {
// that.currentEditItem.handleQty = qty;
// that.currentEditItem.inventoryStatus = inventoryStatus;
// } else {
// that.addExistItemCodeToList(detail, qty, inventoryStatus);
// }
// } else { //
// if (itemEditInfo.scaned) {
// }
// itemEditInfo.scaned = true;
// itemEditInfo.handleQty = qty;
// itemEditInfo.inventoryStatus = inventoryStatus;
// itemEditInfo.balanceQty = that.balance.qty;
// itemEditInfo.stdPackQty = that.package.stdPackQty;
// itemEditInfo.stdPackUnit = that.package.stdPackUnit;
// //0
// if (mode == 'edit') {
// itemEditInfo.scaned = false;
// that.currentEditItem.handleQty = 0;
// }
},
// // this.$refs.countQtyEdit.openEditPopupShowSeconds(itemEditInfo, detail
// // .subList);
// that.updateData()
// }
unOpenEditConfirm() {
// setTimeout(r => {
// this.calcHandleQty();
// this.scanPopupGetFocus();
// }, 100)
// }
// },
},
editClose() {
this.scanPopupGetFocus();

2
pages/inventoryMove/coms/comMoveRecordCard.vue

@ -6,7 +6,7 @@
<uni-swipe-action ref="swipeAction">
<uni-swipe-action-item @click="removeData($event,dataContent)" :right-options="removeOptions">
<item-qty :dataContent="dataContent"
:showItemQty="false"
:showBalanceQty="false"
:isShowBalance="true"></item-qty>
</uni-swipe-action-item>
</uni-swipe-action>

13
pages/productionReceipt/job/productionReceiptDetail.vue

@ -247,7 +247,11 @@
getScanResult(result) {
try {
var supplierCode = result.package.supplierCode
var supplierCode = result.label.supplierCode;
if (supplierCode == '' || supplierCode == undefined) {
this.showErrorMessage("标签中未解析到供应商信息,请重新扫描")
return;
}
var packingNumber = result.balance.packingNumber;
var batch = result.balance.batch;
var qty = result.balance.qty;
@ -276,7 +280,8 @@
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
if (this.jobContent.allowModifyInventoryStatus == "TRUE") {
this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' +
itemStatus +
']不一致,是否继续上架?', res => {
if (res) {
itemDetail.scaned = true;
@ -293,7 +298,8 @@
}
});
} else {
this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' +
itemStatus +
']不一致,不允许转移!', res => {
this.scanPopupGetFocus();
});
@ -428,7 +434,6 @@
detail.toBatch = info.batch;
detail.toContainerNumber = "";
detail.toLocationCode = this.toLocationCode;
subList.push(detail)
}
})

2
pages/productionReturn/coms/comReturnRecord.vue

@ -5,7 +5,7 @@
<template v-slot:title>
<uni-swipe-action ref="swipeAction">
<uni-swipe-action-item @click="removeData($event,dataContent)" :right-options="removeOptions">
<item-qty :dataContent="dataContent" :showItemQty="false" :isShowBalance="true"></item-qty>
<item-qty :dataContent="dataContent" :showBalanceQty="false" :isShowBalance="true"></item-qty>
</uni-swipe-action-item>
</uni-swipe-action>

2
pages/transfer/coms/comReceiptDetailCard.vue

@ -3,7 +3,7 @@
<uni-collapse ref="collapse1" @change="">
<uni-collapse-item :open="true">
<template v-slot:title>
<item-qty :dataContent="dataContent" :handleQty="dataContent.handleQty" :showItemQty ="false"></item-qty>
<item-qty :dataContent="dataContent" :handleQty="dataContent.handleQty" :showBalanceQty ="false"></item-qty>
</template>
<u-line />
<view class="" v-for="(item,index) in dataContent.subList">

9
pages/unPlanned/coms/comReceiptDetailCard.vue

@ -3,7 +3,8 @@
<uni-collapse ref="collapse1" @change="">
<uni-collapse-item :open="true">
<template v-slot:title>
<item-qty :dataContent="dataContent" :handleQty="dataContent.handleQty" :showItemQty ="false"></item-qty>
<item-qty :dataContent="dataContent" :handleQty="dataContent.handleQty" :showBalanceQty="false">
</item-qty>
</template>
<u-line />
<view class="" v-for="(item,index) in dataContent.subList">
@ -18,8 +19,7 @@
</view>
</uni-collapse-item>
</uni-collapse>
<recommend-qty-edit ref="receiptEdit" :dataContent="editItem" :settingParam="settingParam"
@confirm="confirm">
<recommend-qty-edit ref="receiptEdit" :dataContent="editItem" :settingParam="settingParam" @confirm="confirm">
</recommend-qty-edit>
<win-scan-location ref="scanLocationCode" title="目标库位" @getLocation='getLocation'
:locationTypeList="locationTypeList"></win-scan-location>
@ -91,7 +91,8 @@
this.detailOptions = getDetailOption();
}
if (this.scanOptions.length == 0) {
this.scanOptions = getPurchaseReceiptOption(this.settingParam.allowModifyQty,this.settingParam.allowModifyLocation)
this.scanOptions = getPurchaseReceiptOption(this.settingParam.allowModifyQty, this.settingParam
.allowModifyLocation)
}
},

2
pages/unPlanned/coms/comReceiptRecord.vue

@ -5,7 +5,7 @@
<template v-slot:title>
<uni-swipe-action ref="swipeAction">
<uni-swipe-action-item @click="removeData($event,dataContent)" :right-options="removeOptions">
<item-qty :dataContent="dataContent" :showItemQty="false"
<item-qty :dataContent="dataContent" :showBalanceQty="false"
:isShowBalance="true"></item-qty>
</uni-swipe-action-item>
</uni-swipe-action>

Loading…
Cancel
Save