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 @@ - +