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

组托

parent fd31e6f0
......@@ -129,6 +129,8 @@
"label": "name"
},
change: (row) => {
this.form.hzName=row.hzName
this.form.hzid=row.hzid
this.form.bgy = row.bgy
}
}
......
......@@ -4,10 +4,15 @@
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<ztDialog :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='组托'" />
<ctDialog :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='拆托'" />
<wlztDialog :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='物料组托'" />
</template>
<template #toolbar="ctx">
<el-button @click="zt(ctx.basePage)" size='mini' type="primary">组托</el-button>
<ImportButton @success="()=>{
ctx.basePage.refresh()
}" :url="'/wms/kcgl/rqdj/import'" />
<el-button @click="zt(ctx.basePage)" size='mini' style="margin-left: 10px;" type="primary">组托</el-button>
<el-button @click="ct(ctx.basePage)" size='mini' type="primary">拆托</el-button>
<el-button @click="wlzt(ctx.basePage)" size='mini' type="primary">物料组托</el-button>
</template>
</BasePage>
......@@ -16,6 +21,7 @@
<script>
import ztDialog from './ztDialog.vue';
import ctDialog from './ctDialog.vue'
import wlztDialog from './wlztDialog'
export default {
data() {
return {
......@@ -140,6 +146,11 @@
},
methods: {
wlzt(ctx){
ctx.DialogWidth='70vw'
ctx.DialogTitle='物料组托'
ctx.showDialog=true
},
zt(ctx){
ctx.DialogWidth='70vw'
ctx.DialogTitle='组托'
......@@ -156,7 +167,8 @@
},
components: {
ztDialog,
ctDialog
ctDialog,
wlztDialog
}
}
......
<template>
<DefaultDialog :app='app'>
<div slot="form" style="display: flex;height: 70vh;">
<editTableForEdit :expandTitle='false' :phsxTitle='false' :AuxButton='false' :indexApp='app' code='WMSWLXX' :type='type' ref="editTableForEdit"
:editTableTitle='editTableTitle'
:editTableData="formDetail">
</editTableForEdit>
</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() {
this.$nextTick(()=>{
let list=_.cloneDeep(this.app.$refs.basePage.$refs.TablePager.selectedList)
list.forEach(item=>{
item.ztsl=1
item.wlid=item.id
delete item.id
item.wlph=item.ph
item.rqCode=this.app.$refs.basePage.queryParams.rqCode
this.formDetail.push(item)
})
})
},
data() {
return {
formDetail:[],
editTableTitle: [
{
title: "容器",
field: "rqCode",
width: 120,
},
{
title: "物料编码",
field: "code",
width: 180,
},
{
title: "物料名称",
field: "name",
width: 160
},
{
title: "物料批号",
field: "wlph",
width: 140,
allowEdit: true,
},
{
title: "制令号",
field: "zlh",
width: 140,
allowEdit: true,
},
{
title: "装托数量",
field: "ztsl",
allowEdit: true,
type: 'inputNumber',
}
]
}
},
methods: {
save(){
let params = {
rqid: this.app.$refs.basePage.queryParams.rqid,
djly: 'M',
datas: this.formDetail
}
this.$post('wms/kcgl/rqdj/install', params).then(res => {
if (res.success) {
this.$success('操作成功')
this.app.showDialog = false
this.$emit('isOk')
}
})
}
}
}
</script>
<style scoped>
</style>
<template>
<DefaultDialog :app='app'>
<div slot="form" style="display: flex;height: 70vh;">
<WlztConfirm @isOk='isOk' :app="this" v-if="showDialog" />
<BasePage ref="basePage" :toolButton='false' :power='power' class="min_full" style="height: 100%;"
:config="config" />
</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>
import WlztConfirm from './wlztConfirm.vue'
export default {
props: {
app: {
type: Object,
default: () => {
return {}
}
}
},
async mounted() {
},
components:{
WlztConfirm
},
data() {
return {
showDialog:false,
DialogTitle:'确认装托数量',
DialogWidth:'50vw',
power: {
add: false,
copy: false,
/* 手动控制删除 */
delButton: true,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: true,
saveSelected: true
},
config: {
/* Dialog*/
// queryDetail: true,
/* 基本配置*/
url: 'lxyl/jcsj/wlxx',
queryUrl: 'lxyl/jcsj/wlxx/query',
tableTitle: [{
title: "物料编码",
field: "code",
width: 120
},
{
title: "物料名称",
field: "name",
width: 160
},
{
title: "规格",
field: "gg",
width: 120
},
{
title: "计量单位",
field: "jldwName",
width: 80
},
{
title: "辅计量单位",
field: "fjldwName",
width: 80,
align: "center"
},
{
title: "批号管理",
field: "phgl",
width: 80,
formatter(a, b, v) {
let map = {
Y: '是',
N: '否'
}
return map[v]
}
},
{
title: "状态",
field: "tybz",
width: 80,
formatter(a, b, v) {
let map = {
Y: '停用',
N: '正常'
}
return map[v]
}
},
{
title: "停用日期",
field: "tyrq",
fieldType: 'ftDate'
},
{
title: "备注",
field: "bz",
width: 200
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: 'ftDateTime'
}
],
queryParams: [
[{
label: '容器',
prop: 'rqid',
span: 6,
required: false,
type: 'AuxInput',
typeConfig: {
give: (row) => {
console.log(row)
},
isRequest: false,
code: 'RQGLK',
label: 'rqCode',
transform: {
value: 'id',
label: 'code'
}
}
},
{
label: '物料',
prop: 'condition',
span: 6,
type: 'input',
value: ''
}
]
],
/* 默认启停用 */
}
}
},
methods: {
isOk(){
this.$success('操作成功')
this.app.showDialog = false
this.app.refresh()
},
save() {
if (this.$refs.basePage.queryParams.rqid) {
let list = this.$refs.basePage.$refs.TablePager.selectedList || []
if (list.length != 0) {
this.showDialog=true
// let params = {
// rqid: this.$refs.basePage.queryParams.rqid,
// djly: 'M',
// datas: list.map(item => {
// item.ztsl=1
// return item
// })
// }
// this.$post('wms/kcgl/rqdj/install', params).then(res => {
// if (res.success) {
// this.$success('操作成功')
// this.app.showDialog = false
// this.app.refresh()
// }
// })
} else {
this.$warning('请至少勾选一条数据')
}
} else {
this.$warning('请先选择容器再进行保存')
}
}
}
}
</script>
<style scoped>
</style>
......@@ -83,11 +83,11 @@
field: "rksl",
width: 100,
},
{
title: "过账数量",
field: "gzsl",
width: 120,
},
// {
// title: "过账数量",
// field: "gzsl",
// width: 120,
// },
{
title: "制令号",
field: "zlh",
......
......@@ -97,8 +97,8 @@
endProp: "end",
span: 8,
type: 'RelDaterangeV2',
startValue: new Date().getTime()-1000*60*60*24*30,
endValue:new Date().getTime(),
startValue: '',
endValue: '',
},
{
"label": "仓库",
......
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