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

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

parent 2cf82982
<template>
<div class="min_full">
<div class="min_full">
<!-- 查询条件-->
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1">
<!-- 查询条件-->
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1">
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">设备信息:</span>
<el-input v-model="queryParams.sbxx"></el-input>
</div>
<div class="search-item">
<span class="search-span">设备信息:</span>
<el-input v-model="queryParams.sbxx"></el-input>
</div>
</el-col>
<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">-->
<!--<div class="search-item">-->
<!--<span class="search-span">是否已入档:</span>-->
<!--<el-select v-model="queryParams.doc" placeholder="请选择">-->
<!--<el-option-->
<!--v-for="item in options"-->
<!--:key="item.value"-->
<!--:label="item.label"-->
<!--:value="item.value">-->
<!--</el-option>-->
<!--</el-select>-->
<!--</div>-->
<!--</el-col>-->
</el-row>
</div>
<!-- 按钮操作-->
<el-row class="tool-bar">
<PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton>
<AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton>
<AttachFileButton :app='app' ></AttachFileButton>
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
</TablePager>
</div>
</div>
<!--<el-col :span="6" class="search-col">-->
<!--<div class="search-item">-->
<!--<span class="search-span">是否已入档:</span>-->
<!--<el-select v-model="queryParams.doc" placeholder="请选择">-->
<!--<el-option-->
<!--v-for="item in options"-->
<!--:key="item.value"-->
<!--:label="item.label"-->
<!--:value="item.value">-->
<!--</el-option>-->
<!--</el-select>-->
<!--</div>-->
<!--</el-col>-->
</el-row>
</div>
<!-- 按钮操作-->
<el-row class="tool-bar">
<PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton>
<AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton>
<AttachFileButton :app='app'></AttachFileButton>
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<el-button @click.native.prevent="jcwc" size='mini' type="primary">
检测完成
</el-button>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
</TablePager>
</div>
</div>
</template>
<script>
import {
doQuery,
doAdd,
doUpdate,
doDelete
} from '@/api/equipment/sbxx.js';
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'appVersion',
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery()
},
data() {
return {
options:[
{label:"是",value:"Y"},
{label:"否",value:"N"},
],
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/sbgl/sbxx',
/* 查询参数*/
queryParams: {
dabh: '',
sbxx: '',
doc:'',
xtfl:"0",
gsid:""
},
/* 表格标题对应参数*/
tableTitle: [
//gsid下拉
{label: "公司", prop: "gsName", fieldType: "ftString",width:96},
import {
doQuery,
doAdd,
doUpdate,
doDelete
} from '@/api/equipment/sbxx.js';
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'appVersion',
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery()
},
data() {
return {
options: [{
label: "是",
value: "Y"
},
{
label: "否",
value: "N"
},
],
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/sbgl/sbxx',
/* 查询参数*/
queryParams: {
dabh: '',
sbxx: '',
doc: '',
xtfl: "0",
gsid: ""
},
/* 表格标题对应参数*/
tableTitle: [
//gsid下拉
{
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: "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: "jldw", fieldType: "ftString",width:120},
{label: "启用日期", prop: "qyrq", fieldType: "ftDateTime"},
{label: "首次检验日期", prop: "scjyrq", fieldType: "ftDateTime"},
{
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: "jldw", fieldType: "ftString",width:120},
{
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: "tyrq", fieldType: "ftDateTime"}, */
{label: "使用状态", prop: "syzt", fieldType: "ftString",width:80},
{label: "备注", prop: "bz", fieldType: "ftString",width:300}
]
}
},
methods: {
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
init() {
}
},
components: {
Edit,
}
}
{
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
}
]
}
},
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,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
init() {
}
},
components: {
Edit,
}
}
</script>
<style scoped>
......
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