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

提前检验日期/周期

parent 3a37e83f
<template> <template>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'> <RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写--> <!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules"> <el-form slot="form" ref="form" :model="form" label-width="123px" :rules="rules">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="8"> <el-col :span="8">
<el-form-item label="公司" ref="gsid" prop="gsid"> <el-form-item label="公司" ref="gsid" prop="gsid">
<!-- <el-input :readonly="readonly" v-model="form.name" ></el-input> --> <!-- <el-input :readonly="readonly" v-model="form.name" ></el-input> -->
<RelSelect :readonly="readonly" filterable style="width: 100%;" src='/jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model='form.gsid' ></RelSelect> <RelSelect :readonly="readonly" filterable style="width: 100%;" src='/jcsj/common/bm/queryGs'
</el-form-item> :match="{value:'id',label:'bmmc'}" v-model='form.gsid'></RelSelect>
</el-col> </el-form-item>
<el-col :span="8"> </el-col>
<el-form-item label="设备编号" ref="dabh" prop="dabh"> <el-col :span="8">
<el-input :readonly="readonly" v-model="form.dabh" ></el-input> <el-form-item label="设备编号" ref="dabh" prop="dabh">
</el-form-item> <el-input :readonly="readonly" v-model="form.dabh"></el-input>
</el-col> </el-form-item>
<el-col :span="8"> </el-col>
<el-form-item label="设备代码" ref="code" prop="code"> <el-col :span="8">
<el-input :readonly="readonly" v-model="form.code" ></el-input> <el-form-item label="设备代码" ref="code" prop="code">
</el-form-item> <el-input :readonly="readonly" v-model="form.code"></el-input>
</el-col> </el-form-item>
</el-row> </el-col>
<el-row :gutter="20"> </el-row>
<el-col :span="8"> <el-row :gutter="20">
<el-form-item label="设备分类" ref="flid" prop="gsid"> <el-col :span="8">
<!-- <el-input :readonly="readonly" v-model="form.name" ></el-input> --> <el-form-item label="设备分类" ref="flid" prop="gsid">
<RelSelect :readonly="readonly" filterable style="width: 100%;" src='/aqgl/sbgl/sbfl/query' :match="{value:'id',label:'name'}" v-model='form.flid' ></RelSelect> <!-- <el-input :readonly="readonly" v-model="form.name" ></el-input> -->
</el-form-item> <RelSelect :readonly="readonly" filterable style="width: 100%;" src='/aqgl/sbgl/sbfl/query'
</el-col> :match="{value:'id',label:'name'}" v-model='form.flid'></RelSelect>
<el-col :span="8"> </el-form-item>
<el-form-item label="设备名称" ref="name" prop="name"> </el-col>
<el-input :readonly="readonly" v-model="form.name" ></el-input> <el-col :span="8">
</el-form-item> <el-form-item label="设备名称" ref="name" prop="name">
</el-col> <el-input :readonly="readonly" v-model="form.name"></el-input>
<el-col :span="8"> </el-form-item>
<el-form-item label="使用地点" ref="sydd" prop="sydd"> </el-col>
<el-input :readonly="readonly" v-model="form.sydd" ></el-input> <el-col :span="8">
</el-form-item> <el-form-item label="使用地点" ref="sydd" prop="sydd">
</el-col> <el-input :readonly="readonly" v-model="form.sydd"></el-input>
</el-row> </el-form-item>
<el-row :gutter="20"> </el-col>
<el-col :span="8"> </el-row>
<el-form-item label="型号" ref="model" prop="model"> <el-row :gutter="20">
<el-input :readonly="readonly" v-model="form.model" ></el-input> <el-col :span="8">
</el-form-item> <el-form-item label="型号" ref="model" prop="model">
</el-col> <el-input :readonly="readonly" v-model="form.model"></el-input>
<el-col :span="8"> </el-form-item>
<el-form-item label="制造厂家" ref="productor" prop="productor"> </el-col>
<el-input :readonly="readonly" v-model="form.productor" ></el-input> <el-col :span="8">
</el-form-item> <el-form-item label="制造厂家" ref="productor" prop="productor">
</el-col> <el-input :readonly="readonly" v-model="form.productor"></el-input>
<el-col :span="8"> </el-form-item>
<el-form-item label="登记证编号" ref="serialno" prop="serialno"> </el-col>
<el-input :readonly="readonly" v-model="form.serialno" ></el-input> <el-col :span="8">
</el-form-item> <el-form-item label="登记证编号" ref="serialno" prop="serialno">
</el-col> <el-input :readonly="readonly" v-model="form.serialno"></el-input>
</el-row> </el-form-item>
<el-row :gutter="20"> </el-col>
<el-col :span="8"> </el-row>
<el-form-item label="制造日期" ref="ccrq" prop="ccrq"> <el-row :gutter="20">
<el-date-picker value-format="timestamp" style="width: 100%;" :readonly="readonly" type="date" <el-col :span="8">
v-model="form.ccrq" placeholder="选择日期"> <el-form-item label="制造日期" ref="ccrq" prop="ccrq">
</el-date-picker> <el-date-picker value-format="timestamp" style="width: 100%;" :readonly="readonly" type="date"
</el-form-item> v-model="form.ccrq" placeholder="选择日期">
</el-col> </el-date-picker>
<el-col :span="8"> </el-form-item>
<el-form-item label="启用日期" ref="qyrq" prop="qyrq"> </el-col>
<el-date-picker value-format="timestamp" style="width: 100%;" :readonly="readonly" type="date" <el-col :span="8">
v-model="form.qyrq" placeholder="选择日期"> <el-form-item label="启用日期" ref="qyrq" prop="qyrq">
</el-date-picker> <el-date-picker value-format="timestamp" style="width: 100%;" :readonly="readonly" type="date"
</el-form-item> v-model="form.qyrq" placeholder="选择日期">
</el-col> </el-date-picker>
<el-col :span="8"> </el-form-item>
<el-form-item label="检验日期" ref="scjyrq" prop="scjyrq"> </el-col>
<el-date-picker value-format="timestamp" style="width: 100%;" :readonly="readonly" type="date" <el-col :span="8">
v-model="form.scjyrq" placeholder="选择日期"> <el-form-item label="检验日期" ref="scjyrq" prop="scjyrq">
</el-date-picker> <el-date-picker value-format="timestamp" style="width: 100%;" :readonly="readonly" type="date"
</el-form-item> v-model="form.scjyrq" placeholder="选择日期">
</el-col> </el-date-picker>
</el-row> </el-form-item>
<el-row :gutter="20"> </el-col>
<el-col :span="8"> </el-row>
<el-form-item label="下次检验日期" ref="xcjyrq" prop="xcjyrq"> <el-row :gutter="20">
<el-date-picker value-format="timestamp" style="width: 100%;" :readonly="readonly" type="date" <el-col :span="8">
v-model="form.xcjyrq" placeholder="选择日期"> <el-form-item label="检验周期(天)" ref="jyzq" prop="jyzq">
</el-date-picker> <el-input type="number" :readonly="readonly" v-model="form.jyzq"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8">
<el-form-item label="下次检验日期" ref="xcjyrq" prop="xcjyrq">
<el-date-picker value-format="timestamp" style="width: 100%;" :readonly="true" type="date"
v-model="form.xcjyrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="检验周期(天)" ref="jyzq" prop="jyzq"> <el-form-item label="提前检验周期(天)" ref="tqjyzq" prop="tqjyzq">
<el-input type="number" :readonly="readonly" v-model="form.jyzq" ></el-input> <el-input type="number" :readonly="readonly" v-model="form.tqjyzq"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8">
<el-form-item label="使用状态" ref="syzt" prop="syzt"> <el-col :span="8">
<el-input :readonly="readonly" v-model="form.syzt" ></el-input> <el-form-item label="提前检验日期" ref="tqjyrq" prop="tqjyrq">
</el-form-item> <el-date-picker value-format="timestamp" style="width: 100%;" :readonly="true" type="date"
</el-col> v-model="form.tqjyrq" placeholder="选择日期">
</el-row> </el-date-picker>
<el-row :gutter="20"> </el-form-item>
<el-col :span="24"> </el-col>
<el-form-item label="备注" ref="bz" prop="bz">
<el-input :readonly="readonly" v-model="form.bz" ></el-input> <el-col :span="8">
</el-form-item> <el-form-item label="使用状态" ref="syzt" prop="syzt">
</el-col> <el-input :readonly="readonly" v-model="form.syzt"></el-input>
</el-row> </el-form-item>
</el-form> </el-col>
</RelDialog> </el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="备注" ref="bz" prop="bz">
<el-input :readonly="readonly" v-model="form.bz"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</RelDialog>
</template> </template>
<script> <script>
import {editMixin} from 'common' import {
export default { editMixin
mixins: [editMixin], } from 'common'
/* 存放index页面传递的额外参数*/ export default {
mounted() { mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
},
/* 组件名称*/
name: "aqglSbxxEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
computed:{
jyzq() {
return this.form.jyzq
},
scjyrq(){
return this.form.scjyrq
}, },
/* 组件名称*/ tqjyzq(){
name: "aqglSbxxEdit", return this.form.tqjyzq
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/ },
tqjyrq(){
return this.form.tqjyrq
}
data() { },
return { watch:{
jyzq(val){
if(val!=''){
this.form.xcjyrq=this.form.scjyrq+val*24*60*60*1000
this.form.tqjyrq=this.form.xcjyrq-this.form.tqjyzq*24*60*60*1000
}
},
scjyrq(val){
if(val!=''){
this.form.xcjyrq=val+this.form.jyzq*24*60*60*1000
this.form.tqjyrq=this.form.xcjyrq-this.form.tqjyzq*24*60*60*1000
}
},
tqjyzq(val){
if(val!=''){
this.form.tqjyrq=this.form.xcjyrq-this.form.tqjyzq*24*60*60*1000
}
}
},
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
bmList: [], /* 额外初始化,根据需求*/
systemType: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/ bmList: [],
form: {
//ID
id:'',
//设备编码
code:'',
//档案编号
dabh:'',
//系统分类
xtfl:'0',
//设备分类
flid:'',
//名称
name:'',
//制造厂家
productor:'',
//型号
model:'',
//登记证编号
serialno:'',
//计量单位
jldw:'',
//启用日期
qyrq:'',
//停用日期
// tyrq:new Date().getTime(),
//停用标志
tybz:'',
//使用地点
sydd:'',
//用途
yt:'',
//数量
sl:'',
//制造日期
ccrq:'',
//工作级别
gzjb:'',
//跨度
kd:'',
//提升速度
tssd:'',
//运行速度
yxsd:'',
//吨位
dw:'',
//起升高度
qsgd:'',
//电机功率
djgl:'',
//安装日期
// azrq:new Date().getTime(),
//安装地点
azdd:'',
//安装单位
azdw:'',
//注册编号
zcbh:'',
//检验报告编号
jybgbh:'',
//检验周期
jyzq:'',
//上次检验日期
scjyrq:'',
//下次检验日期
xcjyrq:'',
//检验前自检结论
jyqzjjl:'',
//实际检验日期
sjjyrq:'',
//特检机构检验结论
tjjgjyjl:'',
//检验整改情况
jyzgqk:'',
//设备升级
sbsj:'',
//设备资料
sbzl:'',
//设备资料存放地点
sbzldd:'',
//未检原因
wjyy:'',
//系统名称
xtmc:'',
//参数及量程
cslc:'',
//监测因子
jcyz:'',
//类型
lx:'',
//主体材质
ztcz:'',
//容器容积
rqrj:'',
//容器净重
rqjz:'',
//设计压力
sjyl:'',
//设计温度
sjwd:'',
//最高压力
zgyl:'',
//耐压试验压力
nysyyl:'',
//管径与壁厚
gjbh:'',
//管道级别
gdjb:'',
//管道起点
gdqd:'',
//管道终点
gdzd:'',
//压力
yl:'',
//铺设方式
psfs:'',
//工作温度
gzwd:'',
//工作压力
gzyl:'',
//输送介质
ssjz:'',
//焊口数量
hksl:'',
//保温
bw:'',
//防腐方式
fffs:'',
//标识
bs:'',
//公称通径
gctj:'',
//产品编号
cpbh:'',
//整定压力
zdyl:'',
//层站
dtcz:'',
//载重
dtzz:'',
//提升高度
dttsgd:'',
//运行速度
dtyxsd:'',
//车牌号
cph:'',
//发动机型号
fdjxh:'',
//发动机编号
fdjbh:'',
//底盘车架号
dpcjh:'',
//拍照选项
pzxx:'',
//附件数
attachcount:'',
//备注
bz:'',
//维护人编码
whrid:'',
//维护人
whr:'',
//维护时间
// whsj:new Date().getTime(),
//创建人编码
cjrid:'',
//创建人
cjr:'',
//创建时间
// cjsj:new Date().getTime(),
//系统版本
doc:"",
syzt:"",
gsid:""
},
/* form提交时的规则,具体规则参考官网*/
rules: {
} /* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
} form: {
tqjyrq:'',
tqjyzq:0,
//ID
id: '',
//设备编码
code: '',
//档案编号
dabh: '',
//系统分类
xtfl: '0',
//设备分类
flid: '',
//名称
name: '',
//制造厂家
productor: '',
//型号
model: '',
//登记证编号
serialno: '',
//计量单位
jldw: '',
//启用日期
qyrq: '',
//停用日期
// tyrq:new Date().getTime(),
//停用标志
tybz: '',
//使用地点
sydd: '',
//用途
yt: '',
//数量
sl: '',
//制造日期
ccrq: '',
//工作级别
gzjb: '',
//跨度
kd: '',
//提升速度
tssd: '',
//运行速度
yxsd: '',
//吨位
dw: '',
//起升高度
qsgd: '',
//电机功率
djgl: '',
//安装日期
// azrq:new Date().getTime(),
//安装地点
azdd: '',
//安装单位
azdw: '',
//注册编号
zcbh: '',
//检验报告编号
jybgbh: '',
//检验周期
jyzq: 0,
//上次检验日期
scjyrq: '',
//下次检验日期
xcjyrq: '',
//检验前自检结论
jyqzjjl: '',
//实际检验日期
sjjyrq: '',
//特检机构检验结论
tjjgjyjl: '',
//检验整改情况
jyzgqk: '',
//设备升级
sbsj: '',
//设备资料
sbzl: '',
//设备资料存放地点
sbzldd: '',
//未检原因
wjyy: '',
//系统名称
xtmc: '',
//参数及量程
cslc: '',
//监测因子
jcyz: '',
//类型
lx: '',
//主体材质
ztcz: '',
//容器容积
rqrj: '',
//容器净重
rqjz: '',
//设计压力
sjyl: '',
//设计温度
sjwd: '',
//最高压力
zgyl: '',
//耐压试验压力
nysyyl: '',
//管径与壁厚
gjbh: '',
//管道级别
gdjb: '',
//管道起点
gdqd: '',
//管道终点
gdzd: '',
//压力
yl: '',
//铺设方式
psfs: '',
//工作温度
gzwd: '',
//工作压力
gzyl: '',
//输送介质
ssjz: '',
//焊口数量
hksl: '',
//保温
bw: '',
//防腐方式
fffs: '',
//标识
bs: '',
//公称通径
gctj: '',
//产品编号
cpbh: '',
//整定压力
zdyl: '',
//层站
dtcz: '',
//载重
dtzz: '',
//提升高度
dttsgd: '',
//运行速度
dtyxsd: '',
//车牌号
cph: '',
//发动机型号
fdjxh: '',
//发动机编号
fdjbh: '',
//底盘车架号
dpcjh: '',
//拍照选项
pzxx: '',
//附件数
attachcount: '',
//备注
bz: '',
//维护人编码
whrid: '',
//维护人
whr: '',
//维护时间
// whsj:new Date().getTime(),
//创建人编码
cjrid: '',
//创建人
cjr: '',
//创建时间
// cjsj:new Date().getTime(),
//系统版本
doc: "",
syzt: "",
gsid: ""
}, },
methods: { /* form提交时的规则,具体规则参考官网*/
rules: {
scjyrq: [{
required: true,
trigger: 'blur'
}, ],
xcjyrq: [{
required: true,
trigger: 'blur'
}, ],
jyzq: [{
required: true,
trigger: 'blur'
}, ],
tqjyzq: [{
required: true,
trigger: 'blur'
}, ],
tqjyrq: [{
required: true,
trigger: 'blur'
}, ]
} }
}
},
methods: {
} }
}
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
......
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