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

保养项目

parent 61297a88
......@@ -72,20 +72,17 @@ import {
},
/* 表格标题对应参数*/
tableTitle: [
// {label: "设备ID", prop: "mid", fieldType: "ftString",width:192},
// {label: "序号", prop: "xh", fieldType: "int"},
// {label: "保养项目", prop: "xmid", fieldType: "ftString",width:192},
{label: "上次保养日期", prop: "scbyrq", fieldType: "ftDateTime"},
{label: "预计下次计划日期", prop: "xcbyrq", fieldType: "ftDateTime"},
{label: "上次保养人", prop: "scbyrName", fieldType: "ftString",width:192},
{label: "保养说明", prop: "bysm", fieldType: "ftString",width:300},
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
{label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "创建人", prop: "cjr", fieldType: "ftString"},
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
// {label: "上次保养记录ID", prop: "scbyjlid", fieldType: "ftString",width:192},
// {label: "设备ID", prop: "sbid", fieldType: "ftString",width:192},
// {label: "保养项目ID", prop: "xmid", fieldType: "ftString",width:192},
{label: "保养人员", prop: "username", fieldType: "ftString",width:192},
{label: "保养时间", prop: "bysj", fieldType: "ftDateTime"},
{label: "附件数", prop: "attachcount", fieldType: "int"},
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
{label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "创建人", prop: "cjr", fieldType: "ftString"},
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
{label: "保养说明", prop: "bysm", fieldType: "ftString",width:300},
]
}
},
......
......@@ -4,18 +4,9 @@
<el-form slot="form" ref="form" :model="form" label-width="120px" :rules="rules">
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="上次保养日期" ref="scbyrq" prop="scbyrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.scbyrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="预计下次计划日期" ref="xcbyrq" prop="xcbyrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.xcbyrq" placeholder="选择日期">
<el-form-item label="保养日期" ref="bysj" prop="bysj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="datetime"
v-model="form.bysj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
......@@ -70,7 +61,7 @@ props:['app'],
/* 初始额外赋值*/
async mounted() {
this.form.xmid=this.app.rowItem.xmid
this.form.mid=this.app.queryParams.mid
this.form.sbid=this.app.queryParams.mid
},
data() {
return {
......@@ -78,14 +69,13 @@ props:['app'],
//ID
id:'',
//设备ID
mid:'',
sbid:'',
//序号
//保养项目
xmid:'',
//上次保养日期
scbyrq:new Date().getTime(),
//保养日期
bysj:new Date().getTime(),
//预计下次计划日期
xcbyrq:new Date().getTime(),
//备注
bz:'',
......@@ -102,7 +92,11 @@ props:['app'],
},
save(){
doAdd({...this.form}).then(res=>{
let params={
details:[{id:'',records:[]}],
master:{...this.form}
}
doAdd(params).then(res=>{
})
}
......
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