From f1b4d7d154a7e706370b0214882010be8e08d10e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com>
Date: Fri, 31 Mar 2023 11:55:27 +0800
Subject: [PATCH] =?UTF-8?q?bug=E6=B8=85=E5=8D=95=E8=B7=9F=E8=B8=AA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
fe/PC/src/components/filterSelect/index.vue | 1 +
fe/PC/src/utils/tableColumns/index.js | 2 +-
fe/PC/src/utils/tabsDesTions/index.js | 2 +-
.../basicData/WorkshopManage/ProdLineItem.vue | 3 +-
.../WorkshopManage/ProductionLine.vue | 51 ++++++++++++++-----
5 files changed, 42 insertions(+), 17 deletions(-)
diff --git a/fe/PC/src/components/filterSelect/index.vue b/fe/PC/src/components/filterSelect/index.vue
index 390cbd659..b44940515 100644
--- a/fe/PC/src/components/filterSelect/index.vue
+++ b/fe/PC/src/components/filterSelect/index.vue
@@ -36,6 +36,7 @@
(displayDialog.detailsDialog = val)"
@drawerbutton="drawerbutton"
@handleCommand="drawerHandle"
@@ -159,7 +158,7 @@ export default {
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 },
],
editForm: [
- { type: "filterSelect", label: "物料代码", prop: "itemCode", optionsLabel: "name", optionsValue: "code",
+ { type: "filterSelect", label: "物料代码",disabled:true, prop: "itemCode", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/Item-Basic")},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/Item-Basic', 'ItemBasic', '物品选择', this.editFormData) }, colSpan: 12 },
{ type: "filterSelect", label: "生产线编号", prop: "prodLineCode", optionsLabel: "name", optionsValue: "code",
diff --git a/fe/PC/src/views/basicData/WorkshopManage/ProductionLine.vue b/fe/PC/src/views/basicData/WorkshopManage/ProductionLine.vue
index 2ffed2fe9..b59e0030d 100644
--- a/fe/PC/src/views/basicData/WorkshopManage/ProductionLine.vue
+++ b/fe/PC/src/views/basicData/WorkshopManage/ProductionLine.vue
@@ -161,15 +161,27 @@ export default {
{ type: "filterSelect", label: "车间代码", prop: "workshopCode", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/workshop")},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/workshop', 'Workshop', '车间选择', this.CreateFormData) }, colSpan: 12 },
- { type: "filterSelect", label: "原料库位", prop: "rawLocationCode", optionsLabel: "name", optionsValue: "code",
- focus: (type,val) => { return this.getFilterList(type, val, "basedata/location")},
- searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.CreateFormData) }, colSpan: 12 },
+
+ { type: "filterSelect", label: "原料库位", prop: "rawLocationCode", optionsLabel: "name", optionsValue: "code",
+ focus: (type,val) => { return this.getFilterList(type, val, "basedata/location",[
+ {logic:"And",column:"type",action:"==",value:"2"},
+ ])},
+ searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.CreateFormData,[
+ {logic:"And",column:"type",action:"==",value:"2"},
+ ]) }, colSpan: 12 },
+
{ type: "filterSelect", label: "原料库位组", prop: "rawLocationGroupCode", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location-group")},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location-group', 'LocationGroup', '库位组选择', this.CreateFormData) }, colSpan: 12 },
+
{ type: "filterSelect", label: "成品库位", prop: "productLocationCode", optionsLabel: "name", optionsValue: "code",
- focus: (type,val) => { return this.getFilterList(type, val, "basedata/location")},
- searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.CreateFormData) }, colSpan: 12 },
+ focus: (type,val) => { return this.getFilterList(type, val, "basedata/location",[
+ {logic:"And",column:"type",action:"==",value:"4"},
+ ])},
+ searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.CreateFormData,[
+ {logic:"And",column:"type",action:"==",value:"4"},
+ ]) }, colSpan: 12 },
+
{ type: "input", label: "描述", prop: "description", colSpan: 12 },
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 },
],
@@ -177,32 +189,45 @@ export default {
{ type: "input", label: "生产线代码", disabled:"true", prop: "code", validType:'numberLetter', colSpan: 12 },
{ type: "input", label: "生产线名称", prop: 'name', colSpan: 12 },
{ type: "select", label: "类型", prop: "type", options: "productionLineType", colSpan: 12 },
+
{ type: "filterSelect", label: "车间代码", prop: "workshopCode", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/workshop")},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/workshop', 'Workshop', '车间选择', this.editFormData) }, colSpan: 12 },
+
{ type: "filterSelect", label: "原料库位", prop: "rawLocationCode", optionsLabel: "name", optionsValue: "code",
- focus: (type,val) => { return this.getFilterList(type, val, "basedata/location")},
- searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.editFormData) }, colSpan: 12 },
+ focus: (type,val) => { return this.getFilterList(type, val, "basedata/location",[
+ {logic:"And",column:"type",action:"==",value:"2"},
+ ])},
+ searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.editFormData,[
+ {logic:"And",column:"type",action:"==",value:"2"},
+ ]) }, colSpan: 12 },
+
{ type: "filterSelect", label: "原料库位组", prop: "rawLocationGroupCode", optionsLabel: "name", optionsValue: "code",
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location-group")},
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location-group', 'LocationGroup', '库位组选择', this.editFormData) }, colSpan: 12 },
+
{ type: "filterSelect", label: "成品库位", prop: "productLocationCode", optionsLabel: "name", optionsValue: "code",
- focus: (type,val) => { return this.getFilterList(type, val, "basedata/location")},
- searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.editFormData) }, colSpan: 12 },
+ focus: (type,val) => { return this.getFilterList(type, val, "basedata/location",[
+ {logic:"And",column:"type",action:"==",value:"4"},
+ ])},
+ searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.editFormData,[
+ {logic:"And",column:"type",action:"==",value:"4"},
+ ]) }, colSpan: 12 },
+
{ type: "input", label: "描述", prop: "description", colSpan: 12 },
{ type: "input", label: "备注", prop: 'remark', colSpan: 12 },
],
editRules: {
cerateRule: {
code: [{ required: true, trigger: "blur", message: "不可为空" }],
- rawLocation: [{ required: true, trigger: "change", message: "不可为空" }],
workshopCode: [{ required: true, trigger: "change", message: "不可为空" }],
- productLocation: [{ required: true, trigger: "change", message: "不可为空" }],
+ rawLocationCode: [{ required: true, trigger: "change", message: "不可为空" }],
+ productLocationCode: [{ required: true, trigger: "change", message: "不可为空" }],
},
editRule: {
- rawLocation: [{ required: true, trigger: "change", message: "不可为空" }],
workshopCode: [{ required: true, trigger: "change", message: "不可为空" }],
- productLocation: [{ required: true, trigger: "change", message: "不可为空" }],
+ rawLocationCode: [{ required: true, trigger: "change", message: "不可为空" }],
+ productLocationCode: [{ required: true, trigger: "change", message: "不可为空" }],
}
},
};