From e90bde476a82a954fb4a609ecc1c41462c3afb12 Mon Sep 17 00:00:00 2001
From: xd <844539747@qq.com>
Date: Sun, 24 Mar 2024 13:39:24 +0800
Subject: [PATCH] '123'
---
.../storageLocation/locationConsuming.vue | 120 +-----------------
1 file changed, 1 insertion(+), 119 deletions(-)
diff --git a/ruoyi-ui/src/views/storageLocation/locationConsuming.vue b/ruoyi-ui/src/views/storageLocation/locationConsuming.vue
index 9d8a508..2b79da3 100644
--- a/ruoyi-ui/src/views/storageLocation/locationConsuming.vue
+++ b/ruoyi-ui/src/views/storageLocation/locationConsuming.vue
@@ -174,51 +174,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -473,10 +428,6 @@
materialMs: null
},
- // 弹出层标题
- title: "",
- // 是否显示弹出层
- open: false,
//库位信息数据
materialDetailA:[],
materialDetailB:[],
@@ -494,25 +445,7 @@
materialBhProp: "",
// 表单参数
- form: {},
- // 表单校验
- rules: {
- materialZlh: [
- { required: true, message: "指令号不能为空", trigger: "blur" }
- ],
- materialXingh: [
- { required: true, message: "型号不能为空", trigger: "blur" }
- ],
- materialGuig: [
- { required: true, message: "规格不能为空", trigger: "blur" }
- ],
- materialDiany: [
- { required: true, message: "电压等级不能为空", trigger: "blur" }
- ],
- materialMs: [
- { required: true, message: "米数不能为空", trigger: "blur" }
- ],
- }
+ form: {}
}
},
created() {
@@ -567,57 +500,6 @@
});
},
- /** 打开录入弹窗 */
- openDialog(item) {
- //校验库位是否已占用
- this.form.materialBh = item.materialBh;
- checkStorageLocation(this.form).then(response => {
- this.reset();
- this.open = true;
- this.title = "录入信息";
- this.form.materialBh = item.materialBh;
- }).catch((error) => {
- console.error(error);
- });
- },
-
- /** 提交按钮 */
- submitForm() {
- this.$refs["form"].validate(valid => {
- if (valid) {
- addStorageLocation(this.form).then(response => {
- this.$modal.msgSuccess("录入成功");
- this.open = false;
- this.getStorageLocation();
- });
- }
- });
- },
-
- // 取消按钮
- cancel() {
- cancelStorageLocation(this.form).then(response => {
- this.open = false;
- this.reset();
- }).catch((error) => {
- console.error(error);
- });
-
- },
-
- // 表单重置
- reset() {
- this.form = {
- materialBh: null,
- materialZlh: null,
- materialXingh: null,
- materialGuig: null,
- materialDiany: null,
- materialMs: null
- };
- this.resetForm("form");
- },
-
/*===============================================领用操作==========================================*/
// Tag标签页点击事件
handleClick(tab, event) {