Commit 49d9bb98 authored by TZW's avatar TZW

16

parent a88ea068
...@@ -43,6 +43,7 @@ const Mtable = (props) => { ...@@ -43,6 +43,7 @@ const Mtable = (props) => {
dataSource, dataSource,
} = props; } = props;
console.log('this is path:', path);
const actionRefs = actionRef ?? useRef(), const actionRefs = actionRef ?? useRef(),
formRefs = formRef ?? useRef(), formRefs = formRef ?? useRef(),
ifspagination = pagination == 'false' || pagination === false, ifspagination = pagination == 'false' || pagination === false,
...@@ -225,12 +226,12 @@ const Mtable = (props) => { ...@@ -225,12 +226,12 @@ const Mtable = (props) => {
//初始化操作数据 //初始化操作数据
const initDrage = async () => { const initDrage = async () => {
if (!path) return; if (!path) return;
// let res = await doFetch({ let res = await doFetch({
// url: '/ngic-base-business/paFieldScene/queryContro', url: '/ngic-base-business/paFieldScene/queryContro',
// params: { params: {
// sceneMark: activeTabKey ? path + activeTabKey : path, sceneMark: activeTabKey ? path + activeTabKey : path,
// }, },
// }); });
if (res.code == '0000') { if (res.code == '0000') {
//datalist:接口返回状态 //datalist:接口返回状态
let datalist = {}; let datalist = {};
......
...@@ -117,7 +117,7 @@ function Personalstore(props) { ...@@ -117,7 +117,7 @@ function Personalstore(props) {
actionRef={actionRef} actionRef={actionRef}
path={pathconfig?.list || '/ngic-auth/sysUser/query/page'} path={pathconfig?.list || '/ngic-auth/sysUser/query/page'}
pageextra={pathconfig?.enableadd ? 'add' : null} pageextra={pathconfig?.enableadd ? 'add' : null}
resizeable={true} resizeable={false}
addconfig={{ addconfig={{
// access: 'sysDepartment_save', // access: 'sysDepartment_save',
btn: { btn: {
......
function getcolumns(setdrawer) { function getcolumns(setdrawer) {
return { return {
"columns": [ columns: [
{ {
"title": "操作时间", title: '操作时间',
"dataIndex": "operateTime", dataIndex: 'operateTime',
"key": "operateTimeList", key: 'operateTimeList',
"valueType": "dateRange" valueType: 'dateRange',
}, },
{ {
"title": "操作人", title: '操作人',
"dataIndex": "operateUserName", dataIndex: 'operateUserName',
"key": "operateUserId", key: 'operateUserId',
"valueType": "select", valueType: 'select',
"options": { options: {
"path": "/auth/sysUser/selection", path: '/auth/sysUser/selection',
"params": {} params: {},
}, },
"hideInSearch": false, hideInSearch: false,
"hideInTable": false hideInTable: false,
}, },
{ {
"title": "备件料号", title: '备件料号',
"dataIndex": "sparePartNo", dataIndex: 'sparePartNo',
"key": "sparePartNo", key: 'sparePartNo',
"hideInSearch": false, hideInSearch: false,
"hideInTable": false hideInTable: false,
}, },
{ {
"title": "备件名", title: '备件名',
"dataIndex": "sparePartName", dataIndex: 'sparePartName',
"key": "sparePartName" key: 'sparePartName',
}, },
{ {
"title": "供应商编号", title: '供应商编号',
"dataIndex": "supplierNo", dataIndex: 'supplierNo',
"key": "supplierNo" key: 'supplierNo',
}, },
{ {
"title": "供应商名称", title: '供应商名称',
"dataIndex": "supplierName", dataIndex: 'supplierName',
"key": "supplierName" key: 'supplierName',
}, },
{ {
"title": "库存单位", title: '库存单位',
"dataIndex": "unit", dataIndex: 'unit',
"key": "unit" key: 'unit',
}, },
{ {
"title": "入库仓库", title: '入库仓库',
"dataIndex": "inWarehouseName", dataIndex: 'inWarehouseName',
"key": "inWarehouseName" key: 'inWarehouseName',
}, },
{ {
"title": "出库仓库", title: '出库仓库',
"dataIndex": "outWarehouseName", dataIndex: 'outWarehouseName',
"key": "outWarehouseName" key: 'outWarehouseName',
}, },
{ {
"title": "出入库类型", title: '出入库类型',
"dataIndex": "operateTypeName", dataIndex: 'operateTypeName',
"key": "operateTypeName" key: 'operateTypeName',
}, },
{ {
"title": "操作后的备件库存", title: '操作后的备件库存',
"dataIndex": "actualStock", dataIndex: 'actualStock',
"key": "actualStock" key: 'actualStock',
}, },
{ {
"title": "操作数量", title: '操作数量',
"dataIndex": "operateNum", dataIndex: 'operateNum',
"key": "operateNum" key: 'operateNum',
}, },
{ {
"title": "相关单号", title: '相关单号',
"dataIndex": "relationNo", dataIndex: 'relationNo',
"key": "relationNo" key: 'relationNo',
} },
], ],
"pathconfig": { pathconfig: {
"enableadd": false, enableadd: false,
"enableedit": false, enableedit: false,
"enabledelete": false, enabledelete: false,
"enabledetail": false, enabledetail: false,
"add": "", add: '',
"edit": "", edit: '',
"list": "/sparepart/spareStockAccess/queryList", list: '/sparepart/spareStockAccess/queryList',
"delete": "", delete: '',
"detail": "" detail: '',
} },
}; };
} }
export default getcolumns; export default getcolumns;
\ No newline at end of file
...@@ -108,7 +108,7 @@ function Record(props) { ...@@ -108,7 +108,7 @@ function Record(props) {
actionRef={actionRef} actionRef={actionRef}
path={pathconfig?.list || '/ngic-auth/sysUser/query/page'} path={pathconfig?.list || '/ngic-auth/sysUser/query/page'}
pageextra={pathconfig?.enableadd ? 'add' : null} pageextra={pathconfig?.enableadd ? 'add' : null}
resizeable={true} resizeable={false}
addconfig={{ addconfig={{
// access: 'sysDepartment_save', // access: 'sysDepartment_save',
btn: { btn: {
......
...@@ -98,7 +98,7 @@ function Welcome(props) { ...@@ -98,7 +98,7 @@ function Welcome(props) {
columns={columns} columns={columns}
actionRef={actionRef} actionRef={actionRef}
pageextra={'add'} pageextra={'add'}
resizeable={true} resizeable={false}
addconfig={{ addconfig={{
// access: 'sysDepartment_save', // access: 'sysDepartment_save',
btn: { btn: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment