Commit 70f81440 authored by 李苏's avatar 李苏 💬

验货单调整

parent 5a4c185e
......@@ -53,7 +53,8 @@
/* 基本配置*/
url: 'lxyl/zlgl/kccj/queryZkPackOrRq',
queryUrl: 'lxyl/zlgl/kccj/queryZkPackOrRq',
tableTitle: [{
tableTitle: [
{
title: "仓库",
field: "ckName",
width: 140
......
......@@ -12,8 +12,10 @@
</DefaultDialog>
</template>
<script>
import wlsx from 'common/src/mixin/wlphsx.js'
import wlphsx from 'common/src/mixin/wlphsx.js'
export default {
mixins: [wlsx, wlphsx],
props: {
app: {
type: Object,
......@@ -48,9 +50,19 @@
/* Dialog*/
// queryDetail: true,
/* 基本配置*/
url: 'lxyl/zlgl/ukcjyd',
queryUrl:'wms/common/queryZkPackOrRq',
url: 'lxyl/zlgl/kccj/queryZkPackOrRq',
queryUrl: 'lxyl/zlgl/kccj/queryZkPackOrRq',
tableTitle: [
{
title: "仓库",
field: "ckName",
width: 140
},
{
title: "库位",
field: "kwCode",
width: 140
},
{
title: "唯一码",
field: "packCode",
......@@ -134,12 +146,19 @@
save(){
let list =this.$refs.basePage.$refs.TablePager.selectedList||[]
if(list.length!=0){
this.$post('lxyl/ukcyhd/doGenerate',list).then(res=>{
if(res.success){
this.app.showDialog=false
this.app.refresh()
}
})
let ckList = list.map(item => item.ckid)
ckList = [...new Set(ckList)]
if (ckList.length == 1) {
this.$post('lxyl/ukcyhd/doGenerate',list).then(res=>{
if(res.success){
this.app.showDialog=false
this.app.refresh()
}
})
}else{
this.$warning('只能勾选相同仓库的数据进行操作')
}
}else{
this.$warning('请至少勾选一条数据')
......
......@@ -43,7 +43,7 @@
url: 'lxyl/ukcyhd',
tableTitle: [{
title: "验货单号",
field: "code",
field: "djid",
width: 140
},
{
......
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