Browse Source

提交代码

dev_pda
李俊城 2 years ago
parent
commit
1dc505dc31
  1. 17
      fe/PDA/api/index.js
  2. 1
      fe/PDA/pages/inventory/scrap.vue
  3. 2
      fe/PDA/pages/putaway/rapReceipt.vue
  4. 30
      fe/PDA/pages/putaway/semiPutaway.vue
  5. 12
      fe/PDA/pages/return/productionReturn_detail.vue
  6. 32
      fe/PDA/pages/return/returnToWarehouse.vue
  7. 2
      fe/PDA/pages/store/deliverRaw.vue
  8. 15
      fe/PDA/pages/task/deliver_detail.vue
  9. 22
      fe/PDA/pages/task/issue_detail.vue
  10. 3
      fe/PDA/pages/task/receipt_detail.vue

17
fe/PDA/api/index.js

@ -253,9 +253,9 @@ export const getReceiptJobByNumber = (params) => request(
//根据Asn Number 获取收货任务列表 //根据Asn Number 获取收货任务列表
export const getReceiptJobByAsnNumber = (params) => request( export const getReceiptJobByAsnNumber = (params) => request(
devUrl + "/api/pda/job/purchase-receipt/list/by-asn/asnNumber=" + params.number + "&isToday=" + params devUrl + "/api/pda/job/purchase-receipt/list/by-asn"
.isToday, { , {
data: {}, data: params,
method: "get" method: "get"
}); });
@ -664,7 +664,7 @@ export const finshIssueJob = (id, params) => request(
}) })
//发货任务列表 //发货任务列表
export const getDeliverList = (params) => request( export const getDeliverList = (params) => request(
'devUrl' + "/api/pda/job/deliver/list", { devUrl + "/api/pda/job/deliver/list", {
method: 'get', method: 'get',
data: params data: params
}); });
@ -1199,12 +1199,21 @@ export const semiPutaway = (params) => request(
// //
export const getPurchaseDetailAsync = (itemCode, packingCode) => promise( export const getPurchaseDetailAsync = (itemCode, packingCode) => promise(
devUrl + "/api/pda/store/purchase-receipt-request/detail-by-item-and-packing?itemCode=" + itemCode + '&packingCode=' +
packingCode, { //
data: {},
method: "get"
});
export const getPurchaseDetailAsync_old = (itemCode, packingCode) => promise(
devUrl + "/api/pda/store/purchase-receipt/detail-by-item-and-packing?itemCode=" + itemCode + '&packingCode=' + devUrl + "/api/pda/store/purchase-receipt/detail-by-item-and-packing?itemCode=" + itemCode + '&packingCode=' +
packingCode, { // packingCode, { //
data: {}, data: {},
method: "get" method: "get"
}); });
export const getFileByCode = (fileCode) => request( export const getFileByCode = (fileCode) => request(
devUrl + "/api/pda/file/filestore/by-code/" + fileCode, { // devUrl + "/api/pda/file/filestore/by-code/" + fileCode, { //
data: {}, data: {},

1
fe/PDA/pages/inventory/scrap.vue

@ -197,6 +197,7 @@
selectedBalanceItem(balanceItem) { selectedBalanceItem(balanceItem) {
let item = this.createItem(balanceItem); let item = this.createItem(balanceItem);
this.itemList.unshift(item) this.itemList.unshift(item)
this.getLocationInfo();
}, },
createItem(item) { createItem(item) {

2
fe/PDA/pages/putaway/rapReceipt.vue

@ -275,8 +275,6 @@
}) })
let item = { let item = {
worker: localStorage.userName, worker: localStorage.userName,
company: localStorage.company,
warehouseCode: localStorage.warehouseCode,
// details: that.itemList // details: that.itemList
}; };
that.itemList.forEach(r => { that.itemList.forEach(r => {

30
fe/PDA/pages/putaway/semiPutaway.vue

@ -420,7 +420,35 @@
r.toLocationGroup = this.toLocation.locationGroupCode, r.toLocationGroup = this.toLocation.locationGroupCode,
r.toStatus = i.status, r.toStatus = i.status,
r.toWarehouseCode = i.balanceItem.warehouseCode, r.toWarehouseCode = i.balanceItem.warehouseCode,
r.worker = localStorage.userName, // ========================================
// r.recommendContainerCode = "",
// r.recommendPackingCode = r.packingCode,
// r.recommendSupplierBatch = "",
// r.recommendArriveDate = r.arriveDate,
// r.recommendProduceDate = "",
// r.recommendExpireDate = "",
// r.recommendLot = "",
// r.recommendToLocationCode = "",
// r.recommendToLocationArea = "",
// r.recommendToLocationGroup = "",
// r.recommendToLocationErpCode = "",
// r.recommendToWarehouseCode = "",
// r.recommendQty ": 0,
// r.handledContainerCode = "",
// r.handledPackingCode = r.packingCode,
// r.handledSupplierBatch = "",
// r.handledArriveDate = r.arriveDate,
// r.handledProduceDate = "",
// r.handledExpireDate = "",
// r.handledLot = r.lot,
// r.handledToLocationCode = this.toLocation.code,
// r.handledToLocationArea = this.toLocation.areaCode,
// r.handledToLocationGroup = this.toLocation.locationGroupCode,
// r.handledToLocationErpCode = this.toLocation.erpLocationCode,
// r.handledToWarehouseCode = i.balanceItem.warehouseCode,
// r.handledQty = 0,
item.details.push(r); item.details.push(r);
}) })
}) })

