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