|
@ -171,7 +171,7 @@ export default { |
|
|
{ type: "input", disabled:true, label: "物品描述", prop: "partDesc",colSpan: 12 }, |
|
|
{ type: "input", disabled:true, label: "物品描述", prop: "partDesc",colSpan: 12 }, |
|
|
{ type: "input", disabled:true, label: "单位", prop: "basicUom",colSpan: 12 }, |
|
|
{ type: "input", disabled:true, label: "单位", prop: "basicUom",colSpan: 12 }, |
|
|
{ type: "filterSelect", label: "叫料库位代码", prop: "locationCode", optionsLabel: "name", optionsValue: "code", |
|
|
{ type: "filterSelect", label: "叫料库位代码", prop: "locationCode", optionsLabel: "name", optionsValue: "code", |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location",this.isFilterLocation(this.CreateFormData.codeType))}, |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location")}, |
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.CreateFormData) }, |
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.CreateFormData) }, |
|
|
colSpan: 12 |
|
|
colSpan: 12 |
|
|
}, |
|
|
}, |
|
@ -191,7 +191,7 @@ export default { |
|
|
{ type: "input", disabled:true, label: "物品描述", prop: "partDesc",colSpan: 12 }, |
|
|
{ type: "input", disabled:true, label: "物品描述", prop: "partDesc",colSpan: 12 }, |
|
|
{ type: "input", disabled:true, label: "单位", prop: "basicUom",colSpan: 12 }, |
|
|
{ type: "input", disabled:true, label: "单位", prop: "basicUom",colSpan: 12 }, |
|
|
{ type: "filterSelect", label: "叫料库位代码", prop: "locationCode", optionsLabel: "name", optionsValue: "code", |
|
|
{ type: "filterSelect", label: "叫料库位代码", prop: "locationCode", optionsLabel: "name", optionsValue: "code", |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location",this.isFilterLocation(this.editFormData.codeType))}, |
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/location")}, |
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.editFormData) }, |
|
|
searchButton: (val) => { this.showSerarchPage(val, 'basedata/location', 'Location', '库位选择', this.editFormData) }, |
|
|
colSpan: 12 |
|
|
colSpan: 12 |
|
|
}, |
|
|
}, |
|
@ -264,31 +264,19 @@ export default { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
//过滤查询条件 |
|
|
|
|
|
isFilterLocation (type) { |
|
|
|
|
|
let filter = [] |
|
|
|
|
|
if(type == "W"){ |
|
|
|
|
|
filter = [ |
|
|
|
|
|
{ |
|
|
|
|
|
logic: "And", |
|
|
|
|
|
column: 'type', |
|
|
|
|
|
action: "==", |
|
|
|
|
|
value: "2" |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
} |
|
|
|
|
|
return filter |
|
|
|
|
|
}, |
|
|
|
|
|
initCodeType(val){ |
|
|
initCodeType(val){ |
|
|
if(this.formReveal){ |
|
|
if(this.formReveal){ |
|
|
switch (val) { |
|
|
switch (val) { |
|
|
case 1: |
|
|
case 1: |
|
|
this.CreateFormData.codeType = 'W' |
|
|
this.CreateFormData.codeType = 'S' |
|
|
break; |
|
|
break; |
|
|
case 2: |
|
|
case 2: |
|
|
this.CreateFormData.codeType = 'B' |
|
|
this.CreateFormData.codeType = 'P' |
|
|
break; |
|
|
break; |
|
|
case 3: |
|
|
case 3: |
|
|
|
|
|
this.CreateFormData.codeType = 'Z' |
|
|
|
|
|
break; |
|
|
|
|
|
case 4: |
|
|
this.CreateFormData.codeType = 'K' |
|
|
this.CreateFormData.codeType = 'K' |
|
|
break; |
|
|
break; |
|
|
default: |
|
|
default: |
|
@ -298,13 +286,16 @@ export default { |
|
|
}else{ |
|
|
}else{ |
|
|
switch (val) { |
|
|
switch (val) { |
|
|
case 1: |
|
|
case 1: |
|
|
this.editFormData.codeType = 'W' |
|
|
this.editFormData.codeType = 'S' |
|
|
break; |
|
|
break; |
|
|
case 2: |
|
|
case 2: |
|
|
this.editFormData.codeType = 'B' |
|
|
this.editFormData.codeType = 'P' |
|
|
break; |
|
|
break; |
|
|
case 3: |
|
|
case 3: |
|
|
this.editFormData.codeType = 'K' |
|
|
this.editFormData.codeType = 'Z' |
|
|
|
|
|
break; |
|
|
|
|
|
case 4: |
|
|
|
|
|
this.CreateFormData.codeType = 'K' |
|
|
break; |
|
|
break; |
|
|
default: |
|
|
default: |
|
|
this.editFormData.codeType = '' |
|
|
this.editFormData.codeType = '' |
|
@ -340,12 +331,8 @@ export default { |
|
|
// this.$listAssign(this.editFormData, this.propsData) |
|
|
// this.$listAssign(this.editFormData, this.propsData) |
|
|
this.displayDialog.editDialog = true |
|
|
this.displayDialog.editDialog = true |
|
|
|
|
|
|
|
|
// todo:编辑-拆分类型前缀和code码 |
|
|
|
|
|
this.initCodeType(this.editFormData.type) |
|
|
this.initCodeType(this.editFormData.type) |
|
|
console.log([1,2,3].indexOf(this.editFormData.type)) |
|
|
this.editFormData.codeSuffix = [1,2,3,4].indexOf(this.editFormData.type) >= 0 ? (this.editFormData.code && this.editFormData.code.length > 0 ? this.editFormData.code.slice(1) : null) : this.editFormData.code |
|
|
// this.editFormData.type = (this.editFormData.type == 'W' || this.editFormData.type == 'B' || this.editFormData.type == 'K') ? this.editFormData.type : (this.editFormData.code && this.editFormData.code.length > 0 ? this.editFormData.code.slice(0,1) : null) |
|
|
|
|
|
// this.editFormData.type = (this.editFormData.type == 'W' || this.editFormData.type == 'B' || this.editFormData.type == 'K') ? this.editFormData.type : null |
|
|
|
|
|
this.editFormData.codeSuffix = [1,2,3].indexOf(this.editFormData.type) >= 0 ? (this.editFormData.code && this.editFormData.code.length > 0 ? this.editFormData.code.slice(1) : null) : this.editFormData.code |
|
|
|
|
|
}else{ |
|
|
}else{ |
|
|
this.drawerbutton(val) |
|
|
this.drawerbutton(val) |
|
|
} |
|
|
} |
|
|