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

关闭取消关闭

parent 01dfba71
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<el-button @click="jhtj(ctx.basePage)" size='mini' type="primary">拣货推荐</el-button> <el-button @click="jhtj(ctx.basePage)" size='mini' type="primary">拣货推荐</el-button>
<el-button @click="gb(ctx.basePage)" size='mini' type="primary">关闭</el-button>
<el-button @click="qxgb(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'" /> -->
...@@ -37,8 +39,7 @@ ...@@ -37,8 +39,7 @@
queryDetail: true, queryDetail: true,
/* 基本配置*/ /* 基本配置*/
url: 'wms/ckgl/jhtz', url: 'wms/ckgl/jhtz',
tableTitle: [ tableTitle: [{
{
title: "状态", title: "状态",
field: "zt", field: "zt",
fieldType: "ftString", fieldType: "ftString",
...@@ -128,8 +129,8 @@ ...@@ -128,8 +129,8 @@
endProp: "end", endProp: "end",
span: 8, span: 8,
type: 'RelDaterangeV2', type: 'RelDaterangeV2',
startValue: new Date().getTime()-1000*60*60*24*30, startValue: new Date().getTime() - 1000 * 60 * 60 * 24 * 30,
endValue:new Date().getTime(), endValue: new Date().getTime(),
}, },
{ {
"label": "仓库", "label": "仓库",
...@@ -152,8 +153,8 @@ ...@@ -152,8 +153,8 @@
"type": "RelSelect", "type": "RelSelect",
"value": "", "value": "",
"typeConfig": { "typeConfig": {
linkParams:['ckid'], linkParams: ['ckid'],
linkage:true, linkage: true,
"src": "wms/jcsj/kq/query", "src": "wms/jcsj/kq/query",
"match": { "match": {
"value": "id", "value": "id",
...@@ -164,8 +165,8 @@ ...@@ -164,8 +165,8 @@
],[ ],
{ [{
label: '单据编号', label: '单据编号',
prop: 'djid', prop: 'djid',
span: 8, span: 8,
...@@ -189,8 +190,8 @@ ...@@ -189,8 +190,8 @@
} }
}, },
],[ ],
{ [{
label: '事务类型', label: '事务类型',
prop: 'swlxid', prop: 'swlxid',
span: 8, span: 8,
...@@ -198,8 +199,7 @@ ...@@ -198,8 +199,7 @@
typeConfig: { typeConfig: {
src: 'lxyl/rkgl/jhtz/init/swlx' src: 'lxyl/rkgl/jhtz/init/swlx'
} }
} }]
]
], ],
/* 默认启停用 */ /* 默认启停用 */
...@@ -208,7 +208,54 @@ ...@@ -208,7 +208,54 @@
}, },
methods: { methods: {
jhtj(ctx){ gb(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
this.$prompt('请输入原因', '', {
confirmButtonText: '确定',
cancelButtonText: '取消',
}).then(({
value
}) => {
if (value) {
this.$post('wms/ckgl/jhtz/close/jhtzmx', {
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('wms/ckgl/jhtz/unclose/jhtzmx', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
})
} else {
this.$warning('请选中一条数据')
}
},
jhtj(ctx) {
if (ctx.singleItem && ctx.singleItem.id) { if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否继续操作, 是否继续?', '提示', { this.$confirm('是否继续操作, 是否继续?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
...@@ -228,8 +275,8 @@ ...@@ -228,8 +275,8 @@
this.$warning('请选中一条数据') this.$warning('请选中一条数据')
} }
}, },
getRow(val){ getRow(val) {
this.$emit('getRow',val) this.$emit('getRow', val)
} }
}, },
components: { components: {
......
<template> <template>
<BasePage :copy='false' addRename='新增' @getRow='getRow' class="min_full" style="height: 100%;" :config="config"> <BasePage :copy='false' addRename='新增' @getRow='getRow' class="min_full" style="height: 100%;" :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
...@@ -7,7 +6,9 @@ ...@@ -7,7 +6,9 @@
<template #toolbar="ctx"> <template #toolbar="ctx">
<el-button @click="tjkw(ctx.basePage)" size='mini' type="primary">推荐库位</el-button> <el-button @click="tjkw(ctx.basePage)" size='mini' type="primary">推荐库位</el-button>
<el-button @click="qktjkw(ctx.basePage)" size='mini' type="primary">清空推荐库位</el-button> <el-button @click="qktjkw(ctx.basePage)" size='mini' type="primary">清空推荐库位</el-button>
<!-- <ImportButton @success="()=>{ <el-button @click="gb(ctx.basePage)" size='mini' type="primary">关闭</el-button>
<el-button @click="qxgb(ctx.basePage)" size='mini' type="primary">取消关闭</el-button>
<!-- <ImportButton @success="()=>{
ctx.basePage.refresh() ctx.basePage.refresh()
}" :url="'/wms/rkgl/rktz/import'" /> --> }" :url="'/wms/rkgl/rktz/import'" /> -->
</template> </template>
...@@ -169,7 +170,8 @@ ...@@ -169,7 +170,8 @@
],[ ],
[
{ {
label: '上架人', label: '上架人',
...@@ -187,48 +189,95 @@ ...@@ -187,48 +189,95 @@
}, },
methods: { methods: {
qktjkw(ctx){ gb(ctx) {
if(ctx.singleItem&&ctx.singleItem.id){ if (ctx.singleItem && ctx.singleItem.id) {
this.$prompt('请输入原因', '', {
confirmButtonText: '确定',
cancelButtonText: '取消',
}).then(({
value
}) => {
if (value) {
this.$post('wms/rkgl/sjtz/close/sjtzmx', {
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('wms/rkgl/sjtz/unclose/sjtzmx', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
})
} else {
this.$warning('请选中一条数据')
}
},
qktjkw(ctx) {
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/sjtz/cleanKw ',{ this.$post('lxyl/rkgl/sjtz/cleanKw ', {
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{ } else {
this.$warning('请选中一条数据') this.$warning('请选中一条数据')
} }
}, },
tjkw(ctx){ tjkw(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/sjtz/calcKw',{ this.$post('lxyl/rkgl/sjtz/calcKw', {
id:ctx.singleItem.id id: ctx.singleItem.id
}).then(res=>{ }).then(res => {
if(res.success){ if (res.success) {
this.$success('操作成功') this.$success('操作成功')
this.$emit('sxmx') this.$emit('sxmx')
} }
}) })
}) })
}else{ } else {
this.$warning('请选择一条数据') this.$warning('请选择一条数据')
} }
}, },
getRow(val){ getRow(val) {
this.$emit('getRow',val) this.$emit('getRow', val)
} }
}, },
components: { components: {
......
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
field: "lydid", field: "lydid",
width: 200, width: 200,
formatter(a, b, c) { formatter(a, b, c) {
return a.kccjCode || a.ukcyhdCode return a.lydid||a.kccjCode || a.ukcyhdCode
} }
}, },
{ {
......
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