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

领料组接收

parent 860e4bf7
<template> <template>
<BasePage <BasePage @getRow="getRow" :power="power" class="min_full" style="height: 100%" :config="config">
@getRow="getRow"
:power="power"
class="min_full"
style="height: 100%"
:config="config"
>
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template> </template>
<template #toolbar="ctx"> <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="()=>{ <!-- <ImportButton @success="()=>{
ctx.basePage.refresh() ctx.basePage.refresh()
}" :url="'wms/ckgl/jhtz/import'" /> --> }" :url="'wms/ckgl/jhtz/import'" /> -->
...@@ -19,8 +13,8 @@ ...@@ -19,8 +13,8 @@
</template> </template>
<script> <script>
import Edit from "./edit.vue"; import Edit from "./edit.vue";
export default { export default {
data() { data() {
return { return {
power: { power: {
...@@ -42,8 +36,7 @@ export default { ...@@ -42,8 +36,7 @@ export default {
queryDetail: true, queryDetail: true,
/* 基本配置*/ /* 基本配置*/
url: "lxyl/ckgl/ubldj", url: "lxyl/ckgl/ubldj",
tableTitle: [ tableTitle: [{
{
title: "状态", title: "状态",
field: "zt", field: "zt",
width: 80, width: 80,
...@@ -105,8 +98,7 @@ export default { ...@@ -105,8 +98,7 @@ export default {
}, },
], ],
queryParams: [ queryParams: [
[ [{
{
label: "日期", label: "日期",
startProp: "start", startProp: "start",
endProp: "end", endProp: "end",
...@@ -168,8 +160,7 @@ export default { ...@@ -168,8 +160,7 @@ export default {
// } // }
// }, // },
], ],
[ [{
{
label: "状态", label: "状态",
prop: "zt", prop: "zt",
span: 4, span: 4,
...@@ -192,6 +183,26 @@ export default { ...@@ -192,6 +183,26 @@ export default {
}; };
}, },
methods: { 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) { getRow(val) {
this.$emit("getRow", val); this.$emit("getRow", val);
}, },
...@@ -199,7 +210,7 @@ export default { ...@@ -199,7 +210,7 @@ export default {
components: { components: {
Edit, Edit,
}, },
}; };
</script> </script>
<style> <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