lijuncheng 1 year ago
parent
commit
bb41aafbab
  1. 1
      mycomponents/detail/comRequestDetailCard.vue
  2. 61
      pages/deliver/request/deliverRequestCreate.vue
  3. 34
      pages/inspect/job/inspectFullDetail.vue
  4. 8
      pages/issue/job/issueDetail.vue
  5. 8
      pages/issue/request/issueRequest.vue
  6. 60
      pages/repleinsh/coms/comScanReplishPack.vue
  7. 24
      pages/repleinsh/job/repleinshDetail.vue
  8. 2
      static/config.json

1
mycomponents/detail/comRequestDetailCard.vue

@ -75,7 +75,6 @@
watch: { watch: {
dataContent(newVal) { dataContent(newVal) {
var test =this.dataContent var test =this.dataContent
debugger
this.requestItem = newVal.subList[0]; this.requestItem = newVal.subList[0];
}, },
}, },

61
pages/deliver/request/deliverRequestCreate.vue

@ -64,7 +64,7 @@
detailOptions: [], detailOptions: [],
scanOptions: [], scanOptions: [],
fromType: "", fromType: "",
dataContent:{} dataContent: {}
} }
}, },
@ -167,39 +167,38 @@
}, },
setRequestParams(){ setRequestParams() {
var subList = [] var subList = []
this.detailSource.subList.forEach(detail => { this.detailSource.subList.forEach(detail => {
debugger detail.soNumber = detail.package.soNumber;
detail.soNumber = detail.package.soNumber; detail.soLine = detail.package.soLine;
detail.soLine = detail.package.soLine; detail.remark = ""
detail.remark ="" // soNumber: 926926926,
// soNumber: 926926926, // soLine: 926,
// soLine: 926, // itemCode: THILDD0A691AG,
// itemCode: THILDD0A691AG, // remark: ,
// remark: , // qty: 2,
// qty: 2, // uom: EA
// uom: EA subList.push(detail)
subList.push(detail)
}) })
this.detailSource.subList = subList this.detailSource.subList = subList
this.detailSource.deliverPlanNumber = "DP20231130-0001" this.detailSource.deliverPlanNumber = "DP20231130-0001"
this.detailSource.customerCode = this.detailSource.customerCode this.detailSource.customerCode = this.detailSource.customerCode
this.detailSource.customerDockCode = "" this.detailSource.customerDockCode = ""
this.detailSource.carrierCode = "" this.detailSource.carrierCode = ""
this.detailSource.transferMode = "" this.detailSource.transferMode = ""
this.detailSource.vehiclePlateNumber = "" this.detailSource.vehiclePlateNumber = ""
this.detailSource.remark = "" this.detailSource.remark = ""
this.detailSource.dueTime = "" this.detailSource.dueTime = ""
this.detailSource.departmentCode = "研发部门" this.detailSource.departmentCode = "研发部门"
this.detailSource.status = 1 this.detailSource.status = 1
this.detailSource.autoCommit = "FALSE" this.detailSource.autoCommit = "FALSE"
this.detailSource.autoAgree = "FALSE" this.detailSource.autoAgree = "FALSE"
this.detailSource.autoExecute = "FALSE" this.detailSource.autoExecute = "FALSE"
this.detailSource.directCreateRecord = "FALSE" this.detailSource.directCreateRecord = "FALSE"
return this.detailSource; return this.detailSource;
}, },
showCommitSuccessMessage(hint) { showCommitSuccessMessage(hint) {

34
pages/inspect/job/inspectFullDetail.vue

@ -330,23 +330,23 @@
commit() { commit() {
this.scanCount = getScanCount(this.subList); this.scanCount = getScanCount(this.subList);
if (this.scanCount == 0) { // if (this.scanCount == 0) {
this.showErrorMessage("扫描数为0,请先扫描") // this.showErrorMessage("0,")
return; // return;
// }
//-------:nxt 20231213
if (this.jobContent.allowPartialComplete == "TRUE") {
this.submitJob();
} else {
//
this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交<br>' + "已经扫描[" + this.scanCount +
"]箱总共[" + this
.subList.length + "]箱", res => {
if (res) {
this.openScanPopup();
}
});
} }
//
if (this.scanCount == this.subList.length) {
this.submitJob();
} else {
//
this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交<br>' + "已经扫描[" + this.scanCount +
"]箱总共[" + this
.subList.length + "]箱", res => {
if (res) {
this.openScanPopup();
}
});
}
}, },
submitJob() { submitJob() {
@ -455,7 +455,7 @@
list.push(detail) list.push(detail)
}) })
}) })
this.jobContent.notPassedQty = Number(this.jobContent.failedQty)+ Number(this.jobContent.crackQty) this.jobContent.notPassedQty = Number(this.jobContent.failedQty) + Number(this.jobContent.crackQty)
this.jobContent.subList = list this.jobContent.subList = list
this.jobContent.nextAction = "PARTIAL_OK"; this.jobContent.nextAction = "PARTIAL_OK";
return this.jobContent; return this.jobContent;

