Commit 829fc2b6 authored by 李苏's avatar 李苏 💬

3.27调整

parent 40e79839
...@@ -179,23 +179,23 @@ ...@@ -179,23 +179,23 @@
} }
} }
}, },
{ // {
label: '货主', // label: '货主',
readonly: true, // readonly: true,
prop: 'hzid', // prop: 'hzid',
span: 8, // span: 8,
required: true, // required: true,
type: 'AuxInput', // type: 'AuxInput',
typeConfig: { // typeConfig: {
isRequest: true, // isRequest: true,
code: 'HZID', // code: 'HZID',
label: 'hzName', // label: 'hzName',
transform: { // transform: {
value: 'id', // value: 'id',
label: 'name' // label: 'name'
} // }
} // }
}, // },
{ {
label: '备注', label: '备注',
prop: 'bz', prop: 'bz',
......
...@@ -62,7 +62,20 @@ ...@@ -62,7 +62,20 @@
/* 基本配置*/ /* 基本配置*/
url: 'lxyl/ckgl/dbck/query/ukcjyqd', url: 'lxyl/ckgl/dbck/query/ukcjyqd',
queryUrl: 'lxyl/ckgl/dbck/query/ukcjyqd', queryUrl: 'lxyl/ckgl/dbck/query/ukcjyqd',
tableTitle: [{ tableTitle: [
{
title: "仓库编码",
field: "ckCode",
width: 120,
},
{
title: "仓库",
field: "ckName",
width: 120,
},
{
title: "库位", title: "库位",
field: "kwCode", field: "kwCode",
width: 100, width: 100,
...@@ -179,6 +192,13 @@ ...@@ -179,6 +192,13 @@
if (list.length == 0) { if (list.length == 0) {
this.$warning('请至少勾选一条数据') this.$warning('请至少勾选一条数据')
} else { } else {
/* 判定仓库*/
let ckList=list.map(item=>item.ckid)
ckList=[...new Set(ckList)]
if (ckList.length > 1) {
this.$warning('所选项仓库不唯一,请选择相同仓库的数据。')
return
}
let obj = { let obj = {
list: list list: list
} }
......
...@@ -55,7 +55,19 @@ ...@@ -55,7 +55,19 @@
/* 基本配置*/ /* 基本配置*/
url: 'wms/ckgl/dbck/query/kc', url: 'wms/ckgl/dbck/query/kc',
queryUrl:'wms/ckgl/dbck/query/kc', queryUrl:'wms/ckgl/dbck/query/kc',
tableTitle: [{ tableTitle: [
{
title: "仓库编码",
field: "ckCode",
width: 120,
},
{
title: "仓库",
field: "ckName",
width: 120,
},
{
title: "库位", title: "库位",
field: "kwCode", field: "kwCode",
width: 100, width: 100,
...@@ -161,6 +173,13 @@ ...@@ -161,6 +173,13 @@
if(list.length==0){ if(list.length==0){
this.$warning('请至少勾选一条数据') this.$warning('请至少勾选一条数据')
}else{ }else{
let ckList=list.map(item=>item.ckid)
ckList=[...new Set(ckList)]
if (ckList.length > 1) {
this.$warning('所选项仓库不唯一,请选择相同仓库的数据。')
return
}
let obj={ let obj={
list:list list:list
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment