'修改完成'

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

@@ -25,7 +25,10 @@ import { bind, unBind } from "@/api/les/lesMaterialBind.js";
export default {
data() {
return {
formData: {},
formData: {
locationCode: null,
batchNo: null,
},
/** 校验规则 */
rules: {
locationCode: {
@@ -75,6 +78,7 @@ export default {
bind(_this.formData).then(res => {
_this.$modal.closeLoading();
_this.$modal.msgSuccess("绑定成功!");
_this.reset();
setTimeout(() => {
this.$tab.switchTab("/pages/work/index");
}, 500);
@@ -102,7 +106,8 @@ export default {
_this.$modal.loading('解绑中')
unBind(_this.formData.locationCode).then(res => {
_this.$modal.closeLoading();
_this.$modal.msgSuccess("解绑成功!")
_this.$modal.msgSuccess("解绑成功!");
_this.reset();
setTimeout(() => {
this.$tab.switchTab("/pages/work/index");
}, 500);
@@ -118,9 +123,12 @@ export default {
})
},
// reset() {
// this.formData = {};
// }
reset() {
this.formData = {
locationCode: null,
batchNo: null,
};
}
}
}
</script>