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

关闭取消关闭

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