Browse Source

系统问题

dev
0.0 2 years ago
parent
commit
b1fbbe33ff
  1. 18
      src/components/jeecgbiz/JSelectMultiUser.vue
  2. 28
      src/components/jeecgbiz/JSelectPosition.vue
  3. 10
      src/mixins/JeecgListMixin.js
  4. 2
      src/views/jeecg/SelectDemo.vue
  5. 8
      src/views/system/DepartList.vue
  6. 12
      src/views/system/DepartUserList.vue
  7. 9
      src/views/system/LogList.vue
  8. 6
      src/views/system/RoleUserList.vue
  9. 186
      src/views/system/SysPositionList.vue
  10. 24
      src/views/system/UserList.vue
  11. 14
      src/views/system/modules/SysPositionModal.vue
  12. 127
      src/views/system/modules/UserModal.vue
  13. 2
      src/views/waste/ProcessWasteList.vue
  14. 86
      src/views/waste/ProcessWasteListCable.vue

18
src/components/jeecgbiz/JSelectMultiUser.vue

@ -49,15 +49,15 @@
// dictCode
dictCode: 'sex',
},
{
key: 'birthday',
label: '生日',
placeholder: '请选择出生日期',
// 使使
customRender: ({key, queryParam, options}) => {
return <j-date {...options} vModel={queryParam[key]} style="width:180px;"/>
},
},
// {
// key: 'birthday',
// label: '',
// placeholder: '',
// // 使使
// customRender: ({key, queryParam, options}) => {
// return <j-date {...options} vModel={queryParam[key]} style="width:180px;"/>
// },
// },
],
}
},

28
src/components/jeecgbiz/JSelectPosition.vue

@ -1,5 +1,12 @@
<template>
<j-select-biz-component :width="1000" v-bind="configs" v-on="$listeners"/>
<j-select-biz-component
:value="value"
:ellipsisLength="25"
:listUrl="url.list"
:columns="columns"
v-on="$listeners"
v-bind="attrs"
/>
</template>
<script>
@ -11,24 +18,25 @@
props: ['value'],
data() {
return {
settings: {
name: '职务',
displayKey: 'name',
returnKeys: ['id', 'code'],
listUrl: '/sys/position/list',
url: { list: '/sys/position/list'},
queryParamCode: 'name',
queryParamText: '职务名称',
columns: [
{ title: '职务名称', dataIndex: 'name', align: 'center', width: '30%', widthRight: '70%' },
{ title: '职务编码', dataIndex: 'code', align: 'center', width: '35%' },
// { title: '', dataIndex: 'code', align: 'center', width: '35%' },
{ title: '职级', dataIndex: 'rank_dictText', align: 'center', width: '25%' }
]
],
default:{
name: '职务',
displayKey: 'name',
width: 1200,
returnKeys: ['name', 'name'],
}
}
},
computed: {
configs() {
return Object.assign({ value: this.value }, this.settings, this.$attrs)
attrs() {
return Object.assign({ value: this.value }, this.default, this.$attrs)
}
}
}

10
src/mixins/JeecgListMixin.js

@ -87,6 +87,14 @@ export const JeecgListMixin = {
this.$message.error("请设置url.list属性!")
return
}
if (this.url.list ==='/sys/position/list'){
this.isorter.column='postRank'
this.isorter.order='desc'
}
if (this.url.list ==='/sys/user/list'){
this.isorter.column='postRank'
this.isorter.order='desc'
}
//加载数据 若传入参数1则加载第一页的内容
if (arg === 1) {
this.ipagination.current = 1;
@ -132,6 +140,7 @@ export const JeecgListMixin = {
sqp['superQueryParams']=encodeURI(this.superQueryParams)
sqp['superQueryMatchType'] = this.superQueryMatchType
}
console.log("sqp>>>>>>>>",sqp)
var param = Object.assign(sqp, this.queryParam, this.isorter ,this.filters);
param.field = this.getQueryField();
param.pageNo = this.ipagination.current;
@ -376,6 +385,7 @@ export const JeecgListMixin = {
let url = getFileAccessHttpUrl(text)
window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(this.$Base64.encode(url)));
},
}
}

