Commit ee76b58b authored by 李苏's avatar 李苏 💬

上立库、入平库和入平库拣货,选择入库单之后,根据这个 lxyl/common/ck/queryCkidByRktzid {rktzid:入库单id}

查询仓库,如果查询结果只有一个,那直接赋值给仓库,如果结果有多条则不赋值,手工选择仓库的时候,也用这个url
parent 3bd31e40
......@@ -33,7 +33,7 @@
<ImportTempButton @success="()=>{
$refs['TablePager'].pageQuery()
}" :url="'jcsj/gys/import'"></ImportTempButton> -->
<el-button @click="tb()" size='mini' type="primary" >同步</el-button>
<el-button v-if="powerObj['22']" @click="tb()" size='mini' type="primary" >同步</el-button>
<ImportButton v-if="powerObj['01']" style="margin-left: 10px;" @success="()=>{
$refs['TablePager'].pageQuery()
}" :url="'jcsj/gys/excel/import'" />
......
......@@ -118,7 +118,7 @@
"value": "",
"required": true,
"typeConfig": {
"src": "lxyl/jcsj/uck/ck/queryCjckid",
"src": "lxyl/common/ck/queryCkidByRktzid",
"match": {
"value": "id",
"label": "name"
......@@ -237,6 +237,18 @@
transform: {
value: 'id',
label: 'djid'
},
give:(item)=>{
this.$post('lxyl/common/ck/queryCkidByRktzid',{
rktzid:item.id
}).then(res=>{
if(res.success){
let list =res.data.records||[]
if(list.length==1){
}
this.form.ckid=list[0].id
}
})
}
}
}
......
......@@ -155,7 +155,7 @@ export default {
value: "",
required: true,
typeConfig: {
src: "lxyl/jcsj/uck/ck/queryCjckid",
src: "lxyl/common/ck/queryCkidByRktzid",
match: {
value: "id",
label: "name",
......@@ -261,6 +261,18 @@ export default {
value: "id",
label: "djid",
},
give:(item)=>{
this.$post('lxyl/common/ck/queryCkidByRktzid',{
rktzid:item.id
}).then(res=>{
if(res.success){
let list =res.data.records||[]
if(list.length==1){
}
this.form.ckid=list[0].id
}
})
}
},
},
],
......
......@@ -36,7 +36,7 @@
<ImportTempButton @success="()=>{
$refs['TablePager'].pageQuery()
}" :url="'jcsj/wlxx/import'"></ImportTempButton> -->
<el-button @click="tbwl()" size='mini' type="primary">同步物料</el-button>
<el-button v-if="powerObj['22']" @click="tbwl()" size='mini' type="primary">同步物料</el-button>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
......
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