mh_jy_safe_web/src/files/list/TI007.js

61 lines
1.8 KiB
JavaScript
Raw Normal View History

2025-08-25 10:08:30 +08:00
// import { message, Checkbox, Radio } from "antd/lib/index";
// import { getPropertyData, extendInclude, extendRule, getDataFieldValue, setDataFieldValue, initFilter, empty, onBeforeSaveHandleRecordLog, Format } from "../../utils/common";
// import { connect } from 'dva';
// import moment from 'moment';
// import FormPage from "../../components/FormPage";
// /**
// * @return {string}
// */
// // 编辑 安全生产费用使用记录
// export default {
import React from 'react';
import FormPage from '../../components/FormPage'
import { ConfirmButton } from '@woowalker/feui'
import { message } from "antd/lib/index";
//MRP运算
export default {
btnView: ({ record, close, loadData, custom, getSelectedRecords, dispatch }) => {
var selectRecords = getSelectedRecords();
var ids = ''
if (selectRecords == null || selectRecords.length < 1) {
} else {
for (let i = 0; i < selectRecords.length; i++) {
ids += ',' + selectRecords[i].ID
}
}
const data = {
id: ids
}
return {
connect: <FormPage formCode={'TI008_SHOWPRINTS'} data={data} />
}
},
// getSelectedRowKeys: ({ getSelectedRowKeys }) = {
// debugger
// }
// onBeforeSaveHandleRecord(params) {
// params.record.TaskID = params.data.TaskID //TaskID传递消息表ID
// params.record.STATUS = params.customParams;
// onBeforeSaveHandleRecordLog(params, 'TI008', '前端日志')
// },
// onBeforeEdit: ({ isNew, setFieldValueByBatch, login }) => {
// if (isNew) {
// const temps = [];
// temps.push({ field: 'USER_ID', value: login.user.ID })
// temps.push({ field: 'Nav_User.NAME', value: login.user.NAME })
// temps.push({ field: 'USETIME', value: (new Date()).Format("yyyy-MM-dd") })
// setFieldValueByBatch(temps);
// }
// },
}