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

退货单增加明细关闭

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