Commit 383e959f authored by 李苏's avatar 李苏 💬

基础数据部分功能

parent 65b56907
...@@ -40,7 +40,7 @@ export const powerRoutes=[ ...@@ -40,7 +40,7 @@ export const powerRoutes=[
icon: "fa-cog", icon: "fa-cog",
noCache: false, noCache: false,
link: null, link: null,
mkid: 'test' mkid: '901010000'
}, },
children:[ children:[
{ {
...@@ -51,9 +51,8 @@ export const powerRoutes=[ ...@@ -51,9 +51,8 @@ export const powerRoutes=[
"icon": "", "icon": "",
"noCache": false, "noCache": false,
"link": null, "link": null,
"mkid": 'test', "mkid": '901001000',
}, },
name: 'case', name: 'case',
path: "case", path: "case",
}, },
...@@ -65,7 +64,7 @@ export const powerRoutes=[ ...@@ -65,7 +64,7 @@ export const powerRoutes=[
"icon": "", "icon": "",
"noCache": false, "noCache": false,
"link": null, "link": null,
"mkid": 'test', "mkid": '901010100',
}, },
name: 'thing', name: 'thing',
...@@ -79,7 +78,7 @@ export const powerRoutes=[ ...@@ -79,7 +78,7 @@ export const powerRoutes=[
"icon": "", "icon": "",
"noCache": false, "noCache": false,
"link": null, "link": null,
"mkid": 'test', "mkid": '901010200',
}, },
name: 'store', name: 'store',
...@@ -100,7 +99,65 @@ export const powerRoutes=[ ...@@ -100,7 +99,65 @@ export const powerRoutes=[
path: "3d", path: "3d",
} }
] ]
} },
/* 入库管理 */
{
path: '/warehousing',
component: 'Layout',
hidden: false,
alwaysShow: true,
redirect: 'case',
meta: {
title: "入库管理",
icon: "fa-cog",
noCache: false,
link: null,
mkid: '901020000'
},
children:[
{
component: 'warehousing/detain/index',
hidden: false,
meta: {
"title": "扣押",
"icon": "",
"noCache": false,
"link": null,
"mkid": '901021000',
},
name: 'detain',
path: "detain",
},
{
component: 'warehousing/save/index',
hidden: false,
meta: {
"title": "先行登记保存",
"icon": "",
"noCache": false,
"link": null,
"mkid": '901020100',
},
name: 'save ',
path: "save ",
},
{
component: 'warehousing/freeze/index',
hidden: false,
meta: {
"title": "冻结",
"icon": "",
"noCache": false,
"link": null,
"mkid": '901020200',
},
name: 'freeze',
path: "freeze",
},
]
},
] ]
// 公共路由 // 公共路由
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
prop: 'ajbm', prop: 'ajbm',
span: 12, span: 12,
type: 'input', type: 'input',
required:true,
}, },
{ {
label: '案件名称', label: '案件名称',
...@@ -35,13 +36,33 @@ ...@@ -35,13 +36,33 @@
label: '案件类型', label: '案件类型',
prop: 'ajlx', prop: 'ajlx',
span: 24, span: 24,
type: 'input' type: 'RelSelect',
required:true,
typeConfig:{
optionsData:[
{
name:'行政案件',
id:0
},
{
name:'刑事案件',
id:1
}
]
}
}, },
{ {
label: '办案单位', label: '办案单位',
prop: 'badw', prop: 'badw',
span: 24, span: 24,
type: 'input' type: 'RelSelect',
"typeConfig": {
"src": "kzzx/bm/query",
"match": {
"value": "bmid",
"label": "bmmc"
}
}
}, },
{ {
label: '办案人员', label: '办案人员',
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<AttachFileButton :app='ctx.basePage'></AttachFileButton>
<el-button @click="tz(ctx.basePage)" size='mini' type="primary">调整状态</el-button> <el-button @click="tz(ctx.basePage)" size='mini' type="primary">调整状态</el-button>
</template> </template>
...@@ -30,12 +31,30 @@ ...@@ -30,12 +31,30 @@
{ {
title: "案件名称", title: "案件名称",
field: "ajmc", field: "ajmc",
width: 140 width: 140,
},
{
title: "案件类型",
field: "ajlx",
width: 140,
formatter(a,b,c){
let map={
0:'行政案件',
1:'刑事案件'
}
let value=map[c]||'未知'
return value
}
}, },
{ {
title: "办案单位", title: "办案单位",
field: "badw", field: "badw",
width: 140 width: 140,
"transform": {
"url": "kzzx/bm/query",
"label": "bmmc",
"value": "bmid"
}
}, },
{ {
title: "办案人员", title: "办案人员",
...@@ -45,7 +64,15 @@ ...@@ -45,7 +64,15 @@
{ {
title: "案件状态", title: "案件状态",
field: "ajzt", field: "ajzt",
width: 140 width: 140,
formatter(a,b,c){
let map={
0:'办结',
1:'在办'
}
let value=map[c]||'未知'
return value
}
}, },
{ {
title: "维护人", title: "维护人",
...@@ -69,8 +96,14 @@ ...@@ -69,8 +96,14 @@
label: '办案单位', label: '办案单位',
prop: 'badw', prop: 'badw',
span: 4, span: 4,
type: 'input', type: 'RelSelect',
value: '' "typeConfig": {
"src": "kzzx/bm/query",
"match": {
"value": "bmid",
"label": "bmmc"
}
}
}, },
{ {
label: '办案人员', label: '办案人员',
...@@ -81,8 +114,8 @@ ...@@ -81,8 +114,8 @@
}, },
{ {
label: '维护时间', label: '维护时间',
startProp: "start", startProp: "kssj",
endProp: "end", endProp: "jssj",
span: 12, span: 12,
type: 'RelDaterangeV2', type: 'RelDaterangeV2',
startValue: new Date().getTime() - 1000 * 60 * 60 * 24 * 30, startValue: new Date().getTime() - 1000 * 60 * 60 * 24 * 30,
...@@ -98,8 +131,14 @@ ...@@ -98,8 +131,14 @@
}, },
methods: { methods: {
tz(ctx){ tz(ctx){
if(ctx.singleItem&&ctx.singleItem.id){
ctx.DialogTitle='修改状态' ctx.DialogTitle='修改状态'
ctx.showDialog=true ctx.showDialog=true
}else{
this.$warning('请选择一条数据')
}
} }
}, },
......
...@@ -2,20 +2,21 @@ ...@@ -2,20 +2,21 @@
<DefaultDialog :app='app'> <DefaultDialog :app='app'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules"> <el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20" :app="this"> <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" /> <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-row>
</el-form> </el-form>
<div slot="reFooter" class="refooter" > <div slot="reFooter" class="refooter">
<span slot="footer" class="dialog-footer" > <span slot="footer" class="dialog-footer">
<el-button @click="app.showDialog=false">取 消</el-button> <el-button @click="app.showDialog=false">取 消</el-button>
<el-button type="primary" @click="save()">保 存</el-button> <el-button type="primary" @click="save()">保 存</el-button>
</span> </span>
</div> </div>
</DefaultDialog> </DefaultDialog>
</template> </template>
<script> <script>
import {
import {
editMixin editMixin
} from 'common' } from 'common'
export default { export default {
...@@ -23,60 +24,94 @@ import { ...@@ -23,60 +24,94 @@ import {
props: { props: {
app: { app: {
type: Object, type: Object,
default: ()=>{ default: () => {
return {} return {}
} }
} }
}, },
async mounted() { async mounted() {
this.form = this.app.singleItem
}, },
data() { data() {
return { return {
readonly:false, readonly: false,
editColItemList: [ editColItemList: [{
label: '案件编码',
prop: 'ajbm',
span: 12,
type: 'input',
readonly: true,
},
{
label: '案件名称',
prop: 'ajmc',
span: 12,
type: 'input',
readonly: true,
{ },
label: '案件编码', {
prop: 'ajbm', label: '案件类型',
span: 12, prop: 'ajlx',
type: 'input', span: 12,
readonly:true, type: 'RelSelect',
}, required: true,
{ readonly: true,
label: '案件名称', typeConfig: {
prop: 'ajmc', optionsData: [{
span: 12, name: '行政案件',
type: 'input', id: 0
readonly:true, },
}, {
{ name: '刑事案件',
label: '案件类型', id: 1
prop: 'ajlx', }
span: 12, ]
type: 'input', },
readonly:true,
},
{
label: '状态',
prop: 'zt',
span: 12,
type: 'input'
}
] },
{
label: '案件状态',
prop: 'ajzt',
span: 12,
type: 'RelSelect',
required: true,
typeConfig: {
optionsData: [{
name: '办结',
id: 0
},
{
name: '在办',
id: 1
}
]
},
}
]
} }
}, },
methods: { methods: {
save(){ save() {
this.$refs['form'].validate((valid) => { this.$refs['form'].validate((valid) => {
if (valid) { if (valid) {
this.$post('jcsj/u_ajgl/update',{
master:this.form
}).then(res=>{
if(res.success){
this.$success('操作成功')
this.app.showDialog=false,
this.app.refresh()
}
})
}
})
}}) }
}
}}
} }
</script> </script>
......
...@@ -19,25 +19,60 @@ ...@@ -19,25 +19,60 @@
editColItemList: [ editColItemList: [
{ {
label: '编码', label: '仓库编码',
prop: 'code', prop: 'ckbm',
span: 12, span: 12,
type: 'input', type: 'input',
required:true, required:true,
}, },
{ {
label: '名称', label: '仓库名称',
prop: 'name', prop: 'ckmc',
span: 12, span: 12,
type: 'input', type: 'input',
required:true, required:true,
}, },
{ {
label: '备注', label: '所属部门',
prop: 'bz', prop: 'ssbm',
span: 24, span: 12,
type: 'input' type: 'RelSelect',
"typeConfig": {
"src": "kzzx/bm/query",
"match": {
"value": "bmid",
"label": "bmmc"
}
}
},
{
label: '入库前缀',
prop: 'rkqz',
span: 12,
type: 'input',
}, },
{
label: '出库前缀',
prop: 'ckqz',
span: 12,
type: 'input',
},
{
label: '仓库类型',
prop: 'cklx',
span: 12,
type: 'RelSelect',
"typeConfig": {
"src": "jcsj/u_ckwh/query/cklx",
"match": {
"value": "type",
"label": "name"
}
},
required:true,
},
] ]
} }
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template> </template>
<template #toolbar="ctx" > <template #toolbar="ctx" >
<AttachFileButton :app='ctx.basePage'></AttachFileButton>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> --> <!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
</template> </template>
...@@ -18,50 +19,61 @@ ...@@ -18,50 +19,61 @@
return{ return{
config:{ config:{
/* 基本配置*/ /* 基本配置*/
url:'jcsj/gysfl', url:'jcsj/u_ckwh',
tableTitle: [ tableTitle: [
{title: "编码", field: "code", fieldType:"upper", width: 140}, {title: "仓库编码", field: "ckbm", fieldType:"upper", width: 140},
{title: "名称", field: "name", width: 140}, {title: "仓库名称", field: "ckmc", width: 210},
{title: "停用", field: "tybz",fieldType:"tybz"}, {title: "类型", field: "cklx", width: 210,
{title: "停用日期", field: "tyrq", fieldType:"ftDate"}, "transform": {
"url": "jcsj/u_ckwh/query/cklx",
"value": "type",
"label": "name"
}
},
{title: "入库单前缀", field: "rkqz", width: 210},
{title: "出库单前缀", field: "ckqz", width: 210},
{title: "所属部门", field: "ssbm", width: 140,
"transform": {
"url": "kzzx/bm/query",
"value": "bmid",
"label": "bmmc"
}
},
{title: "维护人", field: "whr"}, {title: "维护人", field: "whr"},
{title: "维护时间", field: "whsj", fieldType:"ftDateTime"}, {title: "维护时间", field: "whsj", fieldType:"ftDateTime"},
], ],
queryParams:[[ queryParams:[[
{ {
label: '编码', "label": "仓库类型",
prop: 'code', "prop": "cklx",
span: 6, "span": 6,
type: 'input', "type": "RelSelect",
value:'' "value": "",
}, "typeConfig": {
{ "src": "jcsj/u_ckwh/query/cklx",
label: '名称', "match": {
prop: 'name', "value": "type",
span: 6, "label": "name"
type: 'input', }
value:'' }
} },
{
label: '申报部门',
prop: 'ssbm',
span: 6,
type: 'RelSelect',
"typeConfig": {
"src": "kzzx/bm/query",
"match": {
"value": "bmid",
"label": "bmmc"
}
}
},
]], ]],
/* 默认启停用 */ showqt:true
showqt:true,
// qtUrl:'',
/* 树的支持*/
// hasTree:false,
// treeTitle:'',
// treeDefaultProps: {
// children: 'children',
// label: 'name',
// fatherId: 'pid',
// sonId: 'id',
// rootName: "全部",
// rootId:'root'
// },
// treeQueryParams:{
// },
// treeUrl:''
} }
} }
......
<template> <template>
<RelDialog width="50%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'> <RelDialog ref="dialog" width="50%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules"> <el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20" :app="this"> <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" /> <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" />
...@@ -14,29 +14,65 @@ ...@@ -14,29 +14,65 @@
} from 'common' } from 'common'
export default { export default {
mixins: [editMixin], mixins: [editMixin],
mounted() {
if(this.app.CASE&&this.app.CASE.id){
this.form.ajid=this.app.CASE.id
}else{
this.$warning('请选择案件后操作')
this.$refs.dialog.closeAll()
}
},
data() { data() {
return { return {
editColItemList: [ editColItemList: [
{ {
label: '编码', label: '案件编码',
prop: 'code', prop: 'ajbm',
span: 12, span: 12,
type: 'input', type: 'input',
required:true, required:true,
readonly:true,
value:this.app.CASE.ajbm
}, },
{ {
label: '名称', label: '案件名称',
prop: 'name', prop: 'ajmc',
span: 12, span: 12,
type: 'input', type: 'input',
required:true, required:true,
readonly:true,
value:this.app.CASE.ajmc
},
{
label: '物品编码',
prop: 'wpbm',
span: 12,
type: 'input',
},
{
label: '物品名称',
prop: 'wpmc',
span: 12,
type: 'input',
}, },
{ {
label: '备注', label: '物品特征',
prop: 'bz', prop: 'wptz',
span: 24, span: 24,
type: 'input' type: 'input',
},
{
label: '物品持有人',
prop: 'wpcyr',
span: 12,
type: 'input',
},
{
label: '物品数量',
prop: 'count',
span: 12,
type: 'inputNumber',
}, },
] ]
......
<template> <template>
<BasePage :autoQuery="false" class="min_full" :config="config"> <BasePage :autoQuery="false" ref="BasePage" class="min_full" :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template> </template>
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</template> </template>
<template #tablePagerLeft="ctx"> <template #tablePagerLeft="ctx">
<div class="tablePagerLeft"> <div class="tablePagerLeft">
<TablePager :ref="'TablePager'" :operateButtons='false' :app='app'> <TablePager @getRow='getRow' :ref="'TablePager'" :operateButtons='false' :app='app'>
</TablePager> </TablePager>
</div> </div>
...@@ -25,6 +25,12 @@ ...@@ -25,6 +25,12 @@
} from 'common' } from 'common'
export default { export default {
mixins: [tableMixin], mixins: [tableMixin],
mounted() {
/* 初始化*/
this.$refs.TablePager.pageQuery({
setFirstCurrent:true
})
},
data() { data() {
return { return {
app: this, app: this,
...@@ -41,7 +47,7 @@ ...@@ -41,7 +47,7 @@
], ],
config: { config: {
/* 基本配置*/ /* 基本配置*/
url: 'jcsj/gysfl', url: 'jcsj/u_wpgl',
tableTitle: [{ tableTitle: [{
title: "案件编码", title: "案件编码",
field: "code", field: "code",
...@@ -118,6 +124,13 @@ ...@@ -118,6 +124,13 @@
}, },
methods: { methods: {
getRow(e){
this.rowItem = e
this.$refs.BasePage.queryParams.ajid=e.id
/* 单独村春数据*/
this.$refs.BasePage.CASE=e
this.$refs.BasePage.refresh()
},
/* 示例*/ /* 示例*/
query:function(params){ query:function(params){
return this.$post('jcsj/u_ajgl/query',params) return this.$post('jcsj/u_ajgl/query',params)
......
<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 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 {
config: {
/* 基本配置*/
url: 'rkgl/u_ky',
tableTitle: [{
title: "入库单号",
field: "rkdh",
fieldType: "upper",
width: 140
},
{
title: "入库日期",
field: "rkrq",
fieldType: "ftDate"
},
{
title: "扣押日期至",
field: "kyrqz",
fieldType: "ftDate"
},
{
title: "仓库",
field: "ck",
width: 140
},
{
title: "事务类型",
field: "swlx",
width: 140
},
{
title: "扣押方式",
field: "swlx",
width: 140
},
{
title: "部门",
field: "bm",
width: 140
},
{
title: "第三方保存",
field: "dsfbc",
width: 140
},
{
title: "第三方名称",
field: "dsfmc",
width: 140
},
{
title: "第三方库地点",
field: "dsfkdd",
width: 140
},
{
title: "经手人",
field: "jsr",
width: 140
},
{
title: "备注",
field: "bz"
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
},
],
queryParams: [
[{
label: '编码',
prop: 'code',
span: 6,
type: 'input',
value: ''
},
{
label: '名称',
prop: 'name',
span: 6,
type: 'input',
value: ''
}
]
],
/* 默认启停用 */
showqt: true,
// qtUrl:'',
/* 树的支持*/
// hasTree:false,
// treeTitle:'',
// treeDefaultProps: {
// children: 'children',
// label: 'name',
// fatherId: 'pid',
// sonId: 'id',
// rootName: "全部",
// rootId:'root'
// },
// treeQueryParams:{
// },
// treeUrl:''
}
}
},
methods: {
/* 示例*/
// demo(basePage){
// }
},
components: {
Edit
}
}
</script>
<style>
</style>
\ No newline at end of file
<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 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{
config:{
/* 基本配置*/
url:'jcsj/gysfl',
tableTitle: [
{title: "编码", field: "code", fieldType:"upper", width: 140},
{title: "名称", field: "name", width: 140},
{title: "停用", field: "tybz",fieldType:"tybz"},
{title: "停用日期", field: "tyrq", fieldType:"ftDate"},
{title: "维护人", field: "whr"},
{title: "维护时间", field: "whsj", fieldType:"ftDateTime"},
],
queryParams:[[
{
label: '编码',
prop: 'code',
span: 6,
type: 'input',
value:''
},
{
label: '名称',
prop: 'name',
span: 6,
type: 'input',
value:''
}
]],
/* 默认启停用 */
showqt:true,
// qtUrl:'',
/* 树的支持*/
// hasTree:false,
// treeTitle:'',
// treeDefaultProps: {
// children: 'children',
// label: 'name',
// fatherId: 'pid',
// sonId: 'id',
// rootName: "全部",
// rootId:'root'
// },
// treeQueryParams:{
// },
// treeUrl:''
}
}
},
methods: {
/* 示例*/
// demo(basePage){
// }
},
components:{
Edit
}
}
</script>
<style>
</style>
<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 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{
config:{
/* 基本配置*/
url:'jcsj/gysfl',
tableTitle: [
{title: "编码", field: "code", fieldType:"upper", width: 140},
{title: "名称", field: "name", width: 140},
{title: "停用", field: "tybz",fieldType:"tybz"},
{title: "停用日期", field: "tyrq", fieldType:"ftDate"},
{title: "维护人", field: "whr"},
{title: "维护时间", field: "whsj", fieldType:"ftDateTime"},
],
queryParams:[[
{
label: '编码',
prop: 'code',
span: 6,
type: 'input',
value:''
},
{
label: '名称',
prop: 'name',
span: 6,
type: 'input',
value:''
}
]],
/* 默认启停用 */
showqt:true,
// qtUrl:'',
/* 树的支持*/
// hasTree:false,
// treeTitle:'',
// treeDefaultProps: {
// children: 'children',
// label: 'name',
// fatherId: 'pid',
// sonId: 'id',
// rootName: "全部",
// rootId:'root'
// },
// treeQueryParams:{
// },
// treeUrl:''
}
}
},
methods: {
/* 示例*/
// demo(basePage){
// }
},
components:{
Edit
}
}
</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