Commit 9e0003e8 authored by krysent's avatar krysent

new

parent cb70dbea
public/ewm.png

56.7 KB | W: | H:

public/ewm.png

20 KB | W: | H:

public/ewm.png
public/ewm.png
public/ewm.png
public/ewm.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -184,11 +184,11 @@ const Mtable = (props) => { ...@@ -184,11 +184,11 @@ const Mtable = (props) => {
}; };
//调用重新渲染表格 //调用重新渲染表格
useAsyncEffect(async () => { useEffect(async () => {
console.log(history?.location?.pathname); // console.log(history?.location?.pathname);
await initDrage(); await initDrage();
}, [columns, extraparams, path, activeTabKey, refreshDep]); }, []);
// columns, extraparams, path, activeTabKey, refreshDep
//缩放表格 //缩放表格
const handleResize = const handleResize =
(index) => (index) =>
......
...@@ -142,6 +142,9 @@ let InitForm = ({ ...@@ -142,6 +142,9 @@ let InitForm = ({
[ind, cind] = useState(0); [ind, cind] = useState(0);
form = formRef ? formRef : form; form = formRef ? formRef : form;
useEffect(() => { useEffect(() => {
let Doms = [], let Doms = [],
klink = {}, klink = {},
...@@ -1249,7 +1252,12 @@ let InitForm = ({ ...@@ -1249,7 +1252,12 @@ let InitForm = ({
} else if (item.type == "split") { } else if (item.type == "split") {
return !extraprops.hides ? ( return !extraprops.hides ? (
<Col key={i} {...getCol(item.col)}> <Col key={i} {...getCol(item.col)}>
<Divider orientation="left" style={{fontWeight:600,fontSize:14}}>{item.title}</Divider> <Divider
orientation="left"
style={{ fontWeight: 600, fontSize: 14 }}
>
{item.title}
</Divider>
</Col> </Col>
) : null; ) : null;
} }
......
...@@ -104,7 +104,7 @@ export default { ...@@ -104,7 +104,7 @@ export default {
unilateralThickness: { unilateralThickness: {
value: 0, value: 0,
type: "inputnumber", type: "inputnumber",
title: "度", title: "单边厚度",
name: ["unilateralThickness"], name: ["unilateralThickness"],
required: false, required: false,
precision: 3, precision: 3,
......
...@@ -255,15 +255,10 @@ const Materiel = (props) => { ...@@ -255,15 +255,10 @@ const Materiel = (props) => {
key: "sheetThickness", key: "sheetThickness",
}, },
{ {
title: "度", title: "单边厚度",
dataIndex: "unilateralThickness", dataIndex: "unilateralThickness",
key: "unilateralThickness", key: "unilateralThickness",
}, },
{
title: "牌号",
dataIndex: "shopSign",
key: "shopSign",
},
{ {
title: "默认库区", title: "默认库区",
...@@ -370,27 +365,13 @@ const Materiel = (props) => { ...@@ -370,27 +365,13 @@ const Materiel = (props) => {
formRef formRef
.validateFields() .validateFields()
.then((firstValues) => { .then((firstValues) => {
formRefs console.log("1231231", firstValues);
.validateFields() params = {
.then((secondFields) => { ...firstValues,
let secondFieldsKeys = Object.keys(secondFields); ...difrid,
let materieProductUnitList = };
firstValues?.materieProductUnitList?.map((it) => { url = "/ngic-workmanship/pmMaterie/save";
return { run({ url, params });
productionUnit: it.productionUnit,
conversionRate: it.conversionRate,
};
});
params = {
...firstValues,
...difrid,
materieProductUnitList,
};
url = "/ngic-workmanship/pmMaterie/save";
run({ url, params });
})
.catch((error) => {});
}) })
.catch((error) => {}); .catch((error) => {});
} else { } else {
......
...@@ -82,6 +82,23 @@ export default { ...@@ -82,6 +82,23 @@ export default {
}, },
], ],
}, },
isMovePosition: {
value: 1,
type: "radio",
name: ["isMovePosition"],
title: "是否为移库库位",
required: false,
options: [
{
label: "是",
value: 1,
},
{
label: "否",
value: 0,
},
],
},
wzpz: { wzpz: {
type: "split", type: "split",
title: "位置配置", title: "位置配置",
......
...@@ -11,7 +11,7 @@ import InitForm from "@/components/InitForm"; ...@@ -11,7 +11,7 @@ import InitForm from "@/components/InitForm";
import moment from "moment"; import moment from "moment";
import TreeRender from "@/components/TreeRender"; import TreeRender from "@/components/TreeRender";
import { useEffect } from "react"; import { useEffect } from "react";
import {storeselectionBoxAll} from '@/services/system.js' import { storeselectionBoxAll } from "@/services/system.js";
const initState = { const initState = {
vs: false, vs: false,
...@@ -226,7 +226,7 @@ const Materiel = (props) => { ...@@ -226,7 +226,7 @@ const Materiel = (props) => {
title: "所属仓库", title: "所属仓库",
dataIndex: "storeName", dataIndex: "storeName",
key: "storeName", key: "storeName",
valueType:'select', valueType: "select",
options: { options: {
database: storeselectionBoxAll, database: storeselectionBoxAll,
}, },
...@@ -284,6 +284,23 @@ const Materiel = (props) => { ...@@ -284,6 +284,23 @@ const Materiel = (props) => {
title: "更新时间", title: "更新时间",
dataIndex: "updateTime", dataIndex: "updateTime",
key: "updateTime", key: "updateTime",
search:false
},
{
title: "是否为移库仓位",
dataIndex: "isMovePosition",
key: "isMovePosition",
valueType: 'select',
options: [{
value: '1',
label:'是'
}, {
value: '2',
label:'否'
}],
render: (_, row) => {
return row?.isMovePosition ? "是" : "否";
},
}, },
{ {
......
...@@ -109,6 +109,7 @@ function reducer(state, action) { ...@@ -109,6 +109,7 @@ function reducer(state, action) {
} }
const Staff = (props) => { const Staff = (props) => {
let actionRef = useRef(), let actionRef = useRef(),
ChildRef = null; ChildRef = null;
function reload() { function reload() {
...@@ -476,6 +477,7 @@ const Staff = (props) => { ...@@ -476,6 +477,7 @@ const Staff = (props) => {
新增 新增
</Button>, </Button>,
]; ];
return ( return (
<div> <div>
{extraparams.orderType == "1" && ( {extraparams.orderType == "1" && (
......
...@@ -32,11 +32,11 @@ export default { ...@@ -32,11 +32,11 @@ export default {
}, },
linked: true, linked: true,
}, },
remark: { status: {
value: null, value: null,
type: "select", type: "select",
title: "启用状态", title: "启用状态",
name: ["remark"], name: ["status"],
required: false, required: false,
options: [ options: [
{ {
...@@ -45,10 +45,9 @@ export default { ...@@ -45,10 +45,9 @@ export default {
}, },
{ {
label: "停用", label: "停用",
value: 2, value: 0,
}, },
], ],
col: { span: 24 },
}, },
remark: { remark: {
value: null, value: null,
......
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