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

增加筛选条件

parent 8bad332a
...@@ -173,6 +173,13 @@ ...@@ -173,6 +173,13 @@
typeConfig: { typeConfig: {
src: 'lxyl/ckgl/dbck/init/zt' src: 'lxyl/ckgl/dbck/init/zt'
} }
},
{
label: '物料信息',
prop: 'wlxxInfo',
span: 5,
type: 'input',
value: ''
}] }]
], ],
/* 默认启停用 */ /* 默认启停用 */
......
...@@ -6,13 +6,15 @@ ...@@ -6,13 +6,15 @@
}" addRename='装包' :power='power' @getRow='getRow' class="min_full" style="height: 100%;" :config="config"> }" addRename='装包' :power='power' @getRow='getRow' class="min_full" style="height: 100%;" :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<!-- <zb :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='装包'" /> --> <!-- <zb :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='装包'" /> -->
<cb :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='调整'" /> <cb :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='调整'" />
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<el-button v-if="ctx.basePage.powerObj['22']" @click="mpwc(ctx.basePage)" size='mini' type="primary">完成</el-button> <el-button v-if="ctx.basePage.powerObj['22']" @click="mpwc(ctx.basePage)" size='mini'
<el-button v-if="ctx.basePage.powerObj['22']" @click="qxwc(ctx.basePage)" size='mini' type="primary">取消完成</el-button> type="primary">完成</el-button>
<el-button v-if="ctx.basePage.powerObj['22']" @click="qxwc(ctx.basePage)" size='mini'
type="primary">取消完成</el-button>
</template> </template>
</BasePage> </BasePage>
...@@ -45,8 +47,7 @@ ...@@ -45,8 +47,7 @@
/* 基本配置*/ /* 基本配置*/
url: 'lxyl/rkgl/bzzy', url: 'lxyl/rkgl/bzzy',
// addUrl:'lxyl/rkgl/bzdj/install', // addUrl:'lxyl/rkgl/bzdj/install',
tableTitle: [ tableTitle: [{
{
title: "状态", title: "状态",
field: "zt", field: "zt",
"transform": { "transform": {
...@@ -80,11 +81,11 @@ ...@@ -80,11 +81,11 @@
{ {
title: "单据来源", title: "单据来源",
field: "djly", field: "djly",
"transform": { "transform": {
"url": "lxyl/rkgl/bzzy/init/djly", "url": "lxyl/rkgl/bzzy/init/djly",
"label": "name", "label": "name",
"value": "id" "value": "id"
}, },
width: 80 width: 80
}, },
{ {
...@@ -97,7 +98,7 @@ ...@@ -97,7 +98,7 @@
title: "维护人", title: "维护人",
field: "whr", field: "whr",
fieldType: "ftString", fieldType: "ftString",
width: 120 width: 120
}, },
{ {
title: "维护时间", title: "维护时间",
...@@ -118,31 +119,38 @@ ...@@ -118,31 +119,38 @@
}, },
], ],
queryParams: [ queryParams: [
[{ [{
label: '日期', label: '日期',
startProp: "start", startProp: "start",
endProp: "end", endProp: "end",
span: 8,
type: 'RelDaterangeV2',
startValue: new Date().getTime() - 1000 * 60 * 60 * 24 * 30,
endValue: new Date().getTime(),
},
{
label: '唯一码',
prop: 'packCode',
span: 6,
type: 'input',
value: ''
},
{
label: '入库单号',
prop: 'rktzDjid',
span: 6,
type: 'input',
value: ''
}
],
[{
label: '物料信息',
prop: 'wlxxInfo',
span: 8, span: 8,
type: 'RelDaterangeV2',
startValue: new Date().getTime() - 1000 * 60 * 60 * 24 * 30,
endValue: new Date().getTime(),
},
{
label: '唯一码',
prop: 'packCode',
span: 6,
type: 'input',
value: ''
},
{
label: '入库单号',
prop: 'rktzDjid',
span: 6,
type: 'input', type: 'input',
value: '' value: ''
} }]
]
], ],
/* 默认启停用 */ /* 默认启停用 */
...@@ -151,34 +159,34 @@ ...@@ -151,34 +159,34 @@
}, },
methods: { methods: {
qxwc(ctx){ qxwc(ctx) {
if(ctx.singleItem&&ctx.singleItem.id){ if (ctx.singleItem && ctx.singleItem.id) {
this.$post('lxyl/rkgl/bzzy/cancelComplete',{ this.$post('lxyl/rkgl/bzzy/cancelComplete', {
id:ctx.singleItem.id id: ctx.singleItem.id
}).then(res=>{ }).then(res => {
if(res.success){ if (res.success) {
this.$success('操作成功') this.$success('操作成功')
ctx.refresh() ctx.refresh()
} }
}) })
}else{ } else {
this.warning('请选中一条数据') this.warning('请选中一条数据')
} }
}, },
mpwc(ctx){ mpwc(ctx) {
if(ctx.singleItem&&ctx.singleItem.id){ if (ctx.singleItem && ctx.singleItem.id) {
this.$post('lxyl/rkgl/bzzy/complete',{ this.$post('lxyl/rkgl/bzzy/complete', {
id:ctx.singleItem.id id: ctx.singleItem.id
}).then(res=>{ }).then(res => {
if(res.success){ if (res.success) {
this.$success('操作成功') this.$success('操作成功')
ctx.refresh() ctx.refresh()
} }
}) })
}else{ } else {
this.warning('请选中一条数据') this.warning('请选中一条数据')
} }
...@@ -191,12 +199,12 @@ ...@@ -191,12 +199,12 @@
// ctx.DialogTitle='装包' // ctx.DialogTitle='装包'
// ctx.showDialog=true // ctx.showDialog=true
// }, // },
cb(ctx){ cb(ctx) {
if(ctx.singleItem&&ctx.singleItem.id){ if (ctx.singleItem && ctx.singleItem.id) {
ctx.DialogWidth='50vw' ctx.DialogWidth = '50vw'
ctx.DialogTitle='调整' ctx.DialogTitle = '调整'
ctx.showDialog=true ctx.showDialog = true
}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