|
|
@ -27,7 +27,7 @@ |
|
|
|
<view class="uni-flex u-col-center space-between padding_10" |
|
|
|
style="background-color:ghostwhite; width: 100%; "> |
|
|
|
<view class=""> |
|
|
|
<locationCompare ref="locationCompare" title="目标库位" :recommendLocationCode="jobToLocationCode" |
|
|
|
<locationCompare ref="locationCompareRef" title="目标库位" :recommendLocationCode="jobToLocationCode" |
|
|
|
:locationCode="toLocationCode" @getLocation='scanLocationCode' |
|
|
|
:locationAreaTypeList="toLocationAreaTypeList"></locationCompare> |
|
|
|
</view> |
|
|
@ -40,8 +40,8 @@ |
|
|
|
<win-scan-button @goScan='openScanPopup'></win-scan-button> |
|
|
|
<!-- <win-scan-pack-and-location ref="scanPopup" @getResult='getScanResult'></win-scan-pack-and-location> --> |
|
|
|
<win-scan-pack ref="scanPopup" @getResult='getScanResult' headerType="HMQ,HPQ"></win-scan-pack> |
|
|
|
<detail-info-popup ref="detailInfoPopup"></detail-info-popup> |
|
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
|
<detail-info-popup ref="detailInfoPopupRef"></detail-info-popup> |
|
|
|
<comMessage ref="comMessageRef"></comMessage> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
@ -103,10 +103,10 @@ const jobToLocationCode = ref(""); |
|
|
|
const managementList = ref([]); |
|
|
|
const managementType = ref(''); |
|
|
|
|
|
|
|
const detailInfoPopup = ref(null); |
|
|
|
const detailInfoPopupRef = ref(null); |
|
|
|
const scanPopup = ref(null); |
|
|
|
const comMessage = ref(null); |
|
|
|
const locationCompare = ref(null); |
|
|
|
const comMessageRef = ref(null); |
|
|
|
const locationCompareRef = ref(null); |
|
|
|
|
|
|
|
onLoad((option) => { |
|
|
|
uni.setNavigationBarTitle({ |
|
|
@ -234,7 +234,7 @@ const updateData = () => { |
|
|
|
}; |
|
|
|
|
|
|
|
const openDetail = (item) => { |
|
|
|
detailInfoPopup.value.openPopup(item); |
|
|
|
detailInfoPopupRef.value.openPopup(item); |
|
|
|
}; |
|
|
|
|
|
|
|
const openScanPopup = () => { |
|
|
@ -295,13 +295,13 @@ const commit = () => { |
|
|
|
submitJob(); |
|
|
|
} else if (scanCount.value < subList.value.length) { |
|
|
|
if (jobContent.value.allowPartialComplete === "TRUE") { |
|
|
|
comMessage.value.showQuestionMessage1("任务明细未全部完成,是否提交?", 'red', (res) => { |
|
|
|
comMessageRef.value.showQuestionMessage1("任务明细未全部完成,是否提交?", 'red', (res) => { |
|
|
|
if (res) { |
|
|
|
submitJob(); |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
comMessage.value.showErrorMessage("任务明细未全部完成,不允许部分提交!", (res) => { |
|
|
|
comMessageRef.value.showErrorMessage("任务明细未全部完成,不允许部分提交!", (res) => { |
|
|
|
if (res) { |
|
|
|
openScanPopup(); |
|
|
|
} |
|
|
@ -377,7 +377,7 @@ const setParams = () => { |
|
|
|
const checkLocation = () => { |
|
|
|
if (toLocationCode.value === "" || toLocationCode.value === null) { |
|
|
|
showMessageHint('请扫描收货库位', () => { |
|
|
|
locationCompare.value.showLocation(); |
|
|
|
locationCompareRef.value.showLocation(); |
|
|
|
}); |
|
|
|
return false; |
|
|
|
} |
|
|
@ -385,7 +385,7 @@ const checkLocation = () => { |
|
|
|
}; |
|
|
|
|
|
|
|
const showMessageHint = (hint, callback) => { |
|
|
|
comMessage.value.showErrorMessage(hint, (res) => { |
|
|
|
comMessageRef.value.showErrorMessage(hint, (res) => { |
|
|
|
if (res) { |
|
|
|
callback(); |
|
|
|
} |
|
|
@ -395,7 +395,7 @@ const showMessageHint = (hint, callback) => { |
|
|
|
const showMessage = (message) => { |
|
|
|
setTimeout(() => { |
|
|
|
scanPopupLoseFocus(); |
|
|
|
comMessage.value.showMessage(message, (res) => { |
|
|
|
comMessageRef.value.showMessage(message, (res) => { |
|
|
|
if (res) { |
|
|
|
afterCloseMessage(); |
|
|
|
} |
|
|
@ -406,7 +406,7 @@ const showMessage = (message) => { |
|
|
|
const showErrorMessage = (message) => { |
|
|
|
setTimeout(() => { |
|
|
|
scanPopupLoseFocus(); |
|
|
|
comMessage.value.showErrorMessage(message, (res) => { |
|
|
|
comMessageRef.value.showErrorMessage(message, (res) => { |
|
|
|
if (res) { |
|
|
|
afterCloseMessage(); |
|
|
|
} |
|
|
@ -437,7 +437,7 @@ const scanPopupLoseFocus = () => { |
|
|
|
const showQuestionMessage = (message, callback) => { |
|
|
|
setTimeout(() => { |
|
|
|
scanPopupLoseFocus(); |
|
|
|
comMessage.value.showQuestionMessage(message, (res) => { |
|
|
|
comMessageRef.value.showQuestionMessage(message, (res) => { |
|
|
|
if (res) { |
|
|
|
callback(res); |
|
|
|
} |
|
|
@ -446,7 +446,7 @@ const showQuestionMessage = (message, callback) => { |
|
|
|
}; |
|
|
|
|
|
|
|
const showCommitSuccessMessage = (hint) => { |
|
|
|
comMessage.value.showSuccessMessage(hint, (res) => { |
|
|
|
comMessageRef.value.showSuccessMessage(hint, (res) => { |
|
|
|
navigateBack(1); |
|
|
|
}); |
|
|
|
}; |
|
|
|