8
pages/issue/job/issueDetail.vue

@ -140,7 +140,6 @@
methods: { methods: {
resizeCollapse() { resizeCollapse() {
this.$nextTick(r => { this.$nextTick(r => {
// debugger;
this.$refs.comIssueDetailCard.forEach(r => { this.$refs.comIssueDetailCard.forEach(r => {
r.resizeCollapse(); r.resizeCollapse();
}) })
@ -291,6 +290,13 @@
batch.Records.forEach(r => { batch.Records.forEach(r => {
let record = {}; let record = {};
record.handleQty = r.qty; record.handleQty = r.qty;
record.fromPackingNumber = r
.packingNumber;
record.fromBatch = r.batch;
record.fromContainerNumber = r
.ContainerNumber;
record.toContainerNumber = r record.toContainerNumber = r
.ContainerNumber; .ContainerNumber;
record.toInventoryStatus = r record.toInventoryStatus = r

8
pages/issue/request/issueRequest.vue

@ -373,18 +373,10 @@
}, },
requestConfirmsss(action, item) { requestConfirmsss(action, item) {
debugger;
uni.navigateTo({ uni.navigateTo({
url: './issueRequestDetail?type=add&item=' + item.id url: './issueRequestDetail?type=add&item=' + item.id
}); });
} }
// requestConfirm(action, item) {
// debugger;
// uni.navigateTo({
// url: './issueRequestDetail?type=add&item=' + item.id
// });
// }
} }
</script> </script>

60
pages/repleinsh/coms/comScanReplishPack.vue

@ -7,7 +7,7 @@
扫描箱码 扫描箱码
<text class="fr" @click="closeScanPopup()">关闭</text> <text class="fr" @click="closeScanPopup()">关闭</text>
</view> </view>
<!-- <view class="uni-flex uni-row" style="align-items: center; <!-- <view class="uni-flex uni-row" style="align-items: center;
background-color: #fff; background-color: #fff;
margin-left: 20rpx; margin-left: 20rpx;
margin-right: 20rpx; margin-right: 20rpx;
@ -145,8 +145,8 @@
positionInfo: "请选择位置", positionInfo: "请选择位置",
positionList: [], positionList: [],
defaultValueList: [], defaultValueList: [],
label:{}, label: {},
fromInventoryStatuses :"", fromInventoryStatuses: "",
} }
}, },
created() { created() {
@ -179,13 +179,13 @@
let that = this; let that = this;
that.fromLocationList = []; that.fromLocationList = [];
if (that.dataContent != null) { if (that.dataContent != null) {
that.fromInventoryStatuses =this.jobContent.outInventoryStatuses that.fromInventoryStatuses = this.jobContent.outInventoryStatuses
that.toLocation = that.dataContent[0]; that.toLocation = that.dataContent[0];
that.toLocationCode = that.dataContent[0].toLocationCode; that.toLocationCode = that.dataContent[0].toLocationCode;
that.fromLocationList = that.getFromLocationList(); that.fromLocationList = that.getFromLocationList();
} }
}, },
showBalanceSelect(items) { showBalanceSelect(items) {
this.$refs.balanceSelect.openPopup(items); this.$refs.balanceSelect.openPopup(items);
}, },
@ -243,24 +243,25 @@
title: '加载中', title: '加载中',
mask: true mask: true
}) })
getBalanceByManagementPrecision(result.label, that.fromLocationCode, that.fromInventoryStatuses, balanceRes => { getBalanceByManagementPrecision(result.label, that.fromLocationCode, that.fromInventoryStatuses,
if (balanceRes.success) { balanceRes => {
if (balanceRes.data.list.length == 0) { if (balanceRes.success) {
this.showErrorMessage('在来源库位[' + this.fromLocationCode + '],未查找到该包装的库存记录', if (balanceRes.data.list.length == 0) {
res => { this.showErrorMessage('在来源库位[' + this.fromLocationCode + '],未查找到该包装的库存记录',
this.packGetFocus(); res => {
}) this.packGetFocus();
} else if (balanceRes.data.list.length == 1) { })
let balance = balanceRes.data.list[0]; } else if (balanceRes.data.list.length == 1) {
this.afterGetBalance(result.label, balance,packageInfo); let balance = balanceRes.data.list[0];
this.afterGetBalance(result.label, balance, packageInfo);
} else {
this.showBalanceSelect(balanceRes.data.list);
}
} else { } else {
this.showBalanceSelect(balanceRes.data.list); this.showErrorMessage(balanceRes.message.message);
} }
} else { uni.hideLoading();
this.showErrorMessage(balanceRes.message.message); });
}
uni.hideLoading();
});
} }
} catch (e) { } catch (e) {
this.showErrorMessage(e.stack) this.showErrorMessage(e.stack)
@ -271,7 +272,7 @@
this.afterGetBalance(this.label, balance); this.afterGetBalance(this.label, balance);
}, },
afterGetBalance(label, balance,packageInfo) { afterGetBalance(label, balance, packageInfo) {
try { try {
let that = this; let that = this;
let itemCode = label.itemCode; let itemCode = label.itemCode;
@ -292,11 +293,11 @@
if (batch.Recommends.length > 0) { if (batch.Recommends.length > 0) {
let recommend = batch.Recommends.find(r => r.packingNumber == packingCode); let recommend = batch.Recommends.find(r => r.packingNumber == packingCode);
if (recommend != undefined) { if (recommend != undefined) {
that.addRecord(batch, label, balance,packageInfo) that.addRecord(batch, label, balance, packageInfo)
} else { } else {
// //
if (this.jobContent.allowModifyPackingNumber == 'TRUE') { if (this.jobContent.allowModifyPackingNumber == 'TRUE') {
that.addRecord(batch, label, balance,packageInfo); that.addRecord(batch, label, balance, packageInfo);
} else { } else {
that.showErrorMessage('未查找到该箱码【' + packingCode + '】的明细', that.showErrorMessage('未查找到该箱码【' + packingCode + '】的明细',
res => { res => {
@ -306,7 +307,7 @@
} }
} }
} else { } else {
that.addRecord(batch, label, balance,packageInfo) that.addRecord(batch, label, balance, packageInfo)
} }
} else { } else {
that.showErrorMessage('箱码【' + packingCode + '】已经扫描,请继续扫描下一箱', that.showErrorMessage('箱码【' + packingCode + '】已经扫描,请继续扫描下一箱',
@ -361,14 +362,15 @@
return batch; return batch;
}, },
creatRecord(label, balance,packageInfo) { creatRecord(label, balance, packageInfo) {
balance.stdPackQty = packageInfo.stdPackQty balance.stdPackQty = packageInfo.stdPackQty
balance.stdPackUnit = packageInfo.stdPackUnit balance.stdPackUnit = packageInfo.stdPackUnit
let record = { let record = {
itemCode: label.itemCode, itemCode: label.itemCode,
packingNumber: label.packingNumber, packingNumber: label.packingNumber,
batch: label.batch, batch: label.batch,
qty: Number(label.qty)>Number(balance.qty)?Number(balance.qty):Number(label.qty), qty: Number(balance.qty),
// qty: Number(label.qty)>Number(balance.qty)?Number(balance.qty):Number(label.qty),
uom: balance.uom, uom: balance.uom,
inventoryStatus: balance.inventoryStatus, inventoryStatus: balance.inventoryStatus,
balance: balance, balance: balance,
@ -386,8 +388,8 @@
batch.handleQty = handleQty; batch.handleQty = handleQty;
}, },
addRecord(batch, label, balance,packageInfo) { addRecord(batch, label, balance, packageInfo) {
let record = this.creatRecord(label, balance,packageInfo); let record = this.creatRecord(label, balance, packageInfo);
batch.Records.push(record); batch.Records.push(record);
this.issueRecord.unshift(record) this.issueRecord.unshift(record)
this.calcBatchHandleQty(batch); this.calcBatchHandleQty(batch);

24
pages/repleinsh/job/repleinshDetail.vue

@ -12,12 +12,13 @@
<view class="page-main"> <view class="page-main">
<scroll-view scroll-y="true" class=""> <scroll-view scroll-y="true" class="">
<view v-for="(toLocation, index) in detailSource"> <view v-for="(toLocation, index) in detailSource">
<com-repleish-detail-card ref='comIssueDetailCard' :dataContent="toLocation" @updateData='updateData'> <com-repleish-detail-card ref='comIssueDetailCard' :dataContent="toLocation"
@updateData='updateData'>
</com-repleish-detail-card> </com-repleish-detail-card>
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
<view class="page-footer"> <view class="page-footer">
<view class="uni-flex u-col-center space-between padding_10" <view class="uni-flex u-col-center space-between padding_10"
style="background-color:ghostwhite; width: 100%; "> style="background-color:ghostwhite; width: 100%; ">
@ -72,7 +73,7 @@
import comScanReplishPack from '@/pages/repleinsh/coms/comScanReplishPack.vue' import comScanReplishPack from '@/pages/repleinsh/coms/comScanReplishPack.vue'
import comMessage from '@/mycomponents/common/comMessage.vue' import comMessage from '@/mycomponents/common/comMessage.vue'
import jobTop from '@/mycomponents/job/jobTop.vue' import jobTop from '@/mycomponents/job/jobTop.vue'
export default { export default {
name: 'issueDetail', name: 'issueDetail',
components: { components: {
@ -92,8 +93,8 @@
detailSource: [], // detailSource: [], //
detailOptions: [], detailOptions: [],
scanOptions: [], scanOptions: [],
toLocationCode:'', toLocationCode: '',
tolocationTypeList:[] tolocationTypeList: []
}; };
}, },
@ -237,7 +238,7 @@
if (res.data) { if (res.data) {
this.showCommitSuccessMessage("提交成功<br>生成补料记录" + res.data) this.showCommitSuccessMessage("提交成功<br>生成补料记录" + res.data)
} else { } else {
this.showErrorMessage("提交失败[" + res.msg+"]") this.showErrorMessage("提交失败[" + res.msg + "]")
} }
}).catch(error => { }).catch(error => {
uni.hideLoading() uni.hideLoading()
@ -259,6 +260,13 @@
batch.Records.forEach(r => { batch.Records.forEach(r => {
let record = {}; let record = {};
record.handleQty = r.qty; record.handleQty = r.qty;
record.fromPackingNumber = r
.packingNumber;
record.fromBatch = r.batch;
record.fromContainerNumber = r
.ContainerNumber;
record.toContainerNumber = r record.toContainerNumber = r
.ContainerNumber; .ContainerNumber;
record.toInventoryStatus = r record.toInventoryStatus = r
@ -347,7 +355,7 @@
} }
}) })
} }
// item.handleQty=itemHandleQty; // item.handleQty=itemHandleQty;
}, },
@ -420,7 +428,7 @@
scanLocationCode(location, code) { scanLocationCode(location, code) {
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => { this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
this.toLocationCode = code this.toLocationCode = code
}) })
}, },
} }

2
static/config.json

@ -18,7 +18,7 @@
"request_url": { "request_url": {
"name": "request_url", "name": "request_url",
"value": "http://192.168.0.106:12080/admin-api", "value": "http://192.168.0.230:12080/admin-api",
"dev2": "http://192.168.0.157:12080/admin-api", "dev2": "http://192.168.0.157:12080/admin-api",
"chefang": "http://192.168.0.178:12080/admin-api", "chefang": "http://192.168.0.178:12080/admin-api",
"chenxinming": "http://192.168.0.230:12080/admin-api", "chenxinming": "http://192.168.0.230:12080/admin-api",

Loading…
Cancel
Save