Commit b43e33c8 by 冒粤蓉
2 parents 2f163117 a299fc40
...@@ -47,258 +47,6 @@ const Constants = { ...@@ -47,258 +47,6 @@ const Constants = {
WORKLOG_STATUS: { WORKLOG_STATUS: {
'0': '成功, green-text', '0': '成功, green-text',
'-1': '失败, red-text' '-1': '失败, red-text'
},
// (0:系统管理员,1:服务商,2:门店,3:技工)
USERTYPE: {
'0': '超级管理员',
'1': '服务商',
'2': '商户',
'3': '技工',
'ADMIN': 0,
'PROVIDER': 1,
'STORE': 2,
'WORKER': 3
},
// 控制台 涨跌 图标
// 商户管理状态
DASHUPDOWN: {
'1': 'el-icon-caret-top green-cl',
'2': 'el-icon-caret-bottom red-cl'
},
// 日期
DASHBOARDDATETYPE: {
'今日': 'd',
'本周': 'w',
'本月': 'm',
'全年': 'y'
},
HOURS: ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10',
'11', '12', '13', '14', '15', '16', '17', '18', '19', '20',
'21', '22', '23', '24'],
WEEKS: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
DAYS: ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10',
'11', '12', '13', '14', '15', '16', '17', '18', '19', '20',
'21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31'],
MONTHS: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
// 菜单管理状态
MENUSTATUS: {
'1': '显示,green',
'2': '不显示,gray'
},
// 菜单类型
MENUMANAGEMENUTYPE: {
'1': '目录',
'2': '菜单',
'3': '按钮'
},
// 组织管理状态
ORGINIZASTATUS: {
'1': '正常,green',
'2': '停用,gray'
},
ORGINIZATYPE: {
'1': '层级',
'2': '机构',
'3': '根组织'
},
// 角色管理状态
ROLESTATUS: {
'sys_user_status_normal': '正常,green',
'sys_user_status_nonuse': '停用,gray',
'sys_user_status_logout': '注销,red'
},
// 商户管理状态
STORESTATUS: {
'sys_user_status_normal': '启用,green',
'sys_user_status_nonuse': '禁用,gray',
'sys_user_status_logout': '注销,red'
},
// 库存管理订货单状态
STOCKORDERSTATUS: {
'1': '已取消订单,gray',
'50': '已取消订单,gray',
'10': '待审核订单,yellow',
'20': '待发货订单,blue',
'30': '待收货订单,red',
'40': '已完成订单,green'
},
STOCKORDERDETAILSTATUS: {
'10': '待审核订单,yellow',
'20': '待发货订单,blue',
'30': '待收货订单,red',
'40': '已完成订单,green',
'1': '已取消订单,gray',
'50': '已取消订单,gray'
},
// 技工管理状态
TECHNICIANSTATUS: {
'sys_user_status_normal': '启用,green',
'sys_user_status_nonuse': '禁用,gray',
'sys_user_status_logout': '注销,red'
},
TECHNICIANVISITTYPE: {
'1': '上门',
'2': '驻店'
},
// 技工审核状态
TECHNICIANVERIFYSTATUS: {
'sys_user_status_pass_check': '通过,green',
'sys_user_status_uncheck': '待审核,gray',
'sys_user_status_nopass_check': '不通过,red'
},
TECHNICIANVERIFYSTATUSNEW: {
'sys_user_status_pass_check': '已认证,green',
'sys_user_status_checking': '认证中,gray',
'sys_user_status_uncheck': '未认证,red'
},
// 资源匹配管理状态
RESOURCESTATUS: {
'sys_user_status_unbound_service': '未绑定服务商,gray',
'sys_user_status_unbound_mechanic': '未指定技工,yellow',
'sys_user_status_bound': '已匹配,green'
},
// 订单管理状态
PROGRESSSTATUS: {
'1': '已下单',
'2': '已派单',
'3': '服务商拒单',
'4': '已派单',
'5': '技工拒单',
'6': '已接单',
'7': '已预约',
'8': '已完成',
'110': '重新指派技工',
'115': '修改安装地址',
'120': '重新预约',
'125': '已上门'
},
AFTERTYPE: {
1: '更换车辆,gray',
2: '设备维修,gray',
3: '设备拆除,gray'
},
ORDERTYPE: {
1: '安装单,gray',
2: '拆除单,gray',
3: '检修单,gray'
},
ORDERTECHNICIANSTATUS: {
'4': '待接单,red',
'6': '待完成,blue',
'7': '待完成,blue',
'8': '已完成,green',
'9': '已取消,gray'
},
ORDERSTORESTATUS: {
'1': '待接单,blue',
'2': '待接单,blue',
'3': '待接单,blue',
'4': '待接单,blue',
'5': '待接单,blue',
'6': '已接单,blue',
'7': '已接单,blue',
'8': '已完成,green',
'9': '已取消,gray'
},
ORDERSERVERSTATUS: {
'1': '待指派,orange',
'2': '待指派,orange',
'3': '已拒绝,red',
'4': '待完成,blue',
'5': '待指派,orange',
'6': '待完成,blue',
'7': '待完成,blue',
'8': '已完成,green',
'9': '已取消,gray'
},
BIDDINGORDERTECHNICIANSTATUS: {
'4': '待接单,red',
'6': '待完成,blue',
'7': '待完成,blue',
'8': '已完成,green',
'9': '已取消,gray'
},
BIDDINGORDERSTORESTATUS: {
'1': '待接单,gray',
'3': '待接单,gray',
'10': '待接单,gray',
'15': '待接单,gray',
'2': '已接单,blue',
'4': '已接单,blue',
'5': '已接单,blue',
'6': '已接单,blue',
'7': '已接单,blue',
'8': '已完成,green',
'9': '已取消,gray'
},
BIDDINGORDERSERVERSTATUS: {
'1': '待指派,gray',
'2': '待指派,gray',
'4': '待完成,blue',
'6': '待完成,blue',
'7': '待完成,blue',
'8': '已完成,green',
'9': '已取消,gray'
},
ORDERALLSTATUS: {
'1': '商户已派单,blue',
'2': '服务商已接单,yellow',
'3': '服务商已拒单,red',
'4': '服务商已指派,blue',
'5': '技工拒单,red',
'6': '技工已接单,blue',
'7': '已预约,orange',
'8': '已完成,green',
'9': '已取消,gray',
'10': '竞价开始,orange',
'15': '竞价中,red'
},
ORDERDISPATCHREASON: {
'1': '未匹配到商户,blue',
'2': '未绑定服务商,orange'
},
// 对账单列表状态
ACOUNTSTATUSADMIN: {
'10': '账单生成中,blue',
'20': '账单已生成,green'
},
ACOUNTSTATUSSERVICE: {
'10': '待确认,red',
'20': '待运营审核,blue',
'30': '待财务打款,orange',
'40': '财务已打款,green'
},
ACCOUNTSTATUSSELECTIONS: [
{ value: '', label: '全部' },
{ value: '10', label: '待确认' },
{ value: '20', label: '待运营审核' },
{ value: '30', label: '待财务打款' },
{ value: '40', label: '财务已打款' }
],
// 权限按钮
PERMISSIONBUTTONNAME: {
'新增': 'add',
'修改': 'edit',
'删除': 'delete',
'导出': 'export',
'编辑': 'edit',
'重置': 'reset'
},
POLICY_STATUS: {
'1': '待投保',
'2': '已投保',
'3': '投保失败',
'9': '已退保'
} }
} }
export default Constants export default Constants
...@@ -120,8 +120,8 @@ export default { ...@@ -120,8 +120,8 @@ export default {
], ],
tableParams: { tableParams: {
numName: '字典编码', numName: '字典编码',
mutiSelectName: 'dictDataData', // mutiSelectName: 'dictDataData',
mutiSelectUniqueKey: 'id', // mutiSelectUniqueKey: 'id',
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list', listName: 'list',
tableColumns: [ tableColumns: [
......
...@@ -211,8 +211,7 @@ export default { ...@@ -211,8 +211,7 @@ export default {
menuForm: { menuForm: {
type: '1', type: '1',
parentName: '', parentName: '',
enableStatus: true, enableStatus: true
permissionTag: ''
}, },
form: { form: {
type: '2', type: '2',
...@@ -282,6 +281,7 @@ export default { ...@@ -282,6 +281,7 @@ export default {
params.enableStatus = this.menuForm.enableStatus ? 1 : 2 params.enableStatus = this.menuForm.enableStatus ? 1 : 2
if (params.parentName) delete params.parentName if (params.parentName) delete params.parentName
if (params.menuNo) delete params.menuNo if (params.menuNo) delete params.menuNo
if (params.ppId) delete params.ppId
this.emptyData(params) this.emptyData(params)
let api = addMenu let api = addMenu
if (params.id) api = editMenu if (params.id) api = editMenu
...@@ -294,7 +294,7 @@ export default { ...@@ -294,7 +294,7 @@ export default {
this.handleClose() this.handleClose()
if (params.parentId) { if (params.parentId) {
getMenuChildren({ parentId: params.parentId }).then(res => { getMenuChildren({ parentId: params.parentId }).then(res => {
this.$set(this.$refs.menuTable.store.states.lazyTreeNodeMap, params.parentId, res.data) this.$set(this.$refs.menuTable.store.states.lazyTreeNodeMap, this.menuForm.ppId, res.data)
}) })
} else { } else {
this.search() this.search()
...@@ -330,6 +330,8 @@ export default { ...@@ -330,6 +330,8 @@ export default {
this.menuDialogTitle = '新增菜单' this.menuDialogTitle = '新增菜单'
this.menuData[0].children = this.$Constants.MENU_OTYPE this.menuData[0].children = this.$Constants.MENU_OTYPE
this.menuForm = _.cloneDeep(this.form) this.menuForm = _.cloneDeep(this.form)
this.menuForm.ppId = scope.id
console.log(this.menuForm)
this.handleClose() this.handleClose()
break break
case 'edit': case 'edit':
...@@ -361,6 +363,7 @@ export default { ...@@ -361,6 +363,7 @@ export default {
}, },
// 删除触发事件 // 删除触发事件
deleteEvent(row) { deleteEvent(row) {
console.log(row)
const that = this const that = this
const tipData = { const tipData = {
that: that, that: that,
...@@ -376,9 +379,10 @@ export default { ...@@ -376,9 +379,10 @@ export default {
}) })
if (row.parentId == 0) { if (row.parentId == 0) {
this.getList() this.getList()
} else {
getMenuChildren({ parentId: row.parentId }).then(res => { getMenuChildren({ parentId: row.parentId }).then(res => {
const nodes = res.data const nodes = res.data
this.$set(this.$refs.menuTable.store.states.lazyTreeNodeMap, 13, nodes) this.$set(this.$refs.menuTable.store.states.lazyTreeNodeMap, row.ppId, nodes)
}) })
} }
} else { } else {
......
...@@ -99,7 +99,6 @@ ...@@ -99,7 +99,6 @@
node-key="id" node-key="id"
ref="tree" ref="tree"
highlight-current highlight-current
check-strictly
> >
</el-tree> </el-tree>
</div> </div>
......
...@@ -215,6 +215,7 @@ export default { ...@@ -215,6 +215,7 @@ export default {
userVisible: false, userVisible: false,
userForm: { userForm: {
account: '', account: '',
gender: 2,
departmentName: '', departmentName: '',
superiorName: '', superiorName: '',
enableStatus: true enableStatus: true
...@@ -229,9 +230,9 @@ export default { ...@@ -229,9 +230,9 @@ export default {
{ label: '角色:', prop: 'roleId', type: 'select', options: [], key: 'roleName', value: 'roleId', filterable: true }, { label: '角色:', prop: 'roleId', type: 'select', options: [], key: 'roleName', value: 'roleId', filterable: true },
{ label: '邮箱:', prop: 'email', type: 'input' }, { label: '邮箱:', prop: 'email', type: 'input' },
{ label: '手机:', prop: 'phoneNumber', type: 'input' }, { label: '手机:', prop: 'phoneNumber', type: 'input' },
{ label: '性别:', prop: 'gender', type: 'select', options: [{ label: '男', value: 0 }, { label: '女', value: 1 }] }, { label: '性别:', prop: 'gender', type: 'select', options: [{ label: '未知', value: 2 }, { label: '男', value: 0 }, { label: '女', value: 1 }] },
{ label: '状态:', prop: 'enableStatus', type: 'switch' }, { label: '状态:', prop: 'enableStatus', type: 'switch' },
{ label: '岗位:', prop: 'position', type: 'select', options: [], key: 'dictLabel', value: 'id' } { label: '岗位:', prop: 'position', type: 'select', options: [], key: 'dictLabel', value: 'dictValue' }
], ],
userRules: { userRules: {
account: [{ required: true, message: '请输入登录名称', trigger: 'blur' }], account: [{ required: true, message: '请输入登录名称', trigger: 'blur' }],
...@@ -283,6 +284,7 @@ export default { ...@@ -283,6 +284,7 @@ export default {
delete params.departmentName delete params.departmentName
delete params.superiorName delete params.superiorName
delete params.createdDate delete params.createdDate
if (params.roleName) delete params.roleName
this.emptyData(params) this.emptyData(params)
let api = addUser let api = addUser
if (params.id) api = editUser if (params.id) api = editUser
...@@ -330,6 +332,7 @@ export default { ...@@ -330,6 +332,7 @@ export default {
this.userDialogTitle = '新增用户' this.userDialogTitle = '新增用户'
this.userRules.password = this.addRule this.userRules.password = this.addRule
this.userForm = { this.userForm = {
gender: 2,
departmentName: '', departmentName: '',
superiorName: '', superiorName: '',
enableStatus: true enableStatus: true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!