+
-
+
@@ -171,6 +173,12 @@
+
@@ -210,6 +218,12 @@
prop="backCode"
show-overflow-tooltip
/> -->
+
+
{
if (e.scrapNum >= 1) {
- item.fileIds = e.fileIds
+ item.fileIds = e.fileIds || null
item.scrapReason = e.scrapReason
item.scrapType = e.scrapType
}
diff --git a/sgzb-ui/src/views/scrapManage/forecastWaste/auditing/config.js b/sgzb-ui/src/views/scrapManage/forecastWaste/auditing/config.js
index dce1cfce..ddeb4da8 100644
--- a/sgzb-ui/src/views/scrapManage/forecastWaste/auditing/config.js
+++ b/sgzb-ui/src/views/scrapManage/forecastWaste/auditing/config.js
@@ -85,7 +85,8 @@ export const dialogConfig = {
{ t_width: '', t_props: 'maCode', t_label: '设备编码' },
{ t_width: '', t_props: 'scrapNum', t_label: '设备数量' },
{ t_width: '', t_props: 'status', t_label: '审批状态', t_slot: 't_type' },
- { t_width: '', t_props: 'auditRemark', t_label: '报废原因' },
+ { t_width: '', t_props: 'remark', t_label: '报废原因' },
+ { t_width: '', t_props: 'auditRemark', t_label: '驳回原因' },
{ t_width: '', t_props: '', t_label: '损坏原因', t_slot: 't_damage' },
{ t_width: '', t_props: '', t_label: '报废图片', t_slot: 't_img' },
{ t_width: '', t_props: 'remark', t_label: '备注' },
diff --git a/sgzb-ui/src/views/scrapManage/forecastWaste/auditing/index.vue b/sgzb-ui/src/views/scrapManage/forecastWaste/auditing/index.vue
index be8315ec..b48a0da8 100644
--- a/sgzb-ui/src/views/scrapManage/forecastWaste/auditing/index.vue
+++ b/sgzb-ui/src/views/scrapManage/forecastWaste/auditing/index.vue
@@ -191,6 +191,7 @@ import {
auditingPreScrapApi,
} from '@/api/scrap/forecastWaste.js'
import { config, getSelList, getTypeListSel, dialogConfig } from './config'
+import { registerLayout } from 'echarts'
export default {
name: 'Inventory',
components: {
@@ -222,6 +223,7 @@ export default {
},
tbAllChecked: false, // 判断当前设备是否全部审核过
dataCondition: [], // 导出taskId列表
+ isRefresh: false,
}
},
created() {
@@ -282,9 +284,9 @@ export default {
const res = await auditingPreScrapApi(this.auditingParams)
if (res.code == 200) {
this.$message.success('审核通过!')
- this.dialogConfig.outerVisible = false
- this.$refs.tbRef.getList()
this.auditingParams.scrapDetailList = []
+ this.$refs.dialogTbRef.getList()
+ this.isRefresh = true
}
},
/* 审核驳回 */
@@ -324,8 +326,6 @@ export default {
this.auditingParams.scrapDetailList.push(deviceInfo)
})
-
- console.log(this.selAuditingList, '选择的操作数据')
const res = await auditingPreScrapApi(this.auditingParams)
if (res.code == 200) {
this.$message.success('已驳回!')
@@ -334,6 +334,9 @@ export default {
this.$nextTick(() => {
this.$refs.dialogTbRef.getList()
})
+ this.isRefresh = true
+ } else {
+ this.dialogConfig.innerVisible = false
}
}
},
@@ -361,6 +364,11 @@ export default {
/* 监听外层弹框关闭 清空勾选的数据 */
if (!newVal.outerVisible) {
this.selAuditingList = []
+
+ if (this.isRefresh) {
+ this.$refs.tbRef.getList()
+ this.isRefresh = false
+ }
}
if (!newVal.innerVisible) {
this.auditingParams.scrapDetailList = []