|
|
@@ -3,170 +3,112 @@
|
|
|
<el-breadcrumb class="heading">
|
|
|
<el-breadcrumb-item :to="{ path: '/' }">平台首页</el-breadcrumb-item>
|
|
|
<el-breadcrumb-item :to="{ path: '/system/auditsetting' }">单位审批步骤自定义配置</el-breadcrumb-item>
|
|
|
+ <el-breadcrumb-item>编辑</el-breadcrumb-item>
|
|
|
</el-breadcrumb>
|
|
|
- <el-card class="box-card" style="height: calc(100vh - 115px);">
|
|
|
+ <el-card class="box-card">
|
|
|
<div slot="header">
|
|
|
<span>
|
|
|
- <i class="icon icon-table2"></i> 自定义配置
|
|
|
+ <i class="icon icon-table2"></i> 编辑
|
|
|
</span>
|
|
|
<span style="float: right;">
|
|
|
- <router-link :to="'/system/auditsetting/add/operation?step='+this.$route.query.step">
|
|
|
- <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;">添加</el-button>
|
|
|
- </router-link>
|
|
|
+ <el-button type="primary" size="mini" @click="saveEntity">保存</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" onclick="window.history.go(-1)">返回</el-button>
|
|
|
</span>
|
|
|
- <el-form ref="form" :inline="true" style="float: right; margin-top: -10px">
|
|
|
- <!--<el-form-item label="上报时间">
|
|
|
- <el-date-picker size="mini" style="width: 220px" v-model="CreateOn" type="daterange" range-separator="至"
|
|
|
- start-placeholder="生成日期" end-placeholder="结束日期"></el-date-picker>
|
|
|
- </el-form-item>-->
|
|
|
- <el-form-item label="上级组织" label-width="120px" v-if="false">
|
|
|
- <el-cascader :options="orgtreelist" :props="orgtreeprops" change-on-select :show-all-levels="false"
|
|
|
- v-model="selectedorg" placeholder="请选择组织"></el-cascader>
|
|
|
- </el-form-item>
|
|
|
-
|
|
|
- <el-form-item>
|
|
|
- <el-dropdown split-button type="primary" size="mini" @click="handleSearch" @command="searchCommand">
|
|
|
- 查询
|
|
|
- <el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item command="search">高级查询</el-dropdown-item>
|
|
|
- <el-dropdown-item command="clear">查询重置</el-dropdown-item>
|
|
|
- </el-dropdown-menu>
|
|
|
- </el-dropdown>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
</div>
|
|
|
- <el-table :data="entityList" size="mini" border height="calc(100vh - 243px)" style="width: 100%" @sort-change="orderby">
|
|
|
- <el-table-column label="操作" width="160" align="center" fixed="right">
|
|
|
- <template slot-scope="scope">
|
|
|
- <router-link :to="'/system/auditsetting/'+scope.row.Id+ '/operation'">
|
|
|
- <el-button type="primary" title="编辑" size="mini" >编辑</el-button>
|
|
|
- </router-link>
|
|
|
-
|
|
|
- <el-popover placement="top" title="提示">
|
|
|
- <el-alert title="" description="确认要删除吗?" trigger="click" type="warning" :closable="false">
|
|
|
- </el-alert>
|
|
|
- <br />
|
|
|
- <div style="text-align: right; margin: 0">
|
|
|
- <el-button type="primary" size="mini" @click="deleteEntity(scope.row)">删除</el-button>
|
|
|
- </div>
|
|
|
- <el-button slot="reference" type="plain" title="删除" style="margin-left:3px" size="mini">删除</el-button>
|
|
|
- </el-popover>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
- <el-table-column v-for="column in tableColumns" :key="column.Id" v-if="column.prop != 'CreateOn'"
|
|
|
- :prop="column.prop" sortable min-width="100" :label="column.label" align="center" show-overflow-tooltip>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
- <!--<el-table-column prop="CreateOn" sortable min-width="150" label="生成时间" align="center" show-overflow-tooltip>
|
|
|
- <template slot-scope="scope">
|
|
|
- {{ jstimehandle(scope.row.CreateOn+'') }}
|
|
|
- </template>
|
|
|
- </el-table-column>-->
|
|
|
- </el-table>
|
|
|
- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
|
|
|
- :page-sizes="[10, 15, 20, 25]" :page-size="size" layout="total, sizes, prev, pager, next, jumper"
|
|
|
- :total="currentItemCount">
|
|
|
- </el-pagination>
|
|
|
- </el-card>
|
|
|
-
|
|
|
- <el-dialog title="高级查询" :visible.sync="dialogVisible" width="720px">
|
|
|
- <el-form ref="advancedsearchForm" label-width="110px">
|
|
|
+ <!--<el-checkbox :indeterminate="isrolecheckall" v-model="roleCheckAll" @change="handleCheckAllChange">全选</el-checkbox>-->
|
|
|
+ <div style="margin-top:20px;">
|
|
|
+ <!--<el-checkbox-group v-model="selectedrole">-->
|
|
|
+ <!--<el-checkbox v-for="role in rolelist" @change="handlecheckedrolechange" :label="role.Id" :value="role.Id" :key="role.Id">{{role.Realname}}</el-checkbox>-->
|
|
|
+ <!--</el-checkbox-group>-->
|
|
|
<el-row>
|
|
|
-
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="生成时间">
|
|
|
- <el-date-picker size="mini" v-model="CreateOn" type="daterange" style="width:100%" range-separator="至"
|
|
|
- start-placeholder="生成日期" end-placeholder="结束日期"></el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
-
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="单位ID">
|
|
|
- <el-input size="mini" v-model="searchForm.OrganizeId" style="width:100%" placeholder="请输入"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
-
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="单位名称">
|
|
|
- <el-input size="mini" v-model="searchForm.OrganizeName" style="width:100%" placeholder="请输入"></el-input>
|
|
|
- </el-form-item>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-select v-model="selectedrole" placeholder="请选择"
|
|
|
+ style="width: 100%;">
|
|
|
+ <el-option v-for="item in rolelist" :key="item.Id" :label="item.Realname" :value="item.Id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
</el-col>
|
|
|
-
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="审批步骤编码">
|
|
|
- <el-input size="mini" v-model="searchForm.AuditStepCode" style="width:100%" placeholder="请输入"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
-
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="审批步骤名称">
|
|
|
- <el-input size="mini" v-model="searchForm.AuditStepName" style="width:100%" placeholder="请输入"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
-
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="角色ID">
|
|
|
- <el-input size="mini" v-model="searchForm.RoleId" style="width:100%" placeholder="请输入"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
-
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="角色名称">
|
|
|
- <el-input size="mini" v-model="searchForm.RoleName" style="width:100%" placeholder="请输入"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
-
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="备注">
|
|
|
- <el-input size="mini" v-model="searchForm.Remark" style="width:100%" placeholder="请输入"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
-
|
|
|
</el-row>
|
|
|
- </el-form>
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
- <el-button size="mini" @click="dialogVisible = false">取 消</el-button>
|
|
|
- <el-button size="mini" type="primary" @click="handleSearch">查 询</el-button>
|
|
|
- </span>
|
|
|
- </el-dialog>
|
|
|
-
|
|
|
+ </div>
|
|
|
+ </el-card>
|
|
|
+ <el-card class="box-card">
|
|
|
+ <!--<div slot="header" class="clearfix">-->
|
|
|
+ <!--<span></span>-->
|
|
|
+ <!--</div>-->
|
|
|
+ <el-table :data="userlist" size="mini" border>
|
|
|
+ <el-table-column prop="Username" align="center" label="账号" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column prop="Realname" align="center" label="用户名"></el-table-column>
|
|
|
+ <el-table-column prop="Departmentname" align="center" label="部门"></el-table-column>
|
|
|
+ <el-table-column prop="Unit" align="center" label="单位"></el-table-column>
|
|
|
+ <!--<el-table-column prop="Description" align="center" label="备注"-->
|
|
|
+ <!--show-overflow-tooltip></el-table-column>-->
|
|
|
+ </el-table>
|
|
|
+ </el-card>
|
|
|
</div>
|
|
|
</template>
|
|
|
+
|
|
|
<script>
|
|
|
import {
|
|
|
mapGetters
|
|
|
} from 'vuex'
|
|
|
import api from '@/api/system/auditsetting'
|
|
|
-
|
|
|
+ // import ElCol from 'element-ui/packages/col/src/col'
|
|
|
+ // import ElIcon from '../../../../node_modules/element-ui/packages/icon/src/icon'
|
|
|
export default {
|
|
|
+ components: {
|
|
|
+ // ElIcon,
|
|
|
+ // ElCol
|
|
|
+ },
|
|
|
computed: {
|
|
|
...mapGetters({
|
|
|
authUser: 'authUser'
|
|
|
})
|
|
|
},
|
|
|
- name: 'oilauditsetting',
|
|
|
- data() {
|
|
|
+ name: 'oilauditsettingEdit',
|
|
|
+
|
|
|
+ data () {
|
|
|
return {
|
|
|
- dialogVisible: false,
|
|
|
- // 列表数据
|
|
|
- entityList: [],
|
|
|
+ roleCheckAll: false,
|
|
|
+ isrolecheckall: false,
|
|
|
+ ACode: '',
|
|
|
// 分页参数
|
|
|
size: 10,
|
|
|
-
|
|
|
currentPage: 1,
|
|
|
currentItemCount: 0,
|
|
|
- ACode: "",
|
|
|
+ auditStepCode: '',
|
|
|
+ auditStepName: '',
|
|
|
+
|
|
|
+ rolelist: [],
|
|
|
+ rolelistcheckall: [],
|
|
|
+ selectedrole: '',
|
|
|
+ mustrolelist: [],
|
|
|
+ entityList: [],
|
|
|
+ userlist: [],
|
|
|
// 列表排序
|
|
|
Column: {
|
|
|
Order: '',
|
|
|
Prop: ''
|
|
|
},
|
|
|
- // 查询时间
|
|
|
- CreateOn: [new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000), new Date()],
|
|
|
- // 查询项
|
|
|
- searchFormReset: {},
|
|
|
- searchForm: {
|
|
|
+
|
|
|
+ serviceId: '',
|
|
|
+ auditStepOptions: [],
|
|
|
+ roleList: [],
|
|
|
+ auditers: '',
|
|
|
+ departmentId: '',
|
|
|
+ userOptions: [],
|
|
|
+ userselectOptions: [],
|
|
|
+ selectedOptions: [],
|
|
|
+ selectdelOptions: [],
|
|
|
+ orgtreelist: [],
|
|
|
+ orgtreeprops: {
|
|
|
+ value: 'id',
|
|
|
+ label: 'Fullname',
|
|
|
+ children: 'children'
|
|
|
+ },
|
|
|
+ selectedorg: [],
|
|
|
+ step: 1,
|
|
|
+ WorkFlowOptions: [],
|
|
|
+ formData: {
|
|
|
Id: '',
|
|
|
OrganizeId: '',
|
|
|
OrganizeName: '',
|
|
|
@@ -174,8 +116,10 @@
|
|
|
AuditStepName: '',
|
|
|
RoleId: '',
|
|
|
RoleName: '',
|
|
|
- UesrId: '',
|
|
|
+ UserId: '',
|
|
|
UserName: '',
|
|
|
+ WorkFlowCord: '',
|
|
|
+ WorkFlowName: '',
|
|
|
Remark: '',
|
|
|
IsDelete: '',
|
|
|
CreateOn: '',
|
|
|
@@ -184,126 +128,89 @@
|
|
|
ModifiedOn: '',
|
|
|
ModifiedUserId: '',
|
|
|
ModifiedBy: ''
|
|
|
- },
|
|
|
- tableColumns: [{
|
|
|
- prop: 'OrganizeName',
|
|
|
- label: '单位名称',
|
|
|
- width: 100,
|
|
|
- sort: true
|
|
|
- },
|
|
|
- // {
|
|
|
- // prop: 'AuditStepCode',
|
|
|
- // label: '审批步骤编码',
|
|
|
- // width: 100,
|
|
|
- // sort: true
|
|
|
- // },
|
|
|
- {
|
|
|
- prop: 'AuditStepName',
|
|
|
- label: '审批步骤名称',
|
|
|
- width: 100,
|
|
|
- sort: true
|
|
|
- },
|
|
|
- // {
|
|
|
- // prop: 'RoleName',
|
|
|
- // label: '角色名称',
|
|
|
- // width: 100,
|
|
|
- // sort: true
|
|
|
- // },
|
|
|
- {
|
|
|
- prop: 'UserName',
|
|
|
- label: '审批人',
|
|
|
- width: 100,
|
|
|
- sort: true
|
|
|
- },
|
|
|
- // {
|
|
|
- // prop: 'WorkFlowName',
|
|
|
- // label: '工作流名称',
|
|
|
- // width: 100,
|
|
|
- // sort: true
|
|
|
- // },
|
|
|
- {
|
|
|
- prop: 'Remark',
|
|
|
- label: '备注',
|
|
|
- width: 100,
|
|
|
- sort: true
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'CreateOn',
|
|
|
- label: '创建时间',
|
|
|
- width: 100,
|
|
|
- sort: true
|
|
|
+
|
|
|
}
|
|
|
- ]
|
|
|
- }
|
|
|
- },
|
|
|
- created() {
|
|
|
- // 查询条件初始值备份
|
|
|
- Object.assign(this.searchFormReset, this.searchForm)
|
|
|
- // 查询列表
|
|
|
- if (this.$route.query.step == 1) {
|
|
|
- //企业法规处审核
|
|
|
- this.ACode = "FIRST_TRIAL"
|
|
|
- } else if (this.$route.query.step == 2) {
|
|
|
- //二级单位复审
|
|
|
- this.ACode = "SECOND_TRIAL"
|
|
|
- } else if (this.$route.query.step == 3) {
|
|
|
- //业务处室接收
|
|
|
- this.ACode = "PROF_RECE"
|
|
|
- } else if (this.$route.query.step == 4) {
|
|
|
- //业务处室专业审核
|
|
|
- this.ACode = "PROF_AUDIT"
|
|
|
- } else if (this.$route.query.step == 5) {
|
|
|
- //集中评审
|
|
|
- this.ACode = "PROF_CONCENT"
|
|
|
- } else if (this.$route.query.step == 6) {
|
|
|
- //企业法规处审核
|
|
|
- this.ACode = "PROF_REGULATION"
|
|
|
- } else if (this.$route.query.step == 7) {
|
|
|
- // 二级单位分办
|
|
|
- this.ACode = "SUB_OFFICE"
|
|
|
- } else if (this.$route.query.step == 8) {
|
|
|
- //注册公司审核
|
|
|
- this.ACode = "COMPONY_AUDIT"
|
|
|
+ // 下拉选择项
|
|
|
+ // wellNoOptions: [],
|
|
|
+ // supervisersOptions: [],
|
|
|
+
|
|
|
}
|
|
|
- this.initDatas()
|
|
|
- // his.getDictOptions()
|
|
|
},
|
|
|
|
|
|
watch: {
|
|
|
$route (val) {
|
|
|
if (val.query.step == 1) {
|
|
|
- //企业法规处审核
|
|
|
- this.ACode = "FIRST_TRIAL"
|
|
|
+ // 企业法规处审核
|
|
|
+ this.ACode = 'FIRST_TRIAL'
|
|
|
} else if (val.query.step == 2) {
|
|
|
- //二级单位复审
|
|
|
- this.ACode = "SECOND_TRIAL"
|
|
|
+ // 二级单位复审
|
|
|
+ this.ACode = 'SECOND_TRIAL'
|
|
|
} else if (val.query.step == 3) {
|
|
|
- //业务处室接收
|
|
|
- this.ACode = "PROF_RECE"
|
|
|
+ // 业务处室接收
|
|
|
+ this.ACode = 'PROF_RECE'
|
|
|
} else if (val.query.step == 4) {
|
|
|
- //业务处室专业审核
|
|
|
- this.ACode = "PROF_AUDIT"
|
|
|
+ // 业务处室专业审核
|
|
|
+ this.ACode = 'PROF_AUDIT'
|
|
|
} else if (val.query.step == 5) {
|
|
|
- //集中评审
|
|
|
- this.ACode = "PROF_CONCENT"
|
|
|
+ // 集中评审
|
|
|
+ this.ACode = 'PROF_CONCENT'
|
|
|
} else if (val.query.step == 6) {
|
|
|
- //企业法规处审核
|
|
|
- this.ACode = "PROF_REGULATION"
|
|
|
+ // 企业法规处审核
|
|
|
+ this.ACode = 'PROF_REGULATION'
|
|
|
} else if (val.query.step == 7) {
|
|
|
// 二级单位分办
|
|
|
this.ACode = 'SUB_OFFICE'
|
|
|
} else if (val.query.step == 8) {
|
|
|
- //注册公司审核
|
|
|
- this.ACode = "COMPONY_AUDIT"
|
|
|
+ // 注册公司审核
|
|
|
+ this.ACode = 'COMPONY_AUDIT'
|
|
|
}
|
|
|
- this.initDatas()
|
|
|
+ this.initData()
|
|
|
}
|
|
|
},
|
|
|
|
|
|
+ created () {
|
|
|
+ // this.serviceId = this.$route.params.opera
|
|
|
+ // this.step = this.$route.query.step
|
|
|
+ // if (this.serviceId !== 'add' && this.serviceId > 0) {
|
|
|
+ // this.formData.Id = this.serviceId
|
|
|
+ // this.initDatas()
|
|
|
+ // } else {
|
|
|
+ // this.formData.Id = 0
|
|
|
+ // }
|
|
|
+ this.step = this.$route.query.step
|
|
|
+ if (this.$route.query.step == 1) {
|
|
|
+ // 企业法规处审核
|
|
|
+ this.ACode = 'FIRST_TRIAL'
|
|
|
+ } else if (this.$route.query.step == 2) {
|
|
|
+ // 二级单位复审
|
|
|
+ this.ACode = 'SECOND_TRIAL'
|
|
|
+ } else if (this.$route.query.step == 3) {
|
|
|
+ // 业务处室接收
|
|
|
+ this.ACode = 'PROF_RECE'
|
|
|
+ } else if (this.$route.query.step == 4) {
|
|
|
+ // 业务处室专业审核
|
|
|
+ this.ACode = 'PROF_AUDIT'
|
|
|
+ } else if (this.$route.query.step == 5) {
|
|
|
+ // 集中评审
|
|
|
+ this.ACode = 'PROF_CONCENT'
|
|
|
+ } else if (this.$route.query.step == 6) {
|
|
|
+ // 企业法规处审核
|
|
|
+ this.ACode = 'PROF_REGULATION'
|
|
|
+ } else if (this.$route.query.step == 7) {
|
|
|
+ // 二级单位分办
|
|
|
+ this.ACode = 'SUB_OFFICE'
|
|
|
+ } else if (this.$route.query.step == 8) {
|
|
|
+ // 注册公司审核
|
|
|
+ this.ACode = 'COMPONY_AUDIT'
|
|
|
+ }
|
|
|
+ this.initData()
|
|
|
+ // this.getAllRole()
|
|
|
+ this.getDictOptions()
|
|
|
+ this.getorgtreelist()
|
|
|
+ },
|
|
|
methods: {
|
|
|
- initDatas () {
|
|
|
+ initData () {
|
|
|
// 分页及列表条件
|
|
|
-
|
|
|
let params = {
|
|
|
_currentPage: this.currentPage,
|
|
|
_size: this.size,
|
|
|
@@ -311,80 +218,198 @@
|
|
|
Prop: this.Column.Prop,
|
|
|
Code: this.ACode
|
|
|
}
|
|
|
- let myCreateOn = []
|
|
|
- // 解析时间
|
|
|
- if (this.CreateOn.length === 2) {
|
|
|
- this.CreateOn[1].setHours(23)
|
|
|
- this.CreateOn[1].setMinutes(59)
|
|
|
- this.CreateOn[1].setSeconds(59)
|
|
|
- myCreateOn.push(this.formatDateTime(this.CreateOn[0]))
|
|
|
- myCreateOn.push(this.formatDateTime(this.CreateOn[1]))
|
|
|
- }
|
|
|
+ // let myCreateOn = []
|
|
|
+ // // 解析时间
|
|
|
+ // if (this.CreateOn.length === 2) {
|
|
|
+ // this.CreateOn[1].setHours(23)
|
|
|
+ // this.CreateOn[1].setMinutes(59)
|
|
|
+ // this.CreateOn[1].setSeconds(59)
|
|
|
+ // myCreateOn.push(this.formatDateTime(this.CreateOn[0]))
|
|
|
+ // myCreateOn.push(this.formatDateTime(this.CreateOn[1]))
|
|
|
+ // }
|
|
|
// 查询条件
|
|
|
Object.assign(params, this.searchForm)
|
|
|
// 访问接口
|
|
|
- api.getList(myCreateOn.join(','), params, this.$axios).then(res => {
|
|
|
+ api.getList([], params, this.$axios).then(res => {
|
|
|
this.entityList = res.data.items
|
|
|
this.currentItemCount = res.data.currentItemCount
|
|
|
+ this.getAllRole()
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
+ getAllRole () {
|
|
|
+ this.$axios.get('role/list', {})
|
|
|
+ .then(res => {
|
|
|
+ // response
|
|
|
+ this.rolelist = res.data.items
|
|
|
+ this.roleItemCount = res.data.currentItemCount
|
|
|
+ for (var i = 0; i < this.roleItemCount; i++) {
|
|
|
+ this.rolelistcheckall.push(this.rolelist[i].Id)
|
|
|
+ }
|
|
|
+ this.selectauditrole(this.entityList[0])
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ // handle error
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ selectauditrole (val) {
|
|
|
+ api.getAuditRoleList(val.Id, this.$axios).then(res => {
|
|
|
+ this.selectedrole = ''
|
|
|
+ this.userlist = []
|
|
|
+ console.log(res.data, 'res.data')
|
|
|
+ if (res.data != null && res.data.RoleId > 0) {
|
|
|
+ this.selectedrole = res.data.RoleId
|
|
|
+ this.getuserbyrole(res.data.RoleId)
|
|
|
+ }
|
|
|
+ // if (res.data != null) {
|
|
|
+ // for (let i = 0; i < res.data.length; i++) {
|
|
|
+ // if (this.roleisexist(parseInt(res.data[i]))) {
|
|
|
+ // this.selectedrole.push(parseInt(res.data[i]))
|
|
|
+ // }
|
|
|
+ //
|
|
|
+ // let flag = false
|
|
|
+ // let rdx = 0
|
|
|
+ // for (rdx = 0; rdx < this.rolelist.length; rdx++) {
|
|
|
+ // if (parseInt(this.rolelist[rdx].Id) == parseInt(res.data[i])) {
|
|
|
+ // flag = true
|
|
|
+ // break
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // if (!flag) {
|
|
|
+ // this.mustrolelist.push(parseInt(res.data[i]))
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // let checkedCount = this.selectedrole.length
|
|
|
+ // this.roleCheckAll = checkedCount === this.rolelist.length
|
|
|
+ // this.isrolecheckall = checkedCount > 0 && checkedCount < this.rolelist.length
|
|
|
+ // this.getuserbyrole(res.data)
|
|
|
+ // }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getuserbyrole (val) {
|
|
|
+ let roleids = val
|
|
|
+ api.getUserByRole({roleids}, this.$axios).then(res => {
|
|
|
+ this.userlist = res.data
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handlecheckedrolechange () {
|
|
|
+ let checkedCount = this.selectedrole.length
|
|
|
+ this.roleCheckAll = checkedCount === this.rolelist.length
|
|
|
+ this.isrolecheckall = checkedCount > 0 && checkedCount < this.rolelist.length
|
|
|
+ },
|
|
|
+ handleCheckAllChange (val) {
|
|
|
+ this.selectedrole = val ? this.rolelistcheckall : []
|
|
|
+ this.isrolecheckall = false
|
|
|
+ },
|
|
|
+ roleisexist (val) {
|
|
|
+ for (let i = 0; i < this.rolelist.length; i++) {
|
|
|
+ if (this.rolelist[i].Id === val) {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false
|
|
|
+ },
|
|
|
|
|
|
- /* getDictOptions () {
|
|
|
+ getDictOptions () {
|
|
|
api.getDictList(this.$axios).then(res => {
|
|
|
- this.searchForm.OrganizeId = res.data.items['OrganizeId']
|
|
|
+ this.auditStepOptions = res.data.items['AuditStep']
|
|
|
+ this.roleList = res.data.items['RoleList']
|
|
|
+ this.formData.OrganizeId = res.data.items['OrganizeId']
|
|
|
+ if (this.formData.Id === 0) {
|
|
|
+ this.formData.OrganizeName = res.data.items['OrganizeName']
|
|
|
+ }
|
|
|
+ this.WorkFlowOptions = res.data.items['WorkFlow']
|
|
|
+ // this.userOptions = res.data.items['users']
|
|
|
+ // this.supervisersOptions = res.data.items['Supervisers']
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
- }, */
|
|
|
-
|
|
|
- searchCommand(command) {
|
|
|
- if (command === 'search') {
|
|
|
- this.dialogVisible = true
|
|
|
- } else if (command === 'clear') {
|
|
|
- this.clearSearch()
|
|
|
- }
|
|
|
},
|
|
|
- // 列表排序功能
|
|
|
- orderby(column) {
|
|
|
- if (column.order === 'ascending') {
|
|
|
- this.Column.Order = 'asc'
|
|
|
- } else if (column.order === 'descending') {
|
|
|
- this.Column.Order = 'desc'
|
|
|
+ getorgtreelist () {
|
|
|
+ let _this = this
|
|
|
+ let params = {
|
|
|
+ IsInnerOrganize: 1
|
|
|
}
|
|
|
- this.Column.Prop = column.prop
|
|
|
- this.initDatas()
|
|
|
- },
|
|
|
- clearSearch() {
|
|
|
- Object.assign(this.searchForm, this.searchFormReset)
|
|
|
- // this.searchForm = this.searchFormReset;
|
|
|
- this.CreateOn = ''
|
|
|
- this.initDatas()
|
|
|
- },
|
|
|
- handleSearch() {
|
|
|
- this.currentPage = 1
|
|
|
- this.dialogVisible = false
|
|
|
- this.initDatas()
|
|
|
- },
|
|
|
- handleCurrentChange(value) {
|
|
|
- this.currentPage = value
|
|
|
- this.initDatas()
|
|
|
+ _this.$axios.get('organizes/listbydeptid', {
|
|
|
+ params
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ _this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
},
|
|
|
- handleSizeChange(value) {
|
|
|
- this.size = value
|
|
|
- this.currentPage = 1
|
|
|
- this.initDatas()
|
|
|
+ auditOrgChang (val) {
|
|
|
+ // let deptId = val[val.length - 1]
|
|
|
+ // this.userOptions = []
|
|
|
+ // this.auditers = []
|
|
|
+ // api.getAuditerByDept(deptId, this.$axios).then(res => {
|
|
|
+ // if (res.data.code === 1) {
|
|
|
+ // this.userOptions = res.data.item
|
|
|
+ // }
|
|
|
+ // }).catch(err => {
|
|
|
+ // console.error(err)
|
|
|
+ // })
|
|
|
},
|
|
|
- deleteEntity(row) {
|
|
|
- row.deleteConfirmFlag = false
|
|
|
- api.deleteEntity(row.Id, this.$axios).then(res => {
|
|
|
+ // 保存信息
|
|
|
+ saveEntity () {
|
|
|
+ if (this.step == 1) {
|
|
|
+ // 二级单位初审
|
|
|
+ this.auditStepCode = 'FIRST_TRIAL'
|
|
|
+ this.auditStepName = '二级单位初审'
|
|
|
+ } else if (this.step == 2) {
|
|
|
+ // 二级单位复审
|
|
|
+ this.auditStepCode = 'SECOND_TRIAL'
|
|
|
+ this.auditStepName = '二级单位复审'
|
|
|
+ } else if (this.step == 2) {
|
|
|
+ // 业务处室接收
|
|
|
+ this.auditStepCode = 'PROF_RECE'
|
|
|
+ this.auditStepName = '业务处室接收'
|
|
|
+ } else if (this.step == 4) {
|
|
|
+ // 业务处室专业审核
|
|
|
+ this.auditStepCode = 'PROF_AUDIT'
|
|
|
+ this.auditStepName = '业务处室专业审核'
|
|
|
+ } else if (this.step == 5) {
|
|
|
+ // 集中评审
|
|
|
+ this.auditStepCode = 'PROF_CONCENT'
|
|
|
+ this.auditStepName = '集中评审'
|
|
|
+ } else if (this.step == 6) {
|
|
|
+ // 企业法规处审核
|
|
|
+ this.auditStepCode = 'PROF_REGULATION'
|
|
|
+ this.auditStepName = '企业法规处审核'
|
|
|
+ } else if (this.step == 7) {
|
|
|
+ this.auditStepCode = 'SUB_OFFICE'
|
|
|
+ this.auditStepName = '二级单位分办'
|
|
|
+ } else if (this.step == 8) {
|
|
|
+ this.auditStepCode = 'COMPONY_AUDIT'
|
|
|
+ this.auditStepName = '注册公司审核'
|
|
|
+ }
|
|
|
+ // this.formData.WorkFlowName = this.$refs.selectWorkFlow.selectedLabel + ''
|
|
|
+ // if (!this.userselectOptions || this.userselectOptions.length <= 0) {
|
|
|
+ // this.$message({
|
|
|
+ // type: 'error',
|
|
|
+ // message: '审批人为空,不允许保存!'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // let roleids = this.selectedrole.join(',')
|
|
|
+ let params = {
|
|
|
+ setid: this.entityList[0].Id,
|
|
|
+ auditStepName: this.auditStepName,
|
|
|
+ auditStepCode: this.auditStepCode,
|
|
|
+ roleids: this.selectedrole
|
|
|
+ }
|
|
|
+ api.addauditrole(params, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
- this.initDatas()
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
|
})
|
|
|
+ // 刷新一下界面
|
|
|
+ this.initData()
|
|
|
} else {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
@@ -396,7 +421,7 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- jstimehandle(val) {
|
|
|
+ jstimehandle (val) {
|
|
|
if (val === '') {
|
|
|
return '----'
|
|
|
} else if (val === '0001-01-01T08:00:00+08:00') {
|
|
|
@@ -409,7 +434,7 @@
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- formatDateTime(date) {
|
|
|
+ formatDateTime (date) {
|
|
|
var y = date.getFullYear()
|
|
|
var m = date.getMonth() + 1
|
|
|
m = m < 10 ? ('0' + m) : m
|
|
|
@@ -422,13 +447,8 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
|
- .el-pagination {
|
|
|
- margin: 1rem 0 2rem;
|
|
|
- text-align: right;
|
|
|
- }
|
|
|
|
|
|
</style>
|