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

Merge branch 'master' of gitlab.gavelinfo.com:lisu/lxyl-vue

parents 59c2dc94 a3c8f979
...@@ -2,10 +2,12 @@ ...@@ -2,10 +2,12 @@
<BasePage fePage @getRow='getRow' ref="basePage" :power='power' :toolButton='false' class="min_full" style="height: 100%;" :autoQuery='false' <BasePage fePage @getRow='getRow' ref="basePage" :power='power' :toolButton='false' class="min_full" style="height: 100%;" :autoQuery='false'
:config="config"> :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<el-button @click="gb(ctx.basePage)" size='mini' type="primary">关闭</el-button>
<el-button @click="qxgb(ctx.basePage)" size='mini' type="primary">取消关闭</el-button>
</template> </template>
</BasePage> </BasePage>
...@@ -38,7 +40,18 @@ ...@@ -38,7 +40,18 @@
/* 基本配置*/ /* 基本配置*/
url: 'lxyl/ckgl/bfcktz', url: 'lxyl/ckgl/bfcktz',
queryUrl: 'lxyl/ckgl/bfcktz/query/detail', queryUrl: 'lxyl/ckgl/bfcktz/query/detail',
tableTitle: [{ tableTitle: [
{
title: "状态",
field: "zt",
width: 80,
"transform": {
"url": "lxyl/ckgl/bfcktz/init/zt",
"label": "name",
"value": "id"
}
},
{
title: "物料编码", title: "物料编码",
field: "wlxxCode", field: "wlxxCode",
fieldType: "upper", fieldType: "upper",
...@@ -100,26 +113,6 @@ ...@@ -100,26 +113,6 @@
field: "wbs", field: "wbs",
width: 120, width: 120,
}, },
// {
// title: "已出数量",
// field: "ycsl",
// width: 100,
// },
// {
// title: "过账数量",
// field: "gzsl",
// width: 100,
// },
{
title: "状态",
field: "zt",
width: 100,
"transform": {
"url": "lxyl/ckgl/bfcktz/init/zt",
"label": "name",
"value": "id"
}
},
{ {
title: "来源单号", title: "来源单号",
field: "lydjid", field: "lydjid",
...@@ -153,6 +146,54 @@ ...@@ -153,6 +146,54 @@
}, },
methods: { methods: {
gb(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
this.$prompt('请输入原因', '', {
confirmButtonText: '确定',
cancelButtonText: '取消',
}).then(({
value
}) => {
if (value) {
this.$post('lxyl/ckgl/bfcktz/close/cktzmx', {
id: ctx.singleItem.id,
gbyy:value
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
} else {
this.$warning('请输入关闭原因')
}
})
} else {
this.$warning('请选中一条数据')
}
},
qxgb(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否继续操作, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('lxyl/ckgl/bfcktz/unclose/cktzmx', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
})
} else {
this.$warning('请选中一条数据')
}
},
getRow(val){ getRow(val){
this.$emit('getRow',val) this.$emit('getRow',val)
}, },
......
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