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

验货单调整

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