|
|
|
|
@ -48,6 +48,8 @@ var input = __webpack_require__(92832);
|
|
|
|
|
var table = __webpack_require__(36546);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
|
|
|
|
|
var pagination = __webpack_require__(19871);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/radio/index.js + 5 modules
|
|
|
|
|
var es_radio = __webpack_require__(5112);
|
|
|
|
|
// EXTERNAL MODULE: ./src/service/materials.ts
|
|
|
|
|
var materials = __webpack_require__(80231);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
|
|
|
@ -123,6 +125,19 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
var columns = [{
|
|
|
|
|
title: '类型编号',
|
|
|
|
|
dataIndex: 'number',
|
|
|
|
|
ellipsis: true,
|
|
|
|
|
render: function render(text) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
placement: "bottomLeft",
|
|
|
|
|
title: text,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: text || '--'
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
title: '类别名称',
|
|
|
|
|
dataIndex: 'title',
|
|
|
|
|
ellipsis: true,
|
|
|
|
|
@ -135,6 +150,19 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
title: '关联物资数',
|
|
|
|
|
dataIndex: 'substance_count',
|
|
|
|
|
ellipsis: true,
|
|
|
|
|
render: function render(text) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
|
|
|
placement: "bottomLeft",
|
|
|
|
|
title: text,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: text || '--'
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
title: '风险点',
|
|
|
|
|
dataIndex: 'risk',
|
|
|
|
|
@ -162,6 +190,8 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
setTypeId(record === null || record === void 0 ? void 0 : record.id);
|
|
|
|
|
myForm.setFieldValue('title', record === null || record === void 0 ? void 0 : record.title);
|
|
|
|
|
myForm.setFieldValue('number', record === null || record === void 0 ? void 0 : record.number);
|
|
|
|
|
myForm.setFieldValue('is_expend', record === null || record === void 0 ? void 0 : record.is_expend);
|
|
|
|
|
myForm.setFieldValue('risk', record === null || record === void 0 ? void 0 : record.risk);
|
|
|
|
|
setOpenMyModal(true);
|
|
|
|
|
},
|
|
|
|
|
@ -364,6 +394,56 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
myForm.setFieldValue('title', e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 || (_e$target = _e$target.value) === null || _e$target === void 0 ? void 0 : _e$target.trim().replace(/\s/g, ''));
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
colon: false,
|
|
|
|
|
labelCol: {
|
|
|
|
|
span: 4
|
|
|
|
|
},
|
|
|
|
|
label: "\u7C7B\u522B\u7F16\u53F7",
|
|
|
|
|
name: "number",
|
|
|
|
|
rules: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请输入类别名称'
|
|
|
|
|
}],
|
|
|
|
|
style: {
|
|
|
|
|
marginTop: '20px',
|
|
|
|
|
marginBottom: '10px'
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
|
|
|
style: {
|
|
|
|
|
height: '40px'
|
|
|
|
|
},
|
|
|
|
|
maxLength: 50,
|
|
|
|
|
showCount: true,
|
|
|
|
|
onChange: function onChange(e) {
|
|
|
|
|
var _e$target2;
|
|
|
|
|
myForm.setFieldValue('number', e === null || e === void 0 || (_e$target2 = e.target) === null || _e$target2 === void 0 || (_e$target2 = _e$target2.value) === null || _e$target2 === void 0 ? void 0 : _e$target2.trim().replace(/\s/g, ''));
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
colon: false,
|
|
|
|
|
labelCol: {
|
|
|
|
|
span: 4
|
|
|
|
|
},
|
|
|
|
|
label: "\u662F\u5426\u4E3A\u6D88\u8017\u54C1",
|
|
|
|
|
name: "is_expend",
|
|
|
|
|
rules: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请输入类别名称'
|
|
|
|
|
}],
|
|
|
|
|
style: {
|
|
|
|
|
marginTop: '20px',
|
|
|
|
|
marginBottom: '10px'
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default.Group */.ZP.Group, {
|
|
|
|
|
options: [{
|
|
|
|
|
value: false,
|
|
|
|
|
label: "否"
|
|
|
|
|
}, {
|
|
|
|
|
value: true,
|
|
|
|
|
label: "是"
|
|
|
|
|
}]
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
colon: false,
|
|
|
|
|
labelCol: {
|
|
|
|
|
@ -382,8 +462,8 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
maxLength: 200,
|
|
|
|
|
showCount: true,
|
|
|
|
|
onChange: function onChange(e) {
|
|
|
|
|
var _e$target2;
|
|
|
|
|
myForm.setFieldValue('risk', e === null || e === void 0 || (_e$target2 = e.target) === null || _e$target2 === void 0 || (_e$target2 = _e$target2.value) === null || _e$target2 === void 0 ? void 0 : _e$target2.trim().replace(/\s/g, ''));
|
|
|
|
|
var _e$target3;
|
|
|
|
|
myForm.setFieldValue('risk', e === null || e === void 0 || (_e$target3 = e.target) === null || _e$target3 === void 0 || (_e$target3 = _e$target3.value) === null || _e$target3 === void 0 ? void 0 : _e$target3.trim().replace(/\s/g, ''));
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})]
|