Commit 390e9fb8 authored by 李苏's avatar 李苏 💬

新增功能

parent 1ea4fe1b
......@@ -1023,6 +1023,19 @@ export const powerRoutes = [
name: 'sfhzcx',
path: "sfhzcx",
},
{
component: 'ccgl/cxfx/sfmxcx/index',
hidden: false,
meta: {
"title": "收发明细查询",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920190600,
},
name: 'sfmxcx',
path: "sfmxcx",
},
{
component: 'ccgl/cxfx/pcxxcx/index',
hidden: false,
......
......@@ -70,10 +70,15 @@
width: 100,
},
{
title: "应数量",
title: "应数量",
field: "yfsl",
width: 100,
},
{
title: "拣货数量",
field: "jhsl",
width: 100,
},
// {
// title: "库存数量",
// field: "kcsl",
......
......@@ -7,6 +7,13 @@
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
</template>
<template slot="tabCustom2">
<el-table-column label="操作" width="120" header-align="center" fixed="right">
<template slot-scope="scope">
<div style="cursor: pointer;color: cornflowerblue;text-align: center;width: 100px;" @click.prevent.self="ckxq(scope.row)" >查看明细</div>
</template>
</el-table-column>
</template>
</BasePage>
</template>
......@@ -236,6 +243,15 @@
},
methods: {
ckxq(row){
this.$router.push({
name:'sfmxcx',
params:{
row:row
}
})
console.log(row)
}
/* 示例*/
// demo(basePage){
......
<template>
<DefaultDialog :app='app'>
<div slot="form" style="display: flex;height: 70vh;">
DialogTitle:'新增',
showDialog:false,
</div>
<div slot="reFooter" class="refooter" >
<span slot="footer" class="dialog-footer" >
<el-button @click="app.showDialog=false">取 消</el-button>
<el-button type="primary" @click="save()">保 存</el-button>
</span>
</div>
</DefaultDialog>
</template>
<script>
export default {
props: {
app: {
type: Object,
default: ()=>{
return {}
}
}
},
async mounted() {
},
data() {
return {
}
},
methods: {
}
}
</script>
<style scoped>
</style>
<template>
<RelDialog width="50%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20" :app="this">
<EditColItem :required="item.required||false" :readonly="item.readonly?true:false " v-for="(item,index) in editColItemList " :value="item.value" :span="item.span" :label="item.label" :prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
</el-row>
</el-form>
</RelDialog>
</template>
<script>
import {
editMixin
} from 'common'
export default {
mixins: [editMixin],
data() {
return {
editColItemList: [
{
label: '编码',
prop: 'code',
span: 12,
type: 'input',
required:true,
},
{
label: '名称',
prop: 'name',
span: 12,
type: 'input',
required:true,
},
{
label: '备注',
prop: 'bz',
span: 24,
type: 'input'
},
]
}
}
}
</script>
<template>
<BasePage ref="basePage" :power='power' class="min_full" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
</template>
</BasePage>
</template>
<script>
import Edit from './edit.vue'
export default {
data() {
return {
power: {
add: false,
copy: false,
/* 手动控制删除 */
delButton: false,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
},
config: {
/* 基本配置*/
url: 'kc/wlsftz',
tableTitle: [{
title: "入出库单号",
field: "djid",
width: 130,
formatter: function(row, index, value) {
if (row.xh == 0) {
return "期初"
} else if (row.xh == 2) {
return "期末"
} else {
return value
}
}
},
{
title: "业务日期",
field: "ywrq",
fieldType: "ftDate"
},
{
title: "仓库名称",
field: "ckmc",
width: 120
},
{
title: "物料编码",
field: "wlcode",
width: 130
},
{
title: "物料名称",
field: "wlmc",
width: 160
},
{
title: "规格",
field: "gg",
width: 100
},
{
title: "批号",
field: "wlph",
width: 130
},
{
title: "库位",
field: "kwmc",
width: 120
},
{
title: "事务类型",
field: "swlxmc",
width: 100
},
{
title: "计量单位",
field: "jldwname",
width: 80,
"align": 'center'
},
{
title: "入库数量",
field: "rksl",
width: 100,
fieldType: 'float'
},
{
title: "出库数量",
field: "cksl",
width: 100,
fieldType: 'float'
},
{
title: "结存数量",
field: "jcsl",
width: 100,
fieldType: 'float'
},
{
title: "计量单位(辅)",
field: "fjldwname",
width: 120
},
{
title: "备注",
field: "bz",
width: 200
}
],
queryParams: [
[{
label: '业务日期',
startProp: "start",
endProp: "end",
span: 8,
type: 'RelDaterangeV2',
startValue: this.$moment().startOf('month').valueOf(),
endValue: this.$moment().endOf('month').valueOf(),
},
{
"label": "仓库",
"prop": "ckid",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "jcsj/common/ck/queryCkid",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '物料信息',
prop: 'wlxx',
span: 6,
type: 'input',
value: ''
}
]
],
/* 默认启停用 */
showqt: false,
// qtUrl:'',
/* 树的支持*/
// hasTree:false,
// treeTitle:'',
// treeDefaultProps: {
// children: 'children',
// label: 'name',
// fatherId: 'pid',
// sonId: 'id',
// rootName: "全部",
// rootId:'root'
// },
// treeQueryParams:{
// },
// treeUrl:''
}
}
},
methods: {
/* 示例*/
// demo(basePage){
// }
},
components: {
Edit
},
watch: {
'$route.params.row': {
handler(newValue, oldValue) {
/* 覆盖查询条件*/
if(newValue){
this.$nextTick(()=>{
this.$refs.basePage.queryParams={...this.$refs.basePage.queryParams,...newValue}
this.$refs.basePage.refresh()
})
}
},
deep: true
}
},
}
</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