2
src/views/jeecg/SelectDemo.vue

@ -130,7 +130,7 @@
<a-row :gutter="24">
<a-col :span="12">
<a-form-item label="选择职务">
<j-select-position :buttons="false" :disabled="true" v-model="formData.selectPosition" />
<j-select-position :buttons="false" v-model="formData.selectPosition" />
</a-form-item>
</a-col>
<a-col :span="12">选中值{{ formData.selectPosition}}</a-col>

8
src/views/system/DepartList.vue

@ -155,9 +155,9 @@
</a-empty>
</a-card>
</a-tab-pane>
<a-tab-pane tab="部门权限" key="2" forceRender>
<depart-auth-modal ref="departAuth"/>
</a-tab-pane>
<!-- <a-tab-pane tab="部门权限" key="2" forceRender>-->
<!-- <depart-auth-modal ref="departAuth"/>-->
<!-- </a-tab-pane>-->
</a-tabs>
</a-col>
@ -584,7 +584,7 @@
}
}
// <!---- author:os_chengtgen -- date:20190827 -- for: =======------>
},
created() {
this.currFlowId = this.$route.params.id

12
src/views/system/DepartUserList.vue

@ -35,12 +35,12 @@
<a-tab-pane tab="基本信息" key="1" forceRender>
<Dept-Base-Info ref="DeptBaseInfo"></Dept-Base-Info>
</a-tab-pane>
<a-tab-pane tab="用户信息" key="2">
<Dept-User-Info ref="DeptUserInfo" @clearSelectedDepartKeys="clearSelectedDepartKeys"></Dept-User-Info>
</a-tab-pane>
<a-tab-pane tab="部门角色" key="3" forceRender>
<dept-role-info ref="DeptRoleInfo" @clearSelectedDepartKeys="clearSelectedDepartKeys"/>
</a-tab-pane>
<!-- <a-tab-pane tab="用户信息" key="2">-->
<!-- <Dept-User-Info ref="DeptUserInfo" @clearSelectedDepartKeys="clearSelectedDepartKeys"></Dept-User-Info>-->
<!-- </a-tab-pane>-->
<!-- <a-tab-pane tab="部门角色" key="3" forceRender>-->
<!-- <dept-role-info ref="DeptRoleInfo" @clearSelectedDepartKeys="clearSelectedDepartKeys"/>-->
<!-- </a-tab-pane>-->
</a-tabs>
</a-card>
</a-col>

9
src/views/system/LogList.vue

@ -20,7 +20,7 @@
</a-col>
<a-col :md="6" :sm="10">
<a-form-item label="创建时间" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-form-item label="操作时间" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-range-picker
style="width: 210px"
v-model="queryParam.createTimeRange"
@ -31,6 +31,11 @@
/>
</a-form-item>
</a-col>
<a-col :md="6" :sm="8">
<a-form-item label="操作人">
<a-input placeholder="请输入操作人" v-model="queryParam.username"></a-input>
</a-form-item>
</a-col>
<a-col :md="5" :sm="8" v-if="tabKey === '2'">
<a-form-item label="操作类型" style="left: 10px">
<j-dict-select-tag v-model="queryParam.operateType" placeholder="请选择操作类型" dictCode="operate_type"/>
@ -151,7 +156,7 @@
align:"center",
},
{
title: '创建时间',
title: '操作时间',
dataIndex: 'createTime',
align:"center",
sorter: true

6
src/views/system/RoleUserList.vue

@ -12,15 +12,13 @@
<a-input placeholder="" v-model="queryParam.roleName"></a-input>
</a-form-item>
</a-col>
<!--
<a-col :md="11" :sm="12">
<a-form-item label="创建时间" :labelCol="{span: 5}" :wrapperCol="{span: 18, offset: 1}">
<j-date v-model="queryParam.createTime_begin" :showTime="true" date-format="YYYY-MM-DD HH:mm:ss" style="width:45%" placeholder="请选择开始时间" ></j-date>
<j-date v-model="queryParam.createTime_begin" date-format="YYYY-MM-DD " style="width:45%" placeholder="请选择开始时间" ></j-date>
<span style="width: 10px;">~</span>
<j-date v-model="queryParam.createTime_end" :showTime="true" date-format="YYYY-MM-DD HH:mm:ss" style="width:45%" placeholder="请选择结束时间"></j-date>
<j-date v-model="queryParam.createTime_end" date-format="YYYY-MM-DD " style="width:45%" placeholder="请选择结束时间"></j-date>
</a-form-item>
</a-col>
-->
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-col :md="12" :sm="24">
<a-button type="primary" @click="searchQuery" icon="search" style="margin-left: 21px">查询</a-button>

186
src/views/system/SysPositionList.vue

@ -6,32 +6,29 @@
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
<!-- <a-col :md="6" :sm="8">-->
<!-- <a-form-item label="职务编码">-->
<!-- <a-input placeholder="请输入职务编码" v-model="queryParam.code"></a-input>-->
<!-- </a-form-item>-->
<!-- </a-col>-->
<a-col :md="6" :sm="8">
<a-form-item label="职务编码">
<a-input placeholder="请输入职务编码" v-model="queryParam.code"></a-input>
<a-form-item label="职务名称">
<a-input placeholder="请输入职务名称" v-model="queryParam.name"></a-input>
</a-form-item>
</a-col>
<a-col :md="6" :sm="8">
<a-form-item label="职务名称">
<a-input placeholder="请输入职务名称" v-model="queryParam.name"></a-input>
<a-form-item label="职">
<j-dict-select-tag v-model="queryParam.postRank" placeholder="请选择职级" dictCode="position_rank" />
</a-form-item>
</a-col>
<template v-if="toggleSearchStatus">
<a-col :md="6" :sm="8">
<a-form-item label="职级">
<j-dict-select-tag v-model="queryParam.postRank" placeholder="请选择职级" dictCode="position_rank"/>
</a-form-item>
</a-col>
</template>
<a-col :md="6" :sm="8">
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
<a @click="handleToggleSearch" style="margin-left: 8px">
{{ toggleSearchStatus ? '收起' : '展开' }}
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
</a>
<!-- <a @click="handleToggleSearch" style="margin-left: 8px">-->
<!-- {{ toggleSearchStatus ? '收起' : '展开' }}-->
<!-- <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>-->
<!-- </a>-->
</span>
</a-col>
@ -43,18 +40,19 @@
<div class="table-operator">
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
<a-button type="primary" icon="download" @click="handleExportXls('职务表')">导出</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
@change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
</a-upload>
<a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay">
<a-menu-item key="1" @click="batchDel">
<a-icon type="delete"/>
<a-icon type="delete" />
删除
</a-menu-item>
</a-menu>
<a-button style="margin-left: 8px"> 批量操作
<a-icon type="down"/>
<a-icon type="down" />
</a-button>
</a-dropdown>
</div>
@ -62,7 +60,8 @@
<!-- table区域-begin -->
<div>
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
<i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>
<i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a
style="font-weight: 600">{{ selectedRowKeys.length }}</a>
<a style="margin-left: 24px" @click="onClearSelected">清空</a>
</div>
@ -79,19 +78,18 @@
@change="handleTableChange">
<span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)">编辑</a>
<a-divider type="vertical"/>
<a-dropdown>
<a class="ant-dropdown-link">更多 <a-icon type="down"/></a>
<a-menu slot="overlay">
<a-menu-item>
<a @click="handleEdit(record)">编辑&nbsp;&nbsp;&nbsp;</a>
<!-- <a-divider type="vertical"/>-->
<!-- <a-dropdown>-->
<!-- <a class="ant-dropdown-link">更多 <a-icon type="down"/></a>-->
<!-- <a-menu slot="overlay">-->
<!-- <a-menu-item>-->
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a>
<a> 删除</a>
</a-popconfirm>
</a-menu-item>
</a-menu>
</a-dropdown>
<!-- </a-menu-item>-->
<!-- </a-menu>-->
<!-- </a-dropdown>-->
</span>
</a-table>
@ -104,75 +102,75 @@
</template>
<script>
import SysPositionModal from './modules/SysPositionModal'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import JDictSelectTag from '@/components/dict/JDictSelectTag'
import SysPositionModal from './modules/SysPositionModal'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import JDictSelectTag from '@/components/dict/JDictSelectTag'
export default {
name: 'SysPositionList',
mixins: [JeecgListMixin],
components: {
SysPositionModal,
JDictSelectTag
},
data() {
return {
description: '职务表管理页面',
//
columns: [
{
title: '#',
dataIndex: '',
key: 'rowIndex',
width: 60,
align: 'center',
customRender: function (t, r, index) {
return parseInt(index) + 1
}
},
{
title: '职务编码',
align: 'center',
dataIndex: 'code'
},
{
title: '职务名称',
align: 'center',
dataIndex: 'name'
},
{
title: '职级',
align: 'center',
dataIndex: 'postRank_dictText'
},
// {
// title: 'id',
// align: 'center',
// dataIndex: 'companyId'
// },
{
title: '操作',
dataIndex: 'action',
align: 'center',
scopedSlots: { customRender: 'action' },
export default {
name: 'SysPositionList',
mixins: [JeecgListMixin],
components: {
SysPositionModal,
JDictSelectTag
},
data() {
return {
description: '职务表管理页面',
//
columns: [
{
title: '#',
dataIndex: '',
key: 'rowIndex',
width: 60,
align: 'center',
customRender: function(t, r, index) {
return parseInt(index) + 1
}
],
url: {
list: '/sys/position/list',
delete: '/sys/position/delete',
deleteBatch: '/sys/position/deleteBatch',
exportXlsUrl: '/sys/position/exportXls',
importExcelUrl: '/sys/position/importExcel',
},
// {
// title: '',
// align: 'center',
// dataIndex: 'code'
// },
{
title: '职务名称',
align: 'center',
dataIndex: 'name'
},
{
title: '职级',
align: 'center',
dataIndex: 'postRank_dictText'
},
// {
// title: 'id',
// align: 'center',
// dataIndex: 'companyId'
// },
{
title: '操作',
dataIndex: 'action',
align: 'center',
scopedSlots: { customRender: 'action' }
}
],
url: {
list: '/sys/position/list',
delete: '/sys/position/delete',
deleteBatch: '/sys/position/deleteBatch',
exportXlsUrl: '/sys/position/exportXls',
importExcelUrl: '/sys/position/importExcel'
}
},
computed: {
importExcelUrl: function () {
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`
}
}
},
computed: {
importExcelUrl: function() {
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`
}
}
}
</script>
<style scoped>
@import '~@assets/less/common.less'
@import '~@assets/less/common.less';
</style>

24
src/views/system/UserList.vue

@ -9,7 +9,7 @@
<a-col :md="6" :sm="12">
<a-form-item label="账号">
<!--<a-input placeholder="请输入账号查询" v-model="queryParam.username"></a-input>-->
<j-input placeholder="输入账号模糊查询" v-model="queryParam.username"></j-input>
<j-input placeholder="输入账号查询" v-model="queryParam.username"></j-input>
</a-form-item>
</a-col>
@ -33,11 +33,11 @@
</a-form-item>
</a-col>
<!-- <a-row :gutter="24">-->
<!-- <a-col :md="6" :sm="8">-->
<!-- <a-form-item label="选择职务">-->
<!-- <j-select-position :buttons="false" v-model="formData.post" />-->
<!-- </a-form-item>-->
<!-- </a-col>-->
<a-col :md="6" :sm="8">
<a-form-item label="职务">
<j-select-position placeholder="请选择职务" :multiple="false" :buttons="false" v-model="queryParam.post" />
</a-form-item>
</a-col>
<!-- </a-row>-->
<!-- <a-col :md="6" :sm="8">-->
<!-- <a-form-item label="性别">-->
@ -276,12 +276,12 @@
dataIndex: 'sex_dictText',
sorter: true
},
{
title: '生日',
align: "center",
width: 100,
dataIndex: 'birthday'
},
// {
// title: '',
// align: "center",
// width: 100,
// dataIndex: 'birthday'
// },
{
title: '手机号码',
align: "center",

14
src/views/system/modules/SysPositionModal.vue

@ -12,12 +12,12 @@
<a-spin :spinning="confirmLoading">
<a-form :form="form">
<a-form-item
:labelCol="labelCol"
:wrapperCol="wrapperCol"
label="职务编码">
<a-input placeholder="请输入职务编码" v-decorator="['code', validatorRules.code]" :read-only="readOnly"/>
</a-form-item>
<!-- <a-form-item-->
<!-- :labelCol="labelCol"-->
<!-- :wrapperCol="wrapperCol"-->
<!-- label="职务编码">-->
<!-- <a-input placeholder="请输入职务编码" v-decorator="['code', validatorRules.code]" :read-only="readOnly"/>-->
<!-- </a-form-item>-->
<a-form-item
:labelCol="labelCol"
:wrapperCol="wrapperCol"
@ -77,7 +77,7 @@
validatorRules: {
code: {
rules: [
{ required: true, message: '请输入职务编码' },
// { required: true, message: '' },
{
validator: (rule, value, callback) => {
//

127
src/views/system/modules/UserModal.vue

@ -1,13 +1,12 @@
<template>
<a-drawer
<a-modal
:title="title"
:maskClosable="true"
:width="drawerWidth"
placement="right"
:closable="true"
@close="handleCancel"
:width="modalWidth"
:visible="visible"
style="height: 100%;overflow: auto;padding-bottom: 53px;">
:confirmLoading="confirmLoading"
@ok="handleSubmit"
@cancel="close"
cancelText="关闭">
<template slot="title">
<div style="width: 100%;">
@ -21,33 +20,41 @@
<a-spin :spinning="confirmLoading">
<a-form :form="form">
<a-form-item label="用户账号" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-row :gutter="24">
<a-col :span="12" >
<a-form-item label="用户账号" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input placeholder="请输入用户账号" v-decorator.trim="[ 'username', validatorRules.username]" :readOnly="!!model.id"/>
</a-form-item>
</a-col>
<template v-if="!model.id">
<a-col :span="12" >
<a-form-item label="登录密码" :labelCol="labelCol" :wrapperCol="wrapperCol" >
<a-input type="password" placeholder="请输入登录密码" v-decorator="[ 'password',validatorRules.password]" />
</a-form-item>
</a-col >
<a-col :span="12" >
<a-form-item label="确认密码" :labelCol="labelCol" :wrapperCol="wrapperCol" >
<a-input type="password" @blur="handleConfirmBlur" placeholder="请重新输入登录密码" v-decorator="[ 'confirmpassword', validatorRules.confirmpassword]"/>
</a-form-item>
</a-col >
</template>
<a-col :span="12" >
<a-form-item label="用户姓名" :labelCol="labelCol" :wrapperCol="wrapperCol" >
<a-input placeholder="请输入用户姓名" v-decorator.trim="[ 'realname', validatorRules.realname]" />
</a-form-item>
</a-col>
<a-col :span="12" >
<a-form-item label="工号" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input placeholder="请输入工号" v-decorator.trim="[ 'workNo', validatorRules.workNo]" />
</a-form-item>
</a-col>
<a-col :span="12" >
<a-form-item label="职务" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-select-position placeholder="请选择职务" :multiple="false" v-decorator="['post', {}]"/>
<j-select-position placeholder="请选择职务" :multiple="true" v-decorator.trim="['post']"/>
</a-form-item>
</a-col>
<a-col :span="12" >
<a-form-item label="角色分配" :labelCol="labelCol" :wrapperCol="wrapperCol" v-show="!roleDisabled" >
<a-select
mode="multiple"
@ -62,7 +69,8 @@
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col :span="12" >
<!--部门分配-->
<a-form-item label="部门分配" :labelCol="labelCol" :wrapperCol="wrapperCol" v-show="!departDisabled">
<a-input-search
@ -73,23 +81,25 @@
<a-button slot="enterButton" icon="search">选择</a-button>
</a-input-search>
</a-form-item>
</a-col>
<!--租户分配-->
<a-form-item label="租户分配" :labelCol="labelCol" :wrapperCol="wrapperCol" v-show="!departDisabled">
<a-select
mode="multiple"
style="width: 100%"
placeholder="请选择租户分配"
:disabled="disableSubmit"
v-model="currentTenant">
<a-select-option v-for="(item, index) in tenantList" :key="index" :value="item.id">
{{ item.name }}
</a-select-option>
</a-select>
</a-form-item>
<!-- <a-form-item label="租户分配" :labelCol="labelCol" :wrapperCol="wrapperCol" v-show="!departDisabled">-->
<!-- <a-select-->
<!-- mode="multiple"-->
<!-- style="width: 100%"-->
<!-- placeholder="请选择租户分配"-->
<!-- :disabled="disableSubmit"-->
<!-- v-model="currentTenant">-->
<!-- <a-select-option v-for="(item, index) in tenantList" :key="index" :value="item.id">-->
<!-- {{ item.name }}-->
<!-- </a-select-option>-->
<!-- </a-select>-->
<!-- </a-form-item>-->
<!-- update--begin--autor:wangshuai-----date:20200108------for新增身份和负责部门------ -->
<a-col :span="12" >
<a-form-item label="身份" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-radio-group
v-model="identity"
@ -114,6 +124,8 @@
</div>
</a-upload>
</a-form-item>
</a-col>
<a-col :span="12" >
<a-form-item label="负责部门" :labelCol="labelCol" :wrapperCol="wrapperCol" v-if="departIdShow==true">
<a-select
mode="multiple"
@ -124,11 +136,13 @@
:getPopupContainer = "(target) => target.parentNode"
:dropdownStyle="{maxHeight:'200px',overflow:'auto'}"
>
<!-- v-model="departIds"-->
<a-select-option v-for="item in resultDepartOptions" :key="item.key" :value="item.key"
>{{item.title}}</a-select-option
>
</a-select>
</a-form-item>
</a-col>
<!-- update--end--autor:wangshuai-----date:20200108------for新增身份和负责部门------ -->
<!-- <a-form-item label="头像" :labelCol="labelCol" :wrapperCol="wrapperCol">-->
<!-- <template v-if="BASE_FileType=='mongodb'">-->
@ -152,28 +166,31 @@
<a-form-item label="生日" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-date-picker
style="width: 100%"
placeholder="请选择生日"
v-decorator="['birthday', {initialValue:!model.birthday?null:moment(model.birthday,dateFormat)}]"
:getCalendarContainer="node => node.parentNode"/>
</a-form-item>
<!-- <a-form-item label="生日" :labelCol="labelCol" :wrapperCol="wrapperCol">-->
<!-- <a-date-picker-->
<!-- style="width: 100%"-->
<!-- placeholder="请选择生日"-->
<!-- v-decorator="['birthday', {initialValue:!model.birthday?null:moment(model.birthday,dateFormat)}]"-->
<!-- :getCalendarContainer="node => node.parentNode"/>-->
<!-- </a-form-item>-->
<a-col :span="12" >
<a-form-item label="性别" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-select v-decorator="[ 'sex', {}]" placeholder="请选择性别" :getPopupContainer= "(target) => target.parentNode">
<a-select-option :value="1"></a-select-option>
<a-select-option :value="2"></a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col :span="12" >
<a-form-item label="邮箱" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input placeholder="请输入邮箱" v-decorator="[ 'email', validatorRules.email]" />
</a-form-item>
</a-col>
<a-col :span="12" >
<a-form-item label="手机号码" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input placeholder="请输入手机号码" :disabled="isDisabledAuth('user:form:phone')" v-decorator="[ 'phone', validatorRules.phone]" />
</a-form-item>
</a-col>
<!-- <a-form-item label="座机" :labelCol="labelCol" :wrapperCol="wrapperCol">-->
<!-- <a-input placeholder="请输入座机" v-decorator="[ 'telephone', validatorRules.telephone]"/>-->
@ -182,18 +199,19 @@
<!-- <a-form-item label="工作流引擎" :labelCol="labelCol" :wrapperCol="wrapperCol">-->
<!-- <j-dict-select-tag v-decorator="['activitiSync', {}]" placeholder="请选择是否同步工作流引擎" :type="'radio'" :triggerChange="true" dictCode="activiti_sync"/>-->
<!-- </a-form-item>-->
</a-row>
</a-form>
</a-spin>
<depart-window ref="departWindow" @ok="modalFormOk"></depart-window>
<div class="drawer-bootom-button" v-show="!disableSubmit">
<!-- <div class="drawer-bootom-button" v-show="!disableSubmit">
<a-popconfirm title="确定放弃编辑?" @confirm="handleCancel" okText="确定" cancelText="取消">
<a-button style="margin-right: .8rem">取消</a-button>
</a-popconfirm>
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">提交</a-button>
</div>
</a-drawer>
</div>-->
</a-modal>
</template>
<script>
@ -210,7 +228,7 @@
import {duplicateCheck } from '@/api/api'
import JImageUpload from '../../../components/jeecg/JImageUpload'
import FileMangement from "@/extends/FileMangement/fileMangement";
import signMd5Utils from '@/utils/encryption/signMd5Utils'
export default {
name: "UserModal",
@ -224,8 +242,8 @@
return {
departDisabled: false, //
roleDisabled: false, //
modalWidth:800,
drawerWidth:700,
modalWidth:1000,
drawerWidth:1100,
modaltoggleFlag:true,
confirmDirty: false,
selectedDepartKeys:[], //id
@ -250,11 +268,13 @@
}]
},
password:{
rules: [{
rules: [
{
required: true,
pattern:/^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,./]).{8,}$/,
message: '密码由8位数字、大小写字母和特殊符号组成!'
}, {
},
{
validator: this.validateToNextPassword,
}],
},
@ -272,6 +292,7 @@
validator: this.validateEmail
}],
},
departIds:{rules: [{ required: true, message: '请选择部门!' }]},
roles:{},
// sex:{initialValue:((!this.model.sex)?"": (this.model.sex+""))}
workNo: {
@ -520,12 +541,12 @@
//
this.form.validateFields((err, values) => {
if (!err) {
if (this.checkedDepartNameString ===''||this.checkedDepartNameString===null||this.checkedDepartNameString === undefined){
this.$message.error("部门分配不能为空")
return;
}
that.confirmLoading = true;
if(!values.birthday){
values.birthday = '';
}else{
values.birthday = values.birthday.format(this.dateFormat);
}
values.password = signMd5Utils.md5password(values.password);
let formData = Object.assign(this.model, values);
if(that.fileList != ''){
formData.avatar = that.fileList;

2
src/views/waste/ProcessWasteList.vue

@ -13,7 +13,7 @@
<a-form-item label="报废日期" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-range-picker
style="width: 210px"
format="YYYY-MM-DD"
format="YYYY-MM-DD HH:mm:ss"
:value="createScrapTime"
:placeholder="['开始时间', '结束时间']"
@change="onDateChange"

86
src/views/waste/ProcessWasteListCable.vue

@ -1,5 +1,67 @@
<template>
<a-card :bordered="false">
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
<!-- <a-col :xl="4" :lg="7" :md="8" :sm="16">-->
<!-- <a-form-item label="物资名称">-->
<!-- <a-input placeholder="请输入物资名称" v-model="queryParam.materialName"/>-->
<!-- </a-form-item>-->
<!-- </a-col>-->
<a-col :xl="5" :lg="8" :md="10" :sm="8">
<a-form-item label="报废日期" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-range-picker
style="width: 210px"
:value="createScrapTime"
format="YYYY-MM-DD HH:mm:ss"
:placeholder="['开始时间', '结束时间']"
@change="onDateChange"
/>
</a-form-item>
</a-col>
<!-- <a-col :xl="4" :lg="7" :md="8" :sm="16">-->
<!-- <a-form-item label="缴料人">-->
<!-- <a-input placeholder="请输入缴料人" v-model="queryParam.payMaterialPeople"/>-->
<!-- </a-form-item>-->
<!-- </a-col>-->
<a-col :xl="4" :lg="7" :md="8" :sm="16">
<a-form-item label="原盘号">
<a-input placeholder="请输入原盘号" v-model="queryParam.originalPlate"/>
</a-form-item>
</a-col>
<a-col :xl="4" :lg="7" :md="8" :sm="16">
<a-form-item label="现盘号">
<a-input placeholder="请输入现盘号" v-model="queryParam.nowNumberPlate"/>
</a-form-item>
</a-col>
<!-- <a-col :xl="4" :lg="7" :md="8" :sm="16">-->
<!-- <a-form-item label="仓库位置">-->
<!-- <a-input placeholder="请选择仓库位置" v-model="queryParam.depositary" dict=",,"/>-->
<!-- </a-form-item>-->
<!-- </a-col>-->
<!-- <a-col :xl="4" :lg="7" :md="8" :sm="16">-->
<!-- <a-form-item label="创建人">-->
<!-- <a-input placeholder="请选择创建人" v-model="queryParam.createBy" dict=",,"/>-->
<!-- </a-form-item>-->
<!-- </a-col>-->
</a-row>
</a-form>
</div>
<div class="table-operator">
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
<a-button type="primary" icon="download" @click="handleExportXls('电缆')">导出</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
</a-upload>
<a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay">
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
</a-menu>
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
</a-dropdown>
</div>
<!-- table区域-begin -->
<div>
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
@ -88,6 +150,7 @@
},
data () {
return {
createScrapTime: [],
description: '废旧台账',
//
columns: [
@ -129,7 +192,7 @@
{
title:'车号',
align:"center",
dataIndex: 'payMaterial'
dataIndex: 'carNumber'
},
{
title:'原长度(米)',
@ -156,14 +219,28 @@
align:"center",
dataIndex: 'scrappedBecause'
},
// {
// title:'',
// align:"center",
// dataIndex: 'descriptionId'
// },
{
title:'备注',
align:"center",
dataIndex: 'remark'
},
],
labelCol: {
xs: { span: 4 },
sm: { span: 4 },
},
wrapperCol: {
xs: { span: 20 },
sm: { span: 20 },
},
url: {
list: "/waste/processWaste/listCable",
exportXlsUrl: "/waste/processWaste/exportXlsByWaste",
},
dictOptions:{},
superFieldList:[],
@ -180,10 +257,15 @@
methods: {
initDictConfig(){
},
onDateChange: function (value, dateString) {
this.createScrapTime = value;
this.queryParam.scrapDateBegin=dateString[0];
this.queryParam.scrapDateEnd=dateString[1];
},
getSuperFieldList(){
let fieldList=[];
fieldList.push({type:'sel_search',value:'createBy',text:'创建人',dictTable:'', dictText:'', dictCode:''})
fieldList.push({type:'sel_search',value:'descriptionId',text:'物料码',dictTable:'', dictText:'', dictCode:''})
fieldList.push({type:'string',value:'descriptionId',text:'物料码',dictTable:'', dictText:'', dictCode:''})
fieldList.push({type:'string',value:'brand',text:'品牌',dictCode:''})
fieldList.push({type:'sel_search',value:'materialName',text:'名称',dictTable:'', dictText:'', dictCode:''})
fieldList.push({type:'string',value:'typeSpecification',text:'型号规格',dictCode:''})

Loading…
Cancel
Save