Commit 5ec6b77a authored by 李苏's avatar 李苏 💬

1

parent 22870d8d
...@@ -12,10 +12,7 @@ ...@@ -12,10 +12,7 @@
</template> </template>
<script> <script>
import wlsx from 'common/src/mixin/wlsx.js'
import wlphsx from 'common/src/mixin/wlphsx.js'
export default { export default {
mixins:[wlphsx,wlsx],
data() { data() {
return { return {
power: { power: {
...@@ -35,22 +32,22 @@ ...@@ -35,22 +32,22 @@
}, },
config: { config: {
/* 基本配置*/ /* 基本配置*/
url: 'wms/rkgl/rktz', url: 'lxyl/kcgl/zlhbg/query/detail',
queryUrl: 'wms/rkgl/rktz/query/detail', queryUrl: 'lxyl/kcgl/zlhbg/query/detail',
tableTitle: [{ tableTitle: [{
title: "物料编码", title: "物料编码",
field: "wlcode", field: "wlxxCode",
fieldType: "upper", fieldType: "upper",
width: 140 width: 140
}, },
{ {
title: "物料名称", title: "物料名称",
field: "wlmc", field: "wlxxName",
width: 140 width: 140
}, },
{ {
title: "物料规格", title: "物料规格",
field: "gg", field: "wlxxGg",
width: 140 width: 140
}, },
{ {
...@@ -58,16 +55,7 @@ ...@@ -58,16 +55,7 @@
field: "wlph", field: "wlph",
width: 140 width: 140
}, },
{
title: "计量单位",
field: "jldwname",
width: 100,
},
{
title: "应收数量",
field: "yssl",
width: 100,
},
{ {
title: "入库数量", title: "入库数量",
field: "rksl", field: "rksl",
...@@ -79,50 +67,36 @@ ...@@ -79,50 +67,36 @@
width: 120, width: 120,
}, },
{ {
title: "码盘数量", title: "变更后制令号",
field: "ztsl", field: "bghzlh",
width: 120, width: 120,
}, },
{ {
title: "过账数量", title: "唯一码",
field: "gzsl", field: "packCode",
width: 120, width: 120,
}, },
{ {
title: "状态", title: "容器",
field: "zt", field: "rqCode",
width: 120, width: 120,
"transform": {
"url": "wms/rkgl/rktz/init/zt",
"label": "name",
"value": "id"
}
}, },
{ {
title: "来源单号", title: "货主",
field: "lydjid", field: "hzName",
width: 120, width: 120,
}, },
{ {
title: "关闭人", title: "包装数量",
field: "gbr", field: "packmxSl",
width: 120, width: 120,
}, },
{ {
title: "关闭原因", title: "装托数量",
field: "gbyy", field: "ztsl",
width: 200, width: 120,
},
{
title: "关闭时间",
field: "gbsj",
fieldType: 'ftDateTime'
}, },
{
title: "备注",
field: "bz",
width: 200
}
], ],
queryParams: [], queryParams: [],
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div slot="form" style="display: flex;height: 70vh;"> <div slot="form" style="display: flex;height: 70vh;">
<!-- basePage--> <!-- basePage-->
<BasePage ref="basePage" :power='power' :toolButton='false' class="min_full" style="height: 100%;" <BasePage ref="basePage" :power='power' :toolButton='false' class="min_full" style="height: 100%;"
:autoQuery='false' :config="config"> :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template> </template>
...@@ -93,6 +93,16 @@ ...@@ -93,6 +93,16 @@
field: "wlph", field: "wlph",
width: 140 width: 140
}, },
{
title: "包装数量",
field: "packmxSl",
width: 140
},
{
title: "装托数量",
field: "ztsl",
width: 140
},
{ {
title: "制令号", title: "制令号",
field: "zlh", field: "zlh",
......
<template> <template>
<RelDialog bigTitle detailTable='RKTZMX' @getFormDetail='getFormDetail' width="70%" :type='type' :editApp='editApp' <RelDialog bigTitle detailTable='ZLHBGMX' @getFormDetail='getFormDetail' width="70%" :type='type' :editApp='editApp'
:app='app' :buttonApp='buttonApp'> :app='app' :buttonApp='buttonApp'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules"> <el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<!-- 查询弹框--> <!-- 查询弹框-->
...@@ -51,6 +51,12 @@ import Cx from './cx.vue' ...@@ -51,6 +51,12 @@ import Cx from './cx.vue'
/* 选择list时的回调 */ /* 选择list时的回调 */
save(list){ save(list){
this.showDialog=false this.showDialog=false
/* 添加熬子表*/
list.forEach(item=>{
item.lydjid=item.id
delete item.id
this.formDetail.push(_.cloneDeep(item))
})
} }
...@@ -161,8 +167,13 @@ import Cx from './cx.vue' ...@@ -161,8 +167,13 @@ import Cx from './cx.vue'
width: 200, width: 200,
}, },
{ {
title: "数量", title: "包装数量",
field: "sl", field: "packmxSl",
width: 200,
},
{
title: "装托数量",
field: "ztsl",
width: 200, width: 200,
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">直接入库</el-button> --> <el-button @click="doConfirm(ctx.basePage)" size='mini' type="primary">确认</el-button>
</template> </template>
</BasePage> </BasePage>
...@@ -98,15 +98,31 @@ ...@@ -98,15 +98,31 @@
value: '' value: ''
} }
] ]
], ],
/* 默认启停用 */ /* 默认启停用 */
} }
} }
}, },
methods: { methods: {
doConfirm(ctx){
if(ctx.singleItem&&ctx.singleItem.id){
this.$confirm('是否确认?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res=>{
this.$post('lxyl/kcgl/zlhbg/doConfirm',{
id:ctx.singleItem.id
}).then(res=>{
if(res.success){
ctx.refresh()
}
})
})
}else{
this.$warning('请选中一条数据')
}
},
getRow(val) { getRow(val) {
this.$emit('getRow', val) this.$emit('getRow', val)
} }
......
...@@ -67,6 +67,11 @@ ...@@ -67,6 +67,11 @@
field: "kwName", field: "kwName",
width: 140 width: 140
}, },
{
title: "实际库位",
field: "sjkwCode",
width: 140
},
// { // {
// title: "应收数量", // title: "应收数量",
// field: "yssl", // field: "yssl",
......
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