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 @@
<el-tab-pane class="full" label="明细" name="first">
<Mx ref="mx" class="full" />
</el-tab-pane>
<el-tab-pane class="full" label="清单" name="second">
<Qd ref="qd" class="full" />
</el-tab-pane>
</el-tabs>
</div>
......@@ -23,10 +26,12 @@
<script>
import Top from './top/index.vue'
import Mx from './mx.vue'
import Qd from './qd.vue'
export default {
components: {
Top,
Mx,
Qd
},
data(){
......@@ -40,7 +45,11 @@
let mid = row.id
this.$refs.mx.$refs.basePage.queryParams.mid = mid
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>
<BasePage @getRow='getRow' ref="basePage" :power='power' :toolButton='false' class="min_full" style="height: 100%;border-top: 0px;" :autoQuery='false'
:config="config">
<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>
......@@ -32,70 +32,30 @@
},
config: {
/* 基本配置*/
url: 'lxyl/kcgl/zlhbg/query/detail',
queryUrl: 'lxyl/kcgl/zlhbg/query/detail',
url: 'wms/kcgl/kwtz/query/detail',
queryUrl: 'wms/kcgl/kwtz/query/detail',
tableTitle: [{
title: "物料编码",
field: "wlxxCode",
fieldType: "upper",
width: 140
title: "唯一码",
field: "packCode",
width: 120,
},
{
title: "物料名称",
field: "wlxxName",
width: 140
},
title: "容器",
field: "rqCode",
width: 120,
},
{
title: "物料规格",
field: "wlxxGg",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 140
},
title: "库位",
field: "kwName",
width: 120,
},
{
title: "目标库位",
field: "mbkwCode",
width: 120,
},
{
title: "入库数量",
field: "rksl",
width: 100,
},
{
title: "制令号",
field: "zlh",
width: 120,
},
{
title: "变更后制令号",
field: "bghzlh",
width: 120,
},
{
title: "唯一码",
field: "packCode",
width: 120,
},
{
title: "容器",
field: "rqCode",
width: 120,
},
{
title: "货主",
field: "hzName",
width: 120,
},
{
title: "包装数量",
field: "bzsl",
width: 120,
},
{
title: "装托数量",
field: "ztsl",
width: 120,
},
],
queryParams: [],
......@@ -105,13 +65,13 @@
},
methods: {
getRow(val){
this.$emit('getRow',val)
getRow(val) {
this.$emit('getRow', val)
},
demo(ctx){
if(ctx.singleItem&&ctx.singleItem.id){
demo(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
console.log(ctx.singleItem)
}else{
} else {
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,8 +2,8 @@
<DefaultDialog :app='app'>
<div slot="form" style="display: flex;height: 70vh;">
<!-- basePage-->
<BasePage ref="basePage" :power='power' :toolButton='false' class="min_full" style="height: 100%;"
:config="config">
<BasePage @basePageCreated='basePageCreated' ref="basePage" :power='power' :toolButton='false' class="min_full" style="height: 100%;"
:config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
......@@ -55,88 +55,105 @@
},
config: {
/* 基本配置*/
url: 'lxyl/kcgl/zlhbg/queryZkPackOrRq',
queryUrl: 'lxyl/kcgl/zlhbg/queryZkPackOrRq',
url: 'wms/kcgl/kwtz/queryKwmxForKwtz',
queryUrl: 'wms/kcgl/kwtz/queryKwmxForKwtz',
tableTitle: [{
title: "唯一码",
field: "packCode",
title: "仓库",
field: "ckName",
width: 140
},
{
title: "库区",
field: "kqName",
width: 140
},
{
title: "库位",
field: "kwCode",
width: 140
},
{
title: "唯一码",
field: "packCode",
width: 140
},
{
title: "容器",
field: "rqCode",
width: 140
},
{
title: "货主",
field: "hzName",
width: 140
},
/* 分割*/
{
title: "物料编码",
field: "wlxxCode",
width: 140
},
{
title: "物料名称",
field: "wlxxName",
width: 140
},
{
title: "物料规格",
field: "wlxxGg",
width: 140
title: "库存状态",
field: "rqKczt",
width: 140,
"transform": {
"url": "wms/jcsj/rq/init/kczt",
"label": "bmmc",
"value": "id"
}
},
{
title: "物料批号",
field: "wlph",
width: 140
title: "状态",
field: "rqZt",
width: 140,
"transform": {
"url": "wms/jcsj/rq/init/zt",
"label": "bmmc",
"value": "id"
}
},
{
title: "制令号",
field: "zlh",
width: 140
}
],
queryParams: [[
{
label: '制令号',
prop: 'zlh',
span: 6,
type: 'input',
value: ''
}
]]
queryParams: [
[{
"label": "库区",
"prop": "kqid",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "wms/jcsj/kq/query",
"match": {
"value": "id",
"label": "name"
}
}
},
{
"label": "货主",
"prop": "hzid",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "wms/jcsj/hz/query",
"match": {
"value": "id",
"label": "name"
}
}
},
]
]
}
}
},
methods: {
save(){
/* 判定是否勾选*/
let list =this.$refs.basePage.$refs.TablePager.selectedList
if(list.length!=0){
this.$prompt('请输入变更后的制令号', '', {
confirmButtonText: '确定',
cancelButtonText: '取消',
}).then(({ value }) => {
if(value){
list.forEach(item=>{
item.bghzlh=value
})
/* 触发save事件 */
this.$emit('save',list)
}else{
this.$warning('请输入变更后制令号')
}
})
}else{
this.$warning('请至少勾选一条数据')
}
basePageCreated(ctx){
ctx.queryParams.ckid=this.app.form.ckid
},
save() {
/* 判定是否勾选*/
let list = this.$refs.basePage.$refs.TablePager.selectedList
if (list.length != 0) {
/* 触发save事件 */
this.$emit('save', list)
} else {
this.$warning('请至少勾选一条数据')
}
}
}
}
......
<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'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<!-- 查询弹框-->
......@@ -59,8 +59,9 @@
/* 添加熬子表*/
list.forEach(item => {
item.lydjid = item.id
item.bzsl = item.packmxSl || 0
delete item.id
delete item.rqZt
delete item.rqKczt
this.formDetail.push(_.cloneDeep(item))
})
......@@ -109,7 +110,7 @@
type: 'AuxInput',
typeConfig: {
code: 'USER',
label: 'usersName',
label: 'fzrName',
transform: {
value: 'id',
label: 'username'
......@@ -136,23 +137,13 @@
align: "center"
},
{
title: "物料编码",
field: "wlxxCode",
width: 160
},
{
title: "物料名称",
field: "wlxxName",
width: 160
},
{
title: "规格",
field: "wlxxGg",
width: 140
title: "仓库",
field: "ckName",
width: 200,
},
{
title: "物料批号",
field: "wlph",
title: "库区",
field: "kqName",
width: 200,
},
{
......@@ -166,29 +157,30 @@
width: 200,
},
{
title: "货主",
field: "hzName",
width: 200,
},
{
title: "制令号",
field: "zlh",
title: "库位",
field: "kwCode",
width: 200,
},
{
title: "变更后制令号",
field: "bghzlh",
width: 200,
},
{
title: "包装数量",
field: "bzsl",
width: 200,
},
{
title: "装托数量",
field: "ztsl",
width: 200,
title: "目标库位",
field: "mbkwid",
width: 240,
type: 'AuxInput',
typeConfig: {
"code": "KWWHK",
"label": "mbkwCode",
"transform": {
"value": "id",
"label": "name"
},
// give(data) {
// this.form.wlid = data.id
// this.form.wlmc = data.name
// this.form.wlcode = data.code
// }
}
}
......
......@@ -4,7 +4,7 @@
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<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>
</BasePage>
......@@ -93,25 +93,25 @@
}
},
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('请选中一条数据')
}
},
// 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) {
this.$emit('getRow', val)
}
......
......@@ -56,11 +56,11 @@
width: 140
},
{
title: "入库数量",
field: "rksl",
width: 100,
},
// {
// title: "入库数量",
// field: "rksl",
// width: 100,
// },
{
title: "制令号",
field: "zlh",
......
......@@ -132,15 +132,11 @@
confirmButtonText: '确定',
cancelButtonText: '取消',
}).then(({ value }) => {
if(value){
list.forEach(item=>{
item.bghzlh=value
item.bghzlh=value||''
})
/* 触发save事件 */
this.$emit('save',list)
}else{
this.$warning('请输入变更后制令号')
}
})
}else{
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