Commit 5fabb901 authored by 李苏's avatar 李苏 💬

设备检测 新增检测完成功能

parent 2cf82982
......@@ -14,7 +14,8 @@
<el-col :span="4" class="search-col">
<div class="search-item">
<span class="search-span">公司:</span>
<RelSelect style="width: 100%;" src='jcsj/common/bm/queryGs' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.gsid' ></RelSelect>
<RelSelect style="width: 100%;" src='jcsj/common/bm/queryGs' filterable clearable
:match="{value:'id',label:'bmmc'}" v-model='queryParams.gsid'></RelSelect>
</div>
</el-col>
<!--<el-col :span="6" class="search-col">-->
......@@ -40,9 +41,12 @@
<AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton>
<AttachFileButton :app='app' ></AttachFileButton>
<AttachFileButton :app='app'></AttachFileButton>
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<el-button @click.native.prevent="jcwc" size='mini' type="primary">
检测完成
</el-button>
<!-- 额外按钮-->
<!-- 表头设置 -->
......@@ -80,9 +84,14 @@
},
data() {
return {
options:[
{label:"是",value:"Y"},
{label:"否",value:"N"},
options: [{
label: "是",
value: "Y"
},
{
label: "否",
value: "N"
},
],
/*需要的额外参数 */
showDialog: false,
......@@ -95,42 +104,149 @@
queryParams: {
dabh: '',
sbxx: '',
doc:'',
xtfl:"0",
gsid:""
doc: '',
xtfl: "0",
gsid: ""
},
/* 表格标题对应参数*/
tableTitle: [
//gsid下拉
{label: "公司", prop: "gsName", fieldType: "ftString",width:96},
{
label: "公司",
prop: "gsName",
fieldType: "ftString",
width: 96
},
//flid,下拉, aqgl/sbgl/sbfl/query
{label: "设备分类", prop: "sbflName", fieldType: "ftString",width:96},
{label: "设备编号", prop: "dabh", fieldType: "ftString",width:100},
{label: "设备代码", prop: "code", fieldType: "ftString",width:140},
{label: "设备名称", prop: "name", fieldType: "ftString",width:160},
{label: "使用地点", prop: "sydd", fieldType: "ftString",width:300},
{
label: "设备分类",
prop: "sbflName",
fieldType: "ftString",
width: 96
},
{
label: "设备编号",
prop: "dabh",
fieldType: "ftString",
width: 100
},
{
label: "设备代码",
prop: "code",
fieldType: "ftString",
width: 140
},
{
label: "设备名称",
prop: "name",
fieldType: "ftString",
width: 160
},
{
label: "使用地点",
prop: "sydd",
fieldType: "ftString",
width: 300
},
// {label: "系统分类", prop: "xtflName", fieldType: "ftString",width:48},
// {label: "设备分类", prop: "sbflName", fieldType: "ftString",width:96},
{label: "型号", prop: "model", fieldType: "ftString",width:300},
{label: "制造厂家", prop: "productor", fieldType: "ftString",width:300},
{label: "登记证编号", prop: "serialno", fieldType: "ftString",width:300},
{label: "制造日期", prop: "ccrq", fieldType: "ftDateTime"},
{
label: "型号",
prop: "model",
fieldType: "ftString",
width: 300
},
{
label: "制造厂家",
prop: "productor",
fieldType: "ftString",
width: 300
},
{
label: "登记证编号",
prop: "serialno",
fieldType: "ftString",
width: 300
},
{
label: "制造日期",
prop: "ccrq",
fieldType: "ftDateTime"
},
// {label: "计量单位", prop: "jldw", fieldType: "ftString",width:120},
{label: "启用日期", prop: "qyrq", fieldType: "ftDateTime"},
{label: "首次检验日期", prop: "scjyrq", fieldType: "ftDateTime"},
{
label: "启用日期",
prop: "qyrq",
fieldType: "ftDateTime"
},
{
label: "首次检验日期",
prop: "scjyrq",
fieldType: "ftDateTime"
},
/* 不给修改*/
{label: "下次检验日期", prop: "xcjyrq", fieldType: "ftDateTime"},
{label: "提前检验周期", prop: "tqjyzq",width:150},
{
label: "下次检验日期",
prop: "xcjyrq",
fieldType: "ftDateTime"
},
{
label: "提前检验周期",
prop: "tqjyzq",
width: 150
},
/* 新增*/
{label: "提前检验日期", prop: "tqjyrq", fieldType: "ftDateTime"},
{label: "检验周期", prop: "jyzq", fieldType: "ftString"},
{
label: "提前检验日期",
prop: "tqjyrq",
fieldType: "ftDateTime"
},
{
label: "检验周期",
prop: "jyzq",
fieldType: "ftString"
},
/* {label: "停用日期", prop: "tyrq", fieldType: "ftDateTime"}, */
{label: "使用状态", prop: "syzt", fieldType: "ftString",width:80},
{label: "备注", prop: "bz", fieldType: "ftString",width:300}
{
label: "使用状态",
prop: "syzt",
fieldType: "ftString",
width: 80
},
{
label: "备注",
prop: "bz",
fieldType: "ftString",
width: 300
}
]
}
},
methods: {
jcwc() {
if (this.app.selectOne || this.app.clickOne) {
this.$confirm('是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let params = {
id: this.app.singleItem.id
}
this.$post('aqgl/sbgl/sbxx/check/complete',params).then(res => {
if (res.success) {
this.$success('操作成功')
this.app.$refs['TablePager'].reLoad()
} else {
this.$error(res.message || '操作失败')
}
})
})
} else {
this.$warning('请选中一行操作');
}
},
/* 基础查询*/
query: doQuery,
......
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