diff --git a/src/api/ma/person-setting.js b/src/api/ma/person-setting.js new file mode 100644 index 00000000..755355f3 --- /dev/null +++ b/src/api/ma/person-setting.js @@ -0,0 +1,28 @@ +import request from '@/utils/request' + +// 获取人员配置列表 +export function getPersonSettingListApi(query) { + return request({ + url: '/material/ma_type_repair/getTypeManageList', + method: 'get', + params: query + }) +} + +// 人员管理--绑定 +export function bindPersonSettingApi(data) { + return request({ + url: '/material/ma_type_repair/addTypeManage', + method: 'post', + data: data + }) +} + +// 人员管理--解绑 +export function unBindPersonSettingApi(data) { + return request({ + url: '/material/ma_type_repair/unbindTypeManage', + method: 'post', + data: data + }) +} diff --git a/src/views/business-examine/direct-rotation-apply/index.vue b/src/views/business-examine/direct-rotation-apply/index.vue index 44ddbc0d..15fc4ff3 100644 --- a/src/views/business-examine/direct-rotation-apply/index.vue +++ b/src/views/business-examine/direct-rotation-apply/index.vue @@ -123,9 +123,10 @@ export default { }, // 状态 statusOptions: [ - { label: '待审核', value: '1' }, - { label: '审核中', value: '2' }, - { label: '已完成', value: '3' } + { label: '待审核', value: '0' }, + { label: '审核中', value: '1' }, + { label: '已完成', value: '2' }, + { label: '已驳回', value: '3' } ], total: 0, // 总条数 // 表头 diff --git a/src/views/business/businessHandlingRecord/directApplyRecord.vue b/src/views/business/businessHandlingRecord/directApplyRecord.vue index da48cb81..17c4ecd3 100644 --- a/src/views/business/businessHandlingRecord/directApplyRecord.vue +++ b/src/views/business/businessHandlingRecord/directApplyRecord.vue @@ -72,6 +72,9 @@ 已完成 + + 已驳回 + @@ -129,15 +132,16 @@ export default { }, // 考勤状态 statusOptions: [ - { label: '待审核', value: '1' }, - { label: '审核中', value: '2' }, - { label: '已完成', value: '3' } + { label: '待审核', value: '0' }, + { label: '审核中', value: '1' }, + { label: '已完成', value: '2' }, + { label: '已驳回', value: '3' } ], total: 0, // 总条数 // 表头 tableColumns: [ { label: '申请时间', prop: 'createTime' }, - { label: '申请人', prop: 'leaseMan' }, + { label: '申请人', prop: 'createName' }, { label: '转出单位', prop: 'backUnitName' }, { label: '转出工程', prop: 'backProName' }, { label: '转入单位', prop: 'leaseUnitName' }, diff --git a/src/views/business/reliefRecord/index.vue b/src/views/business/reliefRecord/index.vue index bda9dd5a..e3b4f14b 100644 --- a/src/views/business/reliefRecord/index.vue +++ b/src/views/business/reliefRecord/index.vue @@ -33,6 +33,7 @@ + @@ -445,7 +446,7 @@ export default { uploadUrl: process.env.VUE_APP_BASE_API + '/file/upload', // 上传的图片服务器地址 upload: { // 设置上传的请求头部 - headers: { Authorization: 'Bearer ' + getToken() }, + headers: { Authorization: 'Bearer ' + getToken() }, }, delBusinessFileIdList: [], // 删除的图片id @@ -584,7 +585,7 @@ export default { this.title = '查看' this.uploadKey = Date.now() // 清空附件列表 - this.dialogAppy.decreaseFile = [] + this.dialogAppy.decreaseFile = [] getDiscountViewList(row.id).then(async response => { if (response.code == 200) { @@ -614,7 +615,7 @@ export default { this.title = '修改' this.uploadKey = Date.now() // 清空附件列表 - this.dialogAppy.decreaseFile = [] + this.dialogAppy.decreaseFile = [] getDiscountViewList(row.id).then(async response => { if (response.code == 200) { diff --git a/src/views/material/ma/person-setting/index.vue b/src/views/material/ma/person-setting/index.vue new file mode 100644 index 00000000..df84045d --- /dev/null +++ b/src/views/material/ma/person-setting/index.vue @@ -0,0 +1,875 @@ + + + + + + + + + + + 组织人员树 + + + + + + + + + + 物资类型树 + + + + + + + + + + + + 查询 + 重置 + + + + + + + 绑定 + + + + + 解绑 + + + + + + + + + + + {{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }} + + + + + + + + {{ '请绑定' }} + + + {{ scope.row.keeperUserName }} + + + + + + + + 库管解绑 + + + + + + + + + + + + + diff --git a/src/views/material/purchase/goodsBind/component/bindTools.vue b/src/views/material/purchase/goodsBind/component/bindTools.vue index 987f8bb3..a8aec5cb 100644 --- a/src/views/material/purchase/goodsBind/component/bindTools.vue +++ b/src/views/material/purchase/goodsBind/component/bindTools.vue @@ -201,12 +201,12 @@ 查询 - + - + diff --git a/src/views/material/repair/inventoryScrap/component/addToolsApply.vue b/src/views/material/repair/inventoryScrap/component/addToolsApply.vue index d49b7f44..eeac41ae 100644 --- a/src/views/material/repair/inventoryScrap/component/addToolsApply.vue +++ b/src/views/material/repair/inventoryScrap/component/addToolsApply.vue @@ -324,8 +324,9 @@ export default { uploadUrl: process.env.VUE_APP_BASE_API + '/file/upload', // 上传的图片服务器地址 upload: { // 设置上传的请求头部 - headers: { Authorization: 'Bearer ' + getToken() }, - } + headers: { Authorization: 'Bearer ' + getToken() } + }, + equipmentListTemp: [] } }, computed: { @@ -438,10 +439,13 @@ export default { } else { const newItem = { ...typeData, - scrapNum: 0 + scrapNum: 0, + isNew: true } + // 将新项添加到数组开头,实现倒序 this.equipmentList.unshift(newItem) + this.deviceType.push(lastSelected) this.$message({ message: `已添加 ${typeData.typeName}`, @@ -451,6 +455,8 @@ export default { this.getDeviceCodeOptions(newItem).then(options => { this.$set(newItem, 'deviceCodeOptions', options) }) + + console.log('this.equipmentList', this.equipmentList) } } @@ -489,6 +495,7 @@ export default { deviceCodeOptions: [] // 初始化设备编码选项 } }) + // 为每个设备项获取设备编码选项 for (let i = 0; i < this.equipmentList.length; i++) { if (this.equipmentList[i].manageType == '0') { @@ -511,6 +518,10 @@ export default { // } }, + getEquipmentListTemp() { + return this.equipmentList + }, + /** 保存按钮操作 */ handleSave() { // console.log(this.equipmentList) @@ -765,17 +776,17 @@ export default { }, /** 导出按钮操作 */ handleExport() { - const formatTime = (date) => { - const year = date.getFullYear(); - const month = String(date.getMonth() + 1).padStart(2, '0'); - const day = String(date.getDate()).padStart(2, '0'); - const hours = String(date.getHours()).padStart(2, '0'); - const minutes = String(date.getMinutes()).padStart(2, '0'); - const seconds = String(date.getSeconds()).padStart(2, '0'); - return `${year}${month}${day}_${hours}${minutes}${seconds}`; - }; + const formatTime = date => { + const year = date.getFullYear() + const month = String(date.getMonth() + 1).padStart(2, '0') + const day = String(date.getDate()).padStart(2, '0') + const hours = String(date.getHours()).padStart(2, '0') + const minutes = String(date.getMinutes()).padStart(2, '0') + const seconds = String(date.getSeconds()).padStart(2, '0') + return `${year}${month}${day}_${hours}${minutes}${seconds}` + } - const currentTime = formatTime(new Date()); + const currentTime = formatTime(new Date()) this.download( '/material/purchase_check_info/exportDetails', { taskId: this.taskId }, diff --git a/src/views/material/repair/inventoryScrap/index.vue b/src/views/material/repair/inventoryScrap/index.vue index 6f497a36..2df40097 100644 --- a/src/views/material/repair/inventoryScrap/index.vue +++ b/src/views/material/repair/inventoryScrap/index.vue @@ -1,11 +1,7 @@ - + - + \ No newline at end of file + if (this.isShowComponent === 'AddTools') { + const equipmentListTemp = this.$refs[`${this.isShowComponent}Ref`].getEquipmentListTemp() + const isNew = equipmentListTemp.some(item => item.isNew) + if (equipmentListTemp.length === 0 || isNew) { + this.$message.error('当前页面有未保存的报废信息,请先保存!') + return + } + } else { + this.isShowComponent = 'Home' + } + } + } +} + diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 520ab763..06658083 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -84,7 +84,7 @@ - + @@ -404,7 +404,7 @@ export default { }, // 列信息 columns: [ - { key: 0, label: `用户编号`, visible: true }, + { key: 0, label: `序号`, visible: true }, { key: 1, label: `登录名`, visible: true }, { key: 2, label: `用户昵称`, visible: true }, { key: 3, label: `部门`, visible: true },