diff --git a/sgzb-ui/src/views/scrapManage/component/tableModel.vue b/sgzb-ui/src/views/scrapManage/component/tableModel.vue
index 81f90172..7e3146a8 100644
--- a/sgzb-ui/src/views/scrapManage/component/tableModel.vue
+++ b/sgzb-ui/src/views/scrapManage/component/tableModel.vue
@@ -14,6 +14,7 @@
:data="tableList"
border
ref="tableRef"
+ select-on-indeterminate
@selection-change="handleSelectionChange"
>
操作
-
全选
-
123
-
123
-
123
-
123
-
123
+
{{ check.t_label }}
@@ -148,6 +149,13 @@
return {}
},
},
+ /* 表格是否勾选 */
+ selectable: {
+ type: Function,
+ default: () => {
+ return true
+ },
+ },
},
data() {
return {
@@ -162,6 +170,15 @@
},
created() {
this.getList()
+ console.log(this.tableColumCheck, '获取的', this.tableProps)
+ },
+ computed: {
+ tableColumCheck() {
+ return this.tableProps
+ },
+ tableColumCheckProps() {
+ return this.tableColumCheck.filter((e) => (e.checked = true))
+ },
},
methods: {
async queryList(val, reset) {
diff --git a/sgzb-ui/src/views/scrapManage/forecastWaste/auditing.vue b/sgzb-ui/src/views/scrapManage/forecastWaste/auditing.vue
index 2f874786..9b039645 100644
--- a/sgzb-ui/src/views/scrapManage/forecastWaste/auditing.vue
+++ b/sgzb-ui/src/views/scrapManage/forecastWaste/auditing.vue
@@ -80,6 +80,11 @@
:formLabel="config.previewFormLabel"
:isSelShow="isSelShow"
ref="auditingTableRef"
+ :selectable="
+ (row) => {
+ return row.status == 0
+ }
+ "
@getTableSelectionChange="getTableSelChangeInner"
>
diff --git a/sgzb-ui/src/views/scrapManage/forecastWaste/index.js b/sgzb-ui/src/views/scrapManage/forecastWaste/index.js
index d019b039..0d63b69d 100644
--- a/sgzb-ui/src/views/scrapManage/forecastWaste/index.js
+++ b/sgzb-ui/src/views/scrapManage/forecastWaste/index.js
@@ -12,16 +12,16 @@ export const config = {
/* 预报废审核主页 列表参数 */
tableProps: [
{ t_width: '55px', t_props: '', t_label: '序号' },
- { t_width: '', t_props: 'scrapNum', t_label: '预报废单号' },
- { t_width: '', t_props: '', t_label: '报废来源', t_slot: 'source' },
- { t_width: '', t_props: 'repairNum', t_label: '单号', t_slot: 'code' },
- { t_width: '', t_props: 'unitName', t_label: '退料单位名称' },
- { t_width: '', t_props: 'projectName', t_label: '退料工程名称' },
- { t_width: '', t_props: 'itemType', t_label: '设备类型' },
- { t_width: '', t_props: 'createBy', t_label: '任务创建人' },
- { t_width: '', t_props: 'createTime', t_label: '任务创建时间' },
- { t_width: '', t_props: 'taskStatus', t_label: '审核状态', t_slot: 'type' },
- { t_width: '', t_props: '', t_label: '不通过原因' },
+ { t_width: '', t_props: 'scrapNum', t_label: '预报废单号', },
+ { t_width: '', t_props: '', t_label: '报废来源', t_slot: 'source', },
+ { t_width: '', t_props: 'repairNum', t_label: '单号', t_slot: 'code', },
+ { t_width: '', t_props: 'unitName', t_label: '退料单位名称', },
+ { t_width: '', t_props: 'projectName', t_label: '退料工程名称', },
+ { t_width: '', t_props: 'itemType', t_label: '设备类型', },
+ { t_width: '', t_props: 'createBy', t_label: '任务创建人', },
+ { t_width: '', t_props: 'createTime', t_label: '任务创建时间', },
+ { t_width: '', t_props: 'taskStatus', t_label: '审核状态', t_slot: 'type', },
+ { t_width: '', t_props: '', t_label: '不通过原因', },
],
/* 预报废审核主页表单 查询参数 */
formLabel: [