Commit f0ef84bb authored by 左玲玲's avatar 左玲玲 😬

表格联动

parent b689d175
......@@ -43,8 +43,6 @@ const EditTable = ({
let { urlchangeval } = linkconfig ?? {};
let newvalue = [...recordList];
if (urlchangeval && record) {//根据url 改变 数据值
let { params, database, effectresult } = urlchangeval ?? {},
curvaluerow = value && value.length > 0 ? value.filter(it => it[rowKey] == record[rowKey])[0] : {}
......@@ -54,7 +52,9 @@ const EditTable = ({
if (it[rowKey] == record[rowKey]) {
let freshvals = {}
Object.keys(effectresult).map(its => {
freshvals[its] = value[i][its]
// freshvals[its] = value[i][its];
freshvals[its] = it[its];
})
it = {
...record,
......@@ -97,18 +97,7 @@ const EditTable = ({
};
}
onChange(newvalue);
},
}}
maxLength={maxLength ?? 1000}
......
......@@ -338,7 +338,8 @@ table {
flex:1
}
}
.ant-input-number-affix-wrapper{
.ant-input-number-affix-wrapper,
.ant-input-number{
width: 100% !important;
}
......
......@@ -61,7 +61,8 @@ const EditUpload = ({ record, fid, storeId }) => {
search: false,
editable: (text, record, index) => {
return !record.materieOutstoreDetailId
}
},
valueType:"digit"
},
{
title: "备注",
......@@ -213,12 +214,12 @@ const one = {
"title": <span>入库数量 <b style={{ color: "red" }}>*</b></span>,
"dataIndex": "instroeNum",
"key": "instroeNum",
valueType:"digit",
"formItemProps": () => {
return {
rules: [{ required: true, message: '此项为必填项' }],
};
},
valueType:"digit"
}
},
{
"title": "单位",
......@@ -761,7 +762,7 @@ const one = {
title: "上架数量",
dataIndex: "instroeNum",
key: "instroeNum",
search: false,
search: false
}
]}
dataSource={record.uploadList}
......@@ -847,7 +848,7 @@ const one = {
title: "上架数量",
dataIndex: "instroeNum",
key: "instroeNum",
search: false,
search: false
}
,
{
......@@ -955,7 +956,7 @@ const one = {
title: "入库数量",
dataIndex: "instroeNum",
key: "instroeNum",
search: false,
search: false
},
{
title: "单位",
......
import React, { useEffect, useRef, useReducer } from "react";
import { Modal, Button, Drawer, Dropdown, Menu } from "antd";
import AutoTable from "@/components/AutoTable";
import Tables from "@/components/Tableform";
import getPrem from "@/utils/getPrem"; //权限判断fn
import InitForm from "@/components/InitForm";
import { useRequest } from "umi";
......@@ -154,21 +155,21 @@ const Charactor = (props) => {
dataIndex: "departmentName",
key: "departmentName",
},
{
title: "负责车间",
dataIndex: "shopNames",
key: "shopNames",
},
{
title: "负责产线",
dataIndex: "productionLines",
key: "productionLines",
},
{
title: "负责工段",
dataIndex: "sectionNames",
key: "sectionNames",
},
// {
// title: "负责车间",
// dataIndex: "shopNames",
// key: "shopNames",
// },
// {
// title: "负责产线",
// dataIndex: "productionLines",
// key: "productionLines",
// },
// {
// title: "负责工段",
// dataIndex: "sectionNames",
// key: "sectionNames",
// },
];
function extraAction(text, record, _, action) {
......@@ -290,11 +291,11 @@ const Charactor = (props) => {
treeType={iftype.val}
/>
) : iftype.val == "staff" ? (
<AutoTable
<Tables
columns={columnsc}
extraparams={{ roleId: curitem.id }}
path="/ngic-auth/sysUser/query/pageByRoleId"
></AutoTable>
></Tables>
) : (
<></>
)}
......
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