Commit 2bad7f9b authored by 李苏's avatar 李苏 💬

领料组接收

parent 860e4bf7
<template>
<BasePage
@getRow="getRow"
:power="power"
class="min_full"
style="height: 100%"
:config="config"
>
<BasePage @getRow="getRow" :power="power" class="min_full" style="height: 100%" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">直接入库</el-button> -->
<el-button @click="llzjs(ctx.basePage)" size='mini' type="primary">领料组接收</el-button>
<!-- <ImportButton @success="()=>{
ctx.basePage.refresh()
}" :url="'wms/ckgl/jhtz/import'" /> -->
......@@ -19,8 +13,8 @@
</template>
<script>
import Edit from "./edit.vue";
export default {
import Edit from "./edit.vue";
export default {
data() {
return {
power: {
......@@ -42,8 +36,7 @@ export default {
queryDetail: true,
/* 基本配置*/
url: "lxyl/ckgl/ubldj",
tableTitle: [
{
tableTitle: [{
title: "状态",
field: "zt",
width: 80,
......@@ -105,8 +98,7 @@ export default {
},
],
queryParams: [
[
{
[{
label: "日期",
startProp: "start",
endProp: "end",
......@@ -168,8 +160,7 @@ export default {
// }
// },
],
[
{
[{
label: "状态",
prop: "zt",
span: 4,
......@@ -192,6 +183,26 @@ export default {
};
},
methods: {
llzjs(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否继续该操作?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('lxyl/ckgl/ubldj/llck', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refreshId(ctx.singleItem.id)
}
})
})
} else {
this.$warning('请选中一条数据')
}
},
getRow(val) {
this.$emit("getRow", val);
},
......@@ -199,7 +210,7 @@ export default {
components: {
Edit,
},
};
};
</script>
<style>
......
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