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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save