12
fe/PDA/pages/return/productionReturn_detail.vue

@ -23,7 +23,7 @@
</view> </view>
<view class="ljh_right"> <view class="ljh_right">
<text class="tnum">{{item.recommendQty}}</text> <text class="tnum">{{item.recommendQty}}</text>
<text class="tunit">{{item.recommendUom}}</text> <text class="tunit">{{item.uom}}</text>
</view> </view>
</view> </view>
</view> </view>
@ -258,13 +258,13 @@
data.handledPackingCode = result.data.packingCode; data.handledPackingCode = result.data.packingCode;
data.handledLot = result.data.lot; data.handledLot = result.data.lot;
data.handledQty = result.data.qty; data.handledQty = result.data.qty;
data.handledUom = result.data.uom ? '无' : result.data.uom; data.uom = result.data.uom ? '无' : result.data.uom;
data.handledBatch = data.recommendBatch; data.handledBatch = data.recommendBatch;
data.handledLocationCode = data.recommendLocationCode; data.handledToLocationCode = data.recommendLocationCode;
data.handledLocationArea = data.recommendLocationArea data.handledToLocationArea = data.recommendLocationArea
data.handledLocationGroup = data.recommendLocationGroup data.handledToLocationGroup = data.recommendLocationGroup
data.handledLocationErpCode = data.recommendLocationErpCode data.handledToLocationErpCode = data.recommendLocationErpCode
this.scanPopupGetFocus(); this.scanPopupGetFocus();
}, },

32
fe/PDA/pages/return/returnToWarehouse.vue

