Browse Source

采购收货

dev_pda
李俊城 2 years ago
parent
commit
af7db6a417
  1. 2
      fe/PDA/mycomponents/coms/task/comReceipt.vue
  2. 2
      fe/PDA/pages/task/receipt.vue
  3. 6
      fe/PDA/pages/task/receipt_check.vue
  4. 12
      fe/PDA/pages/task/receipt_detail.vue
  5. 15
      fe/PDA/pages/task/receipt_result.vue

2
fe/PDA/mycomponents/coms/task/comReceipt.vue

@ -12,7 +12,7 @@
</view>
<view class="label_order">
<image class="icon_normal" src="@/static/icons_ui/icon_avn.svg"></image>
<text>{{receiptItem.arriveNoticeNumber}}</text>
<text>{{receiptItem.purchaseReceiptRequestNumber}}</text>
<!-- <text>到货单{{receiptItem.arriveNoticeNumber}}</text> -->
</view>
</view>

2
fe/PDA/pages/task/receipt.vue

@ -226,7 +226,7 @@
mask: true
});
let params = {
number: code,
asnNumber: code,
isToday: that.isToday
}
getReceiptJobByAsnNumber(params).then(res => {

6
fe/PDA/pages/task/receipt_check.vue

@ -134,6 +134,7 @@
let fileKey = file.FileKey;
let fileName = file.FileName;
getFileByCode(fileKey).then(res => {
let result = res;
var byteString = atob(res.bytes)
var arrayBuffer = new ArrayBuffer(byteString.length) //
@ -232,11 +233,12 @@
filesList: imgFiles
};
let param = JSON.stringify(item);
console.log('param', param);
// console.log('param', param);
//
saveReceiptResult(this.dataContent.masterID, param).then(res => {
console.log("保存",res)
if (res != null) {
console.log('param', param);
// console.log('param', param);
this.afterSave();
}
uni.hideLoading();

12
fe/PDA/pages/task/receipt_detail.vue

@ -33,7 +33,7 @@
<uni-th width="100" align="center">实际</uni-th>
</uni-tr>
<uni-tr>
<uni-th width="100">数量({{item.recommendUom}})</uni-th>
<uni-th width="100">数量({{item.uom}})</uni-th>
<uni-th width="100" align="center">
<text class="text_black"
style="font-size: 1rem;">{{item.recommendQty}}</text>
@ -233,6 +233,9 @@
res.details.sort(compareDesc('purchaseReceiptInspectStatus')); //
that.receiptJob = res;
callBack();
let params = JSON.stringify(that.receiptJob.details);
console.log("测试",params)
})
.catch(err => {
this.showMessage(err.message);
@ -242,9 +245,9 @@
afterPurchase() {
let that = this;
//
that.getJoDetail(() => {
this.calcScanCount();
})
that.getJoDetail(() => {
this.calcScanCount();
})
},
//
@ -403,6 +406,7 @@
details.push(r.id);
})
let param = JSON.stringify(details);
resetReceiptResult(that.id, param).then(res => {
if (res != null) {
that.getJoDetail(() => {

15
fe/PDA/pages/task/receipt_result.vue

@ -43,7 +43,7 @@
<view class="cen_card margin_xs_bottom">
<view class="label_box uni-flex uni-row space-between">
<view class="label_info">
<text>不合格数量:{{ item.recommendQty}}({{ item.recommendUom}})</text>
<text>不合格数量:{{ item.recommendQty}}({{ item.uom}})</text>
</view>
<view v-if="item.purchaseReceiptInspectStatus==3?true:false" @click="seePhoto(item)">
<!-- <label class="">
@ -146,7 +146,6 @@
that.itemList = that.receiptJob.details.filter(r => {
return r.purchaseReceiptInspectStatus == 3
})
that.receiptJob.details.forEach(r => {
that.allCount += r.recommendQty;
switch (r.purchaseReceiptInspectStatus) {
@ -202,23 +201,23 @@
})
//
that.receiptJob.details.forEach(r => {
r.handledLocationCode = r.recommendLocationCode;
r.handledToLocationCode = r.recommendToLocationCode;
r.worker = localStorage.userName
if (r.purchaseReceiptInspectStatus == 1) {
r.handledArriveDate = new Date(); //
r.purchaseReceiptInspectStatus = 4; //
r.handledQty = 0;
r.handledUom = r.recommendUom;
// r.handledUom = r.recommendUom;
r.handledContainerCode = r.recommendContainerCode;
r.handledPackingCode = r.recommendPackingCode;
r.handledSupplierBatch = r.recommendSupplierBatch;
r.handledProduceDate = r.recommendProduceDate;
r.handledExpireDate = r.recommendExpireDate;
r.handledLot = r.recommendLot;
r.handledLocationCode = r.recommendLocationCode;
r.handledLocationArea = r.recommendLocationArea;
r.handledLocationGroup = r.recommendLocationGroup;
r.handledLocationErpCode = r.recommendLocationErpCode;
r.handledToLocationCode = r.recommendToLocationCode;
r.handledToLocationArea = r.recommendToLocationArea;
r.handledToLocationGroup = r.recommendToLocationGroup;
r.handledToLocationErpCode = r.recommendToLocationErpCode;
}
});

Loading…
Cancel
Save