Commit 13a50ff3 authored by zhoumaotao's avatar zhoumaotao

wxdwsb.vue 信息提交

parent 5baaeb3f
import request from 'common/src/utils/request'
/* 角色管理query */
export function doQuery(query) {
return request({
url: '/aqgl/wxgl/wxdwsb/query',
method: 'post',
data: query||{}
})
}
/* 角色管理更新 */
export function doUpdate(query) {
return request({
url: '/aqgl/wxgl/wxdwsb/update',
method: 'post',
data: query||{}
})
}
export function doAdd(query) {
return request({
url: '/aqgl/wxgl/wxdwsb/add',
method: 'post',
data: query||{}
})
}
export function doDelete(query) {
return request({
url: '/aqgl/wxgl/wxdwsb/delete',
method: 'post',
data: query||{}
})
}
/* 状态接口 */
export function initZt(query) {
return request({
url: '/aqgl/wxgl/wxdwsb/init/zt',
method: 'post',
data: query||{}
})
}
/* 单位类型接口 */
export function initDwlx(query) {
return request({
url: '/aqgl/wxgl/wxdwsb/init/dwlx',
method: 'post',
data: query||{}
})
}
/* 事务类型接口 */
export function initSwlx(query) {
return request({
url: '/jcsj/common/wfstate',
method: 'post',
data: query||{}
})
}
<template>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20">
<el-col :span="8">
<el-form-item label="编号" ref="code" prop="code">
<el-input :readonly="readonly" v-model="form.code" ></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="名称" ref="name" prop="name">
<el-input :readonly="readonly" v-model="form.name" ></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="申报日期" ref="sbrq" prop="sbrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.sbrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="8">
<el-form-item label="单位类型" ref="dwlx" prop="dwlx">
<el-input :readonly="readonly" v-model="form.dwlx" ></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="责任单位" ref="zrdwid" prop="zrdwid">
<el-input :readonly="readonly" v-model="form.zrdwid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="负责人" ref="fzrid" prop="fzrid">
<el-input :readonly="readonly" v-model="form.fzrid" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="8">
<el-form-item label="评估单位" ref="pgdwid" prop="pgdwid">
<el-input :readonly="readonly" v-model="form.pgdwid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="单位地址" ref="address" prop="address">
<el-input :readonly="readonly" v-model="form.address" ></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="电子邮箱" ref="email" prop="email">
<el-input :readonly="readonly" v-model="form.email" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="8">
<el-form-item label="联系电话" ref="phone" prop="phone">
<el-input :readonly="readonly" v-model="form.phone" ></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="联系人" ref="lxr" prop="lxr">
<el-input :readonly="readonly" v-model="form.lxr" ></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<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-row :gutter="20">
<el-col :span="8">
<el-form-item label="附件数" ref="attachcount" prop="attachcount">
<el-input :readonly="readonly" v-model="form.attachcount" ></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="工作流状态" ref="wfpname" prop="wfpname">
<el-input :readonly="readonly" v-model="form.wfpname" ></el-input>
</el-form-item>
</el-col>
</el-form>
</RelDialog>
</template>
<script>
import {editMixin} from 'common'
export default {
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
},
/* 组件名称*/
name: "aqglWxdwsbEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
//ID
id:'',
//编号
code:'',
//名称
name:'',
//申报日期
sbrq:new Date().getTime(),
//单位类型
dwlx:'',
//责任单位
zrdwid:'',
//负责人
fzrid:'',
//评估单位
pgdwid:'',
//单位地址
address:'',
//电子邮箱
email:'',
//联系电话
phone:'',
//联系人
lxr:'',
//备注
bz:'',
//附件数
attachcount:'',
//状态
zt:'',
//工作流ID
wfid:'',
//工作流实例号
wfinstid:'',
//工作流状态ID
wfpid:'',
//工作流状态
wfpname:'',
//待处理人id
wfwuserid:'',
//待处理人
wfwusername:'',
//已处理人id
wfhuserid:'',
//已处理人
wfhusername:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
roleid: [{
required: true,
trigger: 'blur'
}, ],
rolename: [{
required: true,
trigger: 'blur'
}, ]
}
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
</style>
<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="12" class="search-col">
<div class="search-item">
<span class="search-span">名称:</span>
<el-input v-model="queryParams.info"></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>
<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>
</template>
<script>
/* 引入需要的接口*/
import {
doQuery,
doAdd,
doUpdate,
doDelete
} from '@/api/aqgl/wxgl/wxdwsb.js';
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'aqglWxdwsb',
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery()
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/wxgl/wxdwsb',
/* 查询参数*/
queryParams: {
info: ''
},
/* 表格标题对应参数*/
tableTitle: [
{label: "编号", prop: "code", fieldType: "ftString",width:120},
{label: "名称", prop: "name", fieldType: "ftString",width:300},
{label: "申报日期", prop: "sbrq", fieldType: "ftDateTime"},
{label: "单位类型", prop: "dwlxName", fieldType: "ftString",width:60},
{label: "责任单位", prop: "zrbmName", fieldType: "ftString",width:192},
{label: "负责人", prop: "fzrid", fieldType: "ftString",width:192},
{label: "评估单位", prop: "pgbmName", fieldType: "ftString",width:192},
{label: "单位地址", prop: "address", fieldType: "ftString",width:300},
{label: "电子邮箱", prop: "email", fieldType: "ftString",width:240},
{label: "联系电话", prop: "phone", fieldType: "ftString",width:66},
{label: "联系人", prop: "lxr", fieldType: "ftString",width:120},
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
{label: "附件数", prop: "attachcount", fieldType: "int"},
{label: "状态", prop: "ztName", fieldType: "ftString",width:6},
{label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
]
}
},
methods: {
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
init() {
}
},
components: {
Edit,
}
}
</script>
<style scoped>
</style>
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