Commit fae99b52 authored by krysent's avatar krysent

new

parent 0de147ee
...@@ -10,6 +10,7 @@ import { useModel } from "umi"; ...@@ -10,6 +10,7 @@ import { useModel } from "umi";
import PrintDom from "./printdom"; import PrintDom from "./printdom";
import { PrintQrCode } from "@/components/PrintCode"; import { PrintQrCode } from "@/components/PrintCode";
import { EditableProTable } from "@ant-design/pro-table"; import { EditableProTable } from "@ant-design/pro-table";
const keytoval = { const keytoval = {
one: 1, one: 1,
two: 2, two: 2,
...@@ -257,12 +258,12 @@ function Instore(props) { ...@@ -257,12 +258,12 @@ function Instore(props) {
}, [drawprops?.visible]); }, [drawprops?.visible]);
const defaultFields = useMemo(() => { const defaultFields = useMemo(() => {
let option = { // let option = {
options: PchList, // options: PchList,
allowClear: true, // allowClear: true,
showSearch: true, // showSearch: true,
}; // };
console.log("pchlist:", option); // console.log("pchlist:", option);
return { return {
four: { four: {
materieInstoreNo: { materieInstoreNo: {
...@@ -339,7 +340,13 @@ function Instore(props) { ...@@ -339,7 +340,13 @@ function Instore(props) {
key: "labelId", key: "labelId",
valueType: "select", valueType: "select",
width: 180, width: 180,
fieldProps: option, request: async (params) => {
let res = await doFetch({
url: "/ngic-workmanship/wmsMaterieLabel/selectionByStatus",
params: { status: "1" },
});
return res?.data?.dataList;
},
formItemProps: () => { formItemProps: () => {
return { return {
rules: [{ required: true, message: "此项为必填项" }], rules: [{ required: true, message: "此项为必填项" }],
...@@ -829,7 +836,7 @@ function Instore(props) { ...@@ -829,7 +836,7 @@ function Instore(props) {
], ],
}), }),
}; };
}, [ PchList]); }, [PchList]);
// const defaultFields = useMemo(() => { // const defaultFields = useMemo(() => {
// console.log(PchList); // console.log(PchList);
......
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