|
|
@@ -1,18 +1,34 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<basic-container>
|
|
|
- <avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" :permission="permissionList"
|
|
|
- :before-open="beforeOpen" v-model="form" ref="crud" id="out-table" :header-cell-class-name="headerClassName"
|
|
|
- @row-update="rowUpdate" @row-save="rowSave" @row-del="rowDel" @search-change="searchChange"
|
|
|
- @search-reset="searchReset" @selection-change="selectionChange" @current-change="currentChange"
|
|
|
- @size-change="sizeChange" @refresh-change="refreshChange"
|
|
|
+ <avue-crud
|
|
|
+ :option="option"
|
|
|
+ :table-loading="loading"
|
|
|
+ :data="data"
|
|
|
+ :page.sync="page"
|
|
|
+ :permission="permissionList"
|
|
|
+ :before-open="beforeOpen"
|
|
|
+ v-model="form"
|
|
|
+ ref="crud"
|
|
|
+ id="out-table"
|
|
|
+ :header-cell-class-name="headerClassName"
|
|
|
+ @row-update="rowUpdate"
|
|
|
+ @row-save="rowSave"
|
|
|
+ @row-del="rowDel"
|
|
|
+ @search-change="searchChange"
|
|
|
+ @search-reset="searchReset"
|
|
|
+ @selection-change="selectionChange"
|
|
|
+ @current-change="currentChange"
|
|
|
+ @size-change="sizeChange"
|
|
|
+ @refresh-change="refreshChange"
|
|
|
@resetColumn="resetColumnTwo('crud', 'option', 'optionBack', 325)"
|
|
|
- @saveColumn="saveColumnTwo('crud', 'option', 'optionBack', 325)" @on-load="onLoad">
|
|
|
+ @saveColumn="saveColumnTwo('crud', 'option', 'optionBack', 325)"
|
|
|
+ @on-load="onLoad"
|
|
|
+ >
|
|
|
<template slot="menuLeft">
|
|
|
- <el-button type="success" size="small" icon="el-icon-plus" plain @click="addfun">新建
|
|
|
- </el-button>
|
|
|
- <el-button type="danger" size="small" icon="el-icon-delete" plain @click="handleDelete">删 除
|
|
|
- </el-button>
|
|
|
+ <el-button type="success" size="small" icon="el-icon-plus" plain @click="addfun">新建 </el-button>
|
|
|
+ <el-button type="danger" size="small" icon="el-icon-delete" plain @click="handleDelete">删除 </el-button>
|
|
|
+ <el-button type="danger" size="small" icon="el-icon-delete" plain @click="handleVerifyEdiCodes">校验 EDI CODES </el-button>
|
|
|
</template>
|
|
|
<!-- <template slot="corpCnNameForm">-->
|
|
|
<!-- <search-query :datalist="corpData"-->
|
|
|
@@ -28,75 +44,146 @@
|
|
|
<!-- </search-query>-->
|
|
|
<!-- </template>-->
|
|
|
<template slot="addressForm">
|
|
|
- <el-button type="success" size="small" icon="el-icon-plus" plain @click="ressButton">发送
|
|
|
- </el-button>
|
|
|
+ <el-button type="success" size="small" icon="el-icon-plus" plain @click="ressButton">发送 </el-button>
|
|
|
</template>
|
|
|
<template slot="userlistForm">
|
|
|
<!-- <search-query :datalist="userData" :selectValue="form.userlist" :clearable="true" :multiple="true"
|
|
|
:collapseTags="false" :buttonIf="false" :forParameter="{ key: 'id', label: 'roleName', value: 'id' }"
|
|
|
@corpChange="corpChange($event, 'userlist')" @corpFocus="getRoleListfun">
|
|
|
</search-query> -->
|
|
|
- <dic-select v-model="form.userlist" placeholder="权限用户" key="id" keyValue="id" label="realName"
|
|
|
- url="/blade-user/userListAll" :filterable="true" :multiple="true" :sortable="true" dataName="realName"
|
|
|
- ></dic-select>
|
|
|
+ <dic-select
|
|
|
+ v-model="form.userlist"
|
|
|
+ placeholder="权限用户"
|
|
|
+ key="id"
|
|
|
+ keyValue="id"
|
|
|
+ label="realName"
|
|
|
+ url="/blade-user/userListAll"
|
|
|
+ :filterable="true"
|
|
|
+ :multiple="true"
|
|
|
+ :sortable="true"
|
|
|
+ dataName="realName"
|
|
|
+ ></dic-select>
|
|
|
</template>
|
|
|
<template slot="rolelistForm">
|
|
|
- <dic-select v-model="form.rolelist" placeholder="权限角色" key="id" keyValue="id" label="roleName"
|
|
|
- url="/blade-system/role/list" :filterable="true" :multiple="true" :sortable="true"
|
|
|
+ <dic-select
|
|
|
+ v-model="form.rolelist"
|
|
|
+ placeholder="权限角色"
|
|
|
+ key="id"
|
|
|
+ keyValue="id"
|
|
|
+ label="roleName"
|
|
|
+ url="/blade-system/role/list"
|
|
|
+ :filterable="true"
|
|
|
+ :multiple="true"
|
|
|
+ :sortable="true"
|
|
|
></dic-select>
|
|
|
</template>
|
|
|
<template slot="teamlistForm">
|
|
|
- <dic-select v-model="form.teamlist" placeholder="权限团队" key="id" keyValue="id" label="postName"
|
|
|
- url="/blade-system/post/listAll" :filterable="true" :multiple="true" :sortable="true" dataName="postName"
|
|
|
- ></dic-select>
|
|
|
+ <dic-select
|
|
|
+ v-model="form.teamlist"
|
|
|
+ placeholder="权限团队"
|
|
|
+ key="id"
|
|
|
+ keyValue="id"
|
|
|
+ label="postName"
|
|
|
+ url="/blade-system/post/listAll"
|
|
|
+ :filterable="true"
|
|
|
+ :multiple="true"
|
|
|
+ :sortable="true"
|
|
|
+ dataName="postName"
|
|
|
+ ></dic-select>
|
|
|
</template>
|
|
|
<template slot="excludelistForm">
|
|
|
- <dic-select v-model="form.excludelist" placeholder="排除用户" key="id" keyValue="id" label="realName"
|
|
|
- url="/blade-user/userListAll" :filterable="true" :multiple="true" :sortable="true" dataName="realName"
|
|
|
- ></dic-select>
|
|
|
+ <dic-select
|
|
|
+ v-model="form.excludelist"
|
|
|
+ placeholder="排除用户"
|
|
|
+ key="id"
|
|
|
+ keyValue="id"
|
|
|
+ label="realName"
|
|
|
+ url="/blade-user/userListAll"
|
|
|
+ :filterable="true"
|
|
|
+ :multiple="true"
|
|
|
+ :sortable="true"
|
|
|
+ dataName="realName"
|
|
|
+ ></dic-select>
|
|
|
</template>
|
|
|
- <template slot="menu" slot-scope="{row}">
|
|
|
- <el-button type="text" size="small" icon="el-icon-edit" @click="editFun(row)">编辑
|
|
|
- </el-button>
|
|
|
- <el-button type="text" size="small" icon="el-icon-delete" @click="rowDel(row)">删除
|
|
|
- </el-button>
|
|
|
- <el-button v-if="row.status == 1" type="text" icon="el-icon-turn-off" style="color: #85e967" size="small"
|
|
|
- @click.stop="statusfun(row.id, 0)">
|
|
|
+ <template slot="menu" slot-scope="{ row }">
|
|
|
+ <el-button type="text" size="small" icon="el-icon-edit" @click="editFun(row)">编辑 </el-button>
|
|
|
+ <el-button type="text" size="small" icon="el-icon-delete" @click="rowDel(row)">删除 </el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="row.status == 1"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-turn-off"
|
|
|
+ style="color: #85e967"
|
|
|
+ size="small"
|
|
|
+ @click.stop="statusfun(row.id, 0)"
|
|
|
+ >
|
|
|
启用
|
|
|
</el-button>
|
|
|
- <el-button v-if="row.status == 0" type="text" icon="el-icon-turn-off" style="color: #e83c3a" size="small"
|
|
|
- @click.stop="statusfun(row.id, 1)">
|
|
|
+ <el-button
|
|
|
+ v-if="row.status == 0"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-turn-off"
|
|
|
+ style="color: #e83c3a"
|
|
|
+ size="small"
|
|
|
+ @click.stop="statusfun(row.id, 1)"
|
|
|
+ >
|
|
|
停用
|
|
|
</el-button>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
</basic-container>
|
|
|
- <el-dialog title="配置发送数据" :visible.sync="ressVisible" width="70%" top="5vh" append-to-body class="el-dialogDeep"
|
|
|
- :close-on-click-modal="false" v-dialog-drag>
|
|
|
+ <el-dialog
|
|
|
+ title="配置发送数据"
|
|
|
+ :visible.sync="ressVisible"
|
|
|
+ width="70%"
|
|
|
+ top="5vh"
|
|
|
+ append-to-body
|
|
|
+ class="el-dialogDeep"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ v-dialog-drag
|
|
|
+ >
|
|
|
<div>
|
|
|
- <avue-crud :option="ressOption" :data="tableData" id="out-table" :header-cell-class-name="headerClassName"
|
|
|
- @row-update="ressRowupdate" @row-save="ressRowsave" @row-del="ressRowdel" ></avue-crud>
|
|
|
+ <avue-crud
|
|
|
+ :option="ressOption"
|
|
|
+ :data="tableData"
|
|
|
+ id="out-table"
|
|
|
+ :header-cell-class-name="headerClassName"
|
|
|
+ @row-update="ressRowupdate"
|
|
|
+ @row-save="ressRowsave"
|
|
|
+ @row-del="ressRowdel"
|
|
|
+ ></avue-crud>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="ressVisible = false; form.address = JSON.stringify(tableData)">取 消</el-button>
|
|
|
- <el-button type="primary" @click="ressVisible = false; form.address = JSON.stringify(tableData)">确 定</el-button>
|
|
|
+ <el-button
|
|
|
+ @click="
|
|
|
+ ressVisible = false;
|
|
|
+ form.address = JSON.stringify(tableData);
|
|
|
+ "
|
|
|
+ >取 消</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="
|
|
|
+ ressVisible = false;
|
|
|
+ form.address = JSON.stringify(tableData);
|
|
|
+ "
|
|
|
+ >确 定</el-button
|
|
|
+ >
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { editypesList, editypesDetail, editypesSubmit, editypesRemove } from "@/api/iosBasicData/editypes";
|
|
|
+import { editypesList, editypesDetail, editypesSubmit, editypesRemove, verifyEdiCodes } from "@/api/iosBasicData/editypes";
|
|
|
import { mapGetters } from "vuex";
|
|
|
import SearchQuery from "@/components/iosbasic-data/searchquery.vue";
|
|
|
import { getBcorpslistByType } from "@/api/iosBasicData/bcorps";
|
|
|
-import { getList as getRoleList } from "@/api/system/role"
|
|
|
+import { getList as getRoleList } from "@/api/system/role";
|
|
|
import { bbusinesstypeList } from "@/api/iosBasicData/bbusinesstype";
|
|
|
import dicSelect from "@/components/dicSelect/main";
|
|
|
export default {
|
|
|
components: { SearchQuery, dicSelect },
|
|
|
- props: {
|
|
|
- },
|
|
|
+ props: {},
|
|
|
data() {
|
|
|
return {
|
|
|
form: {
|
|
|
@@ -107,12 +194,12 @@ export default {
|
|
|
page: {
|
|
|
pageSize: 20,
|
|
|
currentPage: 1,
|
|
|
- total: 0
|
|
|
+ total: 0,
|
|
|
},
|
|
|
selectionList: [],
|
|
|
option: {},
|
|
|
optionBack: {
|
|
|
- height: 'auto',
|
|
|
+ height: "auto",
|
|
|
calcHeight: 30,
|
|
|
tip: false,
|
|
|
searchShow: true,
|
|
|
@@ -129,70 +216,88 @@ export default {
|
|
|
prop: "type",
|
|
|
search: true,
|
|
|
overHidden: true,
|
|
|
- type: 'select',
|
|
|
+ type: "select",
|
|
|
+ width: 100,
|
|
|
dicData: [],
|
|
|
props: {
|
|
|
label: "cnName",
|
|
|
- value: "code"
|
|
|
+ value: "code",
|
|
|
},
|
|
|
- rules: [{
|
|
|
- required: true,
|
|
|
- message: "请输入业务类型",
|
|
|
- trigger: "blur"
|
|
|
- }]
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: "请输入业务类型",
|
|
|
+ trigger: "blur",
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
{
|
|
|
label: "类别",
|
|
|
prop: "groupName",
|
|
|
type: "select",
|
|
|
+ width: 50,
|
|
|
search: true,
|
|
|
- dicData: [{
|
|
|
- label: 'Booking',
|
|
|
- value: 'SO'
|
|
|
- }, {
|
|
|
- label: 'SI',
|
|
|
- value: 'SI'
|
|
|
- }],
|
|
|
- rules: [{
|
|
|
- required: true,
|
|
|
- message: "请输入类别",
|
|
|
- trigger: "blur"
|
|
|
- }],
|
|
|
+ dicData: [
|
|
|
+ {
|
|
|
+ label: "BF",
|
|
|
+ value: "SO",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "SI",
|
|
|
+ value: "SI",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: "请输入类别",
|
|
|
+ trigger: "blur",
|
|
|
+ },
|
|
|
+ ],
|
|
|
|
|
|
- value: 'SO',
|
|
|
+ value: "SO",
|
|
|
overHidden: true,
|
|
|
},
|
|
|
{
|
|
|
label: "EDI 编码",
|
|
|
prop: "code",
|
|
|
+ width: 140,
|
|
|
search: true,
|
|
|
overHidden: true,
|
|
|
- rules: [{
|
|
|
- required: true,
|
|
|
- message: "请输入 EDI 编码,唯一",
|
|
|
- trigger: "blur"
|
|
|
- }]
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: "请输入 EDI 编码,唯一",
|
|
|
+ trigger: "blur",
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
{
|
|
|
label: "EDI 名称",
|
|
|
prop: "cnName",
|
|
|
+ width: 220,
|
|
|
search: true,
|
|
|
overHidden: true,
|
|
|
- rules: [{
|
|
|
- required: true,
|
|
|
- message: "请输入 EDI 中文名称",
|
|
|
- trigger: "blur"
|
|
|
- }]
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: "请输入 EDI 中文名称",
|
|
|
+ trigger: "blur",
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
{
|
|
|
label: "EDI 英文",
|
|
|
prop: "enName",
|
|
|
+ width: 220,
|
|
|
overHidden: true,
|
|
|
- rules: [{
|
|
|
- required: true,
|
|
|
- message: "请输入 EDI 英文名称",
|
|
|
- trigger: "blur"
|
|
|
- }]
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: "请输入 EDI 英文名称",
|
|
|
+ trigger: "blur",
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
// {
|
|
|
// label: "客户名称",
|
|
|
@@ -214,30 +319,35 @@ export default {
|
|
|
{
|
|
|
label: "发送 FTP/邮件",
|
|
|
prop: "address",
|
|
|
+ width: 180,
|
|
|
hide: true,
|
|
|
overHidden: true,
|
|
|
},
|
|
|
{
|
|
|
label: "权限用户",
|
|
|
prop: "userlist",
|
|
|
+ width: 100,
|
|
|
hide: true,
|
|
|
overHidden: true,
|
|
|
},
|
|
|
{
|
|
|
label: "权限角色",
|
|
|
prop: "rolelist",
|
|
|
+ width: 100,
|
|
|
hide: true,
|
|
|
overHidden: true,
|
|
|
},
|
|
|
{
|
|
|
label: "权限团队",
|
|
|
prop: "teamlist",
|
|
|
+ width: 100,
|
|
|
hide: true,
|
|
|
overHidden: true,
|
|
|
},
|
|
|
{
|
|
|
label: "排除用户",
|
|
|
prop: "excludelist",
|
|
|
+ width: 100,
|
|
|
hide: true,
|
|
|
overHidden: true,
|
|
|
},
|
|
|
@@ -245,44 +355,53 @@ export default {
|
|
|
label: "状态",
|
|
|
prop: "status",
|
|
|
type: "select",
|
|
|
+ width: 60,
|
|
|
search: true,
|
|
|
- dicData: [{
|
|
|
- label: '启用',
|
|
|
- value: 0
|
|
|
- }, {
|
|
|
- label: '停用',
|
|
|
- value: 1
|
|
|
- }],
|
|
|
+ dicData: [
|
|
|
+ {
|
|
|
+ label: "启用",
|
|
|
+ value: 0,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "停用",
|
|
|
+ value: 1,
|
|
|
+ },
|
|
|
+ ],
|
|
|
value: 0,
|
|
|
overHidden: true,
|
|
|
},
|
|
|
{
|
|
|
label: "创建人",
|
|
|
prop: "createUserName",
|
|
|
+ width: 100,
|
|
|
overHidden: true,
|
|
|
display: false,
|
|
|
},
|
|
|
{
|
|
|
label: "创建部门",
|
|
|
prop: "createDeptName",
|
|
|
+ width: 100,
|
|
|
overHidden: true,
|
|
|
display: false,
|
|
|
},
|
|
|
{
|
|
|
label: "创建时间",
|
|
|
prop: "createTime",
|
|
|
+ width: 140,
|
|
|
overHidden: true,
|
|
|
display: false,
|
|
|
},
|
|
|
{
|
|
|
label: "修改人",
|
|
|
prop: "updateUserName",
|
|
|
+ width: 100,
|
|
|
overHidden: true,
|
|
|
display: false,
|
|
|
},
|
|
|
{
|
|
|
label: "修改时间",
|
|
|
prop: "updateTime",
|
|
|
+ width: 140,
|
|
|
overHidden: true,
|
|
|
display: false,
|
|
|
},
|
|
|
@@ -291,10 +410,11 @@ export default {
|
|
|
prop: "remarks",
|
|
|
overHidden: true,
|
|
|
type: "textarea",
|
|
|
+ width: 200,
|
|
|
minRows: 3,
|
|
|
- span: 24
|
|
|
+ span: 24,
|
|
|
},
|
|
|
- ]
|
|
|
+ ],
|
|
|
},
|
|
|
data: [],
|
|
|
corpData: [], // 客户下拉数据
|
|
|
@@ -310,78 +430,90 @@ export default {
|
|
|
addBtn: false,
|
|
|
addRowBtn: true,
|
|
|
cellBtn: true,
|
|
|
- rowKey: '$index',
|
|
|
+ rowKey: "$index",
|
|
|
menuWidth: 140,
|
|
|
- column: [{
|
|
|
- label: '标题',
|
|
|
- prop: 'title',
|
|
|
- cell: true,
|
|
|
- }, {
|
|
|
- label: '方式',
|
|
|
- prop: 'mode',
|
|
|
- cell: true,
|
|
|
- type: "select",
|
|
|
- dicData: [
|
|
|
- {
|
|
|
- label: 'FTP',
|
|
|
- value: 'ftp'
|
|
|
- },
|
|
|
- {
|
|
|
- label: 'SSL FTP',
|
|
|
- value: 'sftp'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '邮件',
|
|
|
- value: 'smtp'
|
|
|
- }
|
|
|
- ],
|
|
|
- rules: [{
|
|
|
- required: true,
|
|
|
- message: "",
|
|
|
- trigger: "blur"
|
|
|
- }],
|
|
|
- }, {
|
|
|
- label: '主机地址',
|
|
|
- prop: 'host',
|
|
|
- cell: true,
|
|
|
- }, {
|
|
|
- label: '端口',
|
|
|
- prop: 'port',
|
|
|
+ column: [
|
|
|
+ {
|
|
|
+ label: "标题",
|
|
|
+ prop: "title",
|
|
|
+ cell: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "方式",
|
|
|
+ prop: "mode",
|
|
|
+ cell: true,
|
|
|
+ type: "select",
|
|
|
+ dicData: [
|
|
|
+ {
|
|
|
+ label: "FTP",
|
|
|
+ value: "ftp",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "SSL FTP",
|
|
|
+ value: "sftp",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "邮件",
|
|
|
+ value: "smtp",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "主机地址",
|
|
|
+ prop: "host",
|
|
|
+ cell: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "端口",
|
|
|
+ prop: "port",
|
|
|
cell: true,
|
|
|
- }, {
|
|
|
- label: '用户名称',
|
|
|
- prop: 'userName',
|
|
|
- cell: true,
|
|
|
- }, {
|
|
|
- label: '密码',
|
|
|
- prop: 'password',
|
|
|
- type: "password",
|
|
|
- cell: true,
|
|
|
- }, {
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "用户名称",
|
|
|
+ prop: "userName",
|
|
|
+ cell: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "密码",
|
|
|
+ prop: "password",
|
|
|
+ type: "password",
|
|
|
+ cell: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
label: "被动模式",
|
|
|
- prop: 'localPassiveMode',
|
|
|
+ prop: "localPassiveMode",
|
|
|
type: "select",
|
|
|
cell: true,
|
|
|
dicData: [
|
|
|
- {
|
|
|
- label: '是',
|
|
|
- value: '1'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '否',
|
|
|
- value: '0'
|
|
|
- }
|
|
|
+ {
|
|
|
+ label: "是",
|
|
|
+ value: "1",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "否",
|
|
|
+ value: "0",
|
|
|
+ },
|
|
|
],
|
|
|
- },{
|
|
|
- label: '邮箱地址',
|
|
|
- prop: 'address',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "邮箱地址",
|
|
|
+ prop: "address",
|
|
|
cell: true,
|
|
|
- }, {
|
|
|
- label: '路径',
|
|
|
- prop: 'path',
|
|
|
- cell: true,
|
|
|
- }]
|
|
|
- }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "路径",
|
|
|
+ prop: "path",
|
|
|
+ cell: true,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -391,145 +523,150 @@ export default {
|
|
|
addBtn: this.vaildData(this.permission.editypes_add, false),
|
|
|
viewBtn: this.vaildData(this.permission.editypes_view, false),
|
|
|
delBtn: this.vaildData(this.permission.editypes_delete, false),
|
|
|
- editBtn: this.vaildData(this.permission.editypes_edit, false)
|
|
|
+ editBtn: this.vaildData(this.permission.editypes_edit, false),
|
|
|
};
|
|
|
},
|
|
|
ids() {
|
|
|
let ids = [];
|
|
|
- this.selectionList.forEach(ele => {
|
|
|
+ this.selectionList.forEach((ele) => {
|
|
|
ids.push(ele.id);
|
|
|
});
|
|
|
return ids.join(",");
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
async created() {
|
|
|
this.option = await this.getColumnData(this.getColumnName(325), this.optionBack);
|
|
|
- this.getRoleListfun()
|
|
|
- this.bbusinesstypeListfun() // 业务类型
|
|
|
+ this.getRoleListfun();
|
|
|
+ this.bbusinesstypeListfun(); // 业务类型
|
|
|
},
|
|
|
methods: {
|
|
|
// 获取业务类型接口
|
|
|
bbusinesstypeListfun() {
|
|
|
// 获取业务类型
|
|
|
- bbusinesstypeList(1, 1000).then(res => {
|
|
|
- this.findObject(this.option.column, "type").dicData = res.data.data.records
|
|
|
- })
|
|
|
+ bbusinesstypeList(1, 1000).then((res) => {
|
|
|
+ this.findObject(this.option.column, "type").dicData = res.data.data.records;
|
|
|
+ });
|
|
|
},
|
|
|
// 禁用启用按钮
|
|
|
statusfun(id, status) {
|
|
|
this.$confirm("确定将选择数据更改状态?", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
+ type: "warning",
|
|
|
}).then(() => {
|
|
|
- editypesDetail(id).then(res => {
|
|
|
+ editypesDetail(id).then((res) => {
|
|
|
let obj = res.data.data;
|
|
|
- obj.status = status
|
|
|
+ obj.status = status;
|
|
|
editypesSubmit(obj).then(() => {
|
|
|
this.onLoad(this.page);
|
|
|
this.$message({
|
|
|
type: "success",
|
|
|
- message: "操作成功!"
|
|
|
+ message: "操作成功!",
|
|
|
});
|
|
|
- })
|
|
|
- })
|
|
|
- })
|
|
|
+ });
|
|
|
+ });
|
|
|
+ });
|
|
|
},
|
|
|
// 添加
|
|
|
addfun() {
|
|
|
- this.$refs.crud.rowAdd()
|
|
|
+ this.$refs.crud.rowAdd();
|
|
|
},
|
|
|
// 编辑
|
|
|
editFun(row) {
|
|
|
- this.$refs.crud.rowEdit(row, row.$index)
|
|
|
+ this.$refs.crud.rowEdit(row, row.$index);
|
|
|
},
|
|
|
// 下拉回调
|
|
|
corpChange(value, name) {
|
|
|
- if (name == 'corpCnName') {
|
|
|
+ if (name == "corpCnName") {
|
|
|
for (let item of this.corpData) {
|
|
|
if (item.cnName == value) {
|
|
|
- this.$set(this.form, 'corpId', item.id)
|
|
|
- this.$set(this.form, 'corpCnName', item.cnName)
|
|
|
- this.$set(this.form, 'corpEnName', item.enName)
|
|
|
+ this.$set(this.form, "corpId", item.id);
|
|
|
+ this.$set(this.form, "corpCnName", item.cnName);
|
|
|
+ this.$set(this.form, "corpEnName", item.enName);
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- this.$set(this.form, name, value)
|
|
|
+ this.$set(this.form, name, value);
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
// 获取结算单位数据
|
|
|
corpBcorpsListfun(cnName) {
|
|
|
- getBcorpslistByType(1, 10, { cnName }).then(res => {
|
|
|
- this.corpData = res.data.data.records
|
|
|
- })
|
|
|
+ getBcorpslistByType(1, 10, { cnName }).then((res) => {
|
|
|
+ this.corpData = res.data.data.records;
|
|
|
+ });
|
|
|
},
|
|
|
// 获取权限用户数据
|
|
|
getRoleListfun() {
|
|
|
- getRoleList(1, 50,).then(res => {
|
|
|
- this.userData = res.data.data
|
|
|
- })
|
|
|
+ getRoleList(1, 50).then((res) => {
|
|
|
+ this.userData = res.data.data;
|
|
|
+ });
|
|
|
},
|
|
|
// 点击弹出表格
|
|
|
ressButton() {
|
|
|
- this.tableData = JSON.parse(this.form.address ? this.form.address : '[]')
|
|
|
- this.ressVisible = true
|
|
|
+ this.tableData = JSON.parse(this.form.address ? this.form.address : "[]");
|
|
|
+ this.ressVisible = true;
|
|
|
},
|
|
|
// 弹窗表格的添加保存
|
|
|
ressRowsave(row, done, loading) {
|
|
|
- done(row)
|
|
|
+ done(row);
|
|
|
+ },
|
|
|
+ ressRowdel(row, done, loading) {
|
|
|
+ console.log(row);
|
|
|
+ let i = this.tableData.indexOf(row);
|
|
|
+ if (i >= 0) {
|
|
|
+ this.tableData.splice(i, 1);
|
|
|
+ }
|
|
|
},
|
|
|
- ressRowdel(row, done, loading){
|
|
|
- console.log(row)
|
|
|
- let i = this.tableData.indexOf(row);
|
|
|
- if(i>=0){
|
|
|
- this.tableData.splice(i, 1);
|
|
|
- }
|
|
|
- },
|
|
|
// 弹窗表格的修改保存
|
|
|
ressRowupdate(row, index, done, loading) {
|
|
|
- done(row)
|
|
|
+ done(row);
|
|
|
},
|
|
|
// 新增
|
|
|
rowSave(row, done, loading) {
|
|
|
- row.userlist = JSON.stringify(row.userlist)
|
|
|
- row.rolelist = JSON.stringify(row.rolelist)
|
|
|
- row.teamlist = JSON.stringify(row.teamlist)
|
|
|
- row.excludelist = JSON.stringify(row.excludelist)
|
|
|
- editypesSubmit(row).then(() => {
|
|
|
- this.onLoad(this.page);
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "操作成功!"
|
|
|
- });
|
|
|
- done();
|
|
|
- }, error => {
|
|
|
- loading();
|
|
|
- window.console.log(error);
|
|
|
- });
|
|
|
+ row.userlist = JSON.stringify(row.userlist);
|
|
|
+ row.rolelist = JSON.stringify(row.rolelist);
|
|
|
+ row.teamlist = JSON.stringify(row.teamlist);
|
|
|
+ row.excludelist = JSON.stringify(row.excludelist);
|
|
|
+ editypesSubmit(row).then(
|
|
|
+ () => {
|
|
|
+ this.onLoad(this.page);
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "操作成功!",
|
|
|
+ });
|
|
|
+ done();
|
|
|
+ },
|
|
|
+ (error) => {
|
|
|
+ loading();
|
|
|
+ window.console.log(error);
|
|
|
+ }
|
|
|
+ );
|
|
|
},
|
|
|
rowUpdate(row, index, done, loading) {
|
|
|
- row.userlist = JSON.stringify(row.userlist)
|
|
|
- row.rolelist = JSON.stringify(row.rolelist)
|
|
|
- row.teamlist = JSON.stringify(row.teamlist)
|
|
|
- row.excludelist = JSON.stringify(row.excludelist)
|
|
|
- editypesSubmit(row).then(() => {
|
|
|
- this.onLoad(this.page);
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "操作成功!"
|
|
|
- });
|
|
|
- done();
|
|
|
- }, error => {
|
|
|
- loading();
|
|
|
- console.log(error);
|
|
|
- });
|
|
|
+ row.userlist = JSON.stringify(row.userlist);
|
|
|
+ row.rolelist = JSON.stringify(row.rolelist);
|
|
|
+ row.teamlist = JSON.stringify(row.teamlist);
|
|
|
+ row.excludelist = JSON.stringify(row.excludelist);
|
|
|
+ editypesSubmit(row).then(
|
|
|
+ () => {
|
|
|
+ this.onLoad(this.page);
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "操作成功!",
|
|
|
+ });
|
|
|
+ done();
|
|
|
+ },
|
|
|
+ (error) => {
|
|
|
+ loading();
|
|
|
+ console.log(error);
|
|
|
+ }
|
|
|
+ );
|
|
|
},
|
|
|
rowDel(row) {
|
|
|
this.$confirm("确定将选择数据删除?", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
+ type: "warning",
|
|
|
})
|
|
|
.then(() => {
|
|
|
return editypesRemove(row.id);
|
|
|
@@ -538,7 +675,7 @@ export default {
|
|
|
this.onLoad(this.page);
|
|
|
this.$message({
|
|
|
type: "success",
|
|
|
- message: "操作成功!"
|
|
|
+ message: "操作成功!",
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
@@ -550,7 +687,7 @@ export default {
|
|
|
this.$confirm("确定将选择数据删除?", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
+ type: "warning",
|
|
|
})
|
|
|
.then(() => {
|
|
|
return editypesRemove(this.ids);
|
|
|
@@ -559,19 +696,27 @@ export default {
|
|
|
this.onLoad(this.page);
|
|
|
this.$message({
|
|
|
type: "success",
|
|
|
- message: "操作成功!"
|
|
|
+ message: "操作成功!",
|
|
|
});
|
|
|
this.$refs.crud.toggleSelection();
|
|
|
});
|
|
|
},
|
|
|
+ handleVerifyEdiCodes() {
|
|
|
+ return verifyEdiCodes().then(() => {
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "校验成功!",
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
beforeOpen(done, type) {
|
|
|
if (["edit", "view"].includes(type)) {
|
|
|
- editypesDetail(this.form.id).then(res => {
|
|
|
+ editypesDetail(this.form.id).then((res) => {
|
|
|
this.form = res.data.data;
|
|
|
- this.form.userlist = JSON.parse(this.form.userlist)
|
|
|
- this.form.rolelist = JSON.parse(this.form.rolelist)
|
|
|
- this.form.teamlist = JSON.parse(this.form.teamlist)
|
|
|
- this.form.excludelist = JSON.parse(this.form.excludelist)
|
|
|
+ this.form.userlist = JSON.parse(this.form.userlist);
|
|
|
+ this.form.rolelist = JSON.parse(this.form.rolelist);
|
|
|
+ this.form.teamlist = JSON.parse(this.form.teamlist);
|
|
|
+ this.form.excludelist = JSON.parse(this.form.excludelist);
|
|
|
});
|
|
|
}
|
|
|
done();
|
|
|
@@ -604,7 +749,7 @@ export default {
|
|
|
},
|
|
|
onLoad(page, params = {}) {
|
|
|
this.loading = true;
|
|
|
- editypesList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
|
|
|
+ editypesList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then((res) => {
|
|
|
const data = res.data.data;
|
|
|
this.page.total = data.total;
|
|
|
this.data = data.records;
|
|
|
@@ -639,23 +784,21 @@ export default {
|
|
|
// 更改表格颜色
|
|
|
headerClassName(tab) {
|
|
|
//颜色间隔
|
|
|
- let back = ""
|
|
|
+ let back = "";
|
|
|
if (tab.columnIndex >= 0 && tab.column.level === 1) {
|
|
|
if (tab.columnIndex % 2 === 0) {
|
|
|
- back = "back-one"
|
|
|
+ back = "back-one";
|
|
|
} else if (tab.columnIndex % 2 === 1) {
|
|
|
- back = "back-two"
|
|
|
+ back = "back-two";
|
|
|
}
|
|
|
}
|
|
|
return back;
|
|
|
},
|
|
|
// 表头样式
|
|
|
tableHeaderCellStyle({ row, column, rowIndex, columnIndex }) {
|
|
|
- return "padding:4px 0px;fontSize:12px;color:#000;background:#ecf5ff"
|
|
|
+ return "padding:4px 0px;fontSize:12px;color:#000;background:#ecf5ff";
|
|
|
},
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
|