@@ -394,6 +397,21 @@
+
+
+
+
+
+
+
+
+
+
+ 保存
+ 关闭
+
+
+
@@ -409,7 +427,8 @@
getEmpyDeptList,
getDeptList,
updateReportResult, // 修改执行结果
- getSiteAndBuByUserName
+ getSiteAndBuByUserName,
+ confirmDefectOrder, // 维修确认
} from "@/api/eam/eam.js"
import {
getTableDefaultListLanguage,
@@ -1153,6 +1172,15 @@
authDetail: false,
authCancel: false,
menuId: this.$route.meta.menuId,
+ confirmData: {
+ site: '',
+ buNo: '',
+ orderNo: '',
+ functionType: '',
+ confirmResult: '',
+ confirmBy: ''
+ },
+ confirmDefectModal: false
}
},
@@ -1556,6 +1584,44 @@
})
},
+ // 维修确认
+ confirmResult (row) {
+ this.confirmData = {
+ site: row.site,
+ buNo: row.buNo,
+ orderNo: row.orderNo,
+ planID: row.planID,
+ functionType: row.functionType,
+ confirmResult: 'Y',
+ confirmBy: this.$store.state.user.name
+ }
+ this.confirmDefectModal = true
+ },
+
+ // 确认结果
+ confirmDefectOrder () {
+ if (this.confirmData.confirmResult === '' || this.confirmData.confirmResult == null) {
+ this.$message.warning('请选择维修结果!')
+ return
+ }
+ confirmDefectOrder(this.confirmData).then(({data}) => {
+ if (data && data.code === 0) {
+ this.getDataList()
+ this.confirmDefectModal = false
+ this.$message({
+ message: '操作成功',
+ type: 'success',
+ duration: 1500,
+ onClose: () => {}
+ })
+ } else {
+ this.$alert(data.msg, '错误', {
+ confirmButtonText: '确定'
+ })
+ }
+ })
+ },
+
/**
* 查看故障图片
*/
diff --git a/src/views/modules/part/bomManagement.vue b/src/views/modules/part/bomManagement.vue
index 6d66ab1..b034b5e 100644
--- a/src/views/modules/part/bomManagement.vue
+++ b/src/views/modules/part/bomManagement.vue
@@ -27,7 +27,7 @@