@ -537,29 +537,33 @@
//=========================================== //===========================================
detail.recommendContainerCode = balanceItem.containerCode; detail.recommendContainerCode = balanceItem.containerCode;
detail.recommendPackingCode = l.packingCode; detail.recommendPackingCode = l.packingCode;
detail.recommendSupplierBatch = balanceItem.supplierBatch;; detail.recommendSupplierBatch = balanceItem.supplierBatch;
detail.recommendArriveDate = balanceItem.arriveDate; detail.recommendArriveDate = balanceItem.arriveDate;
detail.recommendProduceDate = balanceItem.produceDate; detail.recommendProduceDate = balanceItem.produceDate;
detail.recommendExpireDate = balanceItem.expireDate; detail.recommendExpireDate = balanceItem.expireDate;
detail.recommendLot = l.lot; detail.recommendLot = l.lot;
detail.recommendToLocationCode = ""; detail.recommendToLocationCode = l.toLocationCode ?? that.defaultToLocation.code;
detail.recommendToLocationArea = ""; detail.recommendToLocationArea = l.toLocationArea ?? that.defaultToLocation.areaCode;
detail.recommendToLocationGroup = ""; detail.recommendToLocationGroup = l.toLocationGroup ?? that.defaultToLocation
detail.recommendToLocationErpCode = ""; .locationGroupCode;
detail.recommendToLocationErpCode = l.toLocationErpCode ?? that.defaultToLocation
.erpLocationCode;
detail.recommendToWarehouseCode = balanceItem.warehouseCode; detail.recommendToWarehouseCode = balanceItem.warehouseCode;
detail.recommendQty = l.qty; detail.recommendQty = l.qty;
detail.handledContainerCode = ""; detail.handledContainerCode = balanceItem.containerCode;
detail.handledPackingCode = ""; detail.handledPackingCode = l.packingCode;
detail.handledSupplierBatch = ""; detail.handledSupplierBatch = balanceItem.supplierBatch;
detail.handledArriveDate = balanceItem.arriveDate; detail.handledArriveDate = balanceItem.arriveDate;
detail.handledProduceDate = balanceItem.produceDate; detail.handledProduceDate = balanceItem.produceDate;
detail.handledExpireDate = balanceItem.expireDate; detail.handledExpireDate = balanceItem.expireDate;
detail.handledLot = ""; detail.handledLot = l.lot;
detail.handledToLocationCode = ""; detail.handledToLocationCode = l.toLocationCode ?? that.defaultToLocation.code;
detail.handledToLocationArea = ""; detail.handledToLocationArea = l.toLocationArea ?? that.defaultToLocation.areaCode;
detail.handledToLocationGroup = ""; detail.handledToLocationGroup = l.toLocationGroup ?? that.defaultToLocation
detail.handledToLocationErpCode = ""; .locationGroupCode;
detail.handledToWarehouseCode = ""; detail.handledToLocationErpCode = l.toLocationErpCode ?? that.defaultToLocation
.erpLocationCode;
detail.handledToWarehouseCode = balanceItem.warehouseCode;
detail.handledQty = l.qty; detail.handledQty = l.qty;
item.details.push(detail); item.details.push(detail);
}); });

2
fe/PDA/pages/store/deliverRaw.vue

