From a086b2993a52f710a44b70eb4eeb98be07be8e38 Mon Sep 17 00:00:00 2001 From: zhangdi <15053473693@163.com> Date: Wed, 22 Jan 2025 17:20:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/businessManagement/ordinary.vue | 69 +- src/views/device/deviceSystem.vue | 4 +- src/views/goodsManagement/reciviceList.vue | 4 +- .../labManagement/inspectionManagement.vue | 757 +++++++++--------- src/views/system/dept.vue | 4 + src/views/system/user.vue | 34 +- src/views/workbench/index.vue | 2 +- vue.config.js | 4 +- 8 files changed, 451 insertions(+), 427 deletions(-) diff --git a/src/views/businessManagement/ordinary.vue b/src/views/businessManagement/ordinary.vue index 3b4cdc3..1f9d405 100644 --- a/src/views/businessManagement/ordinary.vue +++ b/src/views/businessManagement/ordinary.vue @@ -45,8 +45,10 @@ 关闭 确认 + 驳回 + 报告 @@ -1572,20 +1574,20 @@ export default { handleReject() { this.$refs.rejectForm.validate((valid) => { if (valid) { - if (this.role_id == '1839552581620793346') { - let query = { - id: this.rejectForm.id, - repaiRejectReason: this.rejectForm.reason - } - servicemanReject(query).then(res => { - if (res.data.code == 200) { - this.$message.success('驳回成功') - this.rejectForm = {} - this.rejectVisible = false - this.onLoad() - } - }) + // if (this.role_id == '1839552581620793346') { + let query = { + id: this.rejectForm.id, + repaiRejectReason: this.rejectForm.reason } + servicemanReject(query).then(res => { + if (res.data.code == 200) { + this.$message.success('驳回成功') + this.rejectForm = {} + this.rejectVisible = false + this.onLoad() + } + }) + // } } }) @@ -1715,7 +1717,23 @@ export default { this.$message.error('请至少填写一条维修材料信息') } else { let data = [] + let goodsList = [] this.tableData.map((item, index) => { + goodsList.push({ + productId: item.id, + productName: item.productName, + applyNum: item.number, + orderId: this.repairForm.id, + materialName: item.productName, + materialCount: item.number, + materialPrice: item.price, + bigClassId: item.productType.node, + rule: item.rule, + unit: item.unit, + xh: item.xh, + inventoryId: item.inventoryId + // outNum:"" + }) data.push({ orderId: this.repairForm.id, materialName: item.productName, @@ -1746,14 +1764,15 @@ export default { query.discount = 0 } + let query1 = { - details: data, + details: goodsList, applyUserId: this.userInfo.user_id, //申领人Id applyUser: this.userInfo.user_name, //申领人 applyTime: moment().format('YYYY-MM-DD HH:mm:ss'), //申领时间(yyyy-MM-dd HH:mm:ss) status: 0, - workId: this.addForm.id, - remark:'维修单申领' + workId: this.repairForm.id, + remark: '维修单申领' } editData(query).then(res => { @@ -2015,15 +2034,15 @@ export default { workId: this.addForm.id, } // applyGoods(query1).then(res => { - if (res.data.code == 200) { - servicemanReceive({ id: this.addForm.id }).then(res => { - if (res.data.code == 200) { - this.$message.success('提交成功') - this.dialogVisible = false - this.onLoad() - } - }) - } + if (res.data.code == 200) { + servicemanReceive({ id: this.addForm.id }).then(res => { + if (res.data.code == 200) { + this.$message.success('提交成功') + this.dialogVisible = false + this.onLoad() + } + }) + } // }) } } else { diff --git a/src/views/device/deviceSystem.vue b/src/views/device/deviceSystem.vue index 2b1bf05..3fcf3b6 100644 --- a/src/views/device/deviceSystem.vue +++ b/src/views/device/deviceSystem.vue @@ -127,8 +127,8 @@ format="yyyy-MM-dd" value-format="yyyy-MM-dd" type="date" placeholder="请选择生产时间"> --> - - + diff --git a/src/views/goodsManagement/reciviceList.vue b/src/views/goodsManagement/reciviceList.vue index d68a028..8eff71c 100644 --- a/src/views/goodsManagement/reciviceList.vue +++ b/src/views/goodsManagement/reciviceList.vue @@ -12,7 +12,7 @@ - + @@ -57,7 +57,7 @@ - +