'修改完成'
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user