mh_jy_safe_web/src/files/list/MM047.js
2025-08-25 10:08:30 +08:00

26 lines
719 B
JavaScript

import React from 'react';
import { Button } from 'antd'
import {message} from "antd/lib/index";
export default {
btnCheckBOM: ({record, close, loadData, login, btn, dispatch}) => {
const confirm = () => {
const json = {Keyword: record.ID};
dispatch({
type: 'stackMaterial/checkBOM',
payload: json,
onComplete: (ret) => {
if (ret) {
message.success('执行成功');
loadData();
}
}
})
}
return {
content:<Button onClick={confirm}
type={btn.CSS} icon={btn.ICON} title={btn.LABEL} size="small"/>,
};
},
}