From 2e0814935e30531322436f97df3443c96882cb0a Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Fri, 14 Jun 2024 17:24:17 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E9=A2=86=E6=96=99=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E5=82=AC=E5=8A=9E=E5=8A=9F=E8=83=BD=E5=AE=8C=E5=96=84?= =?UTF-8?q?=EF=BC=8C=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=96=E7=AD=89=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../picking/apply/component/AddPicking.vue | 15 +- .../picking/apply/component/home.vue | 4 +- .../picking/auditing/component/home1.vue | 4 +- .../claimAndreturn/picking/auditing/index.vue | 5 +- .../return/apply/component/addReturn.vue | 33 +- .../claimAndreturn/return/auditing/index.vue | 2 +- sgzb-ui/src/views/demo.vue | 0 sgzb-ui/src/views/index.vue | 89 +- .../repairTest/repair/dialogThreeForm.vue | 879 +++++++++--------- sgzb-ui/vue.config.js | 4 +- 10 files changed, 592 insertions(+), 443 deletions(-) create mode 100644 sgzb-ui/src/views/demo.vue diff --git a/sgzb-ui/src/views/claimAndreturn/picking/apply/component/AddPicking.vue b/sgzb-ui/src/views/claimAndreturn/picking/apply/component/AddPicking.vue index 62d806ac..af1af8cc 100644 --- a/sgzb-ui/src/views/claimAndreturn/picking/apply/component/AddPicking.vue +++ b/sgzb-ui/src/views/claimAndreturn/picking/apply/component/AddPicking.vue @@ -54,11 +54,11 @@ style="width: 240px" > - + diff --git a/sgzb-ui/src/views/claimAndreturn/picking/auditing/component/home1.vue b/sgzb-ui/src/views/claimAndreturn/picking/auditing/component/home1.vue index 98ca6371..61979737 100644 --- a/sgzb-ui/src/views/claimAndreturn/picking/auditing/component/home1.vue +++ b/sgzb-ui/src/views/claimAndreturn/picking/auditing/component/home1.vue @@ -179,7 +179,7 @@ :show-overflow-tooltip="true" /> - + + + + + + + { this.companyId = res.user.companyId this.createBy = res.user.userName + this.userId = res.user.userId }) }, computed: { @@ -722,6 +739,7 @@ export default { } this.queryParams.createBy = this.user.name this.queryParams.companyId = this.companyId + this.queryParams.userId = this.userId this.queryParams.backApplyInfo = { backPerson: this.queryParams.backPerson, phone: this.queryParams.phone, @@ -733,6 +751,7 @@ export default { let params = { companyId: this.companyId, createBy: this.createBy, + userId: this.userId, id: this.rowId, agreementId: this.queryParams.agreementId, backApplyInfo: this.queryParams.backApplyInfo, @@ -754,6 +773,7 @@ export default { let params = { companyId: this.companyId, createBy: this.createBy, + userId: this.userId, agreementId: this.queryParams.agreementId, backApplyInfo: this.queryParams.backApplyInfo, backApplyDetails: @@ -894,6 +914,17 @@ export default { template.useNum = node.data.useNum return template }, + + // 设备类型选择 过滤对应的数据 + selDeviceTypeChange(val) { + console.log(val, '设备类型选择-----') + + console.log(this.deviceTypeTree, '树形数据源--') + + this.deviceTypeTreeNew = this.deviceTypeTree.filter( + (e) => e.companyId == val, + ) + }, }, } diff --git a/sgzb-ui/src/views/claimAndreturn/return/auditing/index.vue b/sgzb-ui/src/views/claimAndreturn/return/auditing/index.vue index cf81b1e4..5a6a5a70 100644 --- a/sgzb-ui/src/views/claimAndreturn/return/auditing/index.vue +++ b/sgzb-ui/src/views/claimAndreturn/return/auditing/index.vue @@ -285,7 +285,7 @@ size="medium" type="text" icon="el-icon-edit" - v-if="scope.row.applyStatus == '0'" + v-if="scope.row.taskStatus == '37'" v-hasPermi="['return:auditing:auditing']" @click="handleUpdate(scope.row, 'update')" > diff --git a/sgzb-ui/src/views/demo.vue b/sgzb-ui/src/views/demo.vue new file mode 100644 index 00000000..e69de29b diff --git a/sgzb-ui/src/views/index.vue b/sgzb-ui/src/views/index.vue index 8b3c0097..182711b7 100644 --- a/sgzb-ui/src/views/index.vue +++ b/sgzb-ui/src/views/index.vue @@ -203,12 +203,17 @@ type="text" icon="el-icon-edit-outline" style="color: #e6a23c" - v-if="row.taskTypeId == 29" + v-if=" + row.taskTypeId == 29 && + userId === parseInt(row.createBy) + " @click=" handleUrging( - row.taskTypeId, + parseInt(row.taskTypeId), // 任务类型 + parseInt(row.companyId), // 机具类型 + row.taskEvent, // 任务状态 + parseInt(row.createBy), // 任务创建人 row.taskCode, - row.taskEvent, row.taskId, ) " @@ -267,6 +272,22 @@ > + + + + + @@ -277,8 +298,13 @@ import { getToPersonInfoAp, sendUrgingMessageApi, } from '@/api/index' + +import DialogModel from '@/components/DialogModel' export default { name: 'myIndex', + components: { + DialogModel, + }, data() { return { // 遮罩层 @@ -356,6 +382,16 @@ export default { // 接收人 bmNoticeInfoList: [], }, + + dialogConfig: { + outerWidth: '50%', + outerTitle: '催办人详情', + outerVisible: false, + }, + + userId: parseInt(sessionStorage.getItem('userId')), + deptId: parseInt(sessionStorage.getItem('deptId')), + toPersonInfoDetails: [], } }, created() { @@ -422,18 +458,30 @@ export default { }, /* 催办按钮 */ - async handleUrging(id, taskCode, taskStatus, taskId) { + async handleUrging( + taskTypeId, + companyId, + taskStatus, + createBy, + taskCode, + taskId, + ) { + const personParams = { + taskTypeId, // 当前任务类型 + companyId, // 当前机具类型 + taskStatus, // 当前任务状态 + createBy, // 当前任务创建人 + deptId: this.deptId, // 当前任务的所属部门 + } /* 先获取催办人信息 */ - const { data: res } = await getToPersonInfoAp({ - taskStatus, - }) + const { data: res } = await getToPersonInfoAp(personParams) res.map((e) => { this.toPersonInfo.push({ noticeUser: e.userId, phone: e.phonenumber, modelName: '领料催办', companyId: e.companyId, - v_name: e.nickName, + v_name: e.userName, }) }) @@ -465,6 +513,31 @@ export default { this.toPersonInfo = [] this.urgingDialogVisible = false }, + + /* 查看催办人详情 */ + async handleViewDetails(taskTypeId, companyId, taskStatus, createBy) { + this.toPersonInfoDetails = [] + const personParams = { + taskTypeId, // 当前任务类型 + companyId, // 当前机具类型 + taskStatus, // 当前任务状态 + createBy, // 当前任务创建人 + deptId: this.deptId, // 当前任务的所属部门 + } + /* 先获取催办人信息 */ + const { data: res } = await getToPersonInfoAp(personParams) + res.map((e) => { + this.toPersonInfoDetails.push({ + v_user_id: e.userId, + v_name: e.userName, + }) + }) + this.dialogConfig.outerVisible = true + }, + /* 关闭外层弹框 */ + closeDialogOuter(val) { + this.dialogConfig.outerVisible = val + }, }, } diff --git a/sgzb-ui/src/views/repairTest/repair/dialogThreeForm.vue b/sgzb-ui/src/views/repairTest/repair/dialogThreeForm.vue index c4fe9b9d..6f802dd5 100644 --- a/sgzb-ui/src/views/repairTest/repair/dialogThreeForm.vue +++ b/sgzb-ui/src/views/repairTest/repair/dialogThreeForm.vue @@ -1,36 +1,44 @@ diff --git a/sgzb-ui/vue.config.js b/sgzb-ui/vue.config.js index b6509030..e52e86cc 100644 --- a/sgzb-ui/vue.config.js +++ b/sgzb-ui/vue.config.js @@ -46,8 +46,8 @@ module.exports = { // target: `http://10.40.92.51:28080`, //超 // target: `http://10.40.92.81:8080`, //韩/ // target: `http://10.40.92.74:8080`,//旭/ - target: `http://10.40.92.138:28080`, //帅 - // target: `http://10.40.92.253:28080`, //福 + // target: `http://10.40.92.138:28080`, //帅 + target: `http://10.40.92.253:28080`, //福 //******** 注意事项 ********* */ //1.全局替换qrUrl二维码扫码提供的网址-发布服务器的地址target;