'修改完成'

This commit is contained in:
2025-12-22 09:48:01 +08:00
parent 23da00a8f0
commit 5868f8fab9
5 changed files with 63 additions and 38 deletions

View File

@@ -24,6 +24,8 @@ export default {
data() {
return {
formData: {
srcLocationCode: null,
destLocationCode: null,
taskType: LesDeliveryTaskType.PRODUCTION
},
/** 校验规则 */
@@ -46,7 +48,8 @@ export default {
methods: {
searchSrcLocation() {
const _this = this;
if (_this.formData.destLocationCode == '') {
if (!_this.formData.destLocationCode) {
_this.formData.srcLocationCode = null;
return;
}
findPreparation(_this.formData.destLocationCode).then(res => {
@@ -76,6 +79,7 @@ export default {
addDeliveryTask(_this.formData).then(res => {
_this.$modal.closeLoading();
_this.$modal.msgSuccess("提交成功!");
_this.reset();
setTimeout(() => {
_this.$tab.switchTab("/pages/work/index");
}, 500);
@@ -86,11 +90,10 @@ export default {
})
},
// reset() {
// const _this = this;
// this.formData.srcLocationCode = '';
// this.formData.destLocationCode = '';
// }
reset() {
this.formData.srcLocationCode = null;
this.formData.destLocationCode = null;
}
}
}
</script>