Commit 6551b208 authored by 周毅's avatar 周毅

退货单增加明细关闭

parent 26740d56
......@@ -99,17 +99,6 @@
field: "zlh",
width: 180,
},
// {
// title: "已出数量",
// field: "ycsl",
// width: 100,
// },
// {
// title: "过账数量",
// field: "gzsl",
// width: 100,
// },
{
title: "来源单号",
field: "lydjid",
......@@ -118,7 +107,7 @@
{
title: "关闭人",
field: "gbr",
width: 120,
width: 80,
},
{
title: "关闭原因",
......
......@@ -73,7 +73,17 @@
title: "装包数量",
field: "zbsl",
fieldType:"float"
}
},
{
title: "创建人",
field: "cjr",
fieldType: "ftString"
},
{
title: "创建时间",
field: "cjsj",
fieldType: "ftDateTime"
},
],
queryParams: [],
......
......@@ -5,7 +5,7 @@
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<!-- 嵌入默认页面额外弹框的插槽 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>
......@@ -125,7 +125,7 @@
{
title: "关闭人",
field: "gbr",
width: 120,
width: 80,
},
{
title: "关闭原因",
......@@ -159,7 +159,7 @@
value
}) => {
if (value) {
this.$post('lxyl/rkgl/rkdgb/close/rktzmx', {
this.$post('lxyl/rkgl/rktz/close/rktzmx', {
id: ctx.singleItem.id,
gbyy:value
}).then(res => {
......@@ -184,12 +184,8 @@
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('lxyl/rkgl/rkdgb/batchUnClose/rktzmx', {
datas:[
{
id: ctx.singleItem.id
}
]
this.$post('lxyl/rkgl/rktz/unclose/rktzmx', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
......
......@@ -5,7 +5,8 @@
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<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>
</BasePage>
......@@ -74,26 +75,6 @@
field: "jldwName",
width: 100,
},
// {
// title: "应收数量",
// field: "yssl",
// width: 100,
// },
// {
// title: "码盘数量",
// field: "ztsl",
// width: 120,
// },
// {
// title: "包装数量",
// field: "bzsl",
// width: 120,
// },
// {
// title: "入库数量",
// field: "rksl",
// width: 100,
// },
{
title: "数量",
field: "yssl",
......@@ -104,6 +85,11 @@
field: "zbsl",
fieldType:"float"
},
{
title: "上架数量",
field: "sjsl",
fieldType:"float"
},
{
title: "入库数量",
field: "rksl",
......@@ -114,22 +100,21 @@
field: "zlh",
width: 180,
},
// {
// title: "关闭人",
// field: "gbr",
// width: 120,
// },
// {
// title: "关闭原因",
// field: "gbyy",
// width: 200,
// },
// {
// title: "关闭时间",
// field: "gbsj",
// fieldType: 'ftDateTime'
// },
{
title: "关闭人",
field: "gbr",
width: 80,
},
{
title: "关闭原因",
field: "gbyy",
width: 200,
},
{
title: "关闭时间",
field: "gbsj",
fieldType: 'ftDateTime'
},
{
title: "备注",
field: "bz",
......@@ -143,6 +128,54 @@
},
methods: {
gb(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
this.$prompt('请输入原因', '', {
confirmButtonText: '确定',
cancelButtonText: '取消',
}).then(({
value
}) => {
if (value) {
this.$post('lxyl/rkgl/ckthtz/close/rktzmx', {
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/rkgl/ckthtz/unclose/rktzmx', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
})
} else {
this.$warning('请选中一条数据')
}
},
getRow(val) {
this.$emit('getRow', val)
},
......
......@@ -6,7 +6,8 @@
</template>
<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>
</BasePage>
......@@ -42,7 +43,18 @@
/* 基本配置*/
url: 'lxyl/rkgl/rkthtz/query/detail',
queryUrl: 'lxyl/rkgl/rkthtz/query/detail',
tableTitle: [{
tableTitle: [
{
title: "状态",
field: "zt",
width: 100,
"transform": {
"url": "lxyl/rkgl/rkthtz/init/zt",
"label": "name",
"value": "id"
}
},
{
title: "物料编码",
field: "wlxxCode",
fieldType: "upper",
......@@ -72,7 +84,7 @@
{
title: "数量",
field: "yfsl",
width: 100,
fieldType:"float"
},
{
title: "拣货数量",
......@@ -85,35 +97,20 @@
fieldType:"float"
},
{
title: "状态",
field: "zt",
width: 100,
"transform": {
"url": "lxyl/rkgl/rkthtz/init/zt",
"label": "name",
"value": "id"
}
title: "关闭人",
field: "gbr",
width: 80,
},
{
title: "关闭原因",
field: "gbyy",
width: 200,
},
{
title: "关闭时间",
field: "gbsj",
fieldType: 'ftDateTime'
},
// {
// title: "来源单号",
// field: "lydjid",
// width: 120,
// },
// {
// title: "关闭人",
// field: "gbr",
// width: 120,
// },
// {
// title: "关闭原因",
// field: "gbyy",
// width: 200,
// },
// {
// title: "关闭时间",
// field: "gbsj",
// fieldType: 'ftDateTime'
// },
{
title: "备注",
field: "bz",
......@@ -127,6 +124,54 @@
},
methods: {
gb(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
this.$prompt('请输入原因', '', {
confirmButtonText: '确定',
cancelButtonText: '取消',
}).then(({
value
}) => {
if (value) {
this.$post('lxyl/rkgl/rkthtz/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/rkgl/rkthtz/unclose/cktzmx', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
})
} else {
this.$warning('请选中一条数据')
}
},
getRow(val) {
this.$emit('getRow', val)
},
......
......@@ -19,7 +19,10 @@
<script>
// import Edit from './edit.vue'
import Add from './add.vue'
import wlsx from 'common/src/mixin/wlsx.js'
import wlphsx from 'common/src/mixin/wlphsx.js'
export default {
mixins: [wlsx, wlphsx],
data() {
return {
power: {
......@@ -219,7 +222,7 @@
},
{
label: '来源单号',
prop: 'lydCode',
prop: 'lydjDjid',
span: 6,
type: 'input',
value: ''
......
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