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

路由调整 sidebar显示调整

parent a2f505a6
...@@ -87,9 +87,9 @@ export default { ...@@ -87,9 +87,9 @@ export default {
}) })
// When there is only one child router, the child router is displayed by default // When there is only one child router, the child router is displayed by default
if (showingChildren.length === 1) { // if (showingChildren.length === 1) {
return true // return true
} // }
// Show parent if there are no child router to display // Show parent if there are no child router to display
if (showingChildren.length === 0) { if (showingChildren.length === 0) {
......
...@@ -988,7 +988,7 @@ export const powerRoutes = [ ...@@ -988,7 +988,7 @@ export const powerRoutes = [
"icon": "", "icon": "",
"noCache": false, "noCache": false,
"link": null, "link": null,
"mkid": 920090100, "mkid": 920070701,
}, },
name: 'pdd', name: 'pdd',
path: "pdd", path: "pdd",
......
<template> <template>
<BasePage @getRow='getRow' class="min_full" style="height: 100%;" :config="config"> <BasePage @getRow='getRow' class="min_full" style="height: 100%;" :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Shd v-if="ctx.basePage.showDialog" :app='ctx.basePage' /> <Shd v-if="ctx.basePage.showDialog" :app='ctx.basePage' />
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<el-button @click="wc(ctx.basePage)" size='mini' type="primary">完成</el-button>
<ImportButton @success="()=>{ <el-button @click="qxwc(ctx.basePage)" size='mini' type="primary" style="margin-right: 10px;">取消完成</el-button>
<ImportButton @success="()=>{
ctx.basePage.refresh() ctx.basePage.refresh()
}" :url="'/wms/rkgl/cskc/import'" /> }" :url="'/wms/rkgl/cskc/import'" />
<!-- <el-button @click="qktjkw(ctx.basePage)" size='mini' type="primary">清空推荐库位</el-button> --> <!-- <el-button @click="qktjkw(ctx.basePage)" size='mini' type="primary">清空推荐库位</el-button> -->
</template>
</template>
</BasePage> </BasePage>
</template> </template>
<script> <script>
import Edit from './edit.vue' import Edit from './edit.vue'
import Shd from './shd.vue' import Shd from './shd.vue'
export default { export default {
data() { data() {
return { return {
config: { config: {
queryDetailAllUrl:'wms/rkgl/cskc/query/rkqd', queryDetailAllUrl: 'wms/rkgl/cskc/query/rkqd',
queryDetail: true, queryDetail: true,
/* 基本配置*/ /* 基本配置*/
url: 'wms/rkgl/cskc', url: 'wms/rkgl/cskc',
tableTitle: [{ tableTitle: [{
title: "状态", title: "状态",
field: "zt", field: "zt",
fieldType: "ftString", fieldType: "ftString",
align: 'center', align: 'center',
width: 80, width: 80,
"transform": { "transform": {
"url": "wms/rkgl/cskc/init/zt", "url": "wms/rkgl/cskc/init/zt",
"label": "name", "label": "name",
"value": "id" "value": "id"
} }
}, },
{ {
title: "入库单号", title: "入库单号",
field: "djid", field: "djid",
width: 140 width: 140
}, },
{ {
title: "业务日期", title: "业务日期",
field: "ywrq", field: "ywrq",
fieldType: 'ftDate' fieldType: 'ftDate'
}, },
{ {
title: "事务类型", title: "事务类型",
field: "swlxName", field: "swlxName",
width: 100 width: 100
}, },
{
title: "入库人",
field: "rkrName",
width: 100
},
{
title: "仓库",
field: "ckid",
width: 140,
hidden: true
},
{ {
title: "入库人", title: "仓库",
field: "rkrName", field: "ckName",
width: 100 width: 140
}, },
{
title: "仓库",
field: "ckid",
width: 140,
hidden: true
},
{
title: "仓库",
field: "ckName",
width: 140
},
{ {
title: "部门", title: "部门",
field: "bmName", field: "bmName",
width: 140 width: 140
}, },
// { // {
// title: "来源单据号", // title: "来源单据号",
// field: "lydjDjid", // field: "lydjDjid",
// width: 140 // width: 140
// }, // },
{ {
title: "备注", title: "备注",
field: "bz", field: "bz",
width: 240 width: 240
}, },
{ {
title: "维护人", title: "维护人",
field: "whr" field: "whr"
}, },
{ {
title: "维护时间", title: "维护时间",
field: "whsj", field: "whsj",
fieldType: 'ftDateTime' fieldType: 'ftDateTime'
} }
], ],
queryParams: [ queryParams: [
[{ [{
label: '日期', label: '日期',
startProp: "start", startProp: "start",
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": "仓库",
"prop": "ckid", "prop": "ckid",
"span": 8, "span": 8,
"type": "RelSelect", "type": "RelSelect",
"value": "", "value": "",
"typeConfig": { "typeConfig": {
"src": "jcsj/common/ck/queryCkid", "src": "jcsj/common/ck/queryCkid",
"match": { "match": {
"value": "id", "value": "id",
"label": "name" "label": "name"
} }
} }
}, },
{ {
label: '单据编号', label: '单据编号',
prop: 'djid', prop: 'djid',
span: 8, span: 8,
type: 'input', type: 'input',
value: '' value: ''
}, },
],[ ],
{ [{
label: '状态', label: '状态',
prop: 'zt', prop: 'zt',
span: 8, span: 8,
type: 'RelSelect', type: 'RelSelect',
typeConfig: { typeConfig: {
src: 'wms/rkgl/cskc/init/zt' src: 'wms/rkgl/cskc/init/zt'
} }
}, },
// { // {
// label: '事务类型', // label: '事务类型',
// prop: 'swlxid', // prop: 'swlxid',
...@@ -150,119 +152,166 @@ ...@@ -150,119 +152,166 @@
// } // }
// }, // },
{ {
label: '来源单号', label: '来源单号',
prop: 'lydh', prop: 'lydh',
span: 8, span: 8,
type: 'input', type: 'input',
value: '' value: ''
}
]
],
/* 默认启停用 */
}
}
},
methods: {
qxwc(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否继续该操作?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('wms/rkgl/cskc/cancelComplete', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
}
})
})
} else {
this.warning('请选中一条数据')
}
},
wc(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否继续该操作?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('wms/rkgl/cskc/complete', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refresh()
} }
] })
], })
/* 默认启停用 */
} } else {
} this.warning('请选中一条数据')
}
},
methods: {
tbshd(ctx){
ctx.DialogWidth='35vw'
ctx.DialogTitle='同步送货单'
ctx.showDialog=true
}, },
qktjkw(ctx){ tbshd(ctx) {
if(ctx.singleItem&&ctx.singleItem.id){ ctx.DialogWidth = '35vw'
ctx.DialogTitle = '同步送货单'
ctx.showDialog = true
},
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('请选中一条数据')
} }
}, },
sapgz(ctx){ sapgz(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/rktz/sap/gz',{ this.$post('lxyl/rkgl/rktz/sap/gz', {
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('请选中一条数据')
} }
}, },
getRow(val){ getRow(val) {
this.$emit('getRow',val) this.$emit('getRow', val)
}, },
qr(ctx){ qr(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/rktz/confirm',{ this.$post('lxyl/rkgl/rktz/confirm', {
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('请选中一条数据进行操作')
} }
}, },
qxqr(ctx){ qxqr(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/rktz/unconfirm',{ this.$post('lxyl/rkgl/rktz/unconfirm', {
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('请选中一条数据进行操作')
} }
} }
}, },
components: { components: {
Edit, Edit,
Shd Shd
} }
} }
</script> </script>
<style> <style>
......
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