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

增加搜索条件

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