Commit 56734c6f authored by 李苏's avatar 李苏 💬

增加搜索条件

parent d46c98f4
<template> <template>
<BasePage :power='power' @getRow='getRow' class="min_full" style="height: 100%;" :config="config"> <BasePage :power='power' @getRow='getRow' class="min_full" style="height: 100%;" :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Akck :type="'add'" v-if="ctx.basePage.showAdd" :app='ctx.basePage' :buttonApp='ctx.basePage' /> <Akck :type="'add'" v-if="ctx.basePage.showAdd" :app='ctx.basePage' :buttonApp='ctx.basePage' />
<Cgthtb :app='ctx.basePage' v-if="ctx.basePage.showDialog" /> <Cgthtb :app='ctx.basePage' v-if="ctx.basePage.showDialog" />
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<el-button @click="akck(ctx.basePage)" size='mini' type="primary">按库存开</el-button> <el-button @click="akck(ctx.basePage)" size='mini' type="primary">按库存开</el-button>
<el-button @click="cgthtb(ctx.basePage)" size='mini' type="primary">采购退货单同步</el-button> <el-button @click="cgthtb(ctx.basePage)" size='mini' type="primary">采购退货单同步</el-button>
<el-button @click="qr(ctx.basePage)" size='mini' type="primary">确认</el-button> <el-button @click="qr(ctx.basePage)" size='mini' type="primary">确认</el-button>
<el-button @click="qxqr(ctx.basePage)" size='mini' type="primary">取消确认</el-button> <el-button @click="qxqr(ctx.basePage)" size='mini' type="primary">取消确认</el-button>
<!-- <el-button @click="qxqr(ctx.basePage)" size='mini' type="primary">取消确认</el-button> --> <!-- <el-button @click="qxqr(ctx.basePage)" size='mini' type="primary">取消确认</el-button> -->
</template> </template>
</BasePage> </BasePage>
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
export default { export default {
data() { data() {
return { return {
showAdd:false, showAdd: false,
power: { power: {
add: false, add: false,
copy: false, copy: false,
...@@ -41,11 +41,10 @@ ...@@ -41,11 +41,10 @@
saveSelected: false saveSelected: false
}, },
config: { config: {
queryDetail:true, queryDetail: true,
/* 基本配置*/ /* 基本配置*/
url: 'lxyl/rkgl/rkthtz', url: 'lxyl/rkgl/rkthtz',
tableTitle: [ tableTitle: [{
{
title: "状态", title: "状态",
field: "zt", field: "zt",
width: 80, width: 80,
...@@ -88,9 +87,9 @@ ...@@ -88,9 +87,9 @@
width: 140 width: 140
}, },
{ {
title: "货主", title: "货主",
field: "hzName", field: "hzName",
width: 140 width: 140
}, },
// { // {
...@@ -115,9 +114,9 @@ ...@@ -115,9 +114,9 @@
// } // }
// }, // },
{ {
title: "来源单据号", title: "来源单据号",
field: "lydjid", field: "lydjid",
width: 140 width: 140
}, },
{ {
title: "备注", title: "备注",
...@@ -135,8 +134,7 @@ ...@@ -135,8 +134,7 @@
}, },
], ],
queryParams: [ queryParams: [
[ [{
{
label: '日期', label: '日期',
startProp: "start", startProp: "start",
endProp: "end", endProp: "end",
...@@ -148,14 +146,21 @@ ...@@ -148,14 +146,21 @@
{ {
label: '单号', label: '单号',
prop: 'djid', prop: 'djid',
span: 4, span: 5,
type: 'input',
value: ''
},
{
label: '来源单号',
prop: 'lydjid',
span: 5,
type: 'input', type: 'input',
value: '' value: ''
}, },
{ {
label: '状态', label: '状态',
prop: 'zt', prop: 'zt',
span: 6, span: 5,
type: 'RelSelect', type: 'RelSelect',
typeConfig: { typeConfig: {
src: 'lxyl/rkgl/rkthtz/init/zt' src: 'lxyl/rkgl/rkthtz/init/zt'
...@@ -172,74 +177,74 @@ ...@@ -172,74 +177,74 @@
}, },
methods: { methods: {
qr(ctx) { qr(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/rkgl/rkthtz/confirm', { this.$post('lxyl/rkgl/rkthtz/confirm', {
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 {
this.$warning('请选中一条数据')
} }
}, })
qxqr(ctx) { })
if (ctx.singleItem && ctx.singleItem.id) { } else {
this.$confirm('是否继续操作, 是否继续?', '提示', { this.$warning('请选中一条数据')
confirmButtonText: '确定', }
cancelButtonText: '取消', },
type: 'warning' qxqr(ctx) {
}).then(res => { if (ctx.singleItem && ctx.singleItem.id) {
this.$post('lxyl/rkgl/rkthtz/unconfirm', { this.$confirm('是否继续操作, 是否继续?', '提示', {
id: ctx.singleItem.id confirmButtonText: '确定',
}).then(res => { cancelButtonText: '取消',
if (res.success) { type: 'warning'
this.$success('操作成功') }).then(res => {
ctx.refresh() this.$post('lxyl/rkgl/rkthtz/unconfirm', {
} id: ctx.singleItem.id
}) }).then(res => {
}) if (res.success) {
} else { this.$success('操作成功')
this.$warning('请选中一条数据') ctx.refresh()
} }
}, })
cgthtb(ctx){ })
ctx.DialogWidth='30vw' } else {
ctx.DialogTitle='同步采购退货单' this.$warning('请选中一条数据')
ctx.showDialog=true }
// if (ctx.singleItem && ctx.singleItem.id) { },
// this.$confirm('是否继续操作, 是否继续?', '提示', { cgthtb(ctx) {
// confirmButtonText: '确定', ctx.DialogWidth = '30vw'
// cancelButtonText: '取消', ctx.DialogTitle = '同步采购退货单'
// type: 'warning' ctx.showDialog = true
// }).then(res => { // if (ctx.singleItem && ctx.singleItem.id) {
// this.$post('lxyl/thgl/rkthtz/sync/cgth', { // this.$confirm('是否继续操作, 是否继续?', '提示', {
// id: ctx.singleItem.id // confirmButtonText: '确定',
// }).then(res => { // cancelButtonText: '取消',
// if (res.success) { // type: 'warning'
// this.$success('操作成功') // }).then(res => {
// ctx.refresh() // this.$post('lxyl/thgl/rkthtz/sync/cgth', {
// } // id: ctx.singleItem.id
// }) // }).then(res => {
// }) // if (res.success) {
// } else { // this.$success('操作成功')
// this.$warning('请选中一条数据') // ctx.refresh()
// } // }
// })
// })
// } else {
// this.$warning('请选中一条数据')
// }
}, },
akck(ctx){ akck(ctx) {
ctx.showAdd=true ctx.showAdd = true
}, },
/* 示例*/ /* 示例*/
getRow(val){ getRow(val) {
this.$emit('getRow',val) this.$emit('getRow', val)
} }
}, },
components: { components: {
......
...@@ -183,7 +183,14 @@ ...@@ -183,7 +183,14 @@
type: 'input', type: 'input',
value: '' value: ''
} }
] ],
[{
label: "检验批号",
prop: "jyph",
span: 5,
type: 'input',
value: ''
}, ]
], ],
/* 默认启停用 */ /* 默认启停用 */
...@@ -193,26 +200,26 @@ ...@@ -193,26 +200,26 @@
}, },
methods: { methods: {
sendSap(ctx){ sendSap(ctx) {
let list = ctx.$refs.TablePager.selectedList || [] let list = ctx.$refs.TablePager.selectedList || []
if (list.length > 0) { if (list.length > 0) {
this.$confirm('是否继续操作, 是否继续?', '提示', { this.$confirm('是否继续操作, 是否继续?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(res => { }).then(res => {
this.$post('lxyl/zlgl/ukcjyd/sap/cxzj', { this.$post('lxyl/zlgl/ukcjyd/sap/cxzj', {
ids: list.map(item => item.id) ids: list.map(item => item.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('请至少勾选一条数据')
} }
}, },
pd(ctx, hgbz) { pd(ctx, hgbz) {
if (ctx.singleItem && ctx.singleItem.id) { if (ctx.singleItem && ctx.singleItem.id) {
......
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