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

调整

parent 78a94195
......@@ -67,7 +67,7 @@
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="24">
<!-- <el-row :gutter="24">
<el-col :span="12">
<el-form-item label="演练负责人" ref="ylfzr" prop="ylfzr">
<el-input :readonly="readonly" v-model="form.ylfzr" ></el-input>
......@@ -78,8 +78,13 @@
<el-input :readonly="readonly" v-model="form.zlfzr" ></el-input>
</el-form-item>
</el-col>
</el-row>
</el-row> -->
<el-row :gutter="24">
<el-col :span="12">
<el-form-item label="演练等级" ref="yldj" prop="yldj">
<RelSelect style="width: 100%;" :readonly="readonly" src='aqgl/yjgl/yjyljh/init/yldj' filterable clearable :match="{value:'id',label:'name'}" v-model='form.yldj' ></RelSelect>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="估计费用(元)" ref="gjfy" prop="gjfy">
<el-input type='number' :readonly="readonly" v-model="form.gjfy" ></el-input>
......@@ -112,6 +117,7 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
yldj:'',
//ID
id:'',
//演练名称
......
<template>
<div class="min_full">
<!-- 查询条件-->
<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-date-picker v-model="queryParams.year"></el-date-picker> -->
<el-date-picker
value-format='yyyy'
v-model="queryParams.year"
type="year"
placeholder="选择年">
</el-date-picker>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">季度:</span>
<!-- <el-date-picker v-model="queryParams.month"></el-date-picker> -->
<el-select clearable v-model="queryParams.quarter" placeholder="请选择">
<el-option
v-for="item in 4"
:key="item"
:label="item+'季度'"
:value="item">
</el-option>
</el-select>
</div>
</el-col>
<el-col :span="12" class="search-col">
<div class="search-item">
<span class="search-span">名称:</span>
<el-input v-model="queryParams.yljhName"></el-input>
</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>-->
<div class="min_full">
<!-- 查询条件-->
<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-date-picker v-model="queryParams.year"></el-date-picker> -->
<el-date-picker value-format='yyyy' v-model="queryParams.year" type="year" placeholder="选择年">
</el-date-picker>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">季度:</span>
<!-- <el-date-picker v-model="queryParams.month"></el-date-picker> -->
<el-select clearable v-model="queryParams.quarter" placeholder="请选择">
<el-option v-for="item in 4" :key="item" :label="item+'季度'" :value="item">
</el-option>
</el-select>
</div>
</el-col>
<el-col :span="12" class="search-col">
<div class="search-item">
<span class="search-span">名称:</span>
<el-input v-model="queryParams.yljhName"></el-input>
</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>-->
<AttachFileShow :delButton='true' :addButton='true' :app='app'></AttachFileShow>
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<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'>
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
</TablePager>
</div>
</div>
</TablePager>
</div>
</div>
</template>
<script>
/* 引入需要的接口*/
import {
doQuery,
doAdd,
doUpdate,
doDelete
} from '@/api/contingency/yjyljh.js';
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'aqglYjyljh',
/* 引入需要的接口*/
import {
doQuery,
doAdd,
doUpdate,
doDelete
} from '@/api/contingency/yjyljh.js';
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'aqglYjyljh',
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery()
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/yjgl/yjyljh',
/* 查询参数*/
queryParams: {
year: '',
quarter:'',
yljhName: ''
},
/* 表格标题对应参数*/
tableTitle: [
{label: "年度", prop: "year", fieldType: "int"},
//{label: "季度", prop: "quarter", fieldType: "ftString",width:80},
{label: "季度", prop: "quarter",formatter:function(row, column, value, index) {
let jdobj=['','第一季度','第二季度','第三季度','第四季度']
return jdobj[value]
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery()
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/yjgl/yjyljh',
/* 查询参数*/
queryParams: {
year: '',
quarter: '',
yljhName: ''
},
/* 表格标题对应参数*/
tableTitle: [{
label: "年度",
prop: "year",
fieldType: "int"
},
//{label: "季度", prop: "quarter", fieldType: "ftString",width:80},
{
label: "季度",
prop: "quarter",
formatter: function(row, column, value, index) {
let jdobj = ['', '第一季度', '第二季度', '第三季度', '第四季度']
return jdobj[value]
},width:80},
{label: "演练名称", prop: "name", fieldType: "ftString",width:180},
{label: "演练组织单位", prop: "zzdw", fieldType: "ftString",width:180},
{label: "培训人数", prop: "pxrs", fieldType: "int"},
{label: "演练目标", prop: "ylmb", fieldType: "ftString",width:180},
{label: "演练方式", prop: "ylfs", fieldType: "ftString",width:100},
{label: "演练责任人", prop: "ylzrr", fieldType: "ftString",width:180},
{label: "演练时长", prop: "ylsc", fieldType: "int"},
{label: "主(协)办单位", prop: "zbdw", fieldType: "ftString",width:180},
{label: "目标完成标准", prop: "mbwcbz", fieldType: "ftString",width:180},
{label: "演练负责人", prop: "ylfzr", fieldType: "ftString",width:180},
{label: "质量负责人", prop: "zlfzr", fieldType: "ftString",width:180},
{label: "估计费用", prop: "gjfy", fieldType: "money"},
{label: "备注", prop: "bz", fieldType: "ftString",width:180},
{label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "创建人", prop: "cjr", fieldType: "ftString"},
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
]
}
},
methods: {
},
width: 80
},
{
label: "演练名称",
prop: "name",
fieldType: "ftString",
width: 180
},
{
label: "演练组织单位",
prop: "zzdw",
fieldType: "ftString",
width: 180
},
{
label: "培训人数",
prop: "pxrs",
fieldType: "int"
},
{
label: "演练等级",
prop: "yldj",
width: 180,
transform: {
url: 'aqgl/yjgl/yjyljh/init/yldj',
label: 'name',
value: 'id'
}
},
{
label: "演练目标",
prop: "ylmb",
fieldType: "ftString",
width: 180
},
{
label: "演练方式",
prop: "ylfs",
fieldType: "ftString",
width: 100
},
{
label: "演练责任人",
prop: "ylzrr",
fieldType: "ftString",
width: 180
},
{
label: "演练时长",
prop: "ylsc",
fieldType: "int"
},
{
label: "主(协)办单位",
prop: "zbdw",
fieldType: "ftString",
width: 180
},
{
label: "目标完成标准",
prop: "mbwcbz",
fieldType: "ftString",
width: 180
},
// {
// label: "演练负责人",
// prop: "ylfzr",
// fieldType: "ftString",
// width: 180
// },
// {
// label: "质量负责人",
// prop: "zlfzr",
// fieldType: "ftString",
// width: 180
// },
{
label: "估计费用",
prop: "gjfy",
fieldType: "money"
},
{
label: "备注",
prop: "bz",
fieldType: "ftString",
width: 180
},
{
label: "维护人",
prop: "whr",
fieldType: "ftString"
},
{
label: "维护时间",
prop: "whsj",
fieldType: "ftDateTime"
},
{
label: "创建人",
prop: "cjr",
fieldType: "ftString"
},
{
label: "创建时间",
prop: "cjsj",
fieldType: "ftDateTime"
},
]
}
},
methods: {
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
init() {
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
init() {
}
},
components: {
Edit,
}
}
},
components: {
Edit,
}
}
}
</script>
<style scoped>
</style>
......@@ -10,13 +10,20 @@
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">开始日期:</span>
<el-date-picker value-format="timestamp" v-model='queryParams.ksrq' ></el-date-picker>
<el-date-picker value-format="timestamp" v-model='queryParams.ksrq'></el-date-picker>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">结束日期:</span>
<el-date-picker value-format="timestamp" v-model='queryParams.jsrq' ></el-date-picker>
<el-date-picker value-format="timestamp" v-model='queryParams.jsrq'></el-date-picker>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">演练等级:</span>
<RelSelect style="width: 100%;" src='aqgl/yjgl/yjyljh/init/yldj' filterable clearable
:match="{value:'id',label:'name'}" v-model='queryParams.yldj'></RelSelect>
</div>
</el-col>
......@@ -25,14 +32,14 @@
<!-- 按钮操作-->
<el-row class="tool-bar">
<PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton>
<!-- <AddButton ref="add" :app='app'></AddButton>
<ViewButton ref="view" :app='app'></ViewButton>
<!-- <AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton> -->
<AttachFileShow :delButton='false' :addButton='false' :app='app'></AttachFileShow>
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<!-- <WorkFlowButton :app='this'></WorkFlowButton>-->
<!-- <WorkFlowButton :app='this'></WorkFlowButton>-->
<!-- 额外按钮-->
<!-- 表头设置 -->
......@@ -40,33 +47,33 @@
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager :delButton='false' @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
<TablePager :delButton='false' @getData='getData' :ref="'TablePager'" :app='app' :query='query'
@selectItem='selectItem' @getRow='getRow'>
</TablePager>
</div>
</div>
<div class="min_full" style="height: 60%;padding: 10px;">
<!-- tabs -->
<el-tabs v-model="activeName" @tab-click="handleClick" >
<el-tab-pane label="应急演练" name="first" >
<Report ref="report" />
</el-tab-pane>
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="应急演练" name="first">
<Report ref="report" />
</el-tab-pane>
</el-tabs>
</div>
</div>
</div>
</template>
<script>
/* 引入需要的接口*/
/* 引入需要的接口*/
/* 引入需要的接口*/
import {
doQuery,
doAdd,
doUpdate,
doDelete
} from '@/api/contingency/yjyljh.js';
} from '@/api/contingency/yjyljh.js';
/* edit页面*/
import Edit from './edit'
import Report from './report.vue'
......@@ -79,7 +86,9 @@
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery({setFirstCurrent:true})
this.$refs['TablePager'].pageQuery({
setFirstCurrent: true
})
},
data() {
return {
......@@ -90,59 +99,139 @@
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/yjgl/yjyljh',
baseUrl: '/aqgl/yjgl/yjyljh',
/* 查询参数*/
queryParams: {
info: '',
ksrq:new Date().getTime()-1000*60*60*24*30,
jsrq:new Date().getTime()
},
queryParams: {
yldj: '',
info: '',
ksrq: new Date().getTime() - 1000 * 60 * 60 * 24 * 30,
jsrq: new Date().getTime()
},
/* 表格标题对应参数*/
tableTitle: [
{label: "年度", prop: "year", fieldType: "int"},
tableTitle: [{
label: "年度",
prop: "year",
fieldType: "int"
},
//{label: "季度", prop: "quarter", fieldType: "ftString",width:80},
{label: "季度", prop: "quarter", formatter:function(row, column, value, index) {
let jdobj=['','第一季度','第二季度','第三季度','第四季度']
{
label: "季度",
prop: "quarter",
formatter: function(row, column, value, index) {
let jdobj = ['', '第一季度', '第二季度', '第三季度', '第四季度']
return jdobj[value]
},fieldType: "ftString",width:80},
{label: "演练名称", prop: "name", fieldType: "ftString",width:180},
{label: "演练组织单位", prop: "zzdw", fieldType: "ftString",width:180},
{label: "培训人数", prop: "pxrs", fieldType: "int"},
{label: "演练目标", prop: "ylmb", fieldType: "ftString",width:180},
{label: "演练方式", prop: "ylfs", fieldType: "ftString",width:100},
{label: "演练责任人", prop: "ylzrr", fieldType: "ftString",width:180},
{label: "演练时长", prop: "ylsc", fieldType: "int"},
{label: "主(协)办单位", prop: "zbdw", fieldType: "ftString",width:180},
{label: "目标完成标准", prop: "mbwcbz", fieldType: "ftString",width:180},
{label: "演练负责人", prop: "ylfzr", fieldType: "ftString",width:180},
{label: "质量负责人", prop: "zlfzr", fieldType: "ftString",width:180},
{label: "估计费用", prop: "gjfy", fieldType: "money"},
{label: "备注", prop: "bz", fieldType: "ftString",width:180},
{label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"}
},
fieldType: "ftString",
width: 80
},
{
label: "演练名称",
prop: "name",
fieldType: "ftString",
width: 180
},
{
label: "演练组织单位",
prop: "zzdw",
fieldType: "ftString",
width: 180
},
{
label: "培训人数",
prop: "pxrs",
fieldType: "int"
},
{
label: "演练等级",
prop: "yldj",
width: 180,
transform: {
url: 'aqgl/yjgl/yjyljh/init/yldj',
label: 'name',
value: 'id'
}
},
{
label: "演练目标",
prop: "ylmb",
fieldType: "ftString",
width: 180
},
{
label: "演练方式",
prop: "ylfs",
fieldType: "ftString",
width: 100
},
{
label: "演练责任人",
prop: "ylzrr",
fieldType: "ftString",
width: 180
},
{
label: "演练时长",
prop: "ylsc",
fieldType: "int"
},
{
label: "主(协)办单位",
prop: "zbdw",
fieldType: "ftString",
width: 180
},
{
label: "目标完成标准",
prop: "mbwcbz",
fieldType: "ftString",
width: 180
},
// {label: "演练负责人", prop: "ylfzr", fieldType: "ftString",width:180},
// {label: "质量负责人", prop: "zlfzr", fieldType: "ftString",width:180},
{
label: "估计费用",
prop: "gjfy",
fieldType: "money"
},
{
label: "备注",
prop: "bz",
fieldType: "ftString",
width: 180
},
{
label: "维护人",
prop: "whr",
fieldType: "ftString"
},
{
label: "维护时间",
prop: "whsj",
fieldType: "ftDateTime"
}
]
}
},
methods: {
getRow: function(e) {
this.rowItem = e
this.$refs.report.queryParams.yljhid=e.id
this.$refs.report.queryParams.yljhid = e.id
this.$refs.report.$refs.TablePager.pageQuery()
},
handleClick(val){
console.log(val,'val')
handleClick(val) {
console.log(val, 'val')
},
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
/* 启用停用*/
......
......@@ -6,7 +6,7 @@
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<AttachFileShow :app='ctx.basePage' ></AttachFileShow>
<AttachFileShow :app='ctx.basePage'></AttachFileShow>
</template>
</BasePage>
......@@ -117,14 +117,14 @@
[{
label: '单号',
prop: 'djid',
span: 6,
span: 4,
type: 'input',
value: ''
},
{
"label": "作业类型",
"prop": "ufcgzylxid",
"span": 6,
"span": 4,
"type": "RelSelect",
"value": "",
"typeConfig": {
......@@ -138,7 +138,7 @@
{
"label": "部门",
"prop": "bmid",
"span": 8,
"span": 4,
"type": "RelSelect",
"value": "",
"typeConfig": {
......@@ -149,8 +149,24 @@
}
}
},
{
label: '开始时间',
prop: 'kssj',
span: 6,
type: 'datetime',
value: ''
},
{
label: '结束时间',
prop: 'jssj',
span: 6,
type: 'datetime',
value: ''
}
]
],
// [
// ]
],
/* 默认启停用 */
showqt: false,
......
......@@ -44,7 +44,12 @@
<AttachFileButton :app='app'></AttachFileButton>
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<el-button @click.native.prevent="jcwc" size='mini' type="primary">
<ImportButton style="margin-right: 10px;" @success="()=>{
$refs['TablePager'].pageQuery()
}" :url="'wms/ckgl/jhtz/import'" />
<el-button @click.native.prevent="jcwc" size='mini' type="primary">
检测完成
</el-button>
<!-- 额外按钮-->
......@@ -233,7 +238,7 @@
let params = {
id: this.app.singleItem.id
}
this.$post('aqgl/sbgl/sbxx/check/complete',params).then(res => {
this.$post('aqgl/sbgl/sbxx/check/complete', params).then(res => {
if (res.success) {
this.$success('操作成功')
this.app.$refs['TablePager'].reLoad()
......
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