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

关闭取消关闭

parent 01dfba71
<template>
<BasePage @getRow='getRow' :power='power' class="min_full" style="height: 100%;" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<el-button @click="jhtj(ctx.basePage)" size='mini' type="primary">拣货推荐</el-button>
<!-- <ImportButton @success="()=>{
<BasePage @getRow='getRow' :power='power' class="min_full" style="height: 100%;" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</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'" /> -->
</template>
</template>
</BasePage>
</BasePage>
</template>
<script>
import Edit from './edit.vue'
export default {
data() {
return {
power: {
add: true,
copy: false,
/* 手动控制删除 */
delButton: true,
/* 手动控制编辑按钮权限 */
editButton: true,
/* 是否渲染右侧操作按钮 */
operateButtons: true,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
},
config: {
queryDetail: true,
/* 基本配置*/
url: 'wms/ckgl/jhtz',
tableTitle: [
import Edit from './edit.vue'
export default {
data() {
return {
power: {
add: true,
copy: false,
/* 手动控制删除 */
delButton: true,
/* 手动控制编辑按钮权限 */
editButton: true,
/* 是否渲染右侧操作按钮 */
operateButtons: true,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
},
config: {
queryDetail: true,
/* 基本配置*/
url: 'wms/ckgl/jhtz',
tableTitle: [{
title: "状态",
field: "zt",
fieldType: "ftString",
align: 'center',
width: 80,
"transform": {
"url": "wms/ckgl/jhtz/init/zt",
"label": "name",
"value": "id"
}
},
{
title: "状态",
field: "zt",
fieldType: "ftString",
align: 'center',
width: 80,
"transform": {
"url": "wms/ckgl/jhtz/init/zt",
"label": "name",
"value": "id"
}
},
{
title: "拣货单号",
field: "djid",
width: 140
},
{
title: "业务日期",
field: "ywrq",
fieldType: 'ftDate'
},
title: "拣货单号",
field: "djid",
width: 140
},
{
title: "仓库编码",
field: "ckCode",
width: 140
title: "业务日期",
field: "ywrq",
fieldType: 'ftDate'
},
{
title: "仓库",
field: "ckName",
width: 140
title: "仓库编码",
field: "ckCode",
width: 140
},
{
title: "库区",
field: "kqName",
width: 140
title: "仓库",
field: "ckName",
width: 140
},
{
title: "事务类型",
field: "swlxName",
width: 100
title: "库区",
field: "kqName",
width: 140
},
{
title: "货主",
field: "hzName",
width: 140
title: "事务类型",
field: "swlxName",
width: 100
},
{
title: "货主",
field: "hzName",
width: 140
},
{
title: "拣货人",
field: "jhrName",
width: 140
},
{
title: "拣货人",
field: "jhrName",
width: 140
},
{
title: "单据来源",
field: "djly",
width: 140,
"transform": {
"url": "wms/ckgl/jhtz/init/djly",
"label": "name",
"value": "id"
"url": "wms/ckgl/jhtz/init/djly",
"label": "name",
"value": "id"
}
},
{
......@@ -106,137 +107,183 @@
width: 140
},
{
title: "备注",
field: "bz",
width: 240
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: 'ftDateTime'
}
],
queryParams: [
[{
label: '日期',
startProp: "start",
endProp: "end",
span: 8,
type: 'RelDaterangeV2',
startValue: new Date().getTime()-1000*60*60*24*30,
endValue:new Date().getTime(),
},
{
"label": "仓库",
"prop": "ckid",
"span": 8,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "jcsj/common/ck/queryCkid",
"match": {
"value": "id",
"label": "name"
}
}
},
{
title: "备注",
field: "bz",
width: 240
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: 'ftDateTime'
}
],
queryParams: [
[{
label: '日期',
startProp: "start",
endProp: "end",
span: 8,
type: 'RelDaterangeV2',
startValue: new Date().getTime() - 1000 * 60 * 60 * 24 * 30,
endValue: new Date().getTime(),
},
{
"label": "库区",
"prop": "kqid",
"span": 8,
"type": "RelSelect",
"value": "",
"typeConfig": {
linkParams:['ckid'],
linkage:true,
"src": "wms/jcsj/kq/query",
"match": {
"value": "id",
"label": "name"
}
}
"label": "仓库",
"prop": "ckid",
"span": 8,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "jcsj/common/ck/queryCkid",
"match": {
"value": "id",
"label": "name"
}
}
},
{
"label": "库区",
"prop": "kqid",
"span": 8,
"type": "RelSelect",
"value": "",
"typeConfig": {
linkParams: ['ckid'],
linkage: true,
"src": "wms/jcsj/kq/query",
"match": {
"value": "id",
"label": "name"
}
}
},
],[
{
label: '单据编号',
prop: 'djid',
span: 8,
type: 'input',
value: ''
],
[{
label: '单据编号',
prop: 'djid',
span: 8,
type: 'input',
value: ''
},
{
label: '货主',
prop: 'hzInfo',
span: 8,
type: 'input',
value: ''
label: '货主',
prop: 'hzInfo',
span: 8,
type: 'input',
value: ''
},
{
label: '状态',
prop: 'zt',
span: 8,
type: 'RelSelect',
typeConfig: {
src: 'wms/ckgl/jhtz/init/zt'
}
},
],[
{
label: '事务类型',
prop: 'swlxid',
label: '状态',
prop: 'zt',
span: 8,
type: 'RelSelect',
typeConfig: {
src: 'lxyl/rkgl/jhtz/init/swlx'
src: 'wms/ckgl/jhtz/init/zt'
}
},
],
[{
label: '事务类型',
prop: 'swlxid',
span: 8,
type: 'RelSelect',
typeConfig: {
src: 'lxyl/rkgl/jhtz/init/swlx'
}
]
],
/* 默认启停用 */
}]
],
/* 默认启停用 */
}
}
}
}
},
methods: {
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('请输入关闭原因')
}
})
},
methods: {
jhtj(ctx){
if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否继续操作, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('lxyl/rkgl/jhtz/calcJhtzqd ', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.onlyRefresh()
}
})
})
} 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: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('lxyl/rkgl/jhtz/calcJhtzqd ', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.onlyRefresh()
}
})
})
} else {
this.$warning('请选中一条数据')
}
},
getRow(val){
this.$emit('getRow',val)
getRow(val) {
this.$emit('getRow', val)
}
},
components: {
Edit
}
},
components: {
Edit
}
}
}
</script>
<style>
......
<template>
<BasePage :copy='false' addRename='新增' @getRow='getRow' class="min_full" style="height: 100%;" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<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="()=>{
<BasePage :copy='false' addRename='新增' @getRow='getRow' class="min_full" style="height: 100%;" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<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>
<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>
</template>
</BasePage>
</BasePage>
</template>
<script>
import Edit from './edit.vue'
export default {
data() {
return {
config: {
queryDetail: true,
/* 基本配置*/
url: 'lxyl/rkgl/sjtz',
tableTitle: [{
title: "上架单号",
field: "djid",
fieldType: "ftString",
width: 120
},
{
title: "业务日期",
field: "ywrq",
fieldType: "ftDate"
},
{
title: "仓库编码",
field: "ckCode",
width: 140
},
{
title: "仓库",
field: "ckName",
fieldType: "ftString",
width: 140,
},
{
title: "库区",
field: "kqName",
fieldType: "ftString",
width: 100,
},
import Edit from './edit.vue'
export default {
data() {
return {
config: {
queryDetail: true,
/* 基本配置*/
url: 'lxyl/rkgl/sjtz',
tableTitle: [{
title: "上架单号",
field: "djid",
fieldType: "ftString",
width: 120
},
{
title: "业务日期",
field: "ywrq",
fieldType: "ftDate"
},
{
title: "仓库编码",
field: "ckCode",
width: 140
},
{
title: "仓库",
field: "ckName",
fieldType: "ftString",
width: 140,
},
{
title: "库区",
field: "kqName",
fieldType: "ftString",
width: 100,
},
// {
// title: "库位",
// field: "kwName",
// fieldType: "ftString",
// width: 192,
// },
{
title: "事务类型",
field: "swlxName",
fieldType: "ftString",
width: 100,
},
{
title: "部门",
field: "bmName",
fieldType: "ftString",
width: 100
},
{
title: "上架人",
field: "sjrName",
fieldType: "ftString",
width: 100
},
{
title: "事务类型",
field: "swlxName",
fieldType: "ftString",
width: 100,
},
{
title: "部门",
field: "bmName",
fieldType: "ftString",
width: 100
},
{
title: "上架人",
field: "sjrName",
fieldType: "ftString",
width: 100
},
{
title: "货主",
field: "hzName",
fieldType: "ftString",
width: 100
},
{
title: "单据来源",
field: "djly",
"transform": {
"url": "wms/rkgl/sjtz/init/djly",
"label": "name",
"value": "id"
},
width: 80
},
{
title: "单据来源",
field: "djly",
"transform": {
"url": "wms/rkgl/sjtz/init/djly",
"label": "name",
"value": "id"
},
width: 80
},
{
title: "来源单号",
field: "rktzDjid",
width: 140
},
{
title: "来源单据号",
field: "lydjDjid",
width: 140
},
{
title: "状态",
field: "zt",
"transform": {
"url": "wms/rkgl/sjtz/init/zt",
"label": "name",
"value": "id"
},
{
title: "来源单据号",
field: "lydjDjid",
width: 140
},
{
title: "状态",
field: "zt",
"transform": {
"url": "wms/rkgl/sjtz/init/zt",
"label": "name",
"value": "id"
},
width: 60
},
{
title: "备注",
field: "bz",
fieldType: "ftString",
width: 300
},
{
title: "维护人",
field: "whr",
fieldType: "ftString"
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime",
hidden: true
},
{
title: "创建人",
field: "cjr",
fieldType: "ftString"
},
{
title: "创建时间",
field: "cjsj",
fieldType: "ftDateTime",
hidden: true
},
],
queryParams: [
[{
label: '日期',
startProp: "start",
endProp: "end",
span: 8,
type: 'RelDaterangeV2',
startValue: new Date().getTime() - 1000 * 60 * 60 * 24 * 30,
endValue: new Date().getTime(),
},
{
label: '来源单号',
prop: 'lydjDjid',
span: 8,
type: 'input',
value: ''
},
{
label: '上架单号',
prop: 'djid',
span: 8,
type: 'input',
value: ''
}
width: 60
},
{
title: "备注",
field: "bz",
fieldType: "ftString",
width: 300
},
{
title: "维护人",
field: "whr",
fieldType: "ftString"
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime",
hidden: true
},
{
title: "创建人",
field: "cjr",
fieldType: "ftString"
},
{
title: "创建时间",
field: "cjsj",
fieldType: "ftDateTime",
hidden: true
},
],
queryParams: [
[{
label: '日期',
startProp: "start",
endProp: "end",
span: 8,
type: 'RelDaterangeV2',
startValue: new Date().getTime() - 1000 * 60 * 60 * 24 * 30,
endValue: new Date().getTime(),
},
{
label: '来源单号',
prop: 'lydjDjid',
span: 8,
type: 'input',
value: ''
},
{
label: '上架单号',
prop: 'djid',
span: 8,
type: 'input',
value: ''
}
],[
],
[
{
label: '上架人',
prop: 'sjrName',
span: 8,
type: 'input',
value: ''
},
]
],
/* 默认启停用 */
{
label: '上架人',
prop: 'sjrName',
span: 8,
type: 'input',
value: ''
},
]
],
/* 默认启停用 */
}
}
}
}
},
methods: {
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('请输入关闭原因')
}
})
},
methods: {
qktjkw(ctx){
if(ctx.singleItem&&ctx.singleItem.id){
} 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){
this.$success('操作成功')
ctx.refresh()
}
})
})
}else{
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('lxyl/rkgl/sjtz/cleanKw ', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
})
} else {
this.$warning('请选中一条数据')
}
},
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){
this.$success('操作成功')
this.$emit('sxmx')
}
})
})
}else{
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) {
this.$success('操作成功')
this.$emit('sxmx')
}
})
})
} else {
this.$warning('请选择一条数据')
}
},
getRow(val){
this.$emit('getRow',val)
getRow(val) {
this.$emit('getRow', val)
}
},
components: {
Edit
}
},
components: {
Edit
}
}
}
</script>
<style>
......
......@@ -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