Commit 49d9bb98 authored by TZW's avatar TZW

16

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