@ -162,6 +162,7 @@
let itemInfo = that.itemList.find(r => { let itemInfo = that.itemList.find(r => {
return r.itemCode == result.data.itemCode return r.itemCode == result.data.itemCode
}) })
if (itemInfo == undefined) { if (itemInfo == undefined) {
that.getBalance(result); that.getBalance(result);
} else { } else {
@ -281,6 +282,7 @@
// item.produceDate = balanceItem.produceDate; // item.produceDate = balanceItem.produceDate;
// item.expireDate = balanceItem.expireDate; // item.expireDate = balanceItem.expireDate;
//================================================ //================================================
label.status = balanceItem.status;
label.stdPackQty = balanceItem.stdPackQty; label.stdPackQty = balanceItem.stdPackQty;
label.fromPackingCode = balanceItem.packingCode; label.fromPackingCode = balanceItem.packingCode;
label.toPackingCode = this.currentLabel.packingCode; label.toPackingCode = this.currentLabel.packingCode;

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

@ -33,13 +33,13 @@
<uni-tr> <uni-tr>
<uni-th width="50">数量</uni-th> <uni-th width="50">数量</uni-th>
<uni-th width="120" align="center"> <uni-th width="120" align="center">
<view class="text_black">{{item.recommendQty}}({{item.recommendUom}})</text> <view class="text_black">{{item.recommendQty}}({{item.uom}})</text>
</view> </view>
</uni-th> </uni-th>
<!-- --> <!-- -->
<uni-th width="120" align="center"> <uni-th width="120" align="center">
<view v-if="item.scaned" class="text_black"> <view v-if="item.scaned" class="text_black">
{{item.handledQty}}({{item.recommendUom}}) {{item.handledQty}}({{item.uom}})
</view> </view>
</uni-th> </uni-th>
</uni-tr> </uni-tr>
@ -72,7 +72,7 @@
<view class="text_black">{{ item.recommendLocationCode }}</view> <view class="text_black">{{ item.recommendLocationCode }}</view>
</uni-th> </uni-th>
<uni-th width="120" align="center"> <uni-th width="120" align="center">
<view v-if="item.scaned" class="text_black">{{ item.handledLocationCode }} <view v-if="item.scaned" class="text_black">{{ item.handledFromLocationCode }}
</view> </view>
</uni-th> </uni-th>
</uni-tr> </uni-tr>
@ -272,8 +272,15 @@
item.handledPackingCode = that.balancesItem.packingCode; item.handledPackingCode = that.balancesItem.packingCode;
item.handledBatch = that.balancesItem.batch; item.handledBatch = that.balancesItem.batch;
item.handledLot = that.balancesItem.lot; item.handledLot = that.balancesItem.lot;
item.handledLocationCode = that.balancesItem.locationCode; item.handledFromLocationArea = that.balancesItem.locationCode;
item.handledQty = that.balancesItem.qty; item.handledQty = that.balancesItem.qty;
// "toLocationCode": "string",
// "toLocationArea": "string",
// "toLocationGroup": "string",
// "toLocationErpCode": "string",
// "toWarehouseCode": "string",
// "onTheWayLocationCode": "string"
this.getScanCount(); this.getScanCount();
this.closeScanPopup(); this.closeScanPopup();
that.$forceUpdate(); that.$forceUpdate();

22
fe/PDA/pages/task/issue_detail.vue

@ -32,12 +32,12 @@
<uni-tr> <uni-tr>
<uni-th width="50">数量</text></uni-th> <uni-th width="50">数量</text></uni-th>
<uni-th width="120" align="center"> <uni-th width="120" align="center">
<text class="text_black">{{item.recommendQty}}({{item.recommendUom}})</text> <text class="text_black">{{item.recommendQty}}({{item.uom}})</text>
</uni-th> </uni-th>
<uni-th width="120" align="center"> <uni-th width="120" align="center">
<view v-if="item.scaned"> <view v-if="item.scaned">
<text <text
class="text_black">{{item.handledQty}}({{item.recommendUom}})</text> class="text_black">{{item.handledQty}}({{item.uom}})</text>
</view> </view>
</uni-th> </uni-th>
</uni-tr> </uni-tr>
@ -66,10 +66,10 @@
<uni-tr> <uni-tr>
<uni-th width="60">库位</uni-th> <uni-th width="60">库位</uni-th>
<uni-th width="100" align="center"> <uni-th width="100" align="center">
<view class="text_black">{{ item.recommendLocationCode }}</view> <view class="text_black">{{ item.recommendFromLocationCode }}</view>
</uni-th> </uni-th>
<uni-th width="100" align="center"> <uni-th width="100" align="center">
<view class="text_black" v-if="item.scaned">{{ item.handledLocationCode }} <view class="text_black" v-if="item.scaned">{{ item.handledFromLocationCode }}
</view> </view>
</uni-th> </uni-th>
</uni-tr> </uni-tr>
@ -415,12 +415,15 @@
item.handledLot = balanceItem.lot; item.handledLot = balanceItem.lot;
item.handledQty = balanceItem.qty; item.handledQty = balanceItem.qty;
item.handledUom = balanceItem.uom;
item.handledLocationCode = balanceItem.locationCode; item.handledFromLocationCode = balanceItem.locationCode;
item.handledLocationArea = balanceItem.locationArea; item.handledFromLocationArea = balanceItem.locationArea;
item.handledLocationErpCode = balanceItem.locationErpCode; item.handledFromLocationGroup = balanceItem.locationErpCode;
item.handledLocationGroup = balanceItem.locationGroup; item.handledFromLocationErpCode = balanceItem.locationGroup;
item.toLocationArea =balanceItem.locationArea;
item.toLocationGroup= balanceItem.locationGroup;
item.toLocationErpCode= balanceItem.locationErpCode;
// //
item.scanItemCode = this.currentScanLebel.data.itemCode; item.scanItemCode = this.currentScanLebel.data.itemCode;
@ -523,7 +526,6 @@
title: "提交中...", title: "提交中...",
mask: true mask: true
}); });
that.datacontent.company = localStorage.company;
that.datacontent.worker = localStorage.userName; that.datacontent.worker = localStorage.userName;
that.datacontent.details = that.details; that.datacontent.details = that.details;
let params = JSON.stringify(that.datacontent); let params = JSON.stringify(that.datacontent);

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

@ -233,9 +233,6 @@
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);

Loading…
Cancel
Save