Browse Source

修改发料不扫描库位

pda_nev
李俊城 11 months ago
parent
commit
6c58bdfaa7
  1. 47
      fe/PDA/pages/task/assembleIssueJobDetail.vue
  2. 71
      fe/PDA/pages/task/coatingIssuleJobDetail.vue
  3. 40
      fe/PDA/pages/task/injectionIssueJobDetail.vue
  4. 37
      fe/PDA/pages/task/kittingIssueJobDetail.vue
  5. 35
      fe/PDA/pages/task/sparePartIssueJobDetail.vue

47
fe/PDA/pages/task/assembleIssueJobDetail.vue

@ -158,11 +158,9 @@
<button class="new_save_btn btn_double" @click="submit()">提交</button> <button class="new_save_btn btn_double" @click="submit()">提交</button>
</view> </view>
<selectClickList ref="selectPopup" title="推荐信息" @select="selectPlan"></selectClickList> <selectClickList ref="selectPopup" title="推荐信息" @select="selectPlan"></selectClickList>
<winScanButtonTop @goScan='openScanPopupTo' title="箱码"></winScanButtonTop> <win-scan-button @goScan='openScanPopupTo' title="箱码"></win-scan-button>
<win-scan-button @goScan='openLocationFrom' title="来源库位"></win-scan-button>
<winScanButtonBottom @goScan='openLocationTo' title="目标库位"></winScanButtonBottom> <winScanButtonBottom @goScan='openLocationTo' title="目标库位"></winScanButtonBottom>
<win-scan-by-pack ref="scanPopupTo" @getScanResult='getScanResultTo' title="箱码"></win-scan-by-pack> <win-scan-by-pack ref="scanPopupTo" @getScanResult='getScanResultTo' title="箱码"></win-scan-by-pack>
<winScanLocationCode ref="locationFrom" title="来源库位" @getLocation="geFromLocation"></winScanLocationCode>
<winScanLocationCode ref="locationTo" title="目标库位" @getLocation="geToLocation"></winScanLocationCode> <winScanLocationCode ref="locationTo" title="目标库位" @getLocation="geToLocation"></winScanLocationCode>
<com-message ref="comMessage" @afterCloseCommitMessage='closeCommitMessage()' <com-message ref="comMessage" @afterCloseCommitMessage='closeCommitMessage()'
@afterCloseScanMessage='closeScanMessage'></com-message> @afterCloseScanMessage='closeScanMessage'></com-message>
@ -191,7 +189,6 @@
} from '@/common/basic.js'; } from '@/common/basic.js';
import comMessage from '@/mycomponents/common/comMessage.vue' import comMessage from '@/mycomponents/common/comMessage.vue'
import winScanButton from '@/mycomponents/wincom/winScanButton.vue' import winScanButton from '@/mycomponents/wincom/winScanButton.vue'
import winScanButtonTop from '@/mycomponents/wincom/winScanButtonTop.vue'
import winScanButtonBottom from '@/mycomponents/wincom/winScanButtonBottom.vue' import winScanButtonBottom from '@/mycomponents/wincom/winScanButtonBottom.vue'
import winMulitScan from '@/mycomponents/wincom/winMulitScan.vue' import winMulitScan from '@/mycomponents/wincom/winMulitScan.vue'
@ -205,7 +202,6 @@
components: { components: {
comMessage, comMessage,
winScanButton, winScanButton,
winScanButtonTop,
winScanButtonBottom, winScanButtonBottom,
winMulitScan, winMulitScan,
comJobScanDetail, comJobScanDetail,
@ -245,7 +241,7 @@
// //
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
if (e.index === 0) { if (e.index === 0) {
if (this.datacontent.isClaims &&this.datacontent.claimsUserId==localStorage.getItem('userId')) { if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) {
// //
cancelTakeAssembleIssueJob(this.id).then(res => {}).catch(error => {}) cancelTakeAssembleIssueJob(this.id).then(res => {}).catch(error => {})
} }
@ -258,7 +254,7 @@
onBackPress(e) { onBackPress(e) {
// //
if (e.from == 'backbutton') { if (e.from == 'backbutton') {
if (this.datacontent.isClaims &&this.datacontent.claimsUserId==localStorage.getItem('userId')) { if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) {
// //
cancelTakeAssembleIssueJob(this.id).then(res => { cancelTakeAssembleIssueJob(this.id).then(res => {
uni.navigateBack(); uni.navigateBack();
@ -284,29 +280,6 @@
openLocationTo() { openLocationTo() {
this.$refs.locationTo.openScanPopup() this.$refs.locationTo.openScanPopup()
}, },
openLocationFrom() {
this.$refs.locationFrom.openScanPopup()
},
geFromLocation(locationInfo) {
var current = this.details[0]
if (!current.handledToPackingCode) {
this.showMessage("请先扫描箱码")
return;
}
if (locationInfo.code != current.handleToPackingCodeLocationCode) {
this.showMessage("扫描来源库位[" + locationInfo.code + "]与箱码[" + current.handledToPackingCode +
"]对应的库位[" + current.handleToPackingCodeLocationCode + "]不一致,请重新扫描")
return;
}
current.handledFromLocationCode = locationInfo.code
current.handledFromLocationArea = locationInfo.locationArea
current.handledFromLocationGroup = locationInfo.locationGroup
current.handledFromLocationErpCode = locationInfo.locationErpCode
},
geToLocation(locationInfo) { geToLocation(locationInfo) {
var current = this.details[0] var current = this.details[0]
@ -369,14 +342,14 @@
.catch(err => { .catch(err => {
uni.hideLoading(); uni.hideLoading();
this.showMessage('未查找到详细信息') this.showMessage('未查找到详细信息')
}); });
}, },
setReceived() { setReceived() {
// //
// //
if (this.datacontent.isClaims) { if (this.datacontent.isClaims) {
this.datacontent.jobStatus =2 this.datacontent.jobStatus = 2
// //
if (this.datacontent.claimsUserId == localStorage.getItem('userId')) { if (this.datacontent.claimsUserId == localStorage.getItem('userId')) {
this.showBtn = true this.showBtn = true
@ -455,6 +428,7 @@
item.handledFromLot = balancesItem.lot item.handledFromLot = balancesItem.lot
item.handledFromWarehouseCode = balancesItem.warehouseCode item.handledFromWarehouseCode = balancesItem.warehouseCode
item.handledFromQty = balancesItem.qty item.handledFromQty = balancesItem.qty
item.handledFromLocationCode = balancesItem.locationCode
item.handleToPackingCodeLocationCode = balancesItem.locationCode item.handleToPackingCodeLocationCode = balancesItem.locationCode
} else { } else {
showConfirmMsg("箱码[" + fromData.code + "]的批次[" + balancesItem.lot + "]与推荐目标批次[" + item showConfirmMsg("箱码[" + fromData.code + "]的批次[" + balancesItem.lot + "]与推荐目标批次[" + item
@ -480,6 +454,7 @@
item.handledFromLot = balancesItem.lot item.handledFromLot = balancesItem.lot
item.handledFromWarehouseCode = balancesItem.warehouseCode item.handledFromWarehouseCode = balancesItem.warehouseCode
item.handledFromQty = balancesItem.qty item.handledFromQty = balancesItem.qty
item.handledFromLocationCode = balancesItem.locationCode
item.handleToPackingCodeLocationCode = balancesItem.locationCode item.handleToPackingCodeLocationCode = balancesItem.locationCode
} }
}) })
@ -598,10 +573,6 @@
this.showMessage('请先扫描目标库位'); this.showMessage('请先扫描目标库位');
return; return;
} }
if (!that.details[0].handledFromLocationCode) {
this.showMessage('请先扫描来源库位');
return;
}
that.finsh(); that.finsh();
}, },
@ -618,9 +589,7 @@
finshAssembleIssueJob(that.id, params.id, params) finshAssembleIssueJob(that.id, params.id, params)
.then(res => { .then(res => {
uni.hideLoading(); uni.hideLoading();
if (res != null) { that.showCommitSuccessMessage();
that.showCommitSuccessMessage();
}
}) })
.catch(err => { .catch(err => {
that.showMessage(err.message); that.showMessage(err.message);

71
fe/PDA/pages/task/coatingIssuleJobDetail.vue

@ -159,10 +159,8 @@
</view> </view>
<selectClickList ref="selectPopup" title="推荐信息" @select="selectPlan"></selectClickList> <selectClickList ref="selectPopup" title="推荐信息" @select="selectPlan"></selectClickList>
<winScanButtonTop @goScan='openScanPopupTo' title="箱码"></winScanButtonTop> <winScanButtonTop @goScan='openScanPopupTo' title="箱码"></winScanButtonTop>
<win-scan-button @goScan='openLocationFrom' title="来源库位"></win-scan-button> <win-scan-button @goScan='openLocationTo' title="目标库位"></win-scan-button>
<winScanButtonBottom @goScan='openLocationTo' title="目标库位"></winScanButtonBottom>
<win-scan-by-pack ref="scanPopupTo" @getScanResult='getScanResultTo' title="箱码"></win-scan-by-pack> <win-scan-by-pack ref="scanPopupTo" @getScanResult='getScanResultTo' title="箱码"></win-scan-by-pack>
<winScanLocationCode ref="locationFrom" title="来源库位" @getLocation="geFromLocation"></winScanLocationCode>
<winScanLocationCode ref="locationTo" title="目标库位" @getLocation="geToLocation"></winScanLocationCode> <winScanLocationCode ref="locationTo" title="目标库位" @getLocation="geToLocation"></winScanLocationCode>
<com-message ref="comMessage" @afterCloseCommitMessage='closeCommitMessage()' <com-message ref="comMessage" @afterCloseCommitMessage='closeCommitMessage()'
@afterCloseScanMessage='closeScanMessage'></com-message> @afterCloseScanMessage='closeScanMessage'></com-message>
@ -232,7 +230,7 @@
jobStatus: "", jobStatus: "",
toLocationInfo: {}, toLocationInfo: {},
handleToPackingCodeLocationCode: "", handleToPackingCodeLocationCode: "",
showBtn:true showBtn: true
} }
}, },
props: { props: {
@ -245,11 +243,9 @@
// //
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
if (e.index === 0) { if (e.index === 0) {
if (this.datacontent.isClaims &&this.datacontent.claimsUserId==localStorage.getItem('userId')) { if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) {
// //
cancelTakeCoatingIssueJob(this.id).then(res => { cancelTakeCoatingIssueJob(this.id).then(res => {}).catch(error => {})
}).catch(error => {
})
} }
goHome(); goHome();
} else if (e.index === 1) { } else if (e.index === 1) {
@ -260,7 +256,7 @@
onBackPress(e) { onBackPress(e) {
// //
if (e.from == 'backbutton') { if (e.from == 'backbutton') {
if (this.datacontent.isClaims &&this.datacontent.claimsUserId==localStorage.getItem('userId')) { if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) {
// //
cancelTakeCoatingIssueJob(this.id).then(res => { cancelTakeCoatingIssueJob(this.id).then(res => {
uni.navigateBack(); uni.navigateBack();
@ -286,29 +282,6 @@
openLocationTo() { openLocationTo() {
this.$refs.locationTo.openScanPopup() this.$refs.locationTo.openScanPopup()
}, },
openLocationFrom() {
this.$refs.locationFrom.openScanPopup()
},
geFromLocation(locationInfo) {
var current = this.details[0]
if (!current.handledToPackingCode) {
this.showMessage("请先扫描箱码")
return;
}
if (locationInfo.code != current.handleToPackingCodeLocationCode) {
this.showMessage("扫描来源库位[" + locationInfo.code + "]与箱码[" + current.handledToPackingCode +
"]对应的库位[" + current.handleToPackingCodeLocationCode + "]不一致,请重新扫描")
return;
}
current.handledFromLocationCode = locationInfo.code
current.handledFromLocationArea = locationInfo.locationArea
current.handledFromLocationGroup = locationInfo.locationGroup
current.handledFromLocationErpCode = locationInfo.locationErpCode
},
geToLocation(locationInfo) { geToLocation(locationInfo) {
var current = this.details[0] var current = this.details[0]
@ -367,19 +340,19 @@
this.allCount = that.details.length; this.allCount = that.details.length;
this.setReceived(); this.setReceived();
} }
}) })
.catch(err => { .catch(err => {
uni.hideLoading(); uni.hideLoading();
this.showMessage('未查找到详细信息') this.showMessage('未查找到详细信息')
}); });
}, },
setReceived() { setReceived() {
// //
// //
if (this.datacontent.isClaims) { if (this.datacontent.isClaims) {
this.datacontent.jobStatus =2 this.datacontent.jobStatus = 2
// //
if (this.datacontent.claimsUserId == localStorage.getItem('userId')) { if (this.datacontent.claimsUserId == localStorage.getItem('userId')) {
this.showBtn = true this.showBtn = true
@ -422,17 +395,17 @@
"]不一致,是否继续发料?", "]不一致,是否继续发料?",
res => { res => {
if (res) { if (res) {
this.setData(result,data,fromData) this.setData(result, data, fromData)
} }
}) })
}) })
} }
} else { } else {
this.setData(result,data,fromData) this.setData(result, data, fromData)
} }
}, },
setData(result,data,fromData) { setData(result, data, fromData) {
this.getBalance(result, res => { this.getBalance(result, res => {
if (res.totalCount > 0) { if (res.totalCount > 0) {
var balancesItem = res.items[0]; var balancesItem = res.items[0];
@ -447,8 +420,8 @@
item.handledToLot = balancesItem.lot item.handledToLot = balancesItem.lot
item.handledToWarehouseCode = balancesItem.warehouseCode item.handledToWarehouseCode = balancesItem.warehouseCode
item.handledToQty = balancesItem.qty item.handledToQty = balancesItem.qty
item.stdPackQty =balancesItem.stdPackQty item.stdPackQty = balancesItem.stdPackQty
item.handledFromContainerCode = balancesItem.containerCode item.handledFromContainerCode = balancesItem.containerCode
item.handledFromPackingCode = balancesItem.packingCode item.handledFromPackingCode = balancesItem.packingCode
item.handledFromSupplierBatch = balancesItem.supplierBatch item.handledFromSupplierBatch = balancesItem.supplierBatch
@ -458,6 +431,7 @@
item.handledFromLot = balancesItem.lot item.handledFromLot = balancesItem.lot
item.handledFromWarehouseCode = balancesItem.warehouseCode item.handledFromWarehouseCode = balancesItem.warehouseCode
item.handledFromQty = balancesItem.qty item.handledFromQty = balancesItem.qty
item.handledFromLocationCode = balancesItem.locationCode
item.handleToPackingCodeLocationCode = balancesItem.locationCode item.handleToPackingCodeLocationCode = balancesItem.locationCode
} else { } else {
showConfirmMsg("箱码[" + fromData.code + "]的批次[" + balancesItem.lot + "]与推荐目标批次[" + item showConfirmMsg("箱码[" + fromData.code + "]的批次[" + balancesItem.lot + "]与推荐目标批次[" + item
@ -472,8 +446,8 @@
item.handledToLot = balancesItem.lot item.handledToLot = balancesItem.lot
item.handledToWarehouseCode = balancesItem.warehouseCode item.handledToWarehouseCode = balancesItem.warehouseCode
item.handledToQty = balancesItem.qty item.handledToQty = balancesItem.qty
item.stdPackQty =balancesItem.stdPackQty item.stdPackQty = balancesItem.stdPackQty
item.handledFromContainerCode = balancesItem.containerCode item.handledFromContainerCode = balancesItem.containerCode
item.handledFromPackingCode = balancesItem.packingCode item.handledFromPackingCode = balancesItem.packingCode
item.handledFromSupplierBatch = balancesItem.supplierBatch item.handledFromSupplierBatch = balancesItem.supplierBatch
@ -483,6 +457,7 @@
item.handledFromLot = balancesItem.lot item.handledFromLot = balancesItem.lot
item.handledFromWarehouseCode = balancesItem.warehouseCode item.handledFromWarehouseCode = balancesItem.warehouseCode
item.handledFromQty = balancesItem.qty item.handledFromQty = balancesItem.qty
item.handledFromLocationCode = balancesItem.locationCode
item.handleToPackingCodeLocationCode = balancesItem.locationCode item.handleToPackingCodeLocationCode = balancesItem.locationCode
} }
}) })
@ -511,7 +486,7 @@
// sortBy: 'PackingCode asc' // sortBy: 'PackingCode asc'
}; };
if(this.details[0].recommendFromPackingCode==result.data.code){ if (this.details[0].recommendFromPackingCode == result.data.code) {
balances(params) balances(params)
.then(res => { .then(res => {
if (res.totalCount === 0) { if (res.totalCount === 0) {
@ -525,7 +500,7 @@
this.showScanMessage(err.message); this.showScanMessage(err.message);
uni.hideLoading(); uni.hideLoading();
}); });
}else { } else {
getBalanceRemoveInAndOut(params) getBalanceRemoveInAndOut(params)
.then(res => { .then(res => {
if (res.totalCount === 0) { if (res.totalCount === 0) {
@ -601,10 +576,6 @@
this.showMessage('请先扫描目标库位'); this.showMessage('请先扫描目标库位');
return; return;
} }
if (!that.details[0].handledFromLocationCode) {
this.showMessage('请先扫描来源库位');
return;
}
that.finsh(); that.finsh();
}, },
@ -621,9 +592,7 @@
finshCoatingIssueJob(that.id, params.id, params) finshCoatingIssueJob(that.id, params.id, params)
.then(res => { .then(res => {
uni.hideLoading(); uni.hideLoading();
if (res != null) { that.showCommitSuccessMessage();
that.showCommitSuccessMessage();
}
}) })
.catch(err => { .catch(err => {
that.showMessage(err.message); that.showMessage(err.message);

40
fe/PDA/pages/task/injectionIssueJobDetail.vue

@ -162,11 +162,9 @@
<button class="new_save_btn btn_double" @click="submit()">提交</button> <button class="new_save_btn btn_double" @click="submit()">提交</button>
</view> </view>
<selectClickList ref="selectPopup" title="推荐信息" @select="selectPlan"></selectClickList> <selectClickList ref="selectPopup" title="推荐信息" @select="selectPlan"></selectClickList>
<winScanButtonTop @goScan='openScanPopupTo' title="箱码"></winScanButtonTop> <win-scan-button @goScan='openScanPopupTo' title="箱码"></win-scan-button>
<win-scan-button @goScan='openLocationFrom' title="来源库位"></win-scan-button>
<winScanButtonBottom @goScan='openLocationTo' title="目标库位"></winScanButtonBottom> <winScanButtonBottom @goScan='openLocationTo' title="目标库位"></winScanButtonBottom>
<win-scan-by-pack ref="scanPopupTo" @getScanResult='getScanResultTo' title="箱码"></win-scan-by-pack> <win-scan-by-pack ref="scanPopupTo" @getScanResult='getScanResultTo' title="箱码"></win-scan-by-pack>
<winScanLocationCode ref="locationFrom" title="来源库位" @getLocation="geFromLocation"></winScanLocationCode>
<winScanLocationCode ref="locationTo" title="目标库位" @getLocation="geToLocation"></winScanLocationCode> <winScanLocationCode ref="locationTo" title="目标库位" @getLocation="geToLocation"></winScanLocationCode>
<com-message ref="comMessage" @afterCloseCommitMessage='closeCommitMessage()' <com-message ref="comMessage" @afterCloseCommitMessage='closeCommitMessage()'
@afterCloseScanMessage='closeScanMessage'></com-message> @afterCloseScanMessage='closeScanMessage'></com-message>
@ -195,7 +193,6 @@
} from '@/common/basic.js'; } from '@/common/basic.js';
import comMessage from '@/mycomponents/common/comMessage.vue' import comMessage from '@/mycomponents/common/comMessage.vue'
import winScanButton from '@/mycomponents/wincom/winScanButton.vue' import winScanButton from '@/mycomponents/wincom/winScanButton.vue'
import winScanButtonTop from '@/mycomponents/wincom/winScanButtonTop.vue'
import winScanButtonBottom from '@/mycomponents/wincom/winScanButtonBottom.vue' import winScanButtonBottom from '@/mycomponents/wincom/winScanButtonBottom.vue'
import winMulitScan from '@/mycomponents/wincom/winMulitScan.vue' import winMulitScan from '@/mycomponents/wincom/winMulitScan.vue'
@ -209,7 +206,6 @@
components: { components: {
comMessage, comMessage,
winScanButton, winScanButton,
winScanButtonTop,
winScanButtonBottom, winScanButtonBottom,
winMulitScan, winMulitScan,
comJobScanDetail, comJobScanDetail,
@ -288,29 +284,6 @@
openLocationTo() { openLocationTo() {
this.$refs.locationTo.openScanPopup() this.$refs.locationTo.openScanPopup()
}, },
openLocationFrom() {
this.$refs.locationFrom.openScanPopup()
},
geFromLocation(locationInfo) {
var current = this.details[0]
if (!current.handledToPackingCode) {
this.showMessage("请先扫描箱码")
return;
}
if (locationInfo.code != current.handleToPackingCodeLocationCode) {
this.showMessage("扫描来源库位[" + locationInfo.code + "]与箱码[" + current.handledToPackingCode +
"]对应的库位[" + current.handleToPackingCodeLocationCode + "]不一致,请重新扫描")
return;
}
current.handledFromLocationCode = locationInfo.code
current.handledFromLocationArea = locationInfo.locationArea
current.handledFromLocationGroup = locationInfo.locationGroup
current.handledFromLocationErpCode = locationInfo.locationErpCode
},
geToLocation(locationInfo) { geToLocation(locationInfo) {
var current = this.details[0] var current = this.details[0]
@ -462,6 +435,8 @@
item.handledFromLot = balancesItem.lot item.handledFromLot = balancesItem.lot
item.handledFromWarehouseCode = balancesItem.warehouseCode item.handledFromWarehouseCode = balancesItem.warehouseCode
item.handledFromQty = balancesItem.qty item.handledFromQty = balancesItem.qty
item.handledFromLocationCode = balancesItem.locationCode
item.handleToPackingCodeLocationCode = balancesItem.locationCode item.handleToPackingCodeLocationCode = balancesItem.locationCode
} else { } else {
showConfirmMsg("箱码[" + fromData.code + "]的批次[" + balancesItem.lot + "]与推荐目标批次[" + item showConfirmMsg("箱码[" + fromData.code + "]的批次[" + balancesItem.lot + "]与推荐目标批次[" + item
@ -486,6 +461,7 @@
item.handledFromLot = balancesItem.lot item.handledFromLot = balancesItem.lot
item.handledFromWarehouseCode = balancesItem.warehouseCode item.handledFromWarehouseCode = balancesItem.warehouseCode
item.handledFromQty = balancesItem.qty item.handledFromQty = balancesItem.qty
item.handledFromLocationCode = balancesItem.locationCode
item.handleToPackingCodeLocationCode = balancesItem.locationCode item.handleToPackingCodeLocationCode = balancesItem.locationCode
} }
}) })
@ -605,10 +581,6 @@
this.showMessage('请先扫描目标库位'); this.showMessage('请先扫描目标库位');
return; return;
} }
if (!that.details[0].handledFromLocationCode) {
this.showMessage('请先扫描来源库位');
return;
}
that.finsh(); that.finsh();
}, },
@ -625,9 +597,7 @@
finshInjectionIssueJob(that.id, params.id, params) finshInjectionIssueJob(that.id, params.id, params)
.then(res => { .then(res => {
uni.hideLoading(); uni.hideLoading();
if (res != null) { that.showCommitSuccessMessage();
that.showCommitSuccessMessage();
}
}) })
.catch(err => { .catch(err => {
that.showMessage(err.message); that.showMessage(err.message);

37
fe/PDA/pages/task/kittingIssueJobDetail.vue

@ -158,11 +158,9 @@
<button class="new_save_btn btn_double" @click="submit()">提交</button> <button class="new_save_btn btn_double" @click="submit()">提交</button>
</view> </view>
<selectClickList ref="selectPopup" title="推荐信息" @select="selectPlan"></selectClickList> <selectClickList ref="selectPopup" title="推荐信息" @select="selectPlan"></selectClickList>
<winScanButtonTop @goScan='openScanPopupTo' title="箱码"></winScanButtonTop> <win-scan-button @goScan='openScanPopupTo' title="箱码"></win-scan-button>
<win-scan-button @goScan='openLocationFrom' title="来源库位"></win-scan-button>
<winScanButtonBottom @goScan='openLocationTo' title="目标库位"></winScanButtonBottom> <winScanButtonBottom @goScan='openLocationTo' title="目标库位"></winScanButtonBottom>
<win-scan-by-pack ref="scanPopupTo" @getScanResult='getScanResultTo' title="箱码"></win-scan-by-pack> <win-scan-by-pack ref="scanPopupTo" @getScanResult='getScanResultTo' title="箱码"></win-scan-by-pack>
<winScanLocationCode ref="locationFrom" title="来源库位" @getLocation="geFromLocation"></winScanLocationCode>
<winScanLocationCode ref="locationTo" title="目标库位" @getLocation="geToLocation"></winScanLocationCode> <winScanLocationCode ref="locationTo" title="目标库位" @getLocation="geToLocation"></winScanLocationCode>
<com-message ref="comMessage" @afterCloseCommitMessage='closeCommitMessage()' <com-message ref="comMessage" @afterCloseCommitMessage='closeCommitMessage()'
@afterCloseScanMessage='closeScanMessage'></com-message> @afterCloseScanMessage='closeScanMessage'></com-message>
@ -283,29 +281,6 @@
openLocationTo() { openLocationTo() {
this.$refs.locationTo.openScanPopup() this.$refs.locationTo.openScanPopup()
}, },
openLocationFrom() {
this.$refs.locationFrom.openScanPopup()
},
geFromLocation(locationInfo) {
var current = this.details[0]
if (!current.handledToPackingCode) {
this.showMessage("请先扫描箱码")
return;
}
if (locationInfo.code != current.handleToPackingCodeLocationCode) {
this.showMessage("扫描来源库位[" + locationInfo.code + "]与箱码[" + current.handledToPackingCode +
"]对应的库位[" + current.handleToPackingCodeLocationCode + "]不一致,请重新扫描")
return;
}
current.handledFromLocationCode = locationInfo.code
current.handledFromLocationArea = locationInfo.locationArea
current.handledFromLocationGroup = locationInfo.locationGroup
current.handledFromLocationErpCode = locationInfo.locationErpCode
},
geToLocation(locationInfo) { geToLocation(locationInfo) {
var current = this.details[0] var current = this.details[0]
@ -455,6 +430,7 @@
item.handledFromLot = balancesItem.lot item.handledFromLot = balancesItem.lot
item.handledFromWarehouseCode = balancesItem.warehouseCode item.handledFromWarehouseCode = balancesItem.warehouseCode
item.handledFromQty = balancesItem.qty item.handledFromQty = balancesItem.qty
item.handledFromLocationCode =balancesItem.locationCode
item.handleToPackingCodeLocationCode = balancesItem.locationCode item.handleToPackingCodeLocationCode = balancesItem.locationCode
} else { } else {
showConfirmMsg("箱码[" + fromData.code + "]的批次[" + balancesItem.lot + showConfirmMsg("箱码[" + fromData.code + "]的批次[" + balancesItem.lot +
@ -481,6 +457,7 @@
item.handledFromLot = balancesItem.lot item.handledFromLot = balancesItem.lot
item.handledFromWarehouseCode = balancesItem.warehouseCode item.handledFromWarehouseCode = balancesItem.warehouseCode
item.handledFromQty = balancesItem.qty item.handledFromQty = balancesItem.qty
item.handledFromLocationCode =balancesItem.locationCode
item.handleToPackingCodeLocationCode = balancesItem item.handleToPackingCodeLocationCode = balancesItem
.locationCode .locationCode
} }
@ -600,10 +577,6 @@
this.showMessage('请先扫描目标库位'); this.showMessage('请先扫描目标库位');
return; return;
} }
if (!that.details[0].handledFromLocationCode) {
this.showMessage('请先扫描来源库位');
return;
}
that.finsh(); that.finsh();
}, },
@ -620,9 +593,7 @@
finshKittingIssueJob(that.id, params.id, params) finshKittingIssueJob(that.id, params.id, params)
.then(res => { .then(res => {
uni.hideLoading(); uni.hideLoading();
if (res != null) { that.showCommitSuccessMessage();
that.showCommitSuccessMessage();
}
}) })
.catch(err => { .catch(err => {
that.showMessage(err.message); that.showMessage(err.message);

35
fe/PDA/pages/task/sparePartIssueJobDetail.vue

@ -158,11 +158,9 @@
<button class="new_save_btn btn_double" @click="submit()">提交</button> <button class="new_save_btn btn_double" @click="submit()">提交</button>
</view> </view>
<selectClickList ref="selectPopup" title="推荐信息" @select="selectPlan"></selectClickList> <selectClickList ref="selectPopup" title="推荐信息" @select="selectPlan"></selectClickList>
<winScanButtonTop @goScan='openScanPopupTo' title="箱码"></winScanButtonTop> <win-scan-button @goScan='openScanPopupTo' title="箱码"></win-scan-button>
<win-scan-button @goScan='openLocationFrom' title="来源库位"></win-scan-button>
<winScanButtonBottom @goScan='openLocationTo' title="目标库位"></winScanButtonBottom> <winScanButtonBottom @goScan='openLocationTo' title="目标库位"></winScanButtonBottom>
<win-scan-by-pack ref="scanPopupTo" @getScanResult='getScanResultTo' title="箱码"></win-scan-by-pack> <win-scan-by-pack ref="scanPopupTo" @getScanResult='getScanResultTo' title="箱码"></win-scan-by-pack>
<winScanLocationCode ref="locationFrom" title="来源库位" @getLocation="geFromLocation"></winScanLocationCode>
<winScanLocationCode ref="locationTo" title="目标库位" @getLocation="geToLocation"></winScanLocationCode> <winScanLocationCode ref="locationTo" title="目标库位" @getLocation="geToLocation"></winScanLocationCode>
<com-message ref="comMessage" @afterCloseCommitMessage='closeCommitMessage()' <com-message ref="comMessage" @afterCloseCommitMessage='closeCommitMessage()'
@afterCloseScanMessage='closeScanMessage'></com-message> @afterCloseScanMessage='closeScanMessage'></com-message>
@ -283,29 +281,6 @@
openLocationTo() { openLocationTo() {
this.$refs.locationTo.openScanPopup() this.$refs.locationTo.openScanPopup()
}, },
openLocationFrom() {
this.$refs.locationFrom.openScanPopup()
},
geFromLocation(locationInfo) {
var current = this.details[0]
if (!current.handledToPackingCode) {
this.showMessage("请先扫描箱码")
return;
}
if (locationInfo.code != current.handleToPackingCodeLocationCode) {
this.showMessage("扫描来源库位[" + locationInfo.code + "]与箱码[" + current.handledToPackingCode +
"]对应的库位[" + current.handleToPackingCodeLocationCode + "]不一致,请重新扫描")
return;
}
current.handledFromLocationCode = locationInfo.code
current.handledFromLocationArea = locationInfo.locationArea
current.handledFromLocationGroup = locationInfo.locationGroup
current.handledFromLocationErpCode = locationInfo.locationErpCode
},
geToLocation(locationInfo) { geToLocation(locationInfo) {
var current = this.details[0] var current = this.details[0]
@ -455,6 +430,7 @@
item.handledFromLot = balancesItem.lot item.handledFromLot = balancesItem.lot
item.handledFromWarehouseCode = balancesItem.warehouseCode item.handledFromWarehouseCode = balancesItem.warehouseCode
item.handledFromQty = balancesItem.qty item.handledFromQty = balancesItem.qty
item.handledFromLocationCode =balancesItem.locationCode
item.handleToPackingCodeLocationCode = balancesItem.locationCode item.handleToPackingCodeLocationCode = balancesItem.locationCode
} else { } else {
showConfirmMsg("箱码[" + fromData.code + "]的批次[" + balancesItem.lot + "]与推荐目标批次[" + item showConfirmMsg("箱码[" + fromData.code + "]的批次[" + balancesItem.lot + "]与推荐目标批次[" + item
@ -480,6 +456,7 @@
item.handledFromLot = balancesItem.lot item.handledFromLot = balancesItem.lot
item.handledFromWarehouseCode = balancesItem.warehouseCode item.handledFromWarehouseCode = balancesItem.warehouseCode
item.handledFromQty = balancesItem.qty item.handledFromQty = balancesItem.qty
item.handledFromLocationCode =balancesItem.locationCode
item.handleToPackingCodeLocationCode = balancesItem.locationCode item.handleToPackingCodeLocationCode = balancesItem.locationCode
} }
}) })
@ -598,10 +575,6 @@
this.showMessage('请先扫描目标库位'); this.showMessage('请先扫描目标库位');
return; return;
} }
if (!that.details[0].handledFromLocationCode) {
this.showMessage('请先扫描来源库位');
return;
}
that.finsh(); that.finsh();
}, },
@ -618,7 +591,7 @@
finshSparePartIssueJob(that.id, params.id, params) finshSparePartIssueJob(that.id, params.id, params)
.then(res => { .then(res => {
uni.hideLoading(); uni.hideLoading();
if (res != null) { if (res) {
that.showCommitSuccessMessage(); that.showCommitSuccessMessage();
} }
}) })

Loading…
Cancel
Save