Commit 2b958d4c authored by 李苏's avatar 李苏 💬

新增异物录入

parent 37a49c08
......@@ -232,7 +232,9 @@ export const powerRoutes = [
},
name: 'jyfkgl',
path: "jyfkgl",
}
},
],
},
{
......@@ -263,7 +265,21 @@ export const powerRoutes = [
},
name: 'ywxxgl',
path: "ywxxgl",
}
},
{
erpComponent: false,
component: 'jyfkgl/ywsjlr/index',
hidden: false,
meta: {
"title": "异物事件录入",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920050200',
},
name: 'ywsjlr',
path: "ywsjlr",
},
],
},
{
......
<!--
* @Description:生成基础baseEdit组件,屏蔽不必要细节
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:47:46
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-14 15:52:21
* @FilePath: /zghywpc-vue/src/views/jyfkgl/ywsjlr/edit.vue
-->
<template>
<!-- prop 穿透赋值 -->
<BaseEdit v-bind="$attrs" :config='editConfig'>
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.editPage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面从表上方插槽 ctx.editPage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.editPage)" size='mini' type="primary">示例按钮</el-button> -->
<!-- <AuxButton :dynamic='true' :queryParams="{
sbxxTreeId:that.form.sbxxTreeId,
zt:'N'
}" :component='Qxsj' rename='选择缺陷数据' code='dynamic' @save="saveQxsj" /> -->
</template>
</BaseEdit>
</template>
<script>
export default {
data() {
return {
editConfig: {
/* 生成form表单 */
editColItemList: [{
label: '异物区域',
prop: 'ywqy',
span: 24,
type: 'input',
required: true,
},
{
label: '异物是否取出',
prop: 'ywsfqc',
span: 12,
type: 'checkbox',
},
{
label: '异物发生时间',
prop: 'ywfssj',
span: 12,
type: 'datetime',
},
{
"label": "检修事件",
"prop": "jxsj",
"span": 12,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "ywxxgl/uywsjlr/init/ywJxsj",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '异物产生原因',
prop: 'ywcsyy',
span: 24,
type: 'input',
},
{
"label": "异物影响后果",
"prop": "ywyxhg",
"span": 12,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "ywxxgl/uywsjlr/init/ywyxhg",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '备注',
prop: 'bz',
span: 24,
type: 'input'
},
],
/* 生成主从表,为空数组默认不展示 */
editTableTitle: [
// {
// title: "序号",
// field: "xh",
// width: 50,
// align: "center"
// },
// {
// title: "点检部位",
// field: "bw",
// width: 180,
// },
// {
// title: "点检项目",
// field: "project",
// width: 160
// },
// {
// title: "点检标准",
// field: "standard",
// width: 140
// },
],
/* 子表名,可选 同editTableTitle一起用*/
detailTable: ''
}
}
},
methods: {
/**
* @description:示例按钮
* @param {*} ctx操作edit实例内容
* @return {*}
* @author: lisu
*/
// demo(ctx){}
}
}
</script>
<style>
</style>
<!--
* @Description: 生成基础basePage组件,屏蔽不必要细节
* @Author: lisu lisu@gavelinfo.com
* @Date: 2024-09-19 10:55:27
* @LastEditors: lisu lisu@gavelinfo.com
* @LastEditTime: 2024-10-14 15:50:46
* @FilePath: /zghywpc-vue/src/views/jyfkgl/ywsjlr/index.vue
-->
<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 {
name: 'ywsjlr',
data() {
return {
config: {
/* 基本配置*/
url: 'ywxxgl/uywsjlr',
tableTitle: [{
title: "异物区域",
field: "ywqy",
width: 300
},
{
title: "异物是否取出",
field: "ywsfqc",
fieldType: "checkbox"
},
{
title: "异物发生时间",
field: "ywfssj",
fieldType: "ftDateTime"
},
{
title: "检修事件",
field: "jxsj",
width: 200,
"transform": {
"url": "ywxxgl/uywsjlr/init/ywJxsj",
"label": "name",
"value": "id"
}
},
{
title: "异物产生原因",
field: "ywcsyy",
width: 300
},
{
title: "异物影响后果",
field: "ywyxhg",
width: 200,
"transform": {
"url": "ywxxgl/uywsjlr/init/ywyxhg",
"label": "name",
"value": "id"
}
},
{
title: "备注",
field: "bz",
width: 300
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
},
],
queryParams: [
[{
label: '异物发生时间',
prop: 'ywfssj',
span: 6,
type: 'datetime',
value: ''
},
{
"label": "检修事件",
"prop": "jxsj",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "ywxxgl/uywsjlr/init/ywJxsj",
"match": {
"value": "id",
"label": "name"
}
}
},
{
"label": "影响后果",
"prop": "ywyxhg",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "ywxxgl/uywsjlr/init/ywyxhg",
"match": {
"value": "id",
"label": "name"
}
}
},
]
],
/* 默认启停用 */
}
}
},
methods: {
/**
* @description:示例按钮
* @param {*} ctx操作basePage实例内容
* @return {*}
* @author: lisu
*/
// demo(ctx){}
},
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