重置
@@ -189,7 +206,7 @@
import DepartModal from './modules/DepartModal'
import pick from 'lodash.pick'
import {queryDepartTreeList, searchByKeywords, deleteByDepartId} from '@/api/api'
- import {httpAction, deleteAction} from '@/api/manage'
+ import {httpAction, deleteAction,getAction} from '@/api/manage'
import {JeecgListMixin} from '@/mixins/JeecgListMixin'
import DepartAuthModal from './modules/DepartAuthModal'
// 表头
@@ -198,6 +215,15 @@
title: '部门名称',
dataIndex: 'departName'
},
+ {
+ title: '英文名称',
+ dataIndex: 'departNameEn'
+ },
+ {
+ title: '缩写',
+ dataIndex: 'departNameAbbr'
+ },
+
{
title: '',
align: 'center',
@@ -282,7 +308,8 @@
departName: {rules: [{required: true, message: '请输入部门/部门名称!'}]},
orgCode: {rules: [{required: true, message: '请输入部门编码!'}]},
orgCategory: {rules: [{required: true, message: '请输入部门类型!'}]},
- mobile: {rules: [{validator: this.validateMobile}]}
+ mobile: {rules: [{validator: this.validateMobile}]},
+ departNameAbbr: {rules: [{required: true,validator: this.validatedepartNameAbbr}]}
},
url: {
delete: '/sys/sysDepart/delete',
@@ -290,8 +317,10 @@
deleteBatch: '/sys/sysDepart/deleteBatch',
exportXlsUrl: "sys/sysDepart/exportXls",
importExcelUrl: "sys/sysDepart/importExcel",
+ validatedepartNameAbbrUrl: "sys/sysDepart/validatedepartNameAbbr",
},
orgCategoryDisabled:false,
+ orgTypeDisabled:false,
}
},
computed: {
@@ -375,9 +404,6 @@
ids += this.checkedKeys[a] + ','
}
var that = this
-
-
-
this.$confirm( '确定要删除所选中的 ' + this.checkedKeys.length + ' 条数据,以及子节点数据吗?','确认删除',
{
confirmButtonText: '确定',
@@ -458,6 +484,12 @@
}else{
this.orgCategoryDisabled =true;
}
+ if(record.orgType == '1'){
+ this.orgTypeDisabled =true ;
+ }else{
+ this.orgTypeDisabled =false;
+ }
+
this.$nextTick(() => {
// this.form.getFieldDecorator('fax', {initialValue: ''})
this.form.setFieldsValue(pick(record, 'departName','orgCategory', 'orgCode', 'departOrder', 'mobile', 'fax', 'address', 'memo'))
@@ -634,9 +666,30 @@
this.getAllKeys(node.children[a])
}
}
- }
+ },
//
+ //校验缩写
+ validatedepartNameAbbr(rule, value, callback){
+ let reg = /^[_a-zA-Z0-9]+$/
+ let reg2 = /^.{4,4}$/
+ // 长度为6到18个字符
+ if (value !== '' && !reg.test(value)) {
+ callback('只允许字母、数字、下划线')
+ } else if (value !== '' && !reg2.test(value)) {
+ callback('长度为4个字符')
+ } else {
+
+ getAction(this.url.validatedepartNameAbbrUrl,{'name':value}).then((res) => {
+ if (res.success) {
+ callback()
+ }else{
+ // this.$message.error(res.message);
+ callback('缩写已存在,请重新输入')
+ }
+ })
+ }
+ },
},
created() {
this.currFlowId = this.$route.params.id
diff --git a/ant-design-vue-jeecg/src/views/system/modules/DepartModal.vue b/ant-design-vue-jeecg/src/views/system/modules/DepartModal.vue
index 5b1fec14..79f4f0ff 100644
--- a/ant-design-vue-jeecg/src/views/system/modules/DepartModal.vue
+++ b/ant-design-vue-jeecg/src/views/system/modules/DepartModal.vue
@@ -30,6 +30,20 @@
:disabled="condition">
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
@@ -98,7 +112,7 @@
diff --git a/ant-design-vue-jeecg/src/views/team/GroupxMemberList.vue b/ant-design-vue-jeecg/src/views/team/GroupxMemberList.vue
index 2ce52a4b..455a13e8 100644
--- a/ant-design-vue-jeecg/src/views/team/GroupxMemberList.vue
+++ b/ant-design-vue-jeecg/src/views/team/GroupxMemberList.vue
@@ -60,6 +60,7 @@ export default {
},
data() {
return {
+ // biaoTi: '',
description: '班组成员表管理管理页面',
// 表头
columns: [
@@ -89,7 +90,7 @@ export default {
dataIndex: 'workNo'
},
{
- title: '成员名称',
+ title: '成员姓名',
align: "center",
dataIndex: 'userId'
},
@@ -144,8 +145,8 @@ export default {
this.groupxId = this.$route.query.groupxId;
this.groupName = this.$route.query.groupName;
this.departName = this.$route.query.departName;
- // this.biaoTi = this.$route.query.styleNames+"款式面料管理";
- console.log("*******departName:" + this.departName)
+ // this.biaoTi = this.departName + "车间" + "工位管理";
+ // console.log("*******departName:" + this.departName)
this.loadRouteType = true;
}
},
diff --git a/ant-design-vue-jeecg/src/views/team/StationList.vue b/ant-design-vue-jeecg/src/views/team/StationList.vue
index e2b50faa..0946155e 100644
--- a/ant-design-vue-jeecg/src/views/team/StationList.vue
+++ b/ant-design-vue-jeecg/src/views/team/StationList.vue
@@ -116,9 +116,9 @@
删除
-
升序
+
前移
-
降序
+
后移
@@ -244,6 +244,7 @@ export default {
'stationId': record.id,
'stationName': record.stationName,
'stationNum': record.stationNum,
+ 'departName': record.departName,
},
});
},
@@ -254,6 +255,7 @@ export default {
'stationId': record.id,
'stationName': record.stationName,
'stationNum': record.stationNum,
+ 'departName': record.departName,
},
});
},
diff --git a/ant-design-vue-jeecg/src/views/team/StationMachineList.vue b/ant-design-vue-jeecg/src/views/team/StationMachineList.vue
index ed14de28..c2e9d88b 100644
--- a/ant-design-vue-jeecg/src/views/team/StationMachineList.vue
+++ b/ant-design-vue-jeecg/src/views/team/StationMachineList.vue
@@ -1,56 +1,11 @@