From fd62d0b28549fc10190e5f23dea1e862f49ffe5c Mon Sep 17 00:00:00 2001
From: Stang <32996823@qq.com>
Date: Thu, 7 Nov 2024 09:53:25 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E7=BB=84=E8=A3=85=E4=BB=BB?=
=?UTF-8?q?=E5=8A=A1=E6=94=B9=E9=80=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/mes/md/mditem/index.vue | 53 +++++++++++++++++-------------
src/views/mes/wm/zdTask/index.vue | 1 +
src/views/system/role/authUser.vue | 2 +-
3 files changed, 32 insertions(+), 24 deletions(-)
diff --git a/src/views/mes/md/mditem/index.vue b/src/views/mes/md/mditem/index.vue
index 54a2875..4a7d59d 100644
--- a/src/views/mes/md/mditem/index.vue
+++ b/src/views/mes/md/mditem/index.vue
@@ -151,10 +151,10 @@
-
-
-
-
+
+
+
+
@@ -302,26 +302,23 @@
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
@@ -571,7 +568,8 @@ export default {
{required: true, message: "物料分类不能为空", trigger: "blur"},
]
},
- resentEnable: false
+ resentEnable: false,
+ warnEnable: false
};
},
watch: {
@@ -585,10 +583,16 @@ export default {
if (response.data.itemOrProduct == "BLADE") {
this.resentEnable = true
// this.form.attr1 = '0'
- }
- else {
+ } else {
this.resentEnable = false
- this.form.attr1 = '0'
+ this.form.attr1 = '1'
+ }
+
+ if (response.data.itemOrProduct == "PRODUCT"){
+ this.warnEnable = true
+ } else {
+ this.warnEnable = false
+ this.form.attr2 = '0'
}
})
}
@@ -685,6 +689,7 @@ export default {
const itemId = row.itemId || this.ids;
getMdItem(itemId).then(response => {
this.form = response.data;
+ this.form.attr1 = Number(this.form.attr1) + 1
this.open = true;
this.title = "查看物料";
this.optType = "view";
@@ -709,6 +714,7 @@ export default {
const itemId = row.itemId || this.ids;
getMdItem(itemId).then(response => {
this.form = response.data;
+ this.form.attr1 = Number(this.form.attr1) + 1
this.open = true;
this.optType = "edit";
this.title = "修改物料";
@@ -719,6 +725,7 @@ export default {
submitForm: function () {
this.$refs["form"].validate(valid => {
if (valid) {
+ this.form.attr1 = Number(this.form.attr1) - 1
if (this.form.itemId != undefined) {
updateMdItem(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
diff --git a/src/views/mes/wm/zdTask/index.vue b/src/views/mes/wm/zdTask/index.vue
index ff7c364..e8764a3 100644
--- a/src/views/mes/wm/zdTask/index.vue
+++ b/src/views/mes/wm/zdTask/index.vue
@@ -87,6 +87,7 @@
+
diff --git a/src/views/system/role/authUser.vue b/src/views/system/role/authUser.vue
index 5e91e62..8ec3f0e 100644
--- a/src/views/system/role/authUser.vue
+++ b/src/views/system/role/authUser.vue
@@ -151,7 +151,7 @@ export default {
},
// 返回按钮
handleClose() {
- const obj = { path: "/user/role" };
+ const obj = { path: "/baseInfo/role" };
this.$tab.closeOpenPage(obj);
},
/** 搜索按钮操作 */