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

库存调整清单

parent 01ca02f5
<template>
<DefaultDialog :app='app'>
<div slot="form" style="display: flex;height: 70vh;">
DialogTitle:'新增',
showDialog:false,
</div>
<div slot="reFooter" class="refooter" >
<span slot="footer" class="dialog-footer" >
<el-button @click="app.showDialog=false">取 消</el-button>
<el-button type="primary" @click="save()">保 存</el-button>
</span>
</div>
</DefaultDialog>
</template>
<script>
export default {
props: {
app: {
type: Object,
default: ()=>{
return {}
}
}
},
async mounted() {
},
data() {
return {
}
},
methods: {
}
}
</script>
<style scoped>
</style>
<template>
<RelDialog width="50%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20" :app="this">
<EditColItem :required="item.required||false" :readonly="item.readonly?true:false " v-for="(item,index) in editColItemList " :value="item.value" :span="item.span" :label="item.label" :prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
</el-row>
</el-form>
</RelDialog>
</template>
<script>
import {
editMixin
} from 'common'
export default {
mixins: [editMixin],
data() {
return {
editColItemList: [
{
label: '编码',
prop: 'code',
span: 12,
type: 'input',
required:true,
},
{
label: '名称',
prop: 'name',
span: 12,
type: 'input',
required:true,
},
{
label: '备注',
prop: 'bz',
span: 24,
type: 'input'
},
]
}
}
}
</script>
...@@ -11,6 +11,9 @@ ...@@ -11,6 +11,9 @@
<el-tab-pane class="full" label="明细" name="first"> <el-tab-pane class="full" label="明细" name="first">
<Mx ref="mx" class="full" /> <Mx ref="mx" class="full" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane class="full" label="清单" name="second">
<Qd ref="qd" class="full" />
</el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
...@@ -23,10 +26,12 @@ ...@@ -23,10 +26,12 @@
<script> <script>
import Top from './top/index.vue' import Top from './top/index.vue'
import Mx from './mx.vue' import Mx from './mx.vue'
import Qd from './qd.vue'
export default { export default {
components: { components: {
Top, Top,
Mx, Mx,
Qd
}, },
data(){ data(){
...@@ -40,7 +45,11 @@ ...@@ -40,7 +45,11 @@
let mid = row.id let mid = row.id
this.$refs.mx.$refs.basePage.queryParams.mid = mid this.$refs.mx.$refs.basePage.queryParams.mid = mid
this.$refs.mx.$refs.basePage.$refs['TablePager'].pageQuery({ this.$refs.mx.$refs.basePage.$refs['TablePager'].pageQuery({
setFirstCurrent: true setFirstCurrent: false
})
this.$refs.qd.$refs.basePage.queryParams.mid = mid
this.$refs.qd.$refs.basePage.$refs['TablePager'].pageQuery({
setFirstCurrent: false
}) })
......
<template> <template>
<BasePage @getRow='getRow' ref="basePage" :power='power' :toolButton='false' class="min_full" style="height: 100%;border-top: 0px;" :autoQuery='false' <BasePage @getRow='getRow' ref="basePage" :power='power' :toolButton='false' class="min_full"
:config="config"> style="height: 100%;border-top: 0px;" :autoQuery='false' :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template> </template>
...@@ -32,46 +32,9 @@ ...@@ -32,46 +32,9 @@
}, },
config: { config: {
/* 基本配置*/ /* 基本配置*/
url: 'lxyl/kcgl/zlhbg/query/detail', url: 'wms/kcgl/kwtz/query/detail',
queryUrl: 'lxyl/kcgl/zlhbg/query/detail', queryUrl: 'wms/kcgl/kwtz/query/detail',
tableTitle: [{ tableTitle: [{
title: "物料编码",
field: "wlxxCode",
fieldType: "upper",
width: 140
},
{
title: "物料名称",
field: "wlxxName",
width: 140
},
{
title: "物料规格",
field: "wlxxGg",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 140
},
{
title: "入库数量",
field: "rksl",
width: 100,
},
{
title: "制令号",
field: "zlh",
width: 120,
},
{
title: "变更后制令号",
field: "bghzlh",
width: 120,
},
{
title: "唯一码", title: "唯一码",
field: "packCode", field: "packCode",
width: 120, width: 120,
...@@ -81,22 +44,19 @@ ...@@ -81,22 +44,19 @@
field: "rqCode", field: "rqCode",
width: 120, width: 120,
}, },
{ {
title: "货主", title: "库位",
field: "hzName", field: "kwName",
width: 120,
},
{
title: "包装数量",
field: "bzsl",
width: 120, width: 120,
}, },
{ {
title: "装托数量", title: "目标库位",
field: "ztsl", field: "mbkwCode",
width: 120, width: 120,
}, },
], ],
queryParams: [], queryParams: [],
...@@ -105,13 +65,13 @@ ...@@ -105,13 +65,13 @@
}, },
methods: { methods: {
getRow(val){ getRow(val) {
this.$emit('getRow',val) this.$emit('getRow', val)
}, },
demo(ctx){ demo(ctx) {
if(ctx.singleItem&&ctx.singleItem.id){ if (ctx.singleItem && ctx.singleItem.id) {
console.log(ctx.singleItem) console.log(ctx.singleItem)
}else{ } else {
this.$warning('请选中一条数据') this.$warning('请选中一条数据')
} }
} }
......
<template>
<BasePage @getRow='getRow' ref="basePage" :power='power' :toolButton='false' class="min_full"
style="height: 100%;border-top: 0px;" :autoQuery='false' :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
</template>
</BasePage>
</template>
<script>
export default {
mounted() {
},
data() {
return {
power: {
add: false,
copy: false,
/* 手动控制删除 */
delButton: false,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
},
config: {
/* 基本配置*/
url: 'wms/kcgl/kwtz/queryKwtzqd',
queryUrl: 'wms/kcgl/kwtz/queryKwtzqd',
tableTitle: [
{
title: "唯一码",
field: "packCode",
width: 120,
},
{
title: "容器",
field: "rqCode",
width: 120,
},
{
title: "物料编码",
field: "wlxxCode",
fieldType: "upper",
width: 140
},
{
title: "物料名称",
field: "wlxxName",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 140
},
{
title: "制令号",
field: "zlh",
width: 120,
},
// {
// title: "货主",
// field: "hzName",
// width: 120,
// },
{
title: "数量",
field: "sl",
width: 120,
},
{
title: "状态",
field: "zt",
width: 120,
},
],
queryParams: [],
}
}
},
methods: {
getRow(val) {
this.$emit('getRow', val)
},
demo(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
console.log(ctx.singleItem)
} else {
this.$warning('请选中一条数据')
}
}
},
components: {
}
}
</script>
<style>
</style>
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<DefaultDialog :app='app'> <DefaultDialog :app='app'>
<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 @basePageCreated='basePageCreated' ref="basePage" :power='power' :toolButton='false' class="min_full" style="height: 100%;"
:config="config"> :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
...@@ -55,86 +55,103 @@ ...@@ -55,86 +55,103 @@
}, },
config: { config: {
/* 基本配置*/ /* 基本配置*/
url: 'lxyl/kcgl/zlhbg/queryZkPackOrRq', url: 'wms/kcgl/kwtz/queryKwmxForKwtz',
queryUrl: 'lxyl/kcgl/zlhbg/queryZkPackOrRq', queryUrl: 'wms/kcgl/kwtz/queryKwmxForKwtz',
tableTitle: [{ tableTitle: [{
title: "唯一码", title: "仓库",
field: "packCode", field: "ckName",
width: 140 width: 140
}, },
{ {
title: "容器", title: "库区",
field: "rqCode", field: "kqName",
width: 140 width: 140
}, },
{ {
title: "货主", title: "库位",
field: "hzName", field: "kwCode",
width: 140 width: 140
}, },
/* 分割*/
{ {
title: "物料编码", title: "唯一码",
field: "wlxxCode", field: "packCode",
width: 140 width: 140
}, },
{ {
title: "物料名称", title: "容器",
field: "wlxxName", field: "rqCode",
width: 140 width: 140
}, },
{ {
title: "物料规格", title: "库存状态",
field: "wlxxGg", field: "rqKczt",
width: 140 width: 140,
"transform": {
"url": "wms/jcsj/rq/init/kczt",
"label": "bmmc",
"value": "id"
}
}, },
{ {
title: "物料批号", title: "状态",
field: "wlph", field: "rqZt",
width: 140 width: 140,
"transform": {
"url": "wms/jcsj/rq/init/zt",
"label": "bmmc",
"value": "id"
}
}, },
{
title: "制令号",
field: "zlh",
width: 140
}
], ],
queryParams: [[ queryParams: [
[{
"label": "库区",
"prop": "kqid",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "wms/jcsj/kq/query",
"match": {
"value": "id",
"label": "name"
}
}
},
{ {
label: '制令号', "label": "货主",
prop: 'zlh', "prop": "hzid",
span: 6, "span": 6,
type: 'input', "type": "RelSelect",
value: '' "value": "",
"typeConfig": {
"src": "wms/jcsj/hz/query",
"match": {
"value": "id",
"label": "name"
}
} }
]] },
]
]
} }
} }
}, },
methods: { methods: {
save(){ basePageCreated(ctx){
ctx.queryParams.ckid=this.app.form.ckid
},
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) {
this.$prompt('请输入变更后的制令号', '', {
confirmButtonText: '确定',
cancelButtonText: '取消',
}).then(({ value }) => {
if(value){
list.forEach(item=>{
item.bghzlh=value
})
/* 触发save事件 */ /* 触发save事件 */
this.$emit('save',list) this.$emit('save', list)
}else{ } else {
this.$warning('请输入变更后制令号')
}
})
}else{
this.$warning('请至少勾选一条数据') this.$warning('请至少勾选一条数据')
} }
} }
......
<template> <template>
<RelDialog bigTitle detailTable='ZLHBGMX' @getFormDetail='getFormDetail' width="70%" :type='type' :editApp='editApp' <RelDialog bigTitle detailTable='KWTZMX' @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">
<!-- 查询弹框--> <!-- 查询弹框-->
...@@ -59,8 +59,9 @@ ...@@ -59,8 +59,9 @@
/* 添加熬子表*/ /* 添加熬子表*/
list.forEach(item => { list.forEach(item => {
item.lydjid = item.id item.lydjid = item.id
item.bzsl = item.packmxSl || 0
delete item.id delete item.id
delete item.rqZt
delete item.rqKczt
this.formDetail.push(_.cloneDeep(item)) this.formDetail.push(_.cloneDeep(item))
}) })
...@@ -109,7 +110,7 @@ ...@@ -109,7 +110,7 @@
type: 'AuxInput', type: 'AuxInput',
typeConfig: { typeConfig: {
code: 'USER', code: 'USER',
label: 'usersName', label: 'fzrName',
transform: { transform: {
value: 'id', value: 'id',
label: 'username' label: 'username'
...@@ -136,23 +137,13 @@ ...@@ -136,23 +137,13 @@
align: "center" align: "center"
}, },
{ {
title: "物料编码", title: "仓库",
field: "wlxxCode", field: "ckName",
width: 160 width: 200,
},
{
title: "物料名称",
field: "wlxxName",
width: 160
},
{
title: "规格",
field: "wlxxGg",
width: 140
}, },
{ {
title: "物料批号", title: "库区",
field: "wlph", field: "kqName",
width: 200, width: 200,
}, },
{ {
...@@ -166,29 +157,30 @@ ...@@ -166,29 +157,30 @@
width: 200, width: 200,
}, },
{ {
title: "货主", title: "库位",
field: "hzName", field: "kwCode",
width: 200,
},
{
title: "制令号",
field: "zlh",
width: 200,
},
{
title: "变更后制令号",
field: "bghzlh",
width: 200, width: 200,
}, },
{ {
title: "包装数量", title: "目标库位",
field: "bzsl", field: "mbkwid",
width: 200, width: 240,
type: 'AuxInput',
typeConfig: {
"code": "KWWHK",
"label": "mbkwCode",
"transform": {
"value": "id",
"label": "name"
}, },
{ // give(data) {
title: "装托数量", // this.form.wlid = data.id
field: "ztsl", // this.form.wlmc = data.name
width: 200, // this.form.wlcode = data.code
// }
}
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<el-button @click="doConfirm(ctx.basePage)" size='mini' type="primary">确认</el-button> <!-- <el-button @click="doConfirm(ctx.basePage)" size='mini' type="primary">确认</el-button> -->
</template> </template>
</BasePage> </BasePage>
...@@ -93,25 +93,25 @@ ...@@ -93,25 +93,25 @@
} }
}, },
methods: { methods: {
doConfirm(ctx){ // doConfirm(ctx){
if(ctx.singleItem&&ctx.singleItem.id){ // if(ctx.singleItem&&ctx.singleItem.id){
this.$confirm('是否确认?', '提示', { // this.$confirm('是否确认?', '提示', {
confirmButtonText: '确定', // confirmButtonText: '确定',
cancelButtonText: '取消', // cancelButtonText: '取消',
type: 'warning' // type: 'warning'
}).then(res=>{ // }).then(res=>{
this.$post('lxyl/kcgl/zlhbg/doConfirm',{ // this.$post('lxyl/kcgl/zlhbg/doConfirm',{
id:ctx.singleItem.id // id:ctx.singleItem.id
}).then(res=>{ // }).then(res=>{
if(res.success){ // if(res.success){
ctx.refresh() // ctx.refresh()
} // }
}) // })
}) // })
}else{ // }else{
this.$warning('请选中一条数据') // this.$warning('请选中一条数据')
} // }
}, // },
getRow(val) { getRow(val) {
this.$emit('getRow', val) this.$emit('getRow', val)
} }
......
...@@ -56,11 +56,11 @@ ...@@ -56,11 +56,11 @@
width: 140 width: 140
}, },
{ // {
title: "入库数量", // title: "入库数量",
field: "rksl", // field: "rksl",
width: 100, // width: 100,
}, // },
{ {
title: "制令号", title: "制令号",
field: "zlh", field: "zlh",
......
...@@ -132,15 +132,11 @@ ...@@ -132,15 +132,11 @@
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
}).then(({ value }) => { }).then(({ value }) => {
if(value){
list.forEach(item=>{ list.forEach(item=>{
item.bghzlh=value item.bghzlh=value||''
}) })
/* 触发save事件 */ /* 触发save事件 */
this.$emit('save',list) this.$emit('save',list)
}else{
this.$warning('请输入变更后制令号')
}
}) })
}else{ }else{
this.$warning('请至少勾选一条数据') this.$warning('请至少勾选一条数据